/* Nine30 website. Colors and fonts come from BRAND.md (Tech Glow). */
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/SpaceGrotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --space-0: #03041a; --space-1: #080a2d; --space-2: #120b3c;
  --card-0: #171b4d; --card-1: #090a28;
  --cyan: #3fe3ff; --blue: #3d7bff; --violet: #8f5bff;
  --green: #3cf0b4; --red: #ff4f7a;
  --gold: #ffc85a; --gold-2: #ff9f43;
  --text: #eef2ff; --muted: #9aa3d8;
  --line: rgba(143, 160, 255, .16);
  --num: linear-gradient(90deg, #7ff0ff, #5d9bff 55%, #a77bff);
  --r: 18px;
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--space-0); }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--space-0);
  color: var(--text); font: 400 16px/1.6 var(--body);
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(44px, 9vw, 92px); line-height: 1; }
h2 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.1; margin-bottom: 28px; max-width: 22ch; }
h3 { font-size: 20px; line-height: 1.25; }
p { margin: 0; }

/* Background: glows and a perspective grid */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: linear-gradient(135deg, var(--space-0), var(--space-1) 50%, var(--space-2)); }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; }
.g1 { width: 620px; height: 620px; background: radial-gradient(var(--blue), transparent 65%); top: -220px; left: -160px; animation: drift 26s ease-in-out infinite alternate; }
.g2 { width: 560px; height: 560px; background: radial-gradient(var(--violet), transparent 65%); top: 30vh; right: -220px; animation: drift 32s ease-in-out infinite alternate-reverse; }
.grid {
  position: absolute; left: -50%; right: -50%; bottom: -10vh; height: 55vh;
  background-image: linear-gradient(rgba(63, 227, 255, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(63, 227, 255, .14) 1px, transparent 1px);
  background-size: 56px 56px; transform: perspective(500px) rotateX(62deg); transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
}
@keyframes drift { to { transform: translate(80px, 60px) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .glow { animation: none; } html { scroll-behavior: auto; } }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section.wrap { padding-top: 88px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px max(24px, calc((100% - 1072px) / 2));
  background: rgba(3, 4, 26, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav nav { display: flex; align-items: center; gap: 24px; }
.nav nav a:not(.btn) { color: var(--muted); font-size: 15px; }
.nav nav a:not(.btn):hover { color: var(--text); text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.wordmark { font: 700 24px/1 var(--head); letter-spacing: -.02em; background: linear-gradient(180deg, #fff, #c8f4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark b { background: var(--num); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 10px rgba(93, 155, 255, .55)); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font: 600 16px/1 var(--body); color: #04061f;
  background: linear-gradient(90deg, #7ff0ff, #5d9bff 60%, #a77bff);
  box-shadow: 0 0 28px rgba(93, 155, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 0 40px rgba(93, 155, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-sm { min-height: 38px; padding: 0 18px; font-size: 14px; }
.btn-ghost { color: var(--text); background: rgba(23, 27, 77, .6); border: 1px solid rgba(127, 240, 255, .35); box-shadow: none; }
.btn-ghost:hover { box-shadow: 0 0 24px rgba(63, 227, 255, .25); }
.btn-gold { color: #1a0f00; background: linear-gradient(90deg, #ffe08a, var(--gold) 45%, var(--gold-2)); box-shadow: 0 0 30px rgba(255, 184, 77, .45), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-gold:hover { box-shadow: 0 0 44px rgba(255, 184, 77, .65), inset 0 1px 0 rgba(255, 255, 255, .6); }

/* Text helpers */
.eyebrow { font: 600 13px/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: #cfd6ff; max-width: 40ch; margin-top: 22px; }
.lede.sm { font-size: 17px; margin: -12px 0 24px; max-width: 60ch; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); margin-top: 12px; }
.label { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.num { font-family: var(--head); font-weight: 700; font-variant-numeric: tabular-nums; background: var(--num); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num.neg, .bad .num { background: none; color: var(--red); }

/* Hero */
.hero { padding-top: clamp(64px, 12vh, 120px); }
.hero .cta { margin-top: 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.strip {
  margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.strip div { background: rgba(9, 10, 40, .82); padding: 20px 22px; }
.strip dt { font-size: 13px; color: var(--muted); }
.strip dd { margin: 4px 0 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }

/* Cards */
.card {
  position: relative; border-radius: var(--r); padding: 26px;
  background: linear-gradient(180deg, rgba(23, 27, 77, .88), rgba(9, 10, 40, .92));
  border: 1px solid transparent;
  background-clip: padding-box;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(127, 240, 255, .55), rgba(61, 123, 255, .25) 40%, rgba(143, 91, 255, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps p { color: var(--muted); margin-top: 10px; }
.step { display: block; font: 700 14px/1 var(--head); color: var(--cyan); margin-bottom: 18px; letter-spacing: .08em; }

/* Results */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { padding: 20px 22px; border-radius: 14px; background: rgba(9, 10, 40, .7); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.tile.bad { border-color: rgba(255, 79, 122, .3); }
.tile .big { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; }
.tile .sub { font-size: 13px; color: var(--muted); }
.chart-card, .years-card, .trade-card { margin-top: 18px; padding: 22px; }
figure { margin: 0; }
figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.legend { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.sw-eq { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.chart { width: 100%; height: 340px; }
.chart.tall { height: 420px; }
.years { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.years li { display: grid; grid-template-columns: 48px 1fr 92px; align-items: center; gap: 12px; font-size: 14px; }
.years .yr { font-family: var(--head); font-weight: 600; color: var(--muted); }
.years .track { position: relative; height: 14px; }
.years .bar { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, rgba(60, 240, 180, .55), var(--green)); box-shadow: 0 0 12px rgba(60, 240, 180, .35); }
.years .bar.neg { background: var(--red); box-shadow: 0 0 12px rgba(255, 79, 122, .45); }
.years .zero { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--muted); opacity: .5; }
.years .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--green); }
.years .val.neg { color: var(--red); }
.method { font-size: 14px; color: var(--muted); margin-top: 18px; max-width: 80ch; }

/* Trades */
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px; margin-bottom: 8px; scrollbar-width: thin; }
.day {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(9, 10, 40, .7);
  color: var(--text); font: 500 13px/1.2 var(--body); cursor: pointer;
}
.day b { font-family: var(--head); font-size: 15px; font-variant-numeric: tabular-nums; }
.day .w { color: var(--green); } .day .l { color: var(--red); }
.day[aria-selected="true"] { border-color: var(--cyan); box-shadow: 0 0 18px rgba(63, 227, 255, .3); background: rgba(23, 27, 77, .95); }
.tradeinfo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 16px 0 0; }
.tradeinfo div { padding: 12px 14px; border-radius: 12px; background: rgba(9, 10, 40, .7); border: 1px solid var(--line); }
.tradeinfo dt { font-size: 12px; color: var(--muted); }
.tradeinfo dd { margin: 2px 0 0; font: 600 16px/1.3 var(--head); font-variant-numeric: tabular-nums; }
.tradeinfo .w { color: var(--green); } .tradeinfo .l { color: var(--red); }

/* Coming next */
.gold { overflow: hidden; padding: clamp(28px, 5vw, 48px); }
.gold::before { background: linear-gradient(135deg, rgba(255, 224, 138, .8), rgba(255, 159, 67, .35) 45%, rgba(143, 91, 255, .45)); }
.gold-glow { position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(rgba(255, 200, 90, .35), transparent 65%); filter: blur(30px); }
.gold h3 { font-size: clamp(34px, 5vw, 56px); margin: 18px 0 14px; background: linear-gradient(90deg, #fff3c4, var(--gold) 50%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gold p { max-width: 56ch; position: relative; }
.gold p + p { margin-top: 12px; }
.gold .btn { margin-top: 26px; position: relative; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font: 600 12px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); white-space: nowrap; position: relative; }
.badge-live { color: var(--green); border-color: rgba(60, 240, 180, .4); }
.badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.badge-gold { color: var(--gold); border-color: rgba(255, 200, 90, .5); }
.roadmap { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.roadmap li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; }
.roadmap p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Get */
.get { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(26px, 4vw, 40px); }
.get h2 { margin-bottom: 8px; }

/* FAQ */
.faq details { padding: 0; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 20px 24px; font: 600 17px/1.3 var(--head); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 24px 22px; color: var(--muted); max-width: 70ch; }

/* Footer */
.foot { padding-top: 96px; padding-bottom: 48px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.foot-top nav { display: flex; gap: 22px; }
.foot-top nav a { color: var(--muted); font-size: 14px; }
.foot .wordmark { font-size: 20px; }
.disclaimer { margin-top: 26px; font-size: 13px; font-weight: 500; color: var(--muted); }
.risk { margin-top: 10px; font-size: 12px; color: rgba(154, 163, 216, .75); max-width: 90ch; }
.risk a { color: inherit; text-decoration: underline; }

/* Phone and tablet */
@media (max-width: 900px) {
  .steps, .roadmap { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .tradeinfo { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav { padding: 12px 16px; }
  .nav nav a:not(.btn) { display: none; }
  section.wrap { padding-top: 64px; }
  .card { padding: 20px; }
  .chart-card, .years-card, .trade-card { padding: 14px; }
  .chart { height: 260px; }
  .chart.tall { height: 320px; }
  .tradeinfo { grid-template-columns: repeat(2, 1fr); }
  .years li { grid-template-columns: 40px 1fr 80px; gap: 8px; }
  .btn { width: 100%; }
  .nav .btn, .get .btn { width: auto; }
  .get .cta { width: 100%; }
  .get .cta .btn { flex: 1; }
}

/* Inside the Whop app iframe: Whop shows its own header, so the nav does not stick. */
.in-whop .nav { position: static; }
.in-whop .hero { padding-top: 48px; }
