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

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f0f6fa;
  --color-bg-dark: #002d54;
  --color-text: #002d54;
  --color-text-muted: #3d5a73;
  --color-primary: #0091D4;
  --color-primary-hover: #007fb3;
  --color-primary-light: #e6f5fb;
  --color-accent: #00EFB5;
  --color-accent-hover: #00D4A0;
  --color-border: #c8dae6;
  --color-card-bg: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.text-center { text-align: center; }

h1, h2, h3 { line-height: 1.2; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }

.section { padding: 96px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-bg-dark); color: #fff; }
.section-dark .section-sub { color: #a1a7b8; }

.section-sub {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* === Buttons === */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.95rem;
  padding: 10px 20px;
}

.btn:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

.btn-accent {
  background: var(--color-accent);
  color: var(--color-bg-dark);
}
.btn-accent:hover {
  background: var(--color-accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  box-shadow: inset 0 0 0 2px var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-hover);
}

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 52px;
  width: auto;
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav a { text-decoration: none; color: var(--color-text-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.15s; }
.nav a:hover { color: var(--color-text); }
.nav a.btn { color: #fff; }
.nav a.btn:hover { color: #fff; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Hero === */
.hero {
  padding: 120px 0 64px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-bg-dark);
  background: var(--color-accent);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* === Video === */
.video-section { padding: 0 0 64px; }
.video-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.video-wrapper video {
  display: block;
  width: 100%;
  height: auto;
}

/* === Grid === */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* === Cards === */
.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: left;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.card p { color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.65; }

.card-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

/* === Card Icon Images === */
.card-with-icon {
  text-align: center;
  padding-top: 20px;
}

.card-with-icon h3 { text-align: center; }
.card-with-icon p { text-align: center; }

.card-icon-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  margin-bottom: 20px;
}

.card-icon-img img {
  max-width: 140px;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.card-icon-img-emoji {
  font-size: 3.5rem;
  line-height: 1;
}

/* === Agents Illustration === */
.agents-illustration {
  margin-bottom: 48px;
  display: flex;
  justify-content: center;
}

.agents-illustration img {
  width: 100%;
  max-width: 680px;
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(0, 45, 84, 0.08));
}

.agent-list { list-style: none; padding: 0; }
.agent-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.agent-list li:last-child { border-bottom: none; }
.agent-list li strong { color: var(--color-text); font-weight: 600; }

.approval-callout {
  margin-top: 40px;
  padding: 20px 28px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--color-primary-hover);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* === Stack Grid === */
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}

.stack-item {
  padding: 10px 20px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
}

/* === Waitlist Section === */
.waitlist-layout {
  display: flex;
  align-items: center;
  gap: 64px;
}

.waitlist-content {
  flex: 1;
  text-align: left;
}

.waitlist-content h2 { text-align: left; }
.waitlist-content .section-sub {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.waitlist-graphic {
  flex-shrink: 0;
  width: 220px;
}

.waitlist-graphic img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 30px rgba(0, 152, 210, 0.2));
}

.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  flex-wrap: wrap;
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.waitlist-form input[type="email"]::placeholder { color: #6b7280; }
.waitlist-form input[type="email"]:focus { border-color: var(--color-primary); }

.waitlist-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: #6b7280;
}

.waitlist-success {
  font-size: 1.1rem;
  color: #a5f3a5;
  padding: 20px 0;
}

/* === Footer === */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer .logo { font-size: 1.1rem; }
.footer-copy { font-size: 0.82rem; color: var(--color-text-muted); }

/* === Scroll Fade-In Animation === */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger cards in grids */
.grid .fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.grid .fade-in-up:nth-child(3) { transition-delay: 0.2s; }
.grid .fade-in-up:nth-child(4) { transition-delay: 0.1s; }
.grid .fade-in-up:nth-child(5) { transition-delay: 0.2s; }
.grid .fade-in-up:nth-child(6) { transition-delay: 0.3s; }

/* === Responsive === */
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .hero { padding: 80px 0 48px; }
  .hero-image { margin-top: 40px; }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 1rem; }

  .mobile-menu-btn { display: flex; }

  .section { padding: 64px 0; }

  .card-icon-img {
    height: 100px;
  }

  .card-icon-img img {
    max-width: 100px;
    max-height: 100px;
  }

  .agents-illustration img {
    max-width: 100%;
  }

  .waitlist-layout {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .waitlist-content { text-align: center; }
  .waitlist-content h2 { text-align: center; }
  .waitlist-content .section-sub {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .waitlist-form { justify-content: center; }

  .waitlist-graphic {
    width: 160px;
    order: -1;
  }

  .footer-inner { flex-direction: column; gap: 8px; }
}
