/* ===================================================================
   3xit.ai — landing page styles
   Tone: sophisticated, confident, precise, analytical.
   =================================================================== */

:root {
  --ink:        #0a0e14;   /* near-black background */
  --ink-2:      #0f1622;   /* raised surfaces */
  --ink-3:      #151f2e;   /* cards */
  --line:       #243042;   /* hairlines */
  --text:       #e8edf4;   /* primary text */
  --muted:      #9aa7b8;   /* secondary text */
  --accent:     #34e0a1;   /* growth / acceleration (green-teal) */
  --accent-dim: #1d8f68;
  --brake:      #f5b544;   /* safety / brake (amber) */
  --radius:     16px;
  --maxw:       1140px;
  --ease:       cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4, .brand { font-family: 'Sora', sans-serif; letter-spacing: -.02em; }

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .25s;
  white-space: nowrap;
}
.btn--small { padding: 9px 18px; font-size: .9rem; }
.btn--primary {
  background: var(--accent); color: #052a1d;
  box-shadow: 0 8px 30px -8px rgba(52,224,161,.5);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(52,224,161,.65); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Brand mark ---------- */
.brand { font-weight: 800; font-size: 1.4rem; }
.brand__mark { color: var(--text); }
.brand__x { color: var(--accent); }
.brand__tld { color: var(--muted); font-weight: 600; }

/* ---------- Eyebrow / titles ---------- */
.eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .76rem;
  font-weight: 600; color: var(--accent); margin-bottom: 16px;
}
.section__title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; line-height: 1.1; }
.lead { color: var(--muted); font-size: 1.13rem; max-width: 60ch; margin-top: 18px; }
.accent { color: var(--accent); }

