/* ALYSSIUN ID — atmosphere system.
   DEFAULT atmosphere is CERAMIC MIST (Lux): premium light/glass surfaces,
   precise hairline borders, restrained shadow, thin luxury type — never a
   generic white SaaS look. INFINITE VOID (Neo) is an OPTIONAL, user-selectable
   atmosphere only, applied via [data-atmosphere="void"] — never the default.
   Variable names are semantic roles shared by both atmospheres. See
   project-rules/BRAND_SYSTEM.md. */
:root {
  /* Ceramic Mist (Lux) — the default first impression */
  --void: #ecebe4;          /* base surface */
  --void-2: #e2e0d7;        /* recessed surface (code, chips, thumbs) */
  --glass: rgba(255,255,255,0.50);
  --glass-2: rgba(255,255,255,0.78);
  --hair: rgba(20,20,26,0.10);    /* precise hairline on light */
  --hair-2: rgba(20,20,26,0.20);
  --text: #16161c;
  --muted: #6c6c77;
  --ceramic: #efece6;       /* Ceramic Mist accent surface */
  --ceramic-ink: #14141a;
  --jade: #2f7d62;          /* restrained verified tint (reads on light) */
  --danger: #c1473d;
  --radius: 12px;
  /* themed roles (differ per atmosphere) */
  --bg:
    radial-gradient(1100px 680px at 50% -240px, #fbfaf6 0%, rgba(236,235,228,0) 60%),
    var(--void);
  --nav-bg: rgba(238,236,229,0.72);
  --grad-from: #16161c;
  --grad-to: #5a5a66;
  --input: rgba(255,255,255,0.55);
  --input-2: rgba(255,255,255,0.85);
  --placeholder: #9a9aa2;
  --primary: #16161c;       /* Lux primary = ink artifact */
  --primary-ink: #f6f5f1;
  --primary-hover: #000;
  --btn-hover-border: rgba(20,20,26,0.34);
  --frame: var(--void);     /* avatar frame matches base surface */
  --banner:
    radial-gradient(120% 150% at 50% -30%, #f6f4ee 0%, rgba(226,224,215,0) 60%),
    #e2e0d7;
  --card-shadow: 0 30px 70px -50px rgba(20,20,26,0.30);
  --thumb-shadow: 0 18px 36px -22px rgba(20,20,26,0.32);
  font-synthesis: none;
}

/* Infinite Void (Neo) — optional, applied only when the user selects it. */
:root[data-atmosphere="void"] {
  --void: #060608;
  --void-2: #0c0c11;
  --glass: rgba(255,255,255,0.035);
  --glass-2: rgba(255,255,255,0.06);
  --hair: rgba(255,255,255,0.09);
  --hair-2: rgba(255,255,255,0.16);
  --text: #f4f4f6;
  --muted: #8b8b97;
  --jade: #86e0c0;
  --danger: #e0726a;
  --bg:
    radial-gradient(1100px 680px at 50% -240px, #15151d 0%, rgba(6,6,8,0) 60%),
    var(--void);
  --nav-bg: rgba(6,6,8,0.7);
  --grad-from: #ffffff;
  --grad-to: #aeaeba;
  --input: rgba(255,255,255,0.02);
  --input-2: rgba(255,255,255,0.04);
  --placeholder: #55555f;
  --primary: var(--ceramic);
  --primary-ink: var(--ceramic-ink);
  --primary-hover: #fff;
  --btn-hover-border: rgba(255,255,255,0.34);
  --frame: var(--void);
  --banner:
    radial-gradient(120% 150% at 50% -30%, #1a1a24 0%, rgba(8,8,12,0) 60%),
    #08080c;
  --card-shadow: 0 40px 90px -50px rgba(0,0,0,0.9);
  --thumb-shadow: 0 20px 40px -20px rgba(0,0,0,0.8);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

/* Sovereign typography */
h1, h2, h3 { font-weight: 300; letter-spacing: -0.01em; }
h1 { font-weight: 200; }
.muted { color: var(--muted); }
.mono, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
/* Bold uppercase micro-label */
label, .eyebrow {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}

/* Top nav */
header.nav {
  position: sticky; top: 0; z-index: 10;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  background: var(--nav-bg); border-bottom: 1px solid var(--hair);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { font-weight: 700; letter-spacing: 0.2em; font-size: 14px; text-transform: uppercase; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Kinetic-glass buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text); background: var(--glass); border: 1px solid var(--hair-2);
  padding: 12px 18px; border-radius: 5px; white-space: nowrap;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--btn-hover-border); background: var(--glass-2); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 9px 13px; font-size: 11px; }
.btn:focus-visible { outline: 2px solid var(--hair-2); outline-offset: 2px; }

/* Layout */
.hero { padding: 92px 0 56px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.06; margin: 18px 0 18px; }
.hero h1 .grad {
  background: linear-gradient(180deg, var(--grad-from), var(--grad-to));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 18px; color: var(--muted); max-width: 720px; }
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--glass); border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 22px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.card h3 { margin: 0 0 8px; font-size: 16px; }
.section { padding: 40px 0; }
.section h2 { font-size: 24px; margin: 0 0 16px; }

/* Status pills (uppercase glass chips) */
.pill {
  display: inline-flex; align-items: center; font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 11px;
  border-radius: 5px; border: 1px solid var(--hair-2); color: var(--muted); background: var(--glass);
}
.pill.verified { color: var(--jade); border-color: rgba(134,224,192,0.4); }
.pill.trusted { color: var(--text); }
.pill.limited { color: #e6c07a; border-color: rgba(230,192,122,0.4); }
.pill.under_review { color: var(--muted); }

/* Forms */
label { margin: 16px 0 7px; }
input, textarea, select {
  width: 100%; background: var(--input); border: 1px solid var(--hair);
  color: var(--text); padding: 12px 13px; border-radius: 6px; font-size: 14px; font-family: inherit;
}
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--hair-2); background: var(--input-2); }
textarea { min-height: 92px; resize: vertical; line-height: 1.55; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 200px; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.check input { width: auto; }
.check label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted); }

/* Notices */
.notice { padding: 12px 14px; border-radius: 8px; font-size: 13px; margin: 14px 0; border: 1px solid var(--hair-2); }
.notice.err { background: rgba(224,114,106,0.08); border-color: rgba(224,114,106,0.5); color: #f0a59f; }
.notice.ok { background: rgba(134,224,192,0.08); border-color: rgba(134,224,192,0.5); color: var(--jade); }
.codeblock {
  background: var(--void-2); border: 1px solid var(--hair); border-radius: 8px;
  padding: 14px; overflow-x: auto; font-size: 13px; white-space: pre;
}

footer.foot { border-top: 1px solid var(--hair); margin-top: 64px; padding: 30px 0; color: var(--muted); font-size: 12px; }
footer.foot a { color: var(--muted); }
footer.foot a:hover { color: var(--text); }
.hidden { display: none !important; }
.avatar-img {
  width: 104px; height: 104px; border-radius: 16px; object-fit: cover;
  border: 1px solid var(--hair-2); background: var(--void-2);
}

/* Mobile nav: the brand + atmosphere toggle + links + CTA crowd the bar on
   small screens — let it relax onto two tidy rows instead of squashing. */
@media (max-width: 600px) {
  .nav-inner { height: auto; flex-wrap: wrap; padding: 10px 0; gap: 10px 14px; }
  .nav-links { width: 100%; margin-left: 0; justify-content: flex-start; flex-wrap: wrap; gap: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
