/* NineT — shared stylesheet */
:root {
  --bg: #050507;
  --bg-soft: #0a0a10;
  --ink: #ffffff;
  --ink-mute: #9ca0b3;
  --ink-faint: #5a5d70;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);

  --cy: #1de8ff;
  --bl: #2c7eff;
  --in: #6c3bff;
  --vi: #a64bff;

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Sora', system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.55;
}
body.modal-open { overflow: hidden; }
::selection { background: var(--cy); color: #000; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
input { font: inherit; color: inherit; outline: none; }

/* ATMOSPHERE */
.atmosphere { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(110px); opacity: 0.55; mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite;
}
.blob.a { width: 520px; height: 520px; background: var(--cy); top: -120px; left: -100px; }
.blob.b { width: 600px; height: 600px; background: var(--bl); top: 35%; right: -180px; animation-duration: 28s; animation-delay: -6s; }
.blob.c { width: 480px; height: 480px; background: var(--in); bottom: -150px; left: 30%; animation-duration: 32s; animation-delay: -12s; }
.blob.d { width: 380px; height: 380px; background: var(--vi); top: 60%; left: 10%; animation-duration: 26s; animation-delay: -18s; opacity: 0.35; }
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(80px,-60px) scale(1.15); }
  66%     { transform: translate(-50px,40px) scale(0.9); }
}
.grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}

/* WELCOME MODAL */
.welcome-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0;
  animation: fadeIn 0.4s ease-out forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.welcome-card {
  position: relative;
  max-width: 480px; width: 100%;
  background: linear-gradient(155deg, rgba(20,20,30,0.95), rgba(8,8,14,0.98));
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  padding: 48px 36px 36px;
  text-align: center;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8), 0 0 80px -20px rgba(29,232,255,0.3);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  animation: popIn 0.5s 0.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes popIn { to { transform: translateY(0) scale(1); opacity: 1; } }
.welcome-card::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: 28px; padding: 1px;
  background: linear-gradient(135deg, var(--cy), transparent 40%, transparent 60%, var(--vi));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.welcome-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-mute);
  transition: all 0.2s;
}
.welcome-close:hover { background: rgba(255,255,255,0.12); color: var(--ink); }

.welcome-logo {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px -10px rgba(29,232,255,0.5);
}
.welcome-logo img { width: 100%; height: 100%; object-fit: cover; }

.welcome-eyebrow {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cy);
  margin-bottom: 14px;
}
.welcome-card h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: 32px; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.welcome-card h2 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--cy), var(--vi));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.welcome-card p {
  color: var(--ink-mute);
  font-size: 15px; line-height: 1.55;
  margin-bottom: 28px;
  max-width: 360px;
  margin-left: auto; margin-right: auto;
}

.welcome-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.welcome-form input[type="email"] {
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  font-size: 15px;
  text-align: center;
}
.welcome-form input[type="email"]:focus {
  border-color: var(--cy);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(29,232,255,0.1);
}
.welcome-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.welcome-form button[type="submit"] {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--cy), var(--bl) 50%, var(--in));
  color: #000;
  border-radius: var(--r-md);
  font-weight: 600; font-size: 15px;
  box-shadow: 0 12px 30px -10px rgba(29,232,255,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.welcome-form button[type="submit"]:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(29,232,255,0.7); }
.welcome-form button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }

.welcome-msg {
  margin-top: 4px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em; min-height: 16px;
}
.welcome-msg.ok { color: var(--cy); }
.welcome-msg.err { color: #ff6b9d; }

.welcome-skip {
  margin-top: 18px; padding: 10px;
  color: var(--ink-faint);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.2s;
}
.welcome-skip:hover { color: var(--ink-mute); }

.welcome-trust {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint);
}

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(5,5,7,0.55);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s, background 0.3s;
}
.nav.compact { padding: 12px clamp(20px, 4vw, 56px); background: rgba(5,5,7,0.85); }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 8px 24px -10px rgba(29,232,255,0.5);
  display: grid; place-items: center; overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-word { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.brand-word em {
  font-style: italic;
  background: linear-gradient(135deg, var(--cy), var(--vi));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta {
  padding: 9px 18px; border-radius: 999px;
  background: var(--ink); color: #000;
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: 0; text-transform: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -8px rgba(255,255,255,0.4); color: #000; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--r-md);
  font-weight: 600; font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cy), var(--bl) 50%, var(--in));
  color: #000;
  box-shadow: 0 12px 30px -10px rgba(29,232,255,0.5), 0 0 0 1px rgba(255,255,255,0.1) inset;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(29,232,255,0.7); }
.btn-ghost { background: rgba(255,255,255,0.05); border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* FOOTER */
footer { padding: 56px clamp(20px, 5vw, 56px) 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; background: rgba(5,5,7,0.5); }
footer h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; font-weight: 500; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul a { color: var(--ink-mute); font-size: 14px; transition: color 0.2s; }
footer ul a:hover { color: var(--ink); }
.foot-bio { color: var(--ink-mute); font-size: 14px; line-height: 1.7; max-width: 340px; margin-top: 16px; }
.foot-bottom { grid-column: 1 / -1; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--ink-faint); flex-wrap: wrap; gap: 12px; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* LEGAL / CONTENT PAGES */
.page-hero {
  padding: 160px clamp(20px, 5vw, 56px) 60px;
  max-width: 880px;
  margin: 0 auto;
}
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(255,255,255,0.03);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 28px;
}
.page-hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98; letter-spacing: -0.03em;
}
.page-hero h1 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--cy), var(--vi));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero .lede {
  margin-top: 24px;
  font-size: 18px; color: var(--ink-mute);
  max-width: 640px; line-height: 1.6;
}
.page-meta {
  margin-top: 32px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint);
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px clamp(20px, 5vw, 56px) 100px;
}
.legal h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 28px; letter-spacing: -0.015em;
  margin: 48px 0 16px;
  color: var(--ink);
}
.legal h2 em { font-style: italic; background: linear-gradient(120deg, var(--cy), var(--vi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.legal h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 21px; letter-spacing: -0.01em;
  margin: 32px 0 12px;
  color: var(--ink);
}
.legal p { color: var(--ink-mute); margin-bottom: 14px; font-size: 15px; line-height: 1.75; }
.legal ul, .legal ol { color: var(--ink-mute); margin: 8px 0 16px 20px; font-size: 15px; line-height: 1.75; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--cy); border-bottom: 1px solid rgba(29,232,255,0.3); transition: border-color 0.2s; }
.legal a:hover { border-color: var(--cy); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .callout {
  margin: 24px 0;
  padding: 20px 24px;
  background: rgba(29,232,255,0.05);
  border: 1px solid rgba(29,232,255,0.18);
  border-left: 3px solid var(--cy);
  border-radius: var(--r-md);
}
.legal .callout p { color: var(--ink); margin: 0; font-size: 14px; }
.legal .callout p + p { margin-top: 10px; }
.legal table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 14px;
}
.legal table th, .legal table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-mute);
}
.legal table th {
  font-family: var(--mono); font-weight: 500;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint);
}
.legal table td:first-child { color: var(--ink); }

/* RESPONSIVE shared */
@media (max-width: 1100px) {
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 740px) {
  footer { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .welcome-card { padding: 36px 24px 24px; }
  .welcome-card h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
