*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #0500a5;
  --blue-light: #1a14c4;
  --blue-faint: #f0efff;
  --ink: #0f0e1a;
  --ink-soft: #4a4860;
  --warm: #faf9f6;
  --white: #ffffff;
  --border: #e8e6f0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm);
  color: var(--ink);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-bottom-color: var(--border); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon { width: 32px; height: 32px; }
.nav-logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.nav-cta {
  background: var(--blue);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.nav-cta:hover { background: var(--blue-light); transform: translateY(-1px); }

/* HERO */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  top: -120px; right: -80px;
  width: 600px; height: 600px;
  background: var(--blue-faint);
  clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
  opacity: 0.7;
  animation: floatBg 8s ease-in-out infinite;
}
@keyframes floatBg {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

.hero-left {
  padding: 0 48px 0 80px;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-faint);
  color: var(--blue);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 24px;
}
h1 em { color: var(--blue); font-style: italic; }

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 420px;
  margin-bottom: 40px;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  animation: slideUp 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.waitlist-input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  background: white;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.waitlist-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(5, 0, 165, 0.08);
}
.waitlist-input::placeholder { color: #aaa8c0; }

.waitlist-btn {
  background: var(--blue);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.waitlist-btn:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(5, 0, 165, 0.25);
}
.waitlist-btn:active { transform: translateY(0); }

.success-msg {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-weight: 500;
  font-size: 15px;
  margin-top: 12px;
}
.success-msg.show { display: flex; }

.hero-social-proof {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  animation: slideUp 0.8s 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
.avatar-stack { display: flex; }
.avatar-bubble {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--warm);
  margin-left: -8px;
  background: var(--blue-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--blue);
}
.avatar-bubble:first-child { margin-left: 0; }

/* HERO RIGHT */
.hero-right {
  padding: 0 80px 0 40px;
  display: flex;
  justify-content: center;
  animation: slideUp 0.8s 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.phone-wrap { position: relative; }

.phone-mockup {
  width: 260px;
  height: 520px;
  border-radius: 40px;
  border: 8px solid #1a1830;
  box-shadow: 0 40px 80px rgba(5, 0, 165, 0.2), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 24px;
  background: #1a1830;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.phone-float-card {
  position: absolute;
  right: -40px;
  top: 160px;
  background: white;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  width: 155px;
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-card-label { font-size: 10px; color: #888; font-weight: 500; margin-bottom: 6px; letter-spacing: 0.05em; text-transform: uppercase; }
.float-card-value { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--ink); }
.float-card-sub { font-size: 11px; color: var(--blue); font-weight: 500; margin-top: 2px; }

.phone-float-card-2 {
  position: absolute;
  left: -50px;
  top: 320px;
  background: var(--blue);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 16px 40px rgba(5,0,165,0.35);
  width: 140px;
  animation: floatCard 7s 1s ease-in-out infinite;
}
.float2-icon { font-size: 20px; margin-bottom: 6px; }
.float2-text { font-size: 12px; color: white; font-weight: 500; line-height: 1.4; }

/* SCREENS SHOWCASE */
.screens-section {
  padding: 80px 0 100px;
  background: var(--ink);
  overflow: hidden;
  position: relative;
}
.screens-section::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(5,0,165,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.screens-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 24px;
}
.screens-header .section-eyebrow { color: #8b85ff; }
.screens-header .section-title { color: white; }
.screens-header .section-sub { color: rgba(255,255,255,0.5); margin: 0 auto; }

.screens-track {
  display: flex;
  gap: 32px;
  padding: 20px 80px 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
}
.screens-track::-webkit-scrollbar { display: none; }

.screen-item {
  flex-shrink: 0;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.screen-phone {
  width: 220px;
  height: 440px;
  border-radius: 34px;
  border: 7px solid #2a2848;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  position: relative;
  transition: transform 0.3s;
}
.screen-phone:hover { transform: translateY(-8px); }

.screen-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.screen-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 18px;
  background: #2a2848;
  border-radius: 0 0 12px 12px;
  z-index: 10;
}

.screen-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.03em;
}

/* HOW IT WORKS */
.section { padding: 100px 80px; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 3.5vw, 52px);
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 60px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.step {
  background: white;
  padding: 36px 28px;
  position: relative;
  transition: transform 0.25s;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.step:first-child { border-radius: 16px 2px 2px 16px; }
.step:last-child { border-radius: 2px 16px 16px 2px; }
.step:hover { transform: translateY(-4px); z-index: 1; }

.step-number {
  font-family: 'DM Serif Display', serif;
  font-size: 64px;
  color: var(--blue-faint);
  line-height: 1;
  margin-bottom: 20px;
}
.step-icon { font-size: 28px; margin-bottom: 14px; }
.step-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 10px;
}
.step-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.65; font-weight: 300; }

/* FEATURES */
.features {
  padding: 100px 80px;
  background: var(--warm);
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.feature-card:hover {
  box-shadow: 0 12px 40px rgba(5,0,165,0.08);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px; height: 48px;
  background: var(--blue-faint);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 10px;
}

.feature-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.7; font-weight: 300; }

/* CTA */
.cta-section {
  padding: 120px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, var(--blue-faint) 0%, transparent 70%);
}
.cta-section .section-title { margin-bottom: 12px; }
.cta-section .section-sub { margin: 0 auto 40px; text-align: center; }
.cta-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }

/* FOOTER */
footer {
  padding: 32px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Serif Display', serif;
  font-size: 16px;
  color: var(--ink);
}
.footer-right { font-size: 13px; color: var(--ink-soft); }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .hero { grid-template-columns: 1fr; padding: 100px 0 60px; text-align: center; }
  .hero-left { padding: 0 24px; }
  .hero-sub { margin: 0 auto 32px; }
  .waitlist-form { max-width: 100%; }
  .hero-social-proof { justify-content: center; }
  .hero-right { display: none; }
  .section { padding: 60px 24px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 8px; }
  .step:first-child, .step:last-child, .step { border-radius: 12px; }
  .features { padding: 60px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .screens-track { padding: 20px 24px 40px; }
  .cta-section { padding: 80px 24px; }
  .cta-form { flex-direction: column; }
  footer { padding: 24px; flex-direction: column; gap: 12px; text-align: center; }
}