/* ==========================================================================
   MAAR QR — Design System
   Space Grotesk (display) / Inter (body) / JetBrains Mono (data)
   ========================================================================== */

:root{
  /* ---- Dark (default) palette ---- */
  --void:#050f0c;
  --bg-0:#081a15;
  --bg-1:#0b241d;
  --surface:#0f2a23;
  --surface-2:#12332a;
  --border:rgba(234,243,239,0.09);
  --border-strong:rgba(234,243,239,0.16);
  --text-0:#eaf3ef;
  --text-1:#b7cbc3;
  --text-2:#7f978d;
  --emerald:#1f6f5c;
  --emerald-bright:#3fd8a8;
  --teal:#12665c;
  --gold:#c9a24b;
  --gold-bright:#e6c775;
  --danger:#d16a5b;

  --grad-emerald: linear-gradient(135deg,#144a3d 0%,#1f6f5c 55%,#3fd8a8 100%);
  --grad-gold: linear-gradient(135deg,#8a6d2c 0%,#c9a24b 55%,#eccf87 100%);

  --shadow-soft: 0 1px 2px rgba(0,0,0,0.24), 0 12px 32px -12px rgba(0,0,0,0.55);
  --shadow-lift: 0 2px 4px rgba(0,0,0,0.3), 0 24px 48px -16px rgba(0,0,0,0.6);
  --glow-emerald: 0 0 0 1px rgba(63,216,168,0.25), 0 0 24px rgba(63,216,168,0.16);
  --glow-gold: 0 0 0 1px rgba(230,199,117,0.3), 0 0 22px rgba(230,199,117,0.18);

  --radius-s:10px;
  --radius-m:16px;
  --radius-l:24px;
  --radius-xl:32px;

  --font-display:'Space Grotesk', system-ui, sans-serif;
  --font-body:'Inter', system-ui, sans-serif;
  --font-mono:'JetBrains Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);

  color-scheme: dark;
}

html[data-theme="light"]{
  --void:#f4f1e8;
  --bg-0:#f6f4ec;
  --bg-1:#ffffff;
  --surface:#ffffff;
  --surface-2:#f0ede2;
  --border:rgba(16,32,27,0.09);
  --border-strong:rgba(16,32,27,0.16);
  --text-0:#10201b;
  --text-1:#3d4f47;
  --text-2:#6c7d74;
  --emerald:#1f6f5c;
  --emerald-bright:#1f8f6f;
  --teal:#0f5c52;
  --gold:#a3792b;
  --gold-bright:#8a6520;

  --shadow-soft: 0 1px 2px rgba(16,32,27,0.06), 0 12px 28px -14px rgba(16,32,27,0.18);
  --shadow-lift: 0 2px 6px rgba(16,32,27,0.08), 0 24px 44px -18px rgba(16,32,27,0.22);
  --glow-emerald: 0 0 0 1px rgba(31,143,111,0.18), 0 0 18px rgba(31,143,111,0.12);
  --glow-gold: 0 0 0 1px rgba(138,101,32,0.22), 0 0 18px rgba(138,101,32,0.12);
  color-scheme: light;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important;}
}

body{
  margin:0;
  background:var(--bg-0);
  color:var(--text-0);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  transition:background .5s var(--ease-soft), color .5s var(--ease-soft);
  overflow-x:hidden;
}

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  letter-spacing:-0.02em;
  margin:0;
  color:var(--text-0);
}
p{margin:0;}
a{color:inherit;}
button{font-family:inherit;}
::selection{background:rgba(63,216,168,0.28); color:var(--text-0);}

:focus-visible{
  outline:2px solid var(--emerald-bright);
  outline-offset:3px;
  border-radius:6px;
}

.container{
  max-width:1180px;
  margin:0 auto;
  padding:0 28px;
}

