/* ============================================================
   make-qr-code.net — graphite dusk, copper + soft emerald
   Distinct from generate (lime clip), store (purple neon), free (coral)
   HARD RULE: no horizontal scroll.
   ============================================================ */

:root {
  --bg: #0f1218;
  --bg-elev: #181c25;
  --line: #2c3342;
  --text: #e8ebf0;
  --muted: #8f98a8;
  --copper: #c9956c;
  --copper-dim: #a67a55;
  --emerald: #5fd4a4;
  --emerald-ink: #0a1612;
  --focus: #5fd4a4;
  --font-brand: "Lexend", sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Lexend", sans-serif;
  --pad: clamp(16px, 4vw, 48px);
  --max: 1080px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  scroll-behavior: auto;
  overflow-x: clip;
  max-width: 100%;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  background: transparent;
  color: var(--text);
  font: 16px/1.55 var(--font-body);
  position: relative;
  overflow-x: clip;
}

.haze {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 8% 0%, rgba(201, 149, 108, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 88%, rgba(95, 212, 164, 0.1), transparent 50%),
    linear-gradient(165deg, #0c0e14 0%, #12161f 45%, #0f1218 100%);
}

.haze::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  animation: haze-drift 28s ease-in-out infinite alternate;
}

@keyframes haze-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-1.5%, 1%, 0) scale(1.04); }
}

.top, .main, .foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(15, 18, 24, 0.72);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand__mark {
  flex: 0 0 auto;
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
}
.brand__mark svg { display: block; width: 40px; height: 40px; }

.brand__text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28em;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand__name--soft { color: var(--copper); }

.top__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top__link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.top__link:hover { color: var(--text); }

.top__biz,
.foot__biz,
.btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  padding: 10px 14px;
  min-height: 42px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: transform 0.08s ease, background 0.15s, border-color 0.15s, color 0.15s;
}

.top__biz:hover,
.btn--ghost:hover { border-color: var(--copper); color: var(--copper); }

.btn--bright {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--emerald-ink) !important;
}
.btn--bright:hover {
  background: #7ae0b4;
  border-color: #7ae0b4;
  color: var(--emerald-ink) !important;
}

.btn:active,
.top__biz:active,
.foot__biz:active { transform: translateY(1px); }

.lang { position: relative; }
.lang__btn {
  font: inherit;
  font-size: 13px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 10px;
  min-height: 42px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang__btn[aria-expanded="true"] { border-color: var(--copper); }
.lang__caret { color: var(--copper); font-size: 10px; }
.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  min-width: 160px;
  max-height: min(70vh, 420px);
  overflow: auto;
  z-index: 80;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.lang__menu button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.lang__menu button:hover,
.lang__menu button[aria-selected="true"] {
  background: rgba(201, 149, 108, 0.12);
  color: var(--copper);
}

.main {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 64px;
}

.hero {
  padding: clamp(36px, 8vw, 72px) 0 clamp(28px, 5vw, 48px);
  max-width: 36rem;
}

.hero__brand {
  margin: 0 0 14px;
  font-family: var(--font-brand);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}
.hero__brand::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 3px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--copper), var(--emerald));
}

.hero__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  text-wrap: balance;
}

.hero__lead {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.hero__lead-sub {
  display: block;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
  white-space: nowrap;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }

.bench {
  margin: 8px 0 48px;
  padding: 18px 0 8px;
  border-top: 1px solid var(--line);
}

.bench__label {
  margin: 0 0 14px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}

.strip {
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
  max-width: 36rem;
}
.strip__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}
.strip__text { margin: 0; color: var(--muted); }

.section { padding: 40px 0 8px; }
.section__kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald);
  font-weight: 600;
}
.section__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 600;
}
.section__more { margin: 16px 0 0; }
.section__more a {
  color: var(--copper);
  text-decoration: none;
  font-weight: 600;
}
.section__more a:hover { color: var(--emerald); }

.rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.rail li { border-bottom: 1px solid var(--line); }
.rail a {
  display: block;
  padding: 16px 4px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.15s, padding-left 0.15s;
}
.rail a:hover {
  color: var(--emerald);
  padding-left: 8px;
}

.page-head { padding: 40px 0 20px; max-width: 38rem; }
.page-head h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 600;
}
.page-head p { margin: 0; color: var(--muted); }

.prose {
  max-width: 38rem;
  padding-bottom: 24px;
}
.prose h2 {
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.prose p { margin: 0 0 14px; color: var(--muted); }
.prose p strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--copper); }

.foot {
  border-top: 1px solid var(--line);
  padding: 28px var(--pad) 40px;
  background: rgba(12, 14, 20, 0.85);
}
.foot__row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.foot__brand {
  margin: 0;
  font-weight: 700;
  font-family: var(--font-brand);
}
.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.foot__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.foot__nav a:hover { color: var(--text); }
.foot__biz {
  background: transparent;
  border-color: var(--copper-dim);
  color: var(--copper);
}
.foot__biz:hover {
  background: rgba(201, 149, 108, 0.12);
  border-color: var(--copper);
}
.foot__note {
  max-width: var(--max);
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.sitemap-grid {
  display: grid;
  gap: 28px;
  padding-bottom: 24px;
}
.sitemap-grid h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.sitemap-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sitemap-grid li { margin: 0 0 8px; }
.sitemap-grid a {
  color: var(--muted);
  text-decoration: none;
}
.sitemap-grid a:hover { color: var(--emerald); }

html[dir="rtl"] .hero__brand::after { margin-right: 0; }
html[dir="rtl"] .rail a:hover { padding-left: 0; padding-right: 8px; }
html[dir="rtl"] .lang__menu { right: auto; left: 0; }

@media (max-width: 720px) {
  .top__link { font-size: 12px; }
  .hero { padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .haze::after { animation: none; }
  html { scroll-behavior: auto; }
}
