/* Tokens */
:root {
  --navy-900: #0A1730;
  --navy-800: #10213F;
  --navy-700: #1B3457;
  --navy-600: #24396B;
  --blue-600: #2F6FED;
  --blue-500: #5B8DF8;
  --blue-100: #E9F0FF;
  --ink: #101828;
  --slate: #5B6472;
  --slate-light: #8494B0;
  --line: #E4E8F0;
  --paper: #FBFCFE;
  --tint: #F3F6FC;
  --white: #FFFFFF;

  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(56px, 9vw, 104px);

  --dur-fast: 150ms;
  --dur-base: 240ms;
  --dur-slow: 480ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-sm: 0 1px 2px rgba(10, 23, 48, 0.06), 0 1px 1px rgba(10, 23, 48, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 23, 48, 0.08);
  --shadow-lg: 0 16px 48px rgba(10, 23, 48, 0.14);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-500); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
.icon { width: 22px; height: 22px; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy-900); }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section-navy .eyebrow { color: var(--blue-500); }

.lede { font-size: 17px; line-height: 1.65; color: var(--slate); max-width: 620px; }
.section-navy .lede { color: #B7C3DA; }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}
.grid-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Wider split for a grid-2 that itself contains a paired grid-2 (e.g. contact form),
   so the nested pairs don't get cramped in the ~860-1023px range. */
.grid-2-wide { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 1024px) {
  .grid-2-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: #2761d6; color: #fff; box-shadow: var(--shadow-md); }
.btn-ghost-dark { border-color: #2B3E5F; color: #fff; }
.btn-ghost-dark:hover { border-color: var(--blue-500); color: #fff; background: rgba(91, 141, 248, 0.08); }
.btn-block { width: 100%; }

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-800);
  background: var(--blue-100);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.card-link:hover { border-color: var(--blue-600); transform: translateY(-3px); box-shadow: var(--shadow-md); }

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-badge .icon { width: 22px; height: 22px; }
.icon-badge-navy { background: #132549; color: var(--blue-500); border: 1px solid rgba(36, 57, 98, 0.44); }

/* Nav
   backdrop-filter lives on ::before, not on .nav itself: a filter/backdrop-filter
   on .nav would make it a containing block for its position:fixed descendant
   (.nav-mobile), pinning that overlay to the 68px header box instead of the
   viewport. Keeping the filter on a pseudo-element avoids that side effect
   while keeping the same frosted-glass look. */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  transition: box-shadow var(--dur-base) var(--ease);
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 23, 48, 0.94);
  backdrop-filter: blur(8px);
  z-index: -1;
}
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 24px rgba(0, 0, 0, 0.18); }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand .icon-logo { width: 30px; height: 30px; color: #fff; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.brand-name span { color: var(--blue-500); }

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  padding: 8px 2px;
  transition: color var(--dur-fast) var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-actions { display: none; align-items: center; gap: 16px; }
.nav-cta { padding: 10px 18px; font-size: 14.5px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #2B3E5F;
  color: #fff;
  background: transparent;
}
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.nav-mobile {
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--navy-900);
  padding: 8px var(--gutter) 32px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), visibility var(--dur-base);
  z-index: 39;
}
.nav-open .nav-mobile { opacity: 1; transform: translateY(0); visibility: visible; }
.nav-mobile a {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  padding: 16px 0;
  border-bottom: 1px solid var(--navy-700);
}
.nav-mobile .nav-mobile-actions { padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-actions { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 120px); }
.hero-hex {
  position: absolute;
  top: -18%;
  right: -14%;
  width: min(60vw, 820px);
  height: auto;
  opacity: 0.5;
  color: var(--navy-700);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.hero-title { font-size: clamp(30px, 4.4vw, 52px); color: #fff; letter-spacing: -0.01em; margin: 18px 0 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.screenshot-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px dashed #33456B;
  background: #0F1E3A;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: #5B6C8A;
  font-size: 13.5px;
  font-weight: 600;
}
.screenshot-frame-light { border-color: var(--line); background: #F6F8FC; color: var(--slate); }
.screenshot-frame.has-shot {
  border-style: solid;
  border-color: var(--navy-700);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.screenshot-frame-light.has-shot { border-color: var(--line); }
.screenshot-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: inherit; }

/* Footer */
.footer { background: var(--navy-900); padding: clamp(48px, 7vw, 64px) 0 32px; }
.footer-top {
  display: grid;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--navy-700);
}
.footer-brand p { font-size: 14px; color: var(--slate-light); line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-col-title { font-size: 13px; font-weight: 700; color: #5B7BC4; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; font-size: 14.5px; color: #B7C3DA; line-height: 2.1; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; font-size: 13px; color: #5B6C8A; }
@media (min-width: 720px) {
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* CTA band */
.cta-band { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.cta-band h2 { font-size: clamp(24px, 3vw, 30px); color: #fff; margin-bottom: 10px; }
@media (min-width: 760px) {
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Feature / why cards */
.feature-card h3 { font-size: 18px; margin: 16px 0 8px; }
.feature-card p { font-size: 14.5px; color: var(--slate); line-height: 1.65; }

/* Module cards (Features page) */
.module-card { padding: 24px; }

/* AI feature cards (Features page) */
.ai-section { position: relative; overflow: hidden; }
.ai-card { padding: 28px; }
.ai-point-check { width: 16px; height: 16px; color: var(--blue-600); flex-shrink: 0; margin-top: 2px; }

/* Industry cards */
.industry-card { padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.industry-card h3 { font-size: 15px; margin: 0; }
.industry-card p { font-size: 13px; color: var(--slate); line-height: 1.55; }
.industry-card .explore { font-size: 13.5px; font-weight: 700; color: var(--blue-600); display: inline-flex; align-items: center; gap: 4px; }
.industry-card .explore .icon { width: 15px; height: 15px; transition: transform var(--dur-fast) var(--ease); }
.industry-card:hover .explore .icon { transform: translateX(3px); }

/* Pricing */
.pricing-card { padding: 32px; display: flex; flex-direction: column; }
.pricing-card.is-featured { border: 2px solid var(--blue-600); position: relative; }
.pricing-badge { position: absolute; top: -13px; left: 32px; background: var(--blue-600); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); }
.pricing-name { font-size: 18px; font-weight: 700; }
.pricing-desc { font-size: 14px; color: var(--slate); margin: 6px 0 22px; }
.pricing-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 22px; }
.pricing-price .amount { font-family: var(--font-display); font-size: 34px; font-weight: 700; }
.pricing-price .period { font-size: 14px; color: var(--slate); }
.pricing-feat { display: flex; align-items: center; gap: 10px; font-size: 14.5px; padding: 9px 0; }
.pricing-feat .icon { width: 18px; height: 18px; color: var(--blue-600); }
.pricing-features { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }

/* Contact form (display only) */
.field-label { font-size: 13.5px; font-weight: 700; display: block; margin-bottom: 8px; }
.field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 14px;
  font-size: 14.5px;
  font-family: var(--font-body);
  background: #fff;
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100); }
textarea.field { resize: vertical; min-height: 110px; }
.step-num {
  width: 28px; height: 28px; border-radius: 8px; background: var(--blue-100); color: var(--blue-600);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Reveal-on-scroll animation. Hidden state only applies once main.js has
   confirmed it can run (html.js) and the visitor allows motion, so content
   is fully visible by default with no JS, and always visible when printed. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js [data-reveal].in-view { opacity: 1; transform: translateY(0); }
}
@media print {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}


/* Utilities */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.stack { display: flex; flex-direction: column; }
.gap-sm { gap: 12px; }
.mt-lg { margin-top: clamp(32px, 5vw, 44px); }
