:root {
  --bg: #061326;
  --bg-soft: #0b1c34;
  --panel: #10243f;
  --panel-2: #f4f7fb;
  --text: #f7fbff;
  --muted: #b7c6d9;
  --ink: #10243a;
  --ink-soft: #56667b;
  --accent: #35aee2;
  --accent-2: #65d6ff;
  --line: rgba(255,255,255,.11);
  --shadow: 0 24px 70px rgba(0,0,0,.28);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow { max-width: 780px; }
.center { text-align: center; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  background: white;
  color: #111;
  padding: 10px 14px;
  border-radius: 8px;
}
.skip-link:focus { left: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(6, 19, 38, .82);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #1e6ccb);
  font-size: .84rem;
  box-shadow: 0 8px 28px rgba(53,174,226,.3);
}

nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  font-size: .94rem;
}
nav a:hover { color: white; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 13px 19px;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), #1687c3);
  color: white;
  box-shadow: 0 12px 36px rgba(53,174,226,.23);
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(53,174,226,.32);
}
.button-small { padding: 9px 14px; font-size: .9rem; }
.button-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: none;
}
.button-secondary:hover { background: rgba(255,255,255,.06); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 84px;
  background:
    radial-gradient(circle at 83% 10%, rgba(53,174,226,.18), transparent 34%),
    radial-gradient(circle at 15% 72%, rgba(36,93,175,.16), transparent 36%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .9fr 1.15fr;
  align-items: center;
  gap: 54px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-2);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
}

h1, h2, h3 { line-height: 1.12; margin-top: 0; }

h1 {
  font-size: clamp(3.25rem, 6vw, 5.6rem);
  letter-spacing: -.055em;
  margin-bottom: 25px;
}
h1 span { color: var(--accent-2); }

h2 {
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  letter-spacing: -.04em;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -.02em;
}

.hero-lead, .section-lead {
  color: var(--muted);
  font-size: 1.18rem;
  max-width: 700px;
}

.section-lead { margin: 0 auto; }
.section-lead.left { margin-left: 0; }

.hero-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin: 32px 0 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.trust-row span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .82rem;
  font-weight: 700;
}

.hero-visual {
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
  background: white;
}

.strip {
  background: #0b1b31;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.proof-grid div {
  padding: 26px 28px;
  border-right: 1px solid var(--line);
}
.proof-grid div:last-child { border-right: 0; }
.proof-grid strong, .proof-grid span { display: block; }
.proof-grid strong { color: white; margin-bottom: 3px; }
.proof-grid span { color: var(--muted); font-size: .91rem; }

.section { padding: 96px 0; }
.section-alt {
  background: var(--panel-2);
  color: var(--ink);
}
.section-alt .eyebrow { color: #1475ad; }
.section-alt .section-lead { color: var(--ink-soft); }

.demo-frame {
  margin-top: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #0d2039;
  box-shadow: var(--shadow);
}
.demo-frame img {
  width: 100%;
  border-radius: 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 50px;
}
.card {
  background: white;
  border: 1px solid #dbe5ef;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 36px rgba(16,36,58,.07);
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: white;
  background: linear-gradient(135deg, #239ed8, #1d69bc);
  font-weight: 900;
  font-size: 1.2rem;
}
.card p { color: var(--ink-soft); margin-bottom: 0; }

.workflow-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: start;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
}
.steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  margin-bottom: 22px;
}
.steps li > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  font-weight: 900;
  background: #147fb9;
}
.steps strong { display: block; font-size: 1.05rem; }
.steps p { margin: 4px 0 0; color: var(--muted); }

