@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:   #F6F4F0;
  --white:   #FDFCFA;
  --navy:    #0D1B2A;
  --navy-80: rgba(13,27,42,0.8);
  --blue:    #1B4FD8;
  --blue-lt: #EBF0FF;
  --muted:   #7A8299;
  --border:  rgba(13,27,42,0.09);
  --serif:   'DM Serif Display', Georgia, serif;
  --sans:    'DM Sans', system-ui, sans-serif;
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Nav ──────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(253,252,250,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 17px;
  letter-spacing: -0.3px; color: var(--navy);
}

.nav-logo-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--white);
  letter-spacing: 0;
  flex-shrink: 0;
}

.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px; font-weight: 400; color: var(--muted);
  letter-spacing: 0.1px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }

.btn-demo {
  display: inline-flex; align-items: center;
  background: var(--navy); color: var(--white);
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  padding: 9px 20px; border-radius: 8px;
  letter-spacing: 0.1px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-demo:hover { background: #1a3366; transform: translateY(-1px); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 120px 48px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(27,79,216,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue);
  padding: 6px 14px; border-radius: 20px;
  background: var(--blue-lt);
  margin-bottom: 40px;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 0.8s var(--ease) 0.1s forwards;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 88px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--navy);
  max-width: 820px;
  margin: 0 auto 28px;
  opacity: 0; transform: translateY(24px);
  animation: fadeUp 0.9s var(--ease) 0.2s forwards;
}

.hero h1 em {
  font-style: italic; color: var(--blue);
}

.hero-sub {
  font-size: 18px; font-weight: 300; line-height: 1.65;
  color: var(--muted); max-width: 520px; margin: 0 auto 48px;
  opacity: 0; transform: translateY(24px);
  animation: fadeUp 0.9s var(--ease) 0.35s forwards;
}

.hero-ctas {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease) 0.48s forwards;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: var(--white);
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  padding: 14px 28px; border-radius: 10px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(13,27,42,0.15);
}
.btn-primary:hover { background: #1a3366; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(13,27,42,0.2); }
.btn-primary svg { width: 16px; height: 16px; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--navy);
  font-family: var(--sans); font-size: 15px; font-weight: 400;
  padding: 14px 24px; border-radius: 10px;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: rgba(13,27,42,0.25); background: var(--cream); }

/* ── Product Screenshot ───────────────────────────────── */
.hero-visual {
  margin: 72px auto 0;
  max-width: 900px; width: 100%;
  opacity: 0; transform: translateY(40px) scale(0.97);
  animation: fadeUpScale 1.1s var(--ease) 0.6s forwards;
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  bottom: -40px; left: 10%; right: 10%; height: 80px;
  background: radial-gradient(ellipse at center, rgba(13,27,42,0.12) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.mockup-shell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(13,27,42,0.14), 0 2px 8px rgba(13,27,42,0.06);
}

.mockup-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex; align-items: center; gap: 12px;
}

.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border);
}

.mockup-url {
  flex: 1; background: rgba(13,27,42,0.05);
  border-radius: 5px; height: 24px;
  max-width: 280px; margin: 0 auto;
}

.mockup-body { padding: 28px 28px 20px; }

/* App UI mockup */
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.app-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; letter-spacing: -0.2px;
}
.app-logo-mark {
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: white;
}
.app-status {
  font-size: 11px; color: #16a34a; font-weight: 500;
  display: flex; align-items: center; gap: 5px;
}
.app-status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #16a34a;
}

