/* StradeAI landing — vanilla CSS, no frameworks.
   Light, conversion-focused. Brand = product blue/cyan. Real screenshots in tinted panels. */

:root {
  --bg:      #ffffff;
  --bg-tint: #f2f7ff;        /* section tint, matches screenshot backdrop */
  --panel-a: #e9f1ff;        /* showcase panel top */
  --panel-b: #f7faff;        /* showcase panel bottom */

  --ink:   #0c1424;
  --ink-2: #2b3a52;
  --muted: #5d6b81;
  --faint: #8b97a8;
  --line:  #e6ecf4;

  --accent:  #2563eb;
  --accent-d:#1d4ed8;
  --cyan:    #22d3ee;
  --grad: linear-gradient(135deg, #22d3ee, #2563eb);
  --green: #16a34a;
  --green-bg: #e8f7ee;

  --radius: 16px;
  --radius-lg: 28px;
  --maxw: 1180px;

  --shadow-sm: 0 1px 2px rgba(13,20,36,.05), 0 2px 6px rgba(13,20,36,.05);
  --shadow-md: 0 18px 50px -24px rgba(13,30,72,.28);
  --shadow-blue: 0 16px 40px -14px rgba(37,99,235,.45);

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--bg);
  line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.sec { padding-block: 96px; }
.sec--tint { background: var(--bg-tint); }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); }
.h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.025em;
  font-size: clamp(28px, 4.2vw, 46px); line-height: 1.05; color: var(--ink); }
.lead { color: var(--muted); font-size: clamp(16px, 1.7vw, 19px); max-width: 54ch; }
.sec-head { display: grid; gap: 16px; max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 16px; cursor: pointer; border: 0;
  padding: 15px 26px; min-height: 54px; border-radius: 14px; color: #fff; background: var(--grad);
  box-shadow: var(--shadow-blue); transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -16px rgba(37,99,235,.55); filter: saturate(1.05); }
.btn:active { transform: translateY(0); }
.btn .tg { width: 19px; height: 19px; }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: #fff; border-color: #cfdaea; box-shadow: var(--shadow-md); }
.btn--sm { min-height: 44px; padding: 11px 18px; font-size: 14.5px; border-radius: 11px; box-shadow: none; }
.btn--sm:hover { box-shadow: var(--shadow-blue); }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.8);
  backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, background .25s; }
