/* ============================================================================
   itsnormal.ai — Ultra-Calm Editorial Design System + Apple Motion Choreography
   Starlight Warp Entry · Scroll Reveals · Specular Sheen · Smooth View Transitions
   ============================================================================ */

:root {
  --font: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);

  --bg: #06070c;
  --bg-2: #0a0c14;
  --surface: rgba(165, 185, 255, 0.036);
  --surface-soft: rgba(165, 185, 255, 0.058);
  --surface-hover: rgba(165, 185, 255, 0.095);
  --surface-strong: rgba(12, 14, 23, 0.96);
  --code-bg: #0a0d16;
  --line: rgba(185, 202, 255, 0.085);
  --line-med: rgba(185, 202, 255, 0.15);
  --ink: #c9d0e2;
  --ink-hi: #f4f6ff;
  --mut: #868fa8;
  --dim: #576079;
  --accent: #72d7ff;
  --on-accent: #040a14;
  --sheen: rgba(160, 195, 255, 0.075);
  --shadow: 0 24px 68px rgba(0, 0, 0, 0.48);
}

body[data-theme="paper"] {
  --bg: #f6f3ed;
  --bg-2: #ede9e0;
  --surface: rgba(255, 253, 249, 0.68);
  --surface-soft: rgba(26, 22, 18, 0.042);
  --surface-hover: rgba(26, 22, 18, 0.075);
  --surface-strong: rgba(255, 254, 251, 0.97);
  --code-bg: #151822;
  --line: rgba(26, 22, 18, 0.085);
  --line-med: rgba(26, 22, 18, 0.15);
  --ink: #35302b;
  --ink-hi: #141210;
  --mut: #6b635a;
  --dim: #958d82;
  --accent: #252bdd;
  --on-accent: #ffffff;
  --sheen: rgba(37, 43, 221, 0.045);
  --shadow: 0 20px 56px rgba(28, 22, 14, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15.5px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 2px; }

.container { width: min(1080px, 100% - 48px); margin: 0 auto; }

/* ---------- Deep-Space Warp Entry Overlay (Pure Space, Zero Glow) ---------- */
.warp-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: #020307;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 1; transform: scale(1);
  transition: opacity 0.44s var(--ease), transform 0.48s var(--ease);
}
.warp-overlay[hidden] { display: none; }
.warp-overlay.warp-exit {
  opacity: 0; transform: scale(1.035); pointer-events: none;
}
.warp-overlay canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.warp-center {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  animation: warpCenterIn 0.72s var(--ease) both;
}
.warp-orb {
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff, #e2e7f4 26%, #6d758c 64%, #10121a 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  animation: warpOrbPulse 1.7s var(--ease) both;
}
.warp-word {
  font-size: 24px; font-weight: 560; letter-spacing: -0.03em; color: #f5f7ff;
  line-height: 1;
}
.warp-sub {
  font: 500 11px/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(182, 198, 232, 0.65);
}
.warp-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 3;
  height: 30px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(200, 218, 255, 0.14);
  background: rgba(160, 185, 255, 0.06);
  color: rgba(210, 224, 255, 0.72);
  font: 500 11px/1 var(--mono); letter-spacing: 0.08em;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.warp-hint:hover { background: rgba(160, 185, 255, 0.14); color: #ffffff; }

/* Minimal Apple-style 3-bar Sound Pill in Nav */
.sound-btn { gap: 6px; padding: 0 11px; }
.radio-pop {
  position: absolute; top: 38px; right: 0; width: 292px; z-index: 80;
  border-radius: 18px; border: 1px solid var(--line); background: var(--surface-strong);
  box-shadow: var(--shadow); padding: 12px;
  display: flex; flex-direction: column; gap: 2px;
  animation: popIn 0.22s var(--ease) both;
}
.radio-pop[hidden] { display: none; }
.radio-opt {
  width: 100%; padding: 8px 10px; border-radius: 11px; border: 1px solid transparent; background: transparent;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left;
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease);
}
.radio-opt:hover { background: var(--surface-soft); }
.radio-opt.on { background: var(--surface-hover); border-color: var(--line-med); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; width: 11px; }
.eq i {
  display: block; width: 2px; border-radius: 2px; background: currentColor;
  height: 4px; opacity: 0.55; transition: height 0.2s var(--ease), opacity 0.2s var(--ease);
}
.eq i:nth-child(2) { height: 7px; }
.eq i:nth-child(3) { height: 5px; }
.sound-btn.live { color: var(--ink-hi); background: var(--surface-soft); }
.sound-btn.live .eq i { opacity: 1; background: #bf7aff; animation: eqPulse 0.517s ease-in-out infinite; }
.sound-btn.live .eq i:nth-child(2) { background: #7b61ff; animation-delay: 0.13s; animation-duration: 0.517s; }
.sound-btn.live .eq i:nth-child(3) { background: #e0c8ff; animation-delay: 0.26s; animation-duration: 0.517s; }
body[data-theme="paper"] .sound-btn.live .eq i { background: #6d28d9; }
body[data-theme="paper"] .sound-btn.live .eq i:nth-child(2) { background: #4f46e5; }
body[data-theme="paper"] .sound-btn.live .eq i:nth-child(3) { background: #9333ea; }
@keyframes eqPulse {
  0%, 100% { height: 3px; }
  50%      { height: 11px; }
}
@keyframes warpCenterIn {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes warpOrbPulse {
  0%   { transform: scale(0.90); }
  55%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ---------- Whisper Scroll Progress Hairline ---------- */
.scroll-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 1.5px; z-index: 80;
  background: linear-gradient(90deg, #72d7ff, #a78bfa, #f472b6);
  transform-origin: left center; transform: scaleX(0);
  pointer-events: none; opacity: 0.85;
  transition: transform 0.08s linear;
}

/* ---------- Apple Staggered Hero Arrival & Scroll Choreography ---------- */
.hero-stagger {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.78s var(--ease), transform 0.82s var(--ease);
  transition-delay: var(--d, 0ms);
}
body.hero-ready .hero-stagger { opacity: 1; transform: translateY(0); }

.reveal {
  opacity: 0; transform: translateY(24px) scale(0.988);
  transition: opacity 0.82s var(--ease), transform 0.86s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0) scale(1); }

@keyframes viewEnter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.view-enter { animation: viewEnter 0.48s var(--ease) both; }

/* Pure Silver Chrome Orb (Logo & QR centerpiece ONLY, zero halo glow) */
.orb {
  width: 17px; height: 17px; border-radius: 50%; flex-shrink: 0; display: inline-block;
  background: radial-gradient(circle at 32% 28%, #ffffff, #dce0ea 28%, #6d7384 64%, #151720 100%);
  transition: transform 0.28s var(--ease);
}
.brand:hover .orb { transform: scale(1.06); }
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; display: inline-block; }

/* ---------- Quiet Sticky Navigation (Frosted Apple Glass) ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(26px) saturate(165%); -webkit-backdrop-filter: blur(26px) saturate(165%);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav-in {
  height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: relative;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15.5px;
  letter-spacing: -0.02em; color: var(--ink-hi); border: 0; background: transparent; padding: 0;
}
.brand small { font: 400 13px/1 var(--font); color: var(--mut); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  height: 32px; padding: 0 12px; border-radius: 999px; border: 0; background: transparent;
  color: var(--mut); font-size: 13.5px; font-weight: 480;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), transform 0.16s var(--ease);
}
.nav-link:hover, .nav-link.on { color: var(--ink-hi); background: var(--surface-soft); }
.nav-link:active { transform: scale(0.97); }
.nav-acts { display: flex; align-items: center; gap: 6px; }
.mob-menu-btn { display: none; }

/* Frosted Apple Mega-Menu with Spring Entry */
.mega-menu {
  position: absolute; top: 64px; left: 0; right: 0; z-index: 70;
  border-radius: 22px; border: 1px solid var(--line);
  background: var(--surface-strong);
  backdrop-filter: blur(32px) saturate(170%); -webkit-backdrop-filter: blur(32px) saturate(170%);
  box-shadow: var(--shadow);
  padding: 18px; display: grid; grid-template-columns: 230px 1fr; gap: 18px;
  transform-origin: top center;
  animation: popIn 0.28s var(--ease) both;
}
.mega-menu[hidden] { display: none; }
@keyframes popIn {
  from { opacity: 0; transform: translateY(-7px) scale(0.982); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.mega-left {
  padding: 14px; border-radius: 16px; background: var(--surface-soft);
  display: flex; flex-direction: column; gap: 10px;
}
.mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.mega-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 12px; border: 0; background: transparent;
  text-align: left; transition: background 0.16s var(--ease), transform 0.16s var(--ease);
}
.mega-item:hover, .mega-item.on { background: var(--surface-soft); }
.mega-item:active { transform: scale(0.985); }
.mega-foot {
  grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}

/* ---------- Buttons & Tabs (Tactile Apple Press Physics) ---------- */
.btn {
  height: 36px; padding: 0 16px; border-radius: 999px; border: 0;
  background: var(--surface-soft); color: var(--ink-hi); font-size: 13.5px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
  transition: background 0.18s var(--ease), opacity 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.22s var(--ease);
}
.btn:hover { background: var(--surface-hover); transform: translateY(-0.5px); }
.btn:active { transform: scale(0.97); }
.btn.pri { background: var(--ink-hi); color: var(--bg); font-weight: 580; }
.btn.pri:hover { opacity: 0.90; }
.btn.lg { height: 43px; padding: 0 22px; font-size: 14.5px; }
.btn.sm { height: 29px; padding: 0 12px; font-size: 12.5px; }
.btn.ghost { background: transparent; color: var(--mut); }
.btn.ghost:hover { background: var(--surface-soft); color: var(--ink-hi); }

.tabs {
  display: inline-flex; gap: 4px; flex-wrap: wrap; padding: 3px;
  border-radius: 999px; background: var(--surface-soft);
}
.tabs button {
  height: 29px; padding: 0 13px; border-radius: 999px; border: 0; background: transparent;
  color: var(--mut); font-size: 13px; font-weight: 500;
  transition: background 0.22s var(--ease), color 0.18s var(--ease), transform 0.16s var(--ease);
}
.tabs button:hover { color: var(--ink-hi); }
.tabs button:active { transform: scale(0.96); }
.tabs button.on { background: var(--ink-hi); color: var(--bg); font-weight: 580; }

/* ---------- Hero — Pure Calm Typography + Open-Space 3D Spiral Galaxy ---------- */
.hero {
  padding: 56px 0 44px;
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px; align-items: center;
}
.eyebrow {
  font: 500 11px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 18px;
}
.hero h1 {
  margin: 0; font-size: clamp(38px, 5vw, 64px); font-weight: 600;
  letter-spacing: -0.042em; line-height: 1.03; color: var(--ink-hi);
}
.hero-sub {
  margin: 20px 0 0; font-size: 17.5px; line-height: 1.58; color: var(--mut); max-width: 42ch;
}
.hero-sub strong { color: var(--ink-hi); font-weight: 560; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; align-items: center; }

.galaxy-open { position: relative; height: 470px; width: 100%; }
.galaxy-open canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.galaxy-caption {
  position: absolute; left: 0; right: 0; bottom: 4px; text-align: center;
  font-size: 12.5px; color: var(--mut); min-height: 20px; pointer-events: none;
  transition: opacity 0.22s var(--ease);
}
.galaxy-caption strong { color: var(--ink-hi); font-weight: 560; }

/* ---------- Spacious Chapter Rhythm ---------- */
.sec { padding: 92px 0; border-top: 1px solid var(--line); }
.sec-hd {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.sec h2 {
  margin: 0; font-size: clamp(28px, 3.6vw, 42px); font-weight: 600;
  letter-spacing: -0.036em; line-height: 1.08; color: var(--ink-hi);
}
.sec-lede { margin: 12px 0 0; font-size: 16px; color: var(--mut); max-width: 54ch; line-height: 1.6; }

/* ---------- Quiet Editorial Service Index + Subtle Cursor Sheen ---------- */
.svc-index {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.svc-row {
  position: relative;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 18px; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; text-align: left;
  transition: background 0.22s var(--ease);
}
.svc-row:nth-child(odd) { border-right: 1px solid var(--line); }
.svc-row:hover { background: var(--surface); }
.svc-row h3 {
  margin: 0; font-size: 17px; font-weight: 580; letter-spacing: -0.02em; color: var(--ink-hi);
  display: inline-flex; align-items: center; gap: 9px;
}
.svc-row p { margin: 5px 0 0; font-size: 13.5px; color: var(--mut); line-height: 1.54; }
.svc-row .go-lbl {
  font: 500 11.5px/1 var(--mono); color: var(--dim); white-space: nowrap; margin-top: 4px;
  transition: color 0.18s var(--ease), transform 0.22s var(--ease);
}
.svc-row:hover .go-lbl { color: var(--ink-hi); transform: translateX(3px); }

/* ---------- Meet Norm Full-Width Interactive Mini-App Stage ---------- */
.nd-pillar-bar {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px;
  margin-bottom: 18px;
}
.nd-pillar {
  padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: transparent; text-align: left;
  display: flex; flex-direction: column; gap: 3px;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nd-pillar strong { font-size: 13.5px; font-weight: 560; color: var(--mut); transition: color 0.18s var(--ease); }
.nd-pillar small { font: 400 11px/1.2 var(--mono); color: var(--dim); }
.nd-pillar:hover { background: var(--surface); }
.nd-pillar:hover strong, .nd-pillar.on strong { color: var(--ink-hi); }
.nd-pillar.on { background: var(--surface-soft); border-color: var(--line-med); }

.nd-frame {
  width: 100%; border-radius: 22px; border: 1px solid var(--line);
  background: var(--bg-2); overflow: hidden;
  display: flex; flex-direction: column;
  transition: max-width 0.42s var(--ease), border-radius 0.42s var(--ease);
}
.nd-frame.is-mobile { max-width: 392px; margin: 0 auto; border-radius: 36px; border-width: 2px; border-color: var(--line-med); }

.nd-render-wrap {
  position: relative; display: block; width: 100%; line-height: 0; background: var(--bg);
  overflow: hidden;
}
.nd-render-img {
  width: 100%; height: auto; display: block;
  animation: viewEnter 0.28s var(--ease) both;
}
.nd-live-badge {
  position: absolute; right: 16px; bottom: 16px; z-index: 4;
  height: 32px; padding: 0 14px; border-radius: 999px;
  background: rgba(10, 12, 20, 0.86); color: #f4f6ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font: 500 12px/1 var(--font); display: inline-flex; align-items: center; gap: 6px;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.2s var(--ease), transform 0.22s var(--ease);
}
.nd-render-wrap:hover .nd-live-badge { opacity: 1; transform: translateY(0); }

.nd-chrome {
  height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.nd-dots { display: inline-flex; gap: 6px; align-items: center; }
.nd-dots i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--surface-hover); }
.nd-url {
  height: 24px; padding: 0 14px; border-radius: 999px; background: var(--surface-soft);
  color: var(--mut); font-size: 11.5px; display: inline-flex; align-items: center;
}
.nd-island { width: 84px; height: 18px; border-radius: 999px; background: #000000; }
.nd-kbd { padding: 1px 5px; border-radius: 5px; background: var(--surface-hover); color: var(--ink-hi); font: 500 10.5px/1 var(--mono); }

.nd-shell { display: grid; grid-template-columns: 186px minmax(0, 1fr); min-height: 468px; }
.nd-frame.is-mobile .nd-shell { grid-template-columns: 1fr; min-height: 500px; }

.nd-rail {
  border-right: 1px solid var(--line); padding: 14px 10px;
  display: flex; flex-direction: column; gap: 14px; background: var(--surface);
}
.nd-rail-brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px; font-size: 14px; color: var(--ink-hi); }
.nd-rail-nav { display: flex; flex-direction: column; gap: 2px; }
.nd-rbtn {
  height: 32px; padding: 0 10px; border-radius: 9px; border: 0; background: transparent;
  color: var(--mut); font-size: 13px; font-weight: 480;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.14s var(--ease), color 0.14s var(--ease);
}
.nd-rbtn:hover { background: var(--surface-soft); color: var(--ink-hi); }
.nd-rbtn.on { background: var(--surface-hover); color: var(--ink-hi); font-weight: 560; }
.nd-rbtn em { font-style: normal; font-size: 11px; color: var(--dim); }
.nd-rail-sec { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.nd-rsub {
  height: 27px; padding: 0 10px; border-radius: 8px; border: 0; background: transparent;
  color: var(--dim); font-size: 12px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nd-rsub:hover { color: var(--ink-hi); background: var(--surface-soft); }

.nd-stage-main {
  min-width: 0; padding: 20px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  animation: viewEnter 0.28s var(--ease) both;
}
.nd-frame.is-mobile .nd-stage-main { padding: 16px; }
.nd-pane-lbl { font: 500 10px/1 var(--mono); letter-spacing: 0.14em; color: var(--dim); padding: 4px 10px; }

/* Ask Scene */
.nd-chat-stream { display: flex; flex-direction: column; gap: 14px; }
.nd-user-msg {
  align-self: flex-end; max-width: 82%; padding: 11px 15px; border-radius: 16px 16px 4px 16px;
  background: var(--surface-hover); color: var(--ink-hi); font-size: 13.5px; line-height: 1.5;
}
.nd-slash { font: 500 12px/1 var(--mono); color: var(--accent); margin-right: 4px; }
.nd-norm-turn { display: flex; flex-direction: column; gap: 11px; }
.nd-norm-hd { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-hi); }
.nd-tag {
  font: 500 11px/1.1 var(--mono); color: var(--mut); padding: 4px 8px; border-radius: 999px;
  background: var(--surface-soft); display: inline-flex; align-items: center; gap: 4px;
}
.nd-workers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nd-worker {
  padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mut); text-align: left;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.nd-worker strong { color: var(--ink-hi); font-weight: 560; }
.nd-worker span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.nd-worker em { font-style: normal; font-size: 10.5px; color: var(--dim); }
.nd-worker:hover, .nd-worker.on { background: var(--surface-soft); border-color: var(--line-med); }
.nd-ok { color: #30d158; font-weight: 600; }
.nd-worker-detail {
  padding: 9px 12px; border-radius: 11px; background: var(--surface-soft);
  font-size: 12.5px; color: var(--ink); line-height: 1.48; animation: viewEnter 0.2s var(--ease) both;
}
.nd-prose { font-size: 14px; color: var(--ink); line-height: 1.56; }
.nd-prose strong { color: var(--ink-hi); font-weight: 560; }
.nd-inline-art {
  padding: 13px 15px; border-radius: 15px; border: 1px solid var(--line); background: var(--surface);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

.nd-composer-wrap { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.nd-quick-prompts { display: flex; gap: 6px; flex-wrap: wrap; }
.nd-quick-prompts button {
  height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--mut); font-size: 11.5px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nd-quick-prompts button:hover { background: var(--surface-soft); color: var(--ink-hi); }
.nd-capsule {
  height: 44px; padding: 0 6px 0 12px; border-radius: 999px; border: 1px solid var(--line-med);
  background: var(--surface); display: flex; align-items: center; gap: 8px;
}
.nd-capsule input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink-hi); font-size: 13.5px; outline: none; }
.nd-capsule input::placeholder { color: var(--dim); }
.nd-cap-ic { color: var(--mut); font-size: 15px; }
.nd-cap-pill {
  height: 26px; padding: 0 9px; border-radius: 999px; background: var(--surface-soft);
  color: var(--ink-hi); font-size: 11.5px; font-weight: 520; display: inline-flex; align-items: center; gap: 5px;
}
.nd-send {
  width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--ink-hi); color: var(--bg);
  font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Decide Scene */
.nd-decide-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; flex: 1; }
.nd-frame.is-mobile .nd-decide-grid { grid-template-columns: 1fr; }
.nd-decide-list { display: flex; flex-direction: column; gap: 6px; }
.nd-dcard {
  padding: 11px 12px; border-radius: 13px; border: 1px solid transparent; background: var(--surface);
  text-align: left; display: flex; flex-direction: column; gap: 4px; width: 100%;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.nd-dcard:hover { background: var(--surface-soft); }
.nd-dcard.on { background: var(--surface-hover); border-color: var(--line-med); }
.nd-decide-detail {
  padding: 16px 18px; border-radius: 16px; background: var(--surface);
  display: flex; flex-direction: column; gap: 12px;
}
.nd-facts { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink); }
.nd-draft-box {
  padding: 12px 14px; border-radius: 13px; background: var(--surface-soft);
  font-size: 13.5px; color: var(--ink-hi); line-height: 1.55;
}
.nd-empty { padding: 28px 16px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; color: var(--mut); }

/* Encrypted Rooms Scene */
.nd-room-wrap { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.nd-room-hd {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.nd-room-feed { display: flex; flex-direction: column; gap: 14px; }
.nd-rmsg { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.nd-av {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font: 600 11px/1 var(--font); flex-shrink: 0;
}
.nd-rmsg-meta { display: flex; align-items: center; gap: 7px; font-size: 12.5px; margin-bottom: 3px; }
.nd-rmsg-meta strong { color: var(--ink-hi); font-weight: 560; }
.nd-rmsg-meta span { color: var(--dim); font-size: 11px; }
.nd-rmsg-txt { font-size: 13.5px; color: var(--ink); line-height: 1.52; }

/* Live Artifacts Scene */
.nd-art-stage { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.nd-art-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.nd-art-body { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.nd-art-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nd-art-kpi { padding: 14px 16px; border-radius: 15px; background: var(--surface); }
.nd-art-kpi strong { display: block; font-size: 22px; font-weight: 600; color: var(--ink-hi); letter-spacing: -0.03em; }
.nd-art-kpi span { display: block; font-size: 12px; color: var(--mut); margin-top: 2px; }
.nd-art-chart { padding: 16px; border-radius: 16px; background: var(--surface); }
.nd-bars { height: 92px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; }
.nd-bars span { display: block; border-radius: 7px 7px 3px 3px; background: var(--ink-hi); transition: height 0.36s var(--ease); }

/* Voice & Meetings Scene */
.nd-voice-stage { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.nd-transcript { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--surface); }
.nd-tline { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.nd-tline strong { color: var(--ink-hi); font-weight: 560; }
.nd-ts { font-size: 11px; color: var(--dim); padding-top: 2px; }
.nd-word-fix {
  border: 0; background: transparent; padding: 0 2px; border-bottom: 1.5px dotted var(--accent);
  color: var(--ink-hi); font-weight: 600;
}

.nd-mob-dock {
  display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line);
  background: var(--surface); padding: 6px 4px;
}
.nd-mob-dock button {
  height: 30px; border: 0; background: transparent; color: var(--mut); font-size: 11px; font-weight: 500; border-radius: 8px;
}
.nd-mob-dock button.on { color: var(--ink-hi); background: var(--surface-soft); }

.nd-foot {
  margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.mono { font-family: var(--mono); }

/* ---------- Code Block ---------- */
.code-box {
  border-radius: 18px; background: var(--code-bg); overflow: hidden; color: #dce3f6;
}
.code-hd {
  padding: 11px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  font: 500 11.5px/1 var(--mono); color: #8c96b2;
}
.code-pre {
  margin: 0; padding: 18px 20px; font: 400 12.5px/1.68 var(--mono);
  overflow-x: auto; white-space: pre; color: #dbe4ff;
}

/* ---------- Stack / Self-Host Unified Band ---------- */
.part-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.part-pill {
  height: 32px; padding: 0 12px; border-radius: 999px; border: 0;
  background: var(--surface-soft); color: var(--mut); font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.2s var(--ease), transform 0.16s var(--ease);
}
.part-pill:hover { color: var(--ink-hi); background: var(--surface-hover); }
.part-pill:active { transform: scale(0.96); }
.part-pill.on { color: var(--ink-hi); background: var(--surface-hover); box-shadow: inset 0 0 0 1.2px var(--c, var(--accent)); }

/* ---------- Airy Typographic Pricing ---------- */
.price-note { font-size: 14px; color: var(--mut); margin-bottom: 32px; }
.price-note strong { color: var(--ink-hi); font-weight: 560; }
.price-cols {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.price-col {
  padding: 28px 22px 12px 0; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.price-col:not(:first-child) { padding-left: 22px; }
.price-col:last-child { border-right: 0; padding-right: 0; }
.price-num { font-size: 32px; font-weight: 600; letter-spacing: -0.04em; color: var(--ink-hi); line-height: 1; }
.price-num small { font-size: 13.5px; font-weight: 400; color: var(--mut); }
.price-ul { margin: 6px 0 auto; padding-left: 16px; display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--mut); }
.price-ul li::marker { color: var(--dim); }

/* ---------- Quiet Scan-to-Join QR Band ---------- */
.qr-band {
  margin-top: 64px; padding-top: 52px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center;
}
.qr-frame {
  padding: 12px; border-radius: 24px;
  background: linear-gradient(145deg, rgba(114, 215, 255, 0.18), rgba(200, 117, 255, 0.15));
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
}
.qr-frame:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22); }
.qr-plate { border-radius: 16px; overflow: hidden; background: #f8f9fc; line-height: 0; }
.qr-plate svg { display: block; max-width: 100%; height: auto; }
.qr-cap { font: 500 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-hi); }
.qr-swatches { display: inline-flex; gap: 6px; align-items: center; }
.qr-swatch {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid transparent; padding: 0;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}
.qr-swatch.on { border-color: var(--ink-hi); transform: scale(1.16); }

/* ---------- Dedicated Sub-Sites ---------- */
.sub-hero { padding: 48px 0 40px; }
.sub-hero h1 {
  margin: 0; font-size: clamp(34px, 4.8vw, 58px); font-weight: 600;
  letter-spacing: -0.04em; line-height: 1.05; color: var(--ink-hi); max-width: 18ch;
}
.stat-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
}
.stat-cell { padding-right: 20px; border-right: 1px solid var(--line); }
.stat-cell:not(:first-child) { padding-left: 20px; }
.stat-cell:last-child { border-right: 0; padding-right: 0; }
.stat-cell strong { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink-hi); }
.stat-cell span { display: block; font-size: 13px; color: var(--mut); margin-top: 3px; }

.sandbox {
  position: relative; overflow: hidden;
  border-radius: 24px; background: var(--surface); padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.sandbox-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sandbox-hd h3 { margin: 0; font-size: 20px; font-weight: 580; letter-spacing: -0.025em; color: var(--ink-hi); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.two-col > *, .three-col > *, .app-grid > *, .qr-band > *, .code-box { min-width: 0; max-width: 100%; }

.soft-panel {
  padding: 18px 20px; border-radius: 18px; background: var(--surface-soft);
  display: flex; flex-direction: column; gap: 8px;
  transition: background 0.2s var(--ease);
}
.bench-row { display: flex; flex-direction: column; gap: 6px; }
.bench-track { height: 6px; border-radius: 99px; background: var(--surface-soft); overflow: hidden; }
.bench-track i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width 0.6s var(--ease); }

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { font: 500 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.tbl td strong { color: var(--ink-hi); font-weight: 540; }

.sub-pager {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

.plug-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.plug-item {
  padding: 16px; border-radius: 16px; background: var(--surface-soft);
  display: flex; flex-direction: column; gap: 5px;
  transition: background 0.18s var(--ease), transform 0.22s var(--ease);
}
.plug-item:hover { background: var(--surface-hover); transform: translateY(-1px); }
.plug-item strong { font-size: 14px; font-weight: 560; color: var(--ink-hi); }
.plug-item p { margin: 0; font-size: 12.5px; color: var(--mut); line-height: 1.48; }

/* ---------- Modal (Crisp Backdrop + Apple Scale-In) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(6, 7, 12, 0.56);
  display: flex; align-items: center; justify-content: center; padding: 18px; overflow-y: auto;
  animation: fadeBackdrop 0.22s var(--ease) both;
}
body[data-theme="paper"] .overlay { background: rgba(20, 18, 16, 0.24); }
.overlay[hidden] { display: none; }
@keyframes fadeBackdrop { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(680px, 100%); max-height: 90vh; overflow-y: auto;
  border-radius: 24px; border: 1px solid var(--line);
  background: var(--surface-strong); box-shadow: var(--shadow);
  padding: 26px; display: flex; flex-direction: column; gap: 18px;
  animation: modalIn 0.34s var(--ease) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.972); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
body[data-theme="obsidian"] { color-scheme: dark; }
body[data-theme="paper"] { color-scheme: light; }

.in-field {
  height: 38px; min-width: 0; max-width: 100%; padding: 0 13px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface-soft); color: var(--ink-hi); font-size: 13.5px; width: 100%;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.in-field:focus { border-color: var(--line-med); outline: none; }
.signup-grid { display: grid; grid-template-columns: minmax(0, 1fr) 204px; gap: 22px; align-items: start; }

/* Footer */
.footer {
  padding: 56px 0 68px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; font-size: 13.5px; color: var(--mut);
}
.footer h4 { margin: 0 0 12px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.footer a, .footer button.f-link {
  display: block; border: 0; background: transparent; padding: 3.5px 0; color: var(--mut); text-align: left; font-size: 13.5px;
  transition: color 0.16s var(--ease);
}
.footer a:hover, .footer button.f-link:hover { color: var(--ink-hi); }

.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; pointer-events: none; display: flex; flex-direction: column; gap: 6px; }
.toast {
  pointer-events: auto; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-strong); color: var(--ink-hi); font-size: 13px; box-shadow: var(--shadow);
  animation: popIn 0.28s var(--ease) both;
}

.mob-hide { display: inline-flex; }

@media (max-width: 960px) {
  .hero, .two-col, .three-col, .qr-band, .mega-menu, .nd-shell, .nd-decide-grid { grid-template-columns: 1fr; }
  .nd-rail { display: none; }
  .nd-pillar-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nd-workers, .nd-art-kpis { grid-template-columns: 1fr; }
  .galaxy-open { height: 350px; }
  .price-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-col { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0 !important; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .stat-cell { border-right: 0; padding: 0 !important; }
  .svc-index { grid-template-columns: 1fr; }
  .svc-row:nth-child(odd) { border-right: 0; }
  .footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .container { width: min(1080px, 100% - 28px); }
  .nav-links, .brand small, .mob-hide { display: none !important; }
  .mob-menu-btn { display: inline-flex; }
  .price-cols, .mega-grid, .footer, .signup-grid { grid-template-columns: 1fr; }
  .sec { padding: 60px 0; }
  .sandbox { padding: 18px; }
  .qr-frame { max-width: 240px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-stagger, .reveal { opacity: 1 !important; transform: none !important; }
}