.app-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
.app-card-head {
  font-size: 10px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.app-card-head-alert { color: #dc2626; }

.app-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.app-row:last-child { border-bottom: none; }
.app-row-key { color: var(--muted); font-size: 12px; }
.app-row-val { font-weight: 500; color: var(--navy); font-size: 12px; }
.app-tag {
  display: inline-block; font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px; margin-right: 6px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.app-tag-crit { background: #fee2e2; color: #dc2626; }
.app-tag-info { background: var(--blue-lt); color: var(--blue); }
.app-tag-ok { background: #dcfce7; color: #16a34a; }

/* ── Stats Bar ────────────────────────────────────────── */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.stat-item {
  padding: 52px 40px;
  border-right: 1px solid var(--border);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.stat-item:last-child { border-right: none; }
.stat-item.visible { opacity: 1; transform: none; }

.stat-num {
  font-family: var(--serif);
  font-size: 52px; line-height: 1;
  color: var(--navy); letter-spacing: -2px;
  margin-bottom: 8px;
}
.stat-num span { color: var(--blue); }
.stat-label {
  font-size: 12px; font-weight: 400;
  color: var(--muted); letter-spacing: 0.3px;
  line-height: 1.5;
}

/* ── Section Base ─────────────────────────────────────── */
.section {
  padding: 120px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-full {
  padding: 120px 48px;
}

.section-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.1; letter-spacing: -1px;
  color: var(--navy); margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--blue); }

.section-sub {
  font-size: 17px; font-weight: 300; line-height: 1.7;
  color: var(--muted); max-width: 540px;
}

/* ── Problem Section ──────────────────────────────────── */
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  margin-top: 80px;
}

.problem-list { list-style: none; }
.problem-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px; line-height: 1.6; color: var(--muted);
  display: flex; gap: 16px;
  opacity: 0; transform: translateX(-16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.problem-list li.visible { opacity: 1; transform: none; }
.problem-list li:first-child { border-top: 1px solid var(--border); }

.problem-num {
  font-family: var(--serif); font-size: 22px;
  color: var(--blue); flex-shrink: 0; margin-top: -2px;
}

/* ── Layers Section ───────────────────────────────────── */
.layers-bg {
  background: var(--navy);
  color: var(--white);
}

.layers-bg .section-eyebrow { color: rgba(255,255,255,0.4); }
.layers-bg .section-title { color: var(--white); }

.layers-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 72px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; overflow: hidden;
}

.layer-card {
  padding: 44px 40px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background 0.3s;
}
.layer-card:hover { background: rgba(255,255,255,0.06); }
.layer-card.visible { opacity: 1; transform: none; }

.layer-num {
  font-size: 10px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}

.layer-tag {
  display: inline-block; font-size: 9px; font-weight: 600;
  padding: 3px 9px; border-radius: 20px; margin-bottom: 14px;
  letter-spacing: 0.8px; text-transform: uppercase;
}
.tag-live { background: rgba(22,163,74,0.2); color: #4ade80; }
.tag-dev { background: rgba(27,79,216,0.25); color: #93c5fd; }
.tag-roadmap { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.4); }

.layer-title {
  font-family: var(--serif); font-size: 24px;
  color: var(--white); margin-bottom: 12px;
  line-height: 1.2;
}

.layer-desc {
  font-size: 14px; font-weight: 300; line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

/* ── Proof / Quote section ────────────────────────────── */
.proof-section {
  background: var(--cream);
}

.proof-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 120px 48px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}

.proof-quote {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.3; color: var(--navy);
  letter-spacing: -0.5px;
}
.proof-quote em { font-style: italic; color: var(--blue); }

.proof-attr {
  margin-top: 24px;
  font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.proof-attr::before {
  content: '';
  width: 32px; height: 1px; background: var(--muted);
}

.proof-outcomes { }
.proof-outcome {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: baseline; gap: 16px;
  opacity: 0; transform: translateX(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.proof-outcome:first-child { border-top: 1px solid var(--border); }
.proof-outcome.visible { opacity: 1; transform: none; }

.proof-metric {
  font-family: var(--serif); font-size: 40px;
  color: var(--blue); letter-spacing: -1px; flex-shrink: 0;
}
.proof-outcome-text {
  font-size: 14px; color: var(--muted); line-height: 1.5;
}

/* ── CTA section ──────────────────────────────────────── */
.cta-section {
  padding: 160px 48px;
  text-align: center;
  position: relative; overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(27,79,216,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .section-title { margin: 0 auto 20px; max-width: 640px; }
.cta-section .section-sub { margin: 0 auto 48px; }

/* ── Footer ───────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}

.footer-left { display: flex; align-items: center; gap: 24px; }
.footer-right { font-size: 12px; }

/* ── Scroll Animations ────────────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}
@keyframes fadeUpScale {
  to { opacity: 1; transform: none; }
}

/* ── Product Page ─────────────────────────────────────── */
.page-hero {
  padding: 160px 48px 100px;
  max-width: 1200px; margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1.08; letter-spacing: -1.5px;
  color: var(--navy); max-width: 700px;
  margin-bottom: 24px;
}
.page-hero h1 em { font-style: italic; color: var(--blue); }
.page-hero p {
  font-size: 18px; font-weight: 300; line-height: 1.7;
  color: var(--muted); max-width: 500px;
}

.feature-section {
  max-width: 1200px; margin: 0 auto;
  padding: 0 48px 120px;
}

.feature-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }

.feature-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 16px;
}

.feature-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15; letter-spacing: -0.8px;
  color: var(--navy); margin-bottom: 16px;
}

.feature-desc {
  font-size: 16px; font-weight: 300; line-height: 1.75;
  color: var(--muted); margin-bottom: 28px;
}

.feature-list { list-style: none; }
.feature-list li {
  font-size: 14px; color: var(--muted); line-height: 1.6;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 10px; align-items: baseline;
}
.feature-list li::before {
  content: '→'; color: var(--blue); flex-shrink: 0; font-size: 12px;
}

.feature-visual {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  min-height: 320px;
  display: flex; flex-direction: column; gap: 10px;
  justify-content: center;
}

/* ── About Page ───────────────────────────────────────── */
.about-hero {
  padding: 160px 48px 80px;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: end;
}

.about-story {
  max-width: 1200px; margin: 0 auto;
  padding: 80px 48px 120px;
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 80px;
}

.about-body p {
  font-size: 17px; font-weight: 300; line-height: 1.85;
  color: var(--muted); margin-bottom: 24px;
}

.about-body p strong { font-weight: 500; color: var(--navy); }

.about-sidebar {}
.sidebar-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
  margin-bottom: 16px;
}
.sidebar-card-label {
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}
.sidebar-card-val {
  font-size: 15px; font-weight: 500; color: var(--navy); line-height: 1.5;
}

/* ── Demo Modal ───────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(13,27,42,0.6);
  backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: 20px;
  padding: 52px;
  max-width: 480px; width: 90%;
  box-shadow: 0 40px 100px rgba(13,27,42,0.25);
  position: relative;
}

.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 20px; line-height: 1;
  padding: 8px;
}
.modal-close:hover { color: var(--navy); }

.modal h2 {
  font-family: var(--serif); font-size: 32px;
  color: var(--navy); margin-bottom: 8px;
}
.modal p { font-size: 14px; color: var(--muted); margin-bottom: 32px; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--navy); margin-bottom: 6px; letter-spacing: 0.2px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--white); color: var(--navy);
  font-family: var(--sans); font-size: 14px;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue);
}
.form-group textarea { min-height: 80px; resize: vertical; }

.form-submit {
  width: 100%; padding: 13px;
  background: var(--navy); color: var(--white);
  border: none; border-radius: 8px; cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  margin-top: 8px;
  transition: background 0.2s;
}
.form-submit:hover { background: #1a3366; }

.form-note {
  font-size: 12px; color: var(--muted); text-align: center;
  margin-top: 16px; line-height: 1.5;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hero { padding: 100px 24px 60px; }
  .section { padding: 80px 24px; }
  .section-full { padding: 80px 24px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .problem-grid { grid-template-columns: 1fr; gap: 40px; }
  .layers-grid { grid-template-columns: 1fr; }
  .proof-inner { grid-template-columns: 1fr; padding: 80px 24px; gap: 48px; }
  .feature-block { grid-template-columns: 1fr; gap: 40px; }
  .feature-block.reverse { direction: ltr; }
  .about-hero { grid-template-columns: 1fr; }
  .about-story { grid-template-columns: 1fr; }
  .cta-section { padding: 100px 24px; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
}