/* ---------------------------------------------------------------------- */
/* Ambient background                                                     */
/* ---------------------------------------------------------------------- */
.ambient{
  position:fixed;
  inset:0;
  z-index:-1;
  overflow:hidden;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(31,111,92,0.35), transparent 60%),
    radial-gradient(1000px 800px at 90% 10%, rgba(201,162,75,0.10), transparent 55%),
    var(--void);
  transition:background .6s var(--ease-soft);
}
html[data-theme="light"] .ambient{
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(31,143,111,0.10), transparent 60%),
    radial-gradient(1000px 800px at 90% 10%, rgba(201,162,75,0.10), transparent 55%),
    var(--void);
}
.orb{
  position:absolute;
  border-radius:50%;
  filter:blur(90px);
  opacity:.55;
  will-change:transform;
}
html[data-theme="light"] .orb{opacity:.28;}
.orb--1{width:520px;height:520px;top:-180px;left:-120px;background:radial-gradient(circle,#3fd8a8,transparent 70%);animation:drift1 46s ease-in-out infinite;}
.orb--2{width:460px;height:460px;top:20%;right:-160px;background:radial-gradient(circle,#c9a24b,transparent 70%);animation:drift2 54s ease-in-out infinite;}
.orb--3{width:600px;height:600px;bottom:-260px;left:30%;background:radial-gradient(circle,#12665c,transparent 70%);animation:drift3 60s ease-in-out infinite;}

@keyframes drift1{0%,100%{transform:translate(0,0) scale(1);}50%{transform:translate(60px,80px) scale(1.08);}}
@keyframes drift2{0%,100%{transform:translate(0,0) scale(1);}50%{transform:translate(-70px,50px) scale(0.95);}}
@keyframes drift3{0%,100%{transform:translate(0,0) scale(1);}50%{transform:translate(40px,-60px) scale(1.05);}}

.grain{
  position:absolute; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  mix-blend-mode:overlay;
  pointer-events:none;
}

/* ---------------------------------------------------------------------- */
/* Header / nav                                                           */
/* ---------------------------------------------------------------------- */
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter:blur(16px) saturate(140%);
  background:color-mix(in srgb, var(--bg-0) 72%, transparent);
  border-bottom:1px solid var(--border);
}
.nav{
  position:relative;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 28px;
  max-width:1180px; margin:0 auto;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-display); font-weight:600; font-size:1.05rem;
  letter-spacing:-0.01em;
  text-decoration:none; color:var(--text-0);
}
.brand__mark{width:30px;height:30px; border-radius:8px; display:block;}
.brand__name{white-space:nowrap;}
.brand__name em{font-style:normal; color:var(--emerald-bright);}

.nav__links{
  display:flex; gap:6px; align-items:center;
  list-style:none; margin:0; padding:0;
}
.nav__links a{
  text-decoration:none; color:var(--text-1); font-size:.92rem; font-weight:500;
  padding:9px 14px; border-radius:100px;
  transition:color .25s var(--ease-soft), background .25s var(--ease-soft);
}
.nav__links a:hover{color:var(--text-0); background:var(--surface-2);}

.nav__actions{display:flex; align-items:center; gap:10px;}

.theme-toggle{
  width:40px; height:40px; border-radius:12px;
  border:1px solid var(--border-strong);
  background:var(--surface);
  color:var(--text-0);
  display:grid; place-items:center;
  cursor:pointer;
  transition:box-shadow .3s var(--ease-soft), transform .2s var(--ease-soft), border-color .3s;
}
.theme-toggle:hover{box-shadow:var(--glow-emerald); border-color:var(--border-strong); transform:translateY(-1px);}
.theme-toggle svg{width:18px;height:18px;}
.theme-toggle .sun{display:none;}
html[data-theme="light"] .theme-toggle .moon{display:none;}
html[data-theme="light"] .theme-toggle .sun{display:block;}

.nav__toggle{
  display:none;
  width:40px;height:40px; border-radius:12px;
  border:1px solid var(--border-strong); background:var(--surface); color:var(--text-0);
  cursor:pointer;
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                */
/* ---------------------------------------------------------------------- */
.btn{
  --btn-shadow: var(--shadow-soft);
  position:relative;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 24px;
  font-family:var(--font-body); font-weight:600; font-size:.92rem;
  border-radius:100px;
  border:1px solid transparent;
  cursor:pointer;
  text-decoration:none;
  transition:transform .25s var(--ease-out), box-shadow .35s var(--ease-soft), background .3s var(--ease-soft), border-color .3s var(--ease-soft);
  white-space:nowrap;
}
.btn:active{transform:translateY(1px) scale(.99);}
.btn--primary{
  background:var(--grad-emerald);
  color:#06120e;
  box-shadow:var(--btn-shadow), var(--glow-emerald);
}
.btn--primary:hover{transform:translateY(-2px); box-shadow:var(--shadow-lift), var(--glow-emerald);}
.btn--gold{
  background:var(--grad-gold);
  color:#241b06;
  box-shadow:var(--btn-shadow), var(--glow-gold);
}
.btn--gold:hover{transform:translateY(-2px); box-shadow:var(--shadow-lift), var(--glow-gold);}
.btn--ghost{
  background:var(--surface);
  color:var(--text-0);
  border-color:var(--border-strong);
}
.btn--ghost:hover{border-color:var(--emerald-bright); box-shadow:var(--glow-emerald); transform:translateY(-1px);}
.btn--sm{padding:9px 16px; font-size:.82rem;}
.btn--icon{padding:11px; border-radius:12px;}
.btn svg{width:16px;height:16px; flex-shrink:0;}
.btn:disabled{opacity:.45; cursor:not-allowed; transform:none !important;}

/* ---------------------------------------------------------------------- */
/* Cards / surfaces                                                       */
/* ---------------------------------------------------------------------- */
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-l);
  box-shadow:var(--shadow-soft);
  transition:box-shadow .4s var(--ease-soft), border-color .4s var(--ease-soft), transform .4s var(--ease-soft);
}
.card--float{animation:float 8s ease-in-out infinite;}
@keyframes float{0%,100%{transform:translateY(0);}50%{transform:translateY(-8px);}}

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--gold-bright);
  padding:6px 12px;
  border:1px solid var(--border-strong);
  border-radius:100px;
  background:var(--surface);
}
.eyebrow .dot{width:6px;height:6px;border-radius:50%;background:var(--emerald-bright); box-shadow:0 0 8px var(--emerald-bright);}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero{
  padding:88px 0 64px;
}
.hero__grid{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:56px;
  align-items:center;
}
.hero__title{
  font-size:clamp(2.6rem, 5vw, 4rem);
  line-height:1.04;
  margin:20px 0 22px;
}
.hero__title .accent{
  background:var(--grad-emerald);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero__desc{
  font-size:1.08rem;
  color:var(--text-1);
  max-width:46ch;
  margin-bottom:32px;
}
.hero__actions{display:flex; gap:14px; flex-wrap:wrap; margin-bottom:36px;}
.hero__trust{
  display:flex; gap:26px; flex-wrap:wrap;
}
.trust-item{display:flex; align-items:center; gap:8px; font-size:.86rem; color:var(--text-2);}
.trust-item svg{width:16px;height:16px; color:var(--emerald-bright); flex-shrink:0;}

.hero__preview{
  position:relative;
}
.preview-card{
  position:relative;
  padding:32px;
  display:flex; flex-direction:column; align-items:center; gap:20px;
}
.preview-card__stage{
  position:relative;
  width:100%;
  aspect-ratio:1/1;
  max-width:320px;
  border-radius:var(--radius-m);
  background:var(--bg-1);
  border:1px solid var(--border);
  display:grid; place-items:center;
  overflow:hidden;
}
.preview-card__stage canvas{width:82%; height:82%; image-rendering:pixelate;}
.scan-beam{
  position:absolute; left:6%; right:6%; height:2px;
  background:linear-gradient(90deg, transparent, var(--emerald-bright), transparent);
  box-shadow:0 0 14px var(--emerald-bright);
  animation:scan 3.2s ease-in-out infinite;
  opacity:.85;
}
@keyframes scan{0%{top:8%;}50%{top:88%;}100%{top:8%;}}
.preview-card__meta{
  width:100%; display:flex; justify-content:space-between; align-items:center;
  font-family:var(--font-mono); font-size:.76rem; color:var(--text-2);
}
.preview-card__meta .pulse{width:7px;height:7px;border-radius:50%;background:var(--emerald-bright); box-shadow:0 0 8px var(--emerald-bright); animation:pulse 1.6s ease-in-out infinite;}
@keyframes pulse{0%,100%{opacity:.4;}50%{opacity:1;}}
.preview-card__input{width:100%;}

/* ---------------------------------------------------------------------- */
/* Section shell                                                          */
/* ---------------------------------------------------------------------- */
.section{padding:88px 0;}
.section--tight{padding:56px 0;}
.section__head{
  max-width:640px;
  margin-bottom:48px;
}
.section__head h2{font-size:clamp(1.8rem, 3vw, 2.4rem); margin:16px 0 12px;}
.section__head p{color:var(--text-1); font-size:1.02rem;}
.section-divider{
  height:1px;
  background:linear-gradient(90deg, transparent, var(--border-strong), transparent);
  border:0; margin:0;
}

/* ---------------------------------------------------------------------- */
/* Generator                                                               */
/* ---------------------------------------------------------------------- */
.generator{
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:28px;
  align-items:start;
}
.panel{
  padding:28px;
}
.panel__title{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:20px;
}
.panel__title h3{font-size:1.1rem;}

.type-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:8px;
  margin-bottom:24px;
}
.type-btn{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:14px 8px;
  border-radius:var(--radius-s);
  border:1px solid var(--border);
  background:var(--bg-1);
  color:var(--text-1);
  cursor:pointer;
  font-size:.72rem; font-weight:600;
  transition:all .25s var(--ease-soft);
}
.type-btn svg{width:18px;height:18px;}
.type-btn:hover{border-color:var(--border-strong); color:var(--text-0); transform:translateY(-2px);}
.type-btn[aria-pressed="true"]{
  border-color:var(--emerald-bright);
  color:var(--text-0);
  background:linear-gradient(180deg, rgba(63,216,168,0.12), rgba(63,216,168,0.03));
  box-shadow:var(--glow-emerald);
}

.field{margin-bottom:16px;}
.field label{
  display:block; font-size:.8rem; font-weight:600; color:var(--text-1); margin-bottom:8px;
}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
.input, .select, textarea.input{
  width:100%;
  padding:12px 14px;
  border-radius:var(--radius-s);
  border:1px solid var(--border-strong);
  background:var(--bg-1);
  color:var(--text-0);
  font-family:var(--font-mono);
  font-size:.88rem;
  transition:border-color .25s var(--ease-soft), box-shadow .25s var(--ease-soft), background .25s;
}
.input::placeholder{color:var(--text-2); font-family:var(--font-body);}
.input:focus, .select:focus, textarea.input:focus{
  outline:none; border-color:var(--emerald-bright);
  box-shadow:0 0 0 4px rgba(63,216,168,0.14);
}
textarea.input{resize:vertical; min-height:90px; font-family:var(--font-body);}
.select{appearance:none; cursor:pointer; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237f978d' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; padding-right:36px;}

.data-forms > div{display:none;}
.data-forms > div.active{display:block; animation:fadeIn .35s var(--ease-out);}
@keyframes fadeIn{from{opacity:0; transform:translateY(4px);} to{opacity:1; transform:translateY(0);}}

/* Customization accordion */
.accordion{border-top:1px solid var(--border); margin-top:8px;}
.accordion__item{border-bottom:1px solid var(--border);}
.accordion__trigger{
  width:100%; display:flex; align-items:center; justify-content:space-between;
  padding:16px 2px; background:none; border:0; color:var(--text-0);
  font-family:var(--font-display); font-weight:600; font-size:.95rem; cursor:pointer;
}
.accordion__trigger svg{width:16px;height:16px; transition:transform .3s var(--ease-soft); color:var(--text-2);}
.accordion__trigger[aria-expanded="true"] svg{transform:rotate(180deg);}
.accordion__panel{
  max-height:0; overflow:hidden;
  transition:max-height .4s var(--ease-soft);
}
.accordion__panel.open{max-height:900px;}
.accordion__inner{padding:4px 2px 22px;}

.swatch-row{display:flex; align-items:center; gap:12px;}
.swatch{
  width:44px; height:44px; border-radius:12px; border:1px solid var(--border-strong);
  cursor:pointer; padding:0; overflow:hidden;
}
.range-row{display:flex; align-items:center; gap:14px;}
.range-row input[type="range"]{flex:1; accent-color:var(--emerald-bright);}
.range-value{font-family:var(--font-mono); font-size:.78rem; color:var(--text-2); min-width:38px; text-align:right;}

.segmented{display:flex; border:1px solid var(--border-strong); border-radius:var(--radius-s); overflow:hidden;}
.segmented button{
  flex:1; padding:10px; background:var(--bg-1); border:0; color:var(--text-1); cursor:pointer;
  font-size:.82rem; font-weight:600; transition:all .2s var(--ease-soft);
  border-right:1px solid var(--border-strong);
}
.segmented button:last-child{border-right:0;}
.segmented button[aria-pressed="true"]{background:var(--emerald); color:#eafff6;}

.logo-drop{
  border:1.5px dashed var(--border-strong);
  border-radius:var(--radius-s);
  padding:18px; text-align:center; cursor:pointer;
  color:var(--text-2); font-size:.82rem;
  transition:border-color .25s, color .25s;
}
.logo-drop:hover{border-color:var(--emerald-bright); color:var(--text-1);}

.output-actions{display:flex; flex-wrap:wrap; gap:10px; margin-top:22px;}

.privacy-note{
  display:flex; gap:12px; align-items:flex-start;
  padding:16px; margin-top:24px;
  border-radius:var(--radius-s);
  background:linear-gradient(180deg, rgba(201,162,75,0.08), transparent);
  border:1px solid var(--border);
}
.privacy-note svg{width:18px;height:18px; color:var(--gold-bright); flex-shrink:0; margin-top:1px;}
.privacy-note p{font-size:.82rem; color:var(--text-1);}

/* ---------------------------------------------------------------------- */
/* History                                                                 */
/* ---------------------------------------------------------------------- */
.history-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(160px,1fr)); gap:14px;
}
.history-item{
  padding:14px; display:flex; flex-direction:column; gap:10px; align-items:center;
  cursor:pointer;
}
.history-item canvas{width:100%; aspect-ratio:1/1; border-radius:8px; background:var(--bg-1);}
.history-item span{font-size:.72rem; font-family:var(--font-mono); color:var(--text-2); text-align:center; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; width:100%;}
.history-empty{
  padding:40px; text-align:center; color:var(--text-2); font-size:.9rem;
  border:1px dashed var(--border-strong); border-radius:var(--radius-m); grid-column:1/-1;
}

/* ---------------------------------------------------------------------- */
/* Scanner                                                                 */
/* ---------------------------------------------------------------------- */
.scanner{
  display:grid; grid-template-columns:0.9fr 1.1fr; gap:32px; align-items:center;
}
.scanner__stage{
  position:relative; aspect-ratio:4/3; border-radius:var(--radius-l);
  overflow:hidden; background:var(--bg-1); border:1px solid var(--border);
}
.scanner__stage video{width:100%; height:100%; object-fit:cover; display:none;}
.scanner__placeholder{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px;
  color:var(--text-2); text-align:center; padding:24px;
}
.scanner__placeholder svg{width:40px;height:40px; color:var(--emerald-bright);}
.scanner__frame{
  position:absolute; inset:14%; border:2px solid var(--emerald-bright); border-radius:20px;
  opacity:0; box-shadow:0 0 30px rgba(63,216,168,0.25);
}
.scanner__stage.live .scanner__frame{opacity:1;}
.scanner__stage.live .scanner__placeholder{display:none;}
.scanner__stage.live video{display:block;}

.scanner__result{
  margin-top:18px; padding:16px; border-radius:var(--radius-s);
  background:var(--bg-1); border:1px solid var(--border);
  font-family:var(--font-mono); font-size:.85rem; word-break:break-all; display:none;
}
.scanner__result.show{display:block;}

/* ---------------------------------------------------------------------- */
/* Coming soon                                                            */
/* ---------------------------------------------------------------------- */
.coming-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:20px;
}
.coming-card{
  padding:26px; position:relative; overflow:hidden;
}
.coming-card__badge{
  position:absolute; top:20px; right:20px;
  font-family:var(--font-mono); font-size:.64rem; letter-spacing:.1em; text-transform:uppercase;
  padding:5px 10px; border-radius:100px;
  background:var(--surface-2); color:var(--gold-bright); border:1px solid var(--border-strong);
}
.coming-card svg{width:26px;height:26px; color:var(--emerald-bright); margin-bottom:16px;}
.coming-card h3{font-size:1.02rem; margin-bottom:8px;}
.coming-card p{font-size:.86rem; color:var(--text-2); line-height:1.55;}