.hdr.is-scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.94); }
.hdr__row { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
.brand b { color: var(--accent); }
.mark { width: 24px; height: 24px; border-radius: 50%; position: relative; background: conic-gradient(from -90deg, var(--cyan), var(--accent) 78%, #e6ecf4 0); }
.mark::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg); }
.hdr__right { display: flex; align-items: center; gap: 12px; }
.langs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lang { border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600;
  letter-spacing: .03em; color: var(--muted); padding: 7px 10px; min-height: 32px; border-radius: 999px; transition: color .15s, background .15s; }
.lang:hover { color: var(--ink); }
.lang[aria-pressed="true"] { background: var(--accent); color: #fff; }
@media (max-width: 600px) { .hdr .nav-cta { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: 56px; padding-bottom: 80px; }
.hero::before { content: ""; position: absolute; inset: -240px -10% auto 30%; height: 720px;
  background: radial-gradient(closest-side, rgba(34,211,238,.16), rgba(37,99,235,.08) 55%, transparent 72%); z-index: 0; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(36px, 5.6vw, 62px); margin: 20px 0 0; }
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__sub { color: var(--muted); font-size: clamp(17px, 1.9vw, 20px); margin: 22px 0 30px; max-width: 46ch; }
.hero__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero__note { margin-top: 16px; font-size: 14px; color: var(--faint); display: inline-flex; align-items: center; gap: 8px; }
.hero__note svg { width: 16px; height: 16px; color: var(--green); flex: 0 0 auto; }
.hero__media { position: relative; }
/* Variant B: the screenshot already carries its own backdrop, so the wrapper is
   transparent — the image IS the tile (rounded + shadow on the img itself).
   This avoids a visible "rectangle inside a rectangle" (two stacked backgrounds). */
.shot { display: flex; align-items: center; justify-content: center; }
.shot img { width: 100%; max-width: 340px; height: auto; border-radius: 24px;
  box-shadow: 0 26px 64px -30px rgba(13,30,72,.42); }
.hero__media .shot img { max-width: 368px; }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* ---------- hero quiz ---------- */
.quiz { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 26px; max-width: 430px; margin-inline: auto; }
.quiz__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.quiz__body { min-height: 312px; }  /* reserve space so deferred JS render causes no layout shift */
.quiz__bar { flex: 1; height: 7px; border-radius: 999px; background: #eaf0f8; overflow: hidden; }
.quiz__bar > span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad); transition: width .35s cubic-bezier(.2,.7,.2,1); }
.quiz__count { font-size: 12.5px; font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.quiz__step { animation: quizIn .28s ease; }
@keyframes quizIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quiz__q { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
  font-size: clamp(20px, 2.3vw, 24px); margin-bottom: 18px; color: var(--ink); }
.quiz__opts { display: grid; gap: 10px; }
.quiz__opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--ink-2); background: #fff;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 15px 16px; min-height: 54px;
  transition: border-color .15s, background .15s, transform .1s; }
.quiz__opt:hover { border-color: #bcd0f0; background: #f7faff; }
.quiz__opt:active { transform: scale(.99); }
.quiz__opt .ar { margin-left: auto; color: var(--accent); opacity: 0; transition: opacity .15s, transform .15s; transform: translateX(-4px); }
.quiz__opt:hover .ar { opacity: 1; transform: none; }
.quiz__opt .ar svg { width: 18px; height: 18px; }
.quiz__foot { display: flex; align-items: center; gap: 12px; margin-top: 18px; min-height: 26px; }
.quiz__back { border: 0; background: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 2px; }
.quiz__back:hover { color: var(--ink); }
.quiz__skip { font-size: 13.5px; color: var(--faint); margin-left: auto; }
.quiz__skip:hover { color: var(--accent); }
.quiz__result { text-align: center; animation: quizIn .3s ease; }
.quiz__ricon { width: 54px; height: 54px; margin: 2px auto 16px; border-radius: 50%; background: var(--green-bg); display: grid; place-items: center; }
.quiz__ricon svg { width: 28px; height: 28px; color: var(--green); }
.quiz__rtitle { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: 24px; margin-bottom: 10px; color: var(--ink); }
.quiz__rsub { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.quiz__result .btn { width: 100%; }
.quiz__rnote { margin-top: 14px; font-size: 13px; color: var(--faint); }

/* ---------- trust bar ---------- */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 30px; padding-block: 26px; }
.trust__i { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.trust__i svg { width: 18px; height: 18px; color: var(--green); flex: 0 0 auto; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.step__n { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--accent); letter-spacing: .04em; }
.step h3 { font-family: var(--display); font-weight: 700; font-size: 19px; margin: 14px 0 7px; letter-spacing: -.01em; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 92px; }
.feature__media .shot img { max-width: 320px; }
.feature__title { font-family: var(--display); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(25px, 3.2vw, 36px); line-height: 1.08; margin: 16px 0 22px; }
.bullets { list-style: none; display: grid; gap: 14px; }
.bullets li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; color: var(--ink-2); }
.bullets .ck { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 999px; background: var(--green-bg);
  display: grid; place-items: center; margin-top: 1px; }
.bullets .ck svg { width: 14px; height: 14px; color: var(--green); }
.feature--rev .feature__media { order: 2; }

/* ---------- mini app band ---------- */
.band { background: linear-gradient(135deg, #0c1730, #122448); color: #e7eefb; border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: auto auto -40% -10%; width: 520px; height: 360px; background: radial-gradient(closest-side, rgba(34,211,238,.22), transparent 70%); }
.band__in { position: relative; max-width: 720px; }
.band .eyebrow { color: var(--cyan); }
.band h2 { color: #fff; font-family: var(--display); font-weight: 800; letter-spacing: -.025em; font-size: clamp(26px, 3.6vw, 40px); margin: 14px 0 16px; }
.band p { color: #aebfda; font-size: 18px; }

/* ---------- mid CTA ---------- */
.cta2 { text-align: center; }
.cta2 h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 26px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-family: var(--display); font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: 0 0 auto; width: 22px; height: 22px; position: relative; transition: transform .2s ease; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; }
.faq summary .pm::before { left: 0; right: 0; top: 10px; height: 2px; }
.faq summary .pm::after { top: 0; bottom: 0; left: 10px; width: 2px; transition: opacity .2s ease; }
.faq details[open] summary .pm::after { opacity: 0; }
.faq details[open] summary .pm { transform: rotate(180deg); }
.faq__a { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }

/* ---------- final ---------- */
.final { text-align: center; }
.final__box { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(48px, 6vw, 84px) 28px;
  background: linear-gradient(135deg, #eaf2ff, #f6f9ff); border: 1px solid var(--line); }
.final__box::before { content: ""; position: absolute; inset: auto 50% -60% auto; transform: translateX(50%); width: 640px; height: 420px;
  background: radial-gradient(closest-side, rgba(37,99,235,.16), transparent 70%); }
.final h2 { position: relative; font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(30px, 5vw, 54px); line-height: 1.02; }
.final p { position: relative; color: var(--muted); font-size: 18px; margin: 18px auto 30px; max-width: 46ch; }
.final .btn { position: relative; min-height: 58px; padding: 17px 34px; font-size: 17px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 38px; }
.foot__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot__tag { color: var(--muted); font-size: 14px; margin-top: 9px; max-width: 44ch; }
.foot__rights { color: var(--faint); font-size: 13px; }

/* ---------- sticky mobile CTA ---------- */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none;
  padding: 11px 14px calc(11px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(120%); transition: transform .3s ease; }
.sticky .btn { width: 100%; }
.sticky.show { transform: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { order: -1; }
  .feature, .feature--rev { grid-template-columns: 1fr; gap: 34px; }
  .feature__media, .feature--rev .feature__media { order: -1; }
  .feature + .feature { margin-top: 64px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .sec { padding-block: 68px; }
  .sticky { display: block; }
  .foot__row { flex-direction: column; align-items: flex-start; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
