:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #17171a;
  --gold: #e0b83f;
  --gold-soft: #f0d27a;
  --text: #f3f3f4;
  --muted: #9a9aa0;
  --line: #26262b;
  --radius: 14px;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Oswald', sans-serif; font-weight: 600; line-height: 1.1; letter-spacing: .5px; }

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

.section { max-width: var(--max); margin: 0 auto; padding: 110px 24px; }

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.section__lead { color: var(--muted); font-size: 1.08rem; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10,10,11,.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(10,10,11,.92); }
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo img { height: 34px; display: block; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  background: var(--gold); color: #111 !important; padding: 9px 18px;
  border-radius: 8px; font-weight: 600;
}
.nav__cta:hover { background: var(--gold-soft); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); transition: .3s; }

/* HERO */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding: 120px 24px 80px;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  opacity: .35;
}
.hero__glow {
  position: absolute; top: -10%; right: -5%; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(224,184,63,.16), transparent 65%);
  pointer-events: none;
}
.hero__logo-mark {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.hero__logo-mark img { width: min(70%, 760px); opacity: .07; filter: saturate(1.2); }
.drift-overlay { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
/* keep page content above the drift layer so it never covers text/diagrams */
body > section, body > footer { position: relative; z-index: 1; }
.hero__content { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; text-align: center; }
.hero__eyebrow {
  color: var(--gold); letter-spacing: 4px; text-transform: uppercase;
  font-size: .8rem; font-weight: 600; margin-bottom: 22px;
}
.hero__title { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: 24px; }
.hero__title span { color: var(--gold); }
.hero__sub { color: var(--muted); font-size: 1.18rem; max-width: 620px; margin: 0 auto 36px; }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
  margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line);
}
.hero__stats strong { display: block; font-family: 'Oswald'; font-size: 1.7rem; color: var(--gold); }
.hero__stats span { color: var(--muted); font-size: .9rem; }

/* BUTTONS */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 9px;
  font-weight: 600; font-size: .98rem; transition: transform .15s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: #111; }
.btn--primary:hover { background: var(--gold-soft); }
.btn--ghost { border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* CARDS */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(224,184,63,.4); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.card--featured { background: linear-gradient(160deg, #1a1710, var(--bg-2)); border-color: rgba(224,184,63,.3); }
.card__media {
  position: relative; margin: -34px -30px 20px; height: 230px; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--line);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 32%; display: block; }
.card__media--cad { background: #2c2c30; }
.card__media--cad img { object-position: center; filter: brightness(.86) contrast(1.05); }
.card__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--bg-2));
}
.card__media--bottom {
  margin: 22px -30px -34px; height: 190px;
  border-radius: 0 0 var(--radius) var(--radius);
  border-bottom: 0; border-top: 1px solid var(--line);
}
.card__media--bottom img { object-position: center 55%; filter: brightness(.8) contrast(1.06); }
.card__media--bottom::after { background: linear-gradient(180deg, var(--bg-2), transparent 32%, transparent 100%); }
.card__media--bottom .card__media-tag { bottom: auto; top: 12px; }
.card__media-tag {
  position: absolute; left: 14px; bottom: 12px; z-index: 1;
  font-family: 'Oswald', sans-serif; letter-spacing: 2px; text-transform: uppercase;
  font-size: .72rem; color: var(--gold); padding: 4px 10px;
  border: 1px solid rgba(224,184,63,.4); border-radius: 6px; background: rgba(10,10,11,.55);
}
.card__num { font-family: 'Oswald'; font-size: 2.2rem; color: var(--gold); opacity: .55; margin-bottom: 8px; }
.card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.card p { color: var(--muted); margin-bottom: 20px; }
.card__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.card__list li { position: relative; padding-left: 22px; font-size: .95rem; color: #c8c8cc; }
.card__list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--gold); border-radius: 2px; transform: rotate(45deg); }

/* DYNAMICS */
.demo-embed {
  position: relative; max-width: var(--max); margin: 0 auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-2);
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.7);
}
.demo-embed iframe { display: block; width: 100%; height: 82vh; min-height: 560px; border: 0; }
.demo-embed__fs {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-family: 'Oswald', sans-serif; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase;
  color: #111; background: var(--gold); border: 0; border-radius: 7px;
  padding: 8px 14px; cursor: pointer; transition: background .2s, transform .15s;
}
.demo-embed__fs:hover { background: var(--gold-soft); transform: translateY(-1px); }
.demo-embed:fullscreen { border-radius: 0; border: 0; }
.demo-embed:fullscreen iframe { height: 100vh; }

