/* =============================================================
   Driftech — presentation site
   Brand gradient sampled from the logo: #1FA576 → #0B437C
   ============================================================= */

/* ── Fonts ──────────────────────────────────────────────────────
   Self-hosted so no visitor data goes to Google before consent.
   Both are variable fonts: one file per subset covers every weight.
   Licences: assets/fonts/OFL-*.txt */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("assets/fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* brand */
  --green:      #1FA576;
  --green-lit:  #2ED3A0;
  --teal:       #167977;
  --blue:       #0B437C;
  --blue-lit:   #2E8FD4;

  /* surfaces */
  --bg:         #061626;
  --bg-2:       #08202f;
  --ink:        #e9f2f4;
  --muted:      rgba(233, 242, 244, .60);
  --faint:      rgba(233, 242, 244, .38);
  --line:       rgba(233, 242, 244, .11);
  --surface:    rgba(255, 255, 255, .035);
  --surface-2:  rgba(255, 255, 255, .06);

  --grad:       linear-gradient(135deg, var(--green-lit), var(--blue-lit));
  --grad-logo:  linear-gradient(180deg, var(--green), var(--blue));

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --r: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.022em; margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bg); padding: .7rem 1.1rem; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--green-lit); outline-offset: 3px; border-radius: 4px; }

/* ── Ambient background ─────────────────────────────────────── */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .34; }
.blob-a { width: 620px; height: 620px; top: -220px; right: -140px; background: var(--green); }
.blob-b { width: 560px; height: 560px; top: 34%; left: -220px; background: var(--blue-lit); opacity: .28; }
.blob-c { width: 700px; height: 700px; bottom: -320px; right: -120px; background: var(--teal); opacity: .22; }
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 1.1rem 0;
  transition: background .35s var(--ease), padding .35s var(--ease), border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: rgba(6, 22, 38, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  padding: .65rem 0;
}
.nav-inner { display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: .01em; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: .94rem; font-weight: 500;
  position: relative; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1.5px;
  background: var(--grad); transition: right .35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 100px;
  background: var(--grad); color: #04121d;
  font-weight: 600; font-size: .96rem; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
  box-shadow: 0 8px 26px rgba(46, 211, 160, .18);
  white-space: nowrap;
}
button.btn { border: 0; font-family: inherit; cursor: pointer; }
button.btn-ghost { border: 1px solid var(--line); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(46, 211, 160, .28); filter: brightness(1.06); }
.btn .arrow { transition: transform .28s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { padding: .58rem 1.1rem; font-size: .88rem; box-shadow: none; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.04rem; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); box-shadow: none;
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(233,242,244,.24); box-shadow: none; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(4rem, 8vw, 7rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .82rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line); background: var(--surface);
  padding: .45rem 1rem; border-radius: 100px;
  max-width: 100%;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green-lit);
  box-shadow: 0 0 0 0 rgba(46, 211, 160, .6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(46, 211, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 211, 160, 0); }
}

h1 {
  font-size: clamp(2.15rem, 7.2vw, 4.5rem);
  margin: 1.6rem 0 0;
}
h1 em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lede { margin-top: 1.5rem; max-width: 33em; color: var(--muted); font-size: 1.09rem; }
.hero-cta { margin-top: 2.3rem; display: flex; flex-wrap: wrap; gap: .9rem; }

