/* ===== Design tokens ===== */
:root {
  --navy: #0b1440;
  --navy-deep: #01143e;
  --blue: #3457f5;
  --blue-light: #eaf0ff;
  --gray-900: #101828;
  --gray-600: #4b5568;
  --gray-400: #94a3b8;
  --gray-200: #e2e8f0;
  --gray-100: #f1f4fb;
  --panel: #eef1fb;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 20, 64, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 20, 64, 0.08);
  --container: 1240px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Space Grotesk", var(--font-body);
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blue);
  text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--navy); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-deep);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-outline {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--gray-200); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
}
.logo .logo-mark {
  width: 168px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: var(--white); }
.nav-cta-mobile { display: none; }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
}
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-copy h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.hero-copy h1 .accent { color: var(--blue); }
.hero-underline {
  width: 64px;
  height: 4px;
  background: var(--blue);
  border-radius: 2px;
  margin: 26px 0;
}
.hero-copy p {
  font-size: 1.08rem;
  color: var(--gray-600);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.hero-blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f2f5ff 0%, #dce6ff 55%, rgba(220, 230, 255, 0) 78%);
}
.hero-mark {
  position: relative;
  width: auto;
  height: 190px;
  z-index: 1;
}
.hero-dots {
  position: absolute;
  top: 8%;
  right: -4%;
  width: 160px;
  height: 160px;
  z-index: 0;
  opacity: 0.55;
}

/* ===== Feature strip ===== */
.features {
  border-top: 1px solid var(--gray-200);
  padding: 56px 0 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}
.feature-item { text-align: center; padding: 0 8px; }
.feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-item p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ===== Banner ===== */
.banner {
  background: var(--panel);
  border-radius: var(--radius-lg);
  margin: 0 auto 72px;
  padding: 40px 48px;
}
.banner .container { max-width: 100%; padding: 0; }
.banner-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1140px;
  margin: 0 auto;
}
.banner-badge {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-badge img { width: auto; height: 34px; }
.banner-text p {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.banner-text .banner-sub {
  font-weight: 600;
  color: var(--blue);
  font-size: 1.05rem;
}

/* ===== Generic section ===== */
.section { padding: 88px 0; }
.section-alt { background: var(--gray-100); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}
.section-head p { color: var(--gray-600); font-size: 1.05rem; }

/* ===== Demo page ===== */
.demo-page { padding: 64px 0 96px; }
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: flex-start;
}
.demo-info h1 {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  margin: 16px 0 18px;
}
.demo-info > p { color: var(--gray-600); font-size: 1.05rem; margin-bottom: 32px; max-width: 44ch; }
.demo-points { display: flex; flex-direction: column; gap: 18px; }
.demo-point { display: flex; gap: 14px; align-items: flex-start; }
.demo-point .dot {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.demo-point .dot svg { width: 14px; height: 14px; }
.demo-point strong { display: block; color: var(--navy); font-size: 0.98rem; margin-bottom: 2px; }
.demo-point span { color: var(--gray-600); font-size: 0.92rem; }

.demo-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 36px;
}
.demo-card h2 { font-size: 1.3rem; margin-bottom: 6px; }
.demo-card > p { color: var(--gray-600); font-size: 0.92rem; margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}
.field textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: 0.8rem; color: var(--gray-400); margin-top: 14px; text-align: center; }
.form-error {
  display: none;
  font-size: 0.85rem;
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 14px;
  text-align: center;
}
.form-error.is-visible { display: block; }
.form-error a { color: inherit; font-weight: 600; text-decoration: underline; }

.form-success {
  display: none;
  text-align: center;
  padding: 24px 4px 8px;
}
.form-success.is-visible { display: block; }
.form-success .success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.form-success .success-icon svg { width: 28px; height: 28px; }
.form-success h3 { font-size: 1.2rem; margin-bottom: 8px; }
.form-success p { color: var(--gray-600); font-size: 0.92rem; }
#demo-form.is-hidden { display: none; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 280px; }
  .features-grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .demo-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.is-open { max-height: 320px; }
  .nav-links a { width: 100%; padding: 16px 24px; border-bottom: 1px solid var(--gray-100); }
  .nav-actions .btn-primary.nav-cta { display: none; }
  .nav-links .nav-cta-mobile { display: block; padding: 16px 24px; }
  .nav-toggle { display: block; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .banner { padding: 28px; border-radius: var(--radius-md); }
  .banner-inner { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