.fit-panel {
  background: linear-gradient(180deg, #102743, #0b1c33);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.fit-panel p, .fit-panel li { color: var(--muted); }
.fit-panel ul { padding-left: 20px; }
.fit-panel li { margin: 8px 0; }
.fit-note {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: 0;
  font-size: .92rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 46px;
}
figure {
  margin: 0;
  overflow: hidden;
  background: white;
  border: 1px solid #d9e3ee;
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(16,36,58,.08);
}
figure img { width: 100%; }
figcaption {
  color: var(--ink-soft);
  padding: 16px 18px 18px;
  font-size: .93rem;
}

.cta { padding-top: 78px; }
.cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 46px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(53,174,226,.16), transparent 40%),
    #0c213c;
  border: 1px solid rgba(101,214,255,.22);
}
.cta-box h2 { max-width: 720px; }
.cta-box p { color: var(--muted); margin-bottom: 0; }
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.text-link {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 750;
}

footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 40px;
  align-items: center;
}
.footer-grid strong { color: white; }
.footer-grid p { margin: 4px 0 0; }
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: white; }
.license { grid-column: 1 / -1; font-size: .84rem; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero-grid, .workflow-grid, .cta-box { grid-template-columns: 1fr; }
  .hero { padding-top: 72px; }
  .hero-visual { transform: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-grid div:last-child { border-bottom: 0; }
  .cta-actions { align-items: flex-start; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1180px); }
  .nav-wrap { min-height: 64px; }
  .brand-mark { width: 32px; height: 32px; }
  .button-small { display: none; }
  .hero { padding: 62px 0 58px; }
  h1 { font-size: 3.1rem; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .section { padding: 70px 0; }
  .cards, .screenshot-grid { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .cta-box { padding: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 8px; }
}


/* v2 layout corrections */

/* Keep the slogan visually and semantically in two beats on desktop. */
.hero-title {
  font-size: clamp(3rem, 4.9vw, 5.15rem);
  line-height: 1.04;
  letter-spacing: -.055em;
  margin-bottom: 25px;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-title-accent {
  color: var(--accent-2);
}

/* Vertically centre the fit panel against the complete workflow block. */
.workflow-grid {
  align-items: center;
}

/* Prevent the shorter S-Curve card from stretching to the analytics card height. */
.screenshot-grid {
  align-items: start;
}

.screenshot-grid figure {
  align-self: start;
  height: auto;
}

.screenshot-grid figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Preserve the two-line slogan until the mobile layout becomes genuinely narrow. */
@media (max-width: 760px) {
  .hero-title {
    font-size: clamp(2.65rem, 10.5vw, 4.2rem);
  }
}

@media (max-width: 470px) {
  .hero-title-line {
    white-space: normal;
  }
}


.download-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 22px;
}

.download-actions {
  justify-content: center;
  margin-top: 34px;
}

.download-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: .92rem;
}


/* v3: explicit hero colours and stronger layout rules */
.hero-title .hero-title-line {
  display: block !important;
  white-space: nowrap !important;
}

.hero-title .hero-title-line:first-child {
  color: var(--text) !important;
}

.hero-title .hero-title-accent {
  color: var(--accent-2) !important;
}

/* Keep the two-part slogan readable without forcing an oversized first line. */
@media (min-width: 901px) {
  .hero-title {
    font-size: clamp(3rem, 4.25vw, 4.75rem) !important;
  }
}

/* Explicitly centre the right panel within the full workflow row. */
@media (min-width: 901px) {
  .workflow-grid {
    align-items: center !important;
  }

  .fit-panel {
    align-self: center !important;
  }
}

/* Never stretch either screenshot card to match the other card's height. */
.screenshot-grid {
  align-items: start !important;
}

.screenshot-grid figure {
  height: fit-content !important;
  align-self: start !important;
}

.screenshot-grid figure img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}

/* Keep the intended two-line slogan on landscape phones/tablets too. */
@media (min-width: 471px) and (max-width: 900px) {
  .hero-title {
    font-size: clamp(2.5rem, 7vw, 3.7rem) !important;
  }

  .hero-title .hero-title-line {
    white-space: nowrap !important;
  }
}