.stats {
  margin: 3.4rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
}
.stats dt {
  font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats dd { margin: .5rem 0 0; font-size: .88rem; color: var(--faint); line-height: 1.45; }

/* ── Hero visual: the signal mark ───────────────────────────── */
.hero-copy, .hero-visual { min-width: 0; }
.hero-visual { display: grid; place-items: center; }
.signal { position: relative; width: min(100%, 400px); aspect-ratio: 1; display: grid; place-items: center; }
.signal svg { width: 78%; overflow: visible; filter: drop-shadow(0 0 26px rgba(46, 211, 160, .22)); }

.arcs path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.4s var(--ease) forwards; }
.arcs path:nth-child(1) { animation-delay: .25s; }
.arcs path:nth-child(2) { animation-delay: .45s; }
.arcs path:nth-child(3) { animation-delay: .65s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.dashes line { opacity: 0; animation: blip 3.2s var(--ease) infinite; }
.dashes line:nth-child(1) { animation-delay: 1.0s; }
.dashes line:nth-child(2) { animation-delay: 1.2s; }
.dashes line:nth-child(3) { animation-delay: 1.4s; }
@keyframes blip {
  0%, 100% { opacity: .18; transform: translateX(-6px); }
  25%      { opacity: 1;   transform: translateX(0); }
  60%      { opacity: .35; transform: translateX(0); }
}

.chip {
  position: absolute; left: 8%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em;
  padding: .5rem 1.05rem; border-radius: 12px;
  background: rgba(6, 22, 38, .9); border: 1px solid rgba(46, 211, 160, .35);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  50% { transform: translateY(calc(-50% - 9px)); }
}
.ring {
  position: absolute; border-radius: 50%; border: 1px solid var(--line);
  inset: 6%; animation: spin 34s linear infinite;
}
.ring-2 { inset: 18%; border-style: dashed; border-color: rgba(46, 211, 160, .13); animation-duration: 24s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Section shell ──────────────────────────────────────────── */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-alt { position: relative; }
.section-alt::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.022) 22%, rgba(255,255,255,.022) 78%, transparent);
}
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.kicker {
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-lit); margin-bottom: 1rem;
}
.section h2 { font-size: clamp(2rem, 4.3vw, 3.1rem); }
.section-lede { overflow-wrap: break-word; margin-top: 1.2rem; color: var(--muted); font-size: 1.05rem; }

/* ── AI steps ───────────────────────────────────────────────── */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(265px, 100%), 1fr)); gap: 1.1rem;
}
.step {
  position: relative; padding: 1.9rem 1.6rem 1.6rem;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.step::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease);
}
.step:hover { transform: translateY(-5px); border-color: rgba(46, 211, 160, .28); background: var(--surface-2); }
.step:hover::before { transform: scaleX(1); }
.step-no {
  font-family: var(--font-display); font-size: .82rem; font-weight: 700; letter-spacing: .1em;
  color: var(--green-lit); opacity: .8;
}
.step h3 { font-size: 1.19rem; margin: .8rem 0 .7rem; }
.step p { color: var(--muted); font-size: .95rem; }
.tag {
  display: inline-block; margin-top: 1.2rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--faint); border: 1px solid var(--line); border-radius: 100px; padding: .28rem .75rem;
}

/* first card gets the emphasis — it's the entry point */
.steps .step:first-child { background: linear-gradient(150deg, rgba(46,211,160,.10), rgba(46,143,212,.05)); border-color: rgba(46,211,160,.24); }

.pull {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(31,165,118,.10), rgba(11,67,124,.14));
  position: relative;
}
.pull p {
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.4; letter-spacing: -.015em; max-width: 44rem;
}

/* ── Engagement cards ───────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 1.2rem; }
.card {
  padding: 2rem 1.8rem; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(46,143,212,.3); background: var(--surface-2); }
.card-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--grad-logo); color: #eafaf4;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  margin-bottom: 1.2rem;
}
.card h3 { font-size: 1.3rem; margin-bottom: .7rem; }
.card p { color: var(--muted); font-size: .96rem; }

/* ── CTA ────────────────────────────────────────────────────── */
.cta { padding: clamp(4rem, 9vw, 7rem) 0; }
.cta-inner {
  text-align: center; padding: clamp(2.8rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: 28px; border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(46,211,160,.16), transparent 60%),
    linear-gradient(160deg, rgba(31,165,118,.10), rgba(11,67,124,.20));
}
.cta h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 18ch; margin-inline: auto; }
.cta p { margin: 1.3rem auto 2.4rem; color: var(--muted); max-width: 46ch; }

