:root {
  --bg: #0b0d10;
  --bg-soft: #11151a;
  --panel: #171c22;
  --panel-2: #1c2229;
  --text: #f4f6f8;
  --muted: #a9b2bd;
  --line: #2a313a;
  --accent: #f4f6f8;
  --accent-soft: #dfe5eb;
  --success: #dfe5eb;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 16, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 850;
  letter-spacing: -.035em;
  text-decoration: none;
  font-size: 1.25rem;
}

.brand-mark {
  width: 27px;
  height: 27px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.brand-mark i {
  display: block;
  background: var(--text);
  border-radius: 1px;
}

.brand-mark i:nth-child(2),
.brand-mark i:nth-child(4),
.brand-mark i:nth-child(6),
.brand-mark i:nth-child(8) { opacity: .34; }

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .93rem;
}

nav a:hover { color: var(--text); }

.nav-support {
  color: var(--bg);
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 800;
  white-space: nowrap;
}

.landing {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 72% 22%, rgba(255,255,255,.045), transparent 28%),
    linear-gradient(180deg, #0b0d10 0%, #0d1014 100%);
}

.landing-inner { padding: 92px 0 110px; }

.landing h1 {
  max-width: 980px;
  margin-bottom: 8px;
  font-size: clamp(3.8rem, 9vw, 8.6rem);
  line-height: .9;
  letter-spacing: -.065em;
}

.landing-subtitle {
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -.035em;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .18em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 920px;
  margin-bottom: 28px;
  font-size: clamp(3.7rem, 9vw, 8.6rem);
  line-height: .9;
  letter-spacing: -.065em;
}

h1 span { color: var(--muted); }

h2 {
  margin-bottom: 15px;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.05em;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.35rem;
  letter-spacing: -.025em;
}

.hero-copy {
  max-width: 670px;
  margin-bottom: 35px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.button {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text);
  border-radius: 10px;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }

.button-primary {
  background: var(--text);
  color: var(--bg);
}

.button-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.button-support {
  background: var(--text);
  color: var(--bg);
  min-width: 155px;
}

.button.small {
  min-height: 44px;
  padding: 0 15px;
  font-size: .9rem;
}

.supporting {
  padding: 110px 0 115px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 38px;
}

.section-heading > p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.generator-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 22px;
  scroll-margin-top: 90px;
}

.generator-form,
.qr-panel,
.feature-card,
.support-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.generator-form { padding: 30px; }

.generator-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #0d1014;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
}

textarea::placeholder { color: #65707c; }

textarea:focus {
  border-color: #69737e;
  box-shadow: 0 0 0 3px rgba(255,255,255,.045);
}

.form-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.hint {
  margin: 14px 0 0;
  color: #7f8a96;
  font-size: .84rem;
}

.error {
  min-height: 1.4em;
  margin: 7px 0 0;
  color: #ffb4b4;
  font-size: .88rem;
}

.qr-panel {
  min-height: 100%;
  padding: 28px;
  display: grid;
  place-items: center;
  background: var(--panel-2);
}

.qr-placeholder,
.qr-output {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.qr-placeholder p {
  color: var(--muted);
  margin: 18px 0 0;
}

.placeholder-grid {
  width: 180px;
  height: 180px;
  border: 1px dashed #47515c;
  border-radius: 10px;
  opacity: .6;
  background:
    linear-gradient(90deg, transparent 48%, #3c454e 49%, #3c454e 51%, transparent 52%),
    linear-gradient(transparent 48%, #3c454e 49%, #3c454e 51%, transparent 52%);
  background-size: 28px 28px;
}

.qr-frame {
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 50px rgba(0,0,0,.28);
}

.qr-frame canvas,
.qr-frame img {
  display: block;
  max-width: 100%;
  height: auto;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 255px;
  padding: 28px;
}

.feature-number {
  display: block;
  margin-bottom: 54px;
  color: #69737e;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.feature-card p { color: var(--muted); }

.support-card {
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.support-card p:not(.eyebrow) {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
}

footer { border-top: 1px solid var(--line); }

.footer-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  color: var(--muted);
  font-size: .88rem;
}

.footer-inner strong {
  display: block;
  color: var(--text);
  margin-bottom: 3px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-right a { color: var(--text); }

[hidden] { display: none !important; }

@media (max-width: 850px) {
  .generator-card { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .support-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }

  .nav { min-height: 64px; }

  nav {
    gap: 11px;
  }

  nav a:not(.nav-support) { display: none; }

  .nav-support {
    padding: 8px 12px;
    font-size: .8rem;
  }

  .landing-inner,
  .supporting { padding: 75px 0; }

  h1 { font-size: clamp(3.25rem, 18vw, 5.4rem); }

  .generator-form,
  .qr-panel,
  .feature-card,
  .support-card { padding: 22px; }

  .form-row {
    flex-direction: column;
  }

  .form-row .button { width: 100%; }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 0;
  }

  .footer-right {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}