.section { padding: clamp(70px, 9vw, 120px) 0; border-top: 1px solid var(--line); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,20,.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.nav__links { display: flex; gap: 30px; font-size: .95rem; color: var(--muted); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(80px, 13vw, 160px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(52,224,161,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52,224,161,.06) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 60% 0%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 75% 60% at 60% 0%, #000 10%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(52,224,161,.16), transparent 60%);
  filter: blur(40px); pointer-events: none;
}
.hero__inner { position: relative; }
.hero__title { font-size: clamp(2.2rem, 6vw, 4.1rem); font-weight: 800; line-height: 1.06; }
.hero__sub { color: var(--muted); font-size: 1.18rem; max-width: 56ch; margin-top: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__disclaimer { color: #6b7888; font-size: .82rem; margin-top: 26px; max-width: 50ch; }

/* ---------- Problem stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.stat { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.stat__num { font-family: 'Sora'; font-size: 1.55rem; font-weight: 700; color: var(--accent); }
.stat__label { color: var(--muted); font-size: .96rem; margin-top: 10px; }

/* ---------- How / cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.card {
  background: var(--ink-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px; transition: transform .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-dim); }
.card--featured { border-color: rgba(245,181,68,.4); background: linear-gradient(180deg, rgba(245,181,68,.07), var(--ink-3)); }
.card--featured:hover { border-color: var(--brake); }
.card__icon { font-size: 1.7rem; color: var(--accent); margin-bottom: 14px; }
.card--featured .card__icon { color: var(--brake); }
.card h3 { font-size: 1.28rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- Simulator ---------- */
.sim {
  margin-top: 46px; background: var(--ink-3); border: 1px solid var(--line);
  border-radius: 22px; padding: clamp(24px, 4vw, 44px);
}
.sim__controls { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.sim__field { display: block; }
.sim__field > span { display: block; font-size: .92rem; color: var(--muted); margin-bottom: 12px; }
.sim__field output { display: block; margin-top: 8px; font-family: 'Sora'; font-weight: 600; color: var(--accent); }

input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  background: var(--line); border-radius: 999px; outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 3px solid var(--ink-3);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 4px 12px -2px rgba(52,224,161,.6);
}
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  cursor: pointer; border: 3px solid var(--ink-3);
}

.sim__results { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.sim__result { border-radius: var(--radius); padding: 26px; text-align: center; border: 1px solid var(--line); }
.sim__result--gain { background: rgba(52,224,161,.08); border-color: var(--accent-dim); }
.sim__result--brake { background: rgba(245,181,68,.08); border-color: rgba(245,181,68,.4); }
.sim__big { font-family: 'Sora'; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1; }
.sim__result--gain .sim__big { color: var(--accent); }
.sim__result--brake .sim__big { color: var(--brake); }
.sim__cap { color: var(--muted); font-size: .92rem; margin-top: 12px; }

.timeline { margin-top: 38px; display: grid; gap: 16px; }
.timeline__row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 16px; }
.timeline__tag { font-size: .86rem; color: var(--muted); }
.timeline__tag--accent { color: var(--accent); font-weight: 600; }
.timeline__bar { height: 14px; background: var(--ink); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.timeline__bar span { display: block; height: 100%; border-radius: 999px; transition: width .5s var(--ease); }
.timeline__bar--old span { background: #4a5a70; }
.timeline__bar--new span { background: linear-gradient(90deg, var(--accent-dim), var(--accent)); }
.sim__note { color: #6b7888; font-size: .82rem; margin-top: 26px; }

/* ---------- Difference ---------- */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.compare__col { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.compare__col h4 { font-size: 1.05rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 16px; }
.compare__them { color: var(--muted); font-size: .96rem; padding-bottom: 16px; border-bottom: 1px dashed var(--line); margin-bottom: 16px; }
.compare__us { font-size: 1.05rem; }
.compare__us strong { color: var(--accent); }

/* ---------- Insights ---------- */
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.insight {
  display: flex; flex-direction: column; background: var(--ink-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; transition: transform .3s var(--ease), border-color .3s;
}
.insight:hover { transform: translateY(-4px); border-color: var(--accent-dim); }
.insight__kicker { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--brake); font-weight: 600; }
.insight h3 { font-size: 1.2rem; margin: 14px 0 12px; line-height: 1.25; }
.insight p { color: var(--muted); font-size: .96rem; flex: 1; }
.insight__more { color: var(--accent); font-weight: 600; margin-top: 18px; font-size: .95rem; }

/* ---------- CTA ---------- */
.cta { text-align: center; border-top: 1px solid var(--line); position: relative; }
.cta__inner { max-width: 720px; }
.cta__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
.cta__sub { color: var(--muted); font-size: 1.15rem; margin-top: 18px; }
.store-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.store {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 22px; min-width: 180px; transition: border-color .2s, transform .2s;
}
.store:hover { border-color: var(--accent); transform: translateY(-2px); }
.store__pre { font-size: .74rem; color: var(--muted); }
.store__name { font-family: 'Sora'; font-weight: 700; font-size: 1.15rem; }

.waitlist { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.waitlist input {
  background: var(--ink-3); border: 1px solid var(--line); color: var(--text);
  padding: 14px 18px; border-radius: 999px; font-size: 1rem; min-width: 280px; font-family: inherit;
}
.waitlist input:focus { outline: none; border-color: var(--accent); }
.waitlist__msg { color: var(--accent); margin-top: 16px; font-size: .95rem; min-height: 1.2em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 60px 0 40px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand p { color: var(--muted); margin-top: 12px; max-width: 30ch; font-size: .95rem; }
.footer__links { display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: .95rem; }
.footer__links a:hover { color: var(--accent); }
.footer__legal { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer__legal p { color: #6b7888; font-size: .8rem; line-height: 1.7; max-width: 90ch; }
.footer__copy { margin-top: 16px; }

/* ---------- Reveal animation ---------- */
.section, .hero__inner > * { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Hero background image ---------- */
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("assets/img/hero.webp") center right / cover no-repeat;
  opacity: .42;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 8%, rgba(10,14,20,.55) 55%, rgba(10,14,20,.2) 100%),
    linear-gradient(0deg, var(--ink) 2%, transparent 45%);
}
.hero__grid { z-index: 1; }
.hero__inner { z-index: 2; }

/* ---------- Image band ---------- */
.band { position: relative; height: 340px; display: flex; align-items: flex-end; overflow: hidden; border-top: 1px solid var(--line); }
.band__media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.band__media--moving { background-image: url("assets/img/moving.webp"); }
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,20,.35), rgba(10,14,20,.9));
}
.band__inner { position: relative; z-index: 2; padding-bottom: 38px; }
.band__quote { font-family: 'Sora'; font-weight: 600; font-size: clamp(1.2rem, 3vw, 1.9rem); max-width: 22ch; line-height: 1.25; }

/* ---------- Chart card ---------- */
.chart-card { margin-top: 46px; background: var(--ink-3); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3.5vw, 36px); }
.chart-card__head { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; }
.legend__item { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); cursor: pointer; user-select: none; transition: opacity .2s; }
.legend__item.is-off { opacity: .38; }
.legend__swatch { width: 14px; height: 3px; border-radius: 2px; }
.chart-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg { background: transparent; color: var(--muted); border: 0; padding: 7px 16px; font-family: 'Sora'; font-size: .82rem; cursor: pointer; }
.seg.is-active { background: var(--accent); color: #052a1d; font-weight: 600; }
.chart-wrap { position: relative; }
#growthChart { width: 100%; height: auto; display: block; }
.chart-tip {
  position: absolute; pointer-events: none; background: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; font-size: .82rem; line-height: 1.5; z-index: 5;
  transform: translate(-50%, -110%); white-space: nowrap; box-shadow: 0 12px 30px -10px #000;
}
.chart-tip b { font-family: 'Sora'; }

/* ---------- Returns table ---------- */
.rt-wrap { margin-top: 34px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.rt { width: 100%; border-collapse: collapse; min-width: 560px; }
.rt th, .rt td { padding: 16px 20px; text-align: right; font-variant-numeric: tabular-nums; }
.rt th:first-child, .rt td:first-child { text-align: left; }
.rt thead th { font-family: 'Sora'; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line); }
.rt tbody tr { border-bottom: 1px solid var(--line); }
.rt tbody tr:last-child { border-bottom: 0; }
.rt tbody td { color: var(--muted); }
.rt tbody td:first-child { color: var(--text); font-weight: 500; }
.rt tr.is-hero { background: rgba(52,224,161,.07); }
.rt tr.is-hero td:first-child { color: var(--accent); font-weight: 700; }
.rt .pos { color: var(--accent); }
.rt .neg { color: var(--brake); }

/* ---------- Goal calculator ---------- */
.goal { position: relative; overflow: hidden; }
.goal__media {
  position: absolute; inset: 0;
  background: url("assets/img/leap.webp") center / cover no-repeat; opacity: .12;
}
.goal__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink), rgba(10,14,20,.6)); }
.goal .container { position: relative; z-index: 2; }
.goal-card { margin-top: 44px; background: var(--ink-3); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 44px); }
.goal-card__inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.goal-field > span { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.goal-input { display: flex; align-items: center; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; transition: border-color .2s; }
.goal-input:focus-within { border-color: var(--accent); }
.goal-input i { color: var(--muted); font-style: normal; }
.goal-input input { flex: 1; background: transparent; border: 0; color: var(--text); font-family: 'Sora'; font-weight: 600; font-size: 1.15rem; padding: 14px 8px; outline: none; width: 100%; }

.goal-results { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin-top: 36px; }
.goal-res { border-radius: var(--radius); padding: 26px; text-align: center; border: 1px solid var(--line); }
.goal-res--slow { background: rgba(74,90,112,.14); }
.goal-res--fast { background: rgba(52,224,161,.08); border-color: var(--accent-dim); }
.goal-res--arrow { border: 0; font-size: 1.8rem; color: var(--accent); padding: 0; }
.goal-res__tag { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.goal-res__yrs { font-family: 'Sora'; font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; margin: 8px 0 6px; }
.goal-res--fast .goal-res__yrs { color: var(--accent); }
.goal-res__cap { color: var(--muted); font-size: .86rem; }

.goal-headline { text-align: center; margin-top: 26px; font-family: 'Sora'; font-weight: 600; font-size: clamp(1.1rem, 2.6vw, 1.5rem); min-height: 1.4em; }
.goal-headline b { color: var(--accent); }

.goal-assume { display: block; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.goal-assume > span { display: block; font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.goal-assume output { display: block; margin-top: 10px; font-family: 'Sora'; font-weight: 600; color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav__links { display: none; }
  .stat-row, .cards, .compare, .insight-grid { grid-template-columns: 1fr; }
  .goal-card__inputs { grid-template-columns: 1fr; }
  .goal-results { grid-template-columns: 1fr; }
  .goal-res--arrow { transform: rotate(90deg); }
}
@media (max-width: 520px) {
  .timeline__row { grid-template-columns: 1fr; gap: 6px; }
  .hero__cta .btn, .waitlist input, .waitlist .btn { width: 100%; }
}