/* ── Footer ─────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; }
.foot-brand { display: flex; gap: 1rem; max-width: 30rem; }
.foot-brand img { border-radius: 9px; flex: none; }
.foot-brand p { color: var(--faint); font-size: .9rem; }
.foot-links { display: grid; gap: .6rem; }
.foot-links a { text-decoration: none; color: var(--muted); font-size: .9rem; transition: color .25s; }
.foot-links a:hover { color: var(--green-lit); }
.foot-base {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  color: var(--faint); font-size: .82rem;
}

.foot-consent {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--faint); text-decoration: underline; text-underline-offset: 3px;
  transition: color .25s;
}
.foot-consent:hover { color: var(--green-lit); }

/* ── Legal pages ────────────────────────────────────────────── */
.legal h1 { font-size: clamp(2rem, 4.3vw, 3.1rem); }
.prose { max-width: 44rem; color: var(--muted); }
.prose h2 { font-size: 1.45rem; color: var(--ink); margin: 2.6rem 0 .8rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; color: var(--ink); margin: 1.6rem 0 .5rem; }
.prose p + p { margin-top: .9rem; }
.prose ul { padding-left: 1.2rem; margin: 0; }
.prose li + li { margin-top: .5rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a, .consent-text a { color: var(--green-lit); text-underline-offset: 3px; }
.prose code { font-size: .88em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--green-lit); text-decoration: underline; text-underline-offset: 3px;
}

/* ── Cookie consent ─────────────────────────────────────────── */
.consent {
  position: fixed; left: 0; right: 0; bottom: 1rem; z-index: 60;
  width: min(100% - 2rem, 760px); margin-inline: auto;
  padding: 1.2rem 1.4rem; border-radius: var(--r);
  background: rgba(6, 22, 38, .94); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
}
.consent[hidden] { display: none; }
.consent-inner { display: flex; align-items: center; gap: 1.4rem; }
.consent-text { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.consent-text strong { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; margin-bottom: .2rem; }
.consent-actions { display: flex; gap: .6rem; flex: none; }
/* Both choices are real buttons the same size: declining must be as easy as accepting. */
.consent-actions .btn { min-width: 6.5rem; justify-content: center; }

/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .arcs path { stroke-dashoffset: 0; animation: none; }
  .dashes line, .chip, .ring, .eyebrow .dot { animation: none; opacity: 1; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Responsive ─────────────────────────────────────────────── */

/* Tablet landscape / small laptop: stack the hero, keep the nav links. */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; }
  .signal { width: min(100%, 260px); }
  .hero { padding-top: clamp(2rem, 6vw, 3.5rem); }
}

/* Tablet portrait and below: the nav links no longer fit beside the CTA. */
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* Phones. */
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 2.2rem, var(--wrap)); }

  /* The eyebrow becomes a two-line block rather than an overflowing pill. */
  .eyebrow { align-items: flex-start; border-radius: 14px; line-height: 1.45; }
  .eyebrow .dot { margin-top: .42em; }

  .stats { grid-template-columns: 1fr 1fr; gap: 1.2rem 1.4rem; }
  .stats > div:last-child { grid-column: span 2; }
  .stats dt { font-size: 2rem; }

  .hero-cta { margin-top: 2rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  .step, .card { padding: 1.6rem 1.3rem; }
  .foot-inner { gap: 2rem; }
  .foot-base { flex-direction: column; gap: .5rem; }
  .foot-consent { align-self: flex-start; }

  .consent { bottom: .6rem; width: calc(100% - 1.2rem); padding: 1.1rem; }
  .consent-inner { flex-direction: column; align-items: stretch; gap: 1rem; }
  .consent-actions .btn { flex: 1; }
}

/* Narrow phones (320–360px): tighten the gutters so nothing is squeezed. */
@media (max-width: 380px) {
  .wrap { width: min(100% - 1.6rem, var(--wrap)); }
  .nav-inner { gap: .8rem; }
  .brand-name { font-size: 1.05rem; }
  .brand img { width: 34px; height: 34px; }
}

/* Touch devices: no hover to reveal affordances, so keep targets thumb-sized. */
@media (hover: none) {
  .btn-sm { min-height: 44px; }
  .nav-links a { padding-block: .4rem; }
}