/* ---------------------------------------------------------------------- */
/* Feature strip                                                          */
/* ---------------------------------------------------------------------- */
.feature-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px;}
.feature{padding:24px;}
.feature svg{width:22px;height:22px; color:var(--gold-bright); margin-bottom:14px;}
.feature h3{font-size:.98rem; margin-bottom:6px;}
.feature p{font-size:.84rem; color:var(--text-2); line-height:1.5;}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer{
  border-top:1px solid var(--border);
  padding:48px 0 32px;
  margin-top:40px;
}
.footer__grid{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:32px; margin-bottom:32px;
}
.footer__brand p{color:var(--text-2); font-size:.86rem; max-width:34ch; margin-top:10px;}
.footer__links{display:flex; gap:56px; flex-wrap:wrap;}
.footer__col h4{font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text-2); margin-bottom:14px;}
.footer__col a{display:block; font-size:.88rem; color:var(--text-1); text-decoration:none; margin-bottom:10px; transition:color .2s;}
.footer__col a:hover{color:var(--emerald-bright);}
.footer__bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
  font-size:.78rem; color:var(--text-2);
  padding-top:24px; border-top:1px solid var(--border);
}

/* ---------------------------------------------------------------------- */
/* Toast                                                                   */
/* ---------------------------------------------------------------------- */
.toast{
  position:fixed; bottom:28px; left:50%; transform:translate(-50%, 20px);
  background:var(--surface); border:1px solid var(--border-strong); color:var(--text-0);
  padding:13px 20px; border-radius:100px; font-size:.86rem; font-weight:500;
  box-shadow:var(--shadow-lift);
  display:flex; align-items:center; gap:10px;
  opacity:0; pointer-events:none; z-index:200;
  transition:opacity .3s var(--ease-soft), transform .3s var(--ease-soft);
}
.toast svg{width:16px;height:16px; color:var(--emerald-bright);}
.toast.show{opacity:1; transform:translate(-50%, 0); pointer-events:auto;}