.diagram { max-width: var(--max); margin: 0 auto; }
.diagram__tabs {
  display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 30px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px;
}
.diagram__tab {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font-family: 'Oswald', sans-serif; font-size: .95rem; letter-spacing: 1px;
  text-transform: uppercase; padding: 10px 22px; border-radius: 8px; transition: .2s;
}
.diagram__tab:hover { color: var(--text); }
.diagram__tab.is-active { background: var(--gold); color: #111; }
.diagram__stage {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; overflow: hidden;
}
.diagram__svg { width: 100%; height: auto; display: block; }
.diagram__name { font-size: 1.7rem; margin-bottom: 14px; transition: color .3s; }
.diagram__desc { color: var(--muted); font-size: 1.02rem; }
.diagram__cta { margin-top: 22px; }

/* diagram car + path states (driven by class on #diagram) */
.car { transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.car__body { transition: transform .55s cubic-bezier(.22,.61,.36,1); transform-origin: center; }
.line-ideal, .line-under, .line-over, .apex-marker { transition: opacity .4s; }

.state-neutral .line-ideal { opacity: .9; }
.state-neutral .apex-marker { opacity: 1; }
.state-neutral .car { transform: translate(330px, 250px) rotate(-32deg); }

.state-understeer .line-under { opacity: .95; }
.state-understeer .car { transform: translate(360px, 270px) rotate(-12deg); }
.state-understeer .diagram__name { color: #5aa9e6; }

.state-oversteer .line-over { opacity: .95; }
.state-oversteer .car { transform: translate(355px, 222px) rotate(-58deg); }
.state-oversteer .diagram__name { color: #e6584a; }

/* PROCESS */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; position: relative; overflow: hidden;
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold);
  color: var(--gold); font-family: 'Oswald'; font-size: 1.2rem; margin-bottom: 18px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ABOUT */
.about__inner { max-width: var(--max); margin: 0 auto; }
.about__text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
.about__text p { color: var(--muted); margin-bottom: 18px; }
.about__pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; text-align: center; }
.about__pillars strong { display: block; color: var(--gold); font-family: 'Oswald'; font-size: 1.05rem; }
.about__pillars span { color: var(--muted); font-size: .88rem; }
.about__visual { display: flex; justify-content: center; }
.about__card {
  width: 100%; aspect-ratio: 1; max-width: 360px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; position: relative; overflow: hidden;
}
.about__card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(224,184,63,.18), transparent 55%);
}
.about__line { width: 70%; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5; }
.about__line:nth-child(2) { width: 50%; }
.about__line:nth-child(3) { width: 60%; }
.about__card p { position: relative; font-family: 'Oswald'; letter-spacing: 2px; color: var(--text); font-size: 1.1rem; }

/* CONTACT */
.contact__inner { max-width: 820px; margin: 0 auto; }
.form { display: flex; flex-direction: column; gap: 18px; margin-top: 10px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; color: var(--muted); font-weight: 500; }
.form input, .form select, .form textarea {
  background: #242428; border: 1px solid #34343b; border-radius: 9px;
  padding: 13px 15px; color: var(--text); font-family: inherit; font-size: 1rem; transition: border-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form textarea { resize: vertical; }
.form .btn { align-self: flex-start; cursor: pointer; border: 0; }
.form__note { font-size: .92rem; color: var(--gold); min-height: 20px; }
.form__hp { display: none; }
.form__captcha { margin: 2px 0; min-height: 0; }
.form__captcha:empty { display: none; }
.form__alt { font-size: .92rem; color: var(--muted); }
.form__alt a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(224,184,63,.4); }
.form__alt a:hover { color: var(--gold-soft); }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 50px 24px; }
.footer__inner { max-width: var(--max); margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.footer__logo { height: 30px; opacity: .85; }
.footer p { color: var(--muted); font-size: .92rem; }
.footer__contact { color: var(--text); font-weight: 500; }
.footer__contact a { color: var(--gold); text-decoration: none; }
.footer__contact a:hover { color: var(--gold-soft); }
.footer__copy { font-size: .82rem; opacity: .7; }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .about__inner { grid-template-columns: 1fr; }
  .about__visual { order: -1; }
  .diagram__stage { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 20px 24px; gap: 18px; align-items: flex-start;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s;
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .cards, .steps, .form__row, .about__pillars { grid-template-columns: 1fr; }
  .hero__stats { gap: 28px; }
  .section { padding: 80px 22px; }
}