/* ---------------------------------------------------------------------- */
/* Utility                                                                 */
/* ---------------------------------------------------------------------- */
.visually-hidden{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;}
.skip-link{
  position:absolute; top:-100px; left:16px; z-index:999;
  background:var(--emerald-bright); color:#06120e;
  padding:12px 20px; border-radius:100px; font-weight:600; font-size:.88rem;
  text-decoration:none;
  transition:top .25s var(--ease-soft);
}
.skip-link:focus{top:16px;}
.reveal{opacity:0; transform:translateY(18px); transition:opacity .7s var(--ease-out), transform .7s var(--ease-out);}
.reveal.in{opacity:1; transform:translateY(0);}

/* ---------------------------------------------------------------------- */
/* Responsive                                                             */
/* ---------------------------------------------------------------------- */
@media (max-width: 980px){
  .hero__grid{grid-template-columns:1fr; gap:44px;}
  .generator{grid-template-columns:1fr;}
  .scanner{grid-template-columns:1fr;}
  .coming-grid{grid-template-columns:repeat(2,1fr);}
  .feature-grid{grid-template-columns:repeat(2,1fr);}
  .nav__links{display:none;}
  .nav__links.is-open{
    display:flex; flex-direction:column; align-items:stretch; gap:2px;
    position:absolute; top:100%; left:0; right:0;
    padding:12px 20px 20px;
    background:var(--bg-0);
    border-bottom:1px solid var(--border);
    box-shadow:var(--shadow-lift);
  }
  .nav__links.is-open a{padding:12px 14px;}
  .nav__toggle{display:block;}
}
@media (max-width: 640px){
  .container{padding:0 18px;}
  .type-grid{grid-template-columns:repeat(3,1fr);}
  .coming-grid{grid-template-columns:1fr;}
  .feature-grid{grid-template-columns:1fr;}
  .field-row{grid-template-columns:1fr;}
  .footer__grid{flex-direction:column;}
  .hero{padding:60px 0 40px;}
  .section{padding:56px 0;}
}
