@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);

  --ink: #0f172a;
  --ink2: #1e293b;
  --ink3: #334155;
  --muted: #64748b;
  --muted2: #94a3b8;
  --border: #e2e8f0;
  --border2: #f1f5f9;
  --bg: #f8fafc;
  --white: #ffffff;

  --violet: #2563eb;
  --violet-d: #1d4ed8;
  --violet-l: #eff6ff;
  --violet-m: #3b82f6;

  --amber: #0ea5e9;
  --amber-l: #e0f2fe;
  --amber-d: #0369a1;

  --coral: #ff5757;
  --coral-l: #fff0f0;

  --teal: #0d9488;
  --teal-l: #e0f2f1;

  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .logo {
  font-family: var(--font-display);
}

em.accent,
h2.section-title em,
.page-hero h1 em,
.hero-copy h1 em,
.cta-band h2 em {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  color: var(--violet);
}

.cta-band h2 em { color: var(--violet-m); }

/* ====== LISTEN SECTION ====== */
.listen-section {
  padding: 72px 5%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.listen-inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.listen-visual {
  background: linear-gradient(145deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.listen-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--violet);
  background: var(--white);
  border: 1px solid #bfdbfe;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.listen-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

.listen-section .listen-lead {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.listen-audio {
  width: 100%;
  max-width: 100%;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.listen-foot {
  font-size: 0.8rem;
  color: var(--muted2);
  line-height: 1.5;
}

/* ====== NAV ====== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--violet);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: '';
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: rgba(37, 99, 235, 0.35);
  border-radius: 50%;
}

.logo-mark svg {
  width: 18px;
  height: 18px;
  fill: white;
  position: relative;
  z-index: 1;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

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

.btn-ghost {
  padding: 9px 20px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}

.btn-ghost:hover {
  border-color: var(--violet);
  color: var(--violet);
}

.btn-primary {
  padding: 10px 22px;
  background: var(--violet);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--violet-d);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.22);
}

.btn-large {
  padding: 15px 36px;
  font-size: 1rem;
}

.btn-white {
  background: white;
  color: var(--violet);
}

.btn-white:hover {
  background: #f8fafc;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 15px 32px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-outline-white:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* ====== HAMBURGER ====== */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.hamburger:active {
  background: var(--border2);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.28s ease;
  transform-origin: center;
}

/* Hamburger open state */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ====== MOBILE NAV DRAWER ====== */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: white;
  flex-direction: column;
  padding: 1.5rem 5% 2rem;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
}

.mobile-nav-links li a {
  display: block;
  padding: 14px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink2);
  text-decoration: none;
  border-bottom: 1px solid var(--border2);
  transition: color 0.2s;
}

.mobile-nav-links li a:active,
.mobile-nav-links li a.active {
  color: var(--violet);
}

.mobile-nav-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-cta .btn-primary {
  justify-content: center;
  font-size: 0.95rem;
  padding: 14px 20px;
}

/* ====== PAGE HERO ====== */
.page-hero {
  padding: 140px 5% 80px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  max-width: 640px;
  margin-bottom: 1.2rem;
}

.page-hero h1 em { color: var(--violet-m); }

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 520px;
  line-height: 1.7;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(135deg, var(--violet) 0%, #1e3a8a 100%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.14;
}

/* ====== SECTIONS ====== */
.section {
  padding: 100px 5%;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--violet);
  background: var(--violet-l);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--violet);
  border-radius: 50%;
}

h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h2.section-title em { color: var(--violet); }

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 3.5rem;
}

/* ====== CARDS ====== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.25s;
}

.card:hover {
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.07);
  transform: translateY(-3px);
  border-color: #bfdbfe;
}

/* ====== BADGE ====== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-violet { background: var(--violet-l); color: var(--violet); }
.badge-amber { background: var(--amber-l); color: var(--amber-d); }
.badge-teal { background: var(--teal-l); color: var(--teal); }

/* ====== FOOTER ====== */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.4);
  padding: 70px 5% 36px;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
  display: inline-flex;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  text-decoration: none;
}

.social-btn:hover { background: var(--violet); }

.social-btn svg {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: rgba(255, 255, 255, 0.85); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-1 { animation: fadeUp 0.65s 0.05s both; }
.animate-2 { animation: fadeUp 0.65s 0.15s both; }
.animate-3 { animation: fadeUp 0.65s 0.25s both; }
.animate-4 { animation: fadeUp 0.65s 0.35s both; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ====== VOICE WAVE ====== */
.voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 36px;
}

.vbar {
  width: 4px;
  background: var(--violet);
  border-radius: 4px;
  opacity: 0.7;
}

@keyframes vb1 { 0%, 100% { height: 8px } 50% { height: 28px } }
@keyframes vb2 { 0%, 100% { height: 14px } 50% { height: 8px } }
@keyframes vb3 { 0%, 100% { height: 20px } 50% { height: 10px } }
@keyframes vb4 { 0%, 100% { height: 6px } 50% { height: 26px } }
@keyframes vb5 { 0%, 100% { height: 16px } 50% { height: 30px } }

.vbar.active:nth-child(5n+1) { animation: vb1 0.7s infinite ease-in-out; }
.vbar.active:nth-child(5n+2) { animation: vb2 0.8s 0.1s infinite ease-in-out; }
.vbar.active:nth-child(5n+3) { animation: vb3 0.65s 0.2s infinite ease-in-out; }
.vbar.active:nth-child(5n+4) { animation: vb4 0.9s 0.05s infinite ease-in-out; }
.vbar.active:nth-child(5n+5) { animation: vb5 0.75s 0.15s infinite ease-in-out; }

/* ====== CHAT BUBBLES ====== */
.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.chat-row.r { flex-direction: row-reverse; }

.chat-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.chat-av.ai { background: var(--violet); color: white; }

.chat-av.u {
  background: var(--border);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.chat-bbl {
  padding: 10px 14px;
  border-radius: 4px 14px 14px 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 82%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--ink);
}

.chat-row.r .chat-bbl {
  background: var(--violet);
  color: white;
  border-color: var(--violet);
  border-radius: 14px 4px 14px 14px;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ====== UTILITY ====== */
.num-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--violet-l);
  color: var(--violet);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--violet-l);
  color: var(--violet);
  border: 1px solid #bfdbfe;
}

.stars {
  color: var(--amber);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink2);
}

.check-icon {
  width: 20px;
  height: 20px;
  background: var(--violet-l);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--violet);
  font-size: 0.65rem;
  font-weight: 800;
}

/* ====== DEMO LAYOUT ====== */
.demo-wrap {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.phone {
  width: 360px;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

.idle-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.idle-avatar {
  width: 80px;
  height: 80px;
  background: var(--violet);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
}

.call-header {
  display: flex;
  justify-content: space-between;
  padding: 1.2rem;
}

.participant {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.p-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.convo-area {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.input-row {
  display: flex;
  gap: 10px;
  padding: 1rem;
  border-top: 1px solid var(--border);
}

#user-input {
  flex: 1;
  border-radius: 50px;
  border: 1px solid var(--border);
  padding: 10px 14px;
}

.info-panel {
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ====================================================
   RESPONSIVE — TABLET (max 900px)
===================================================== */
@media (max-width: 900px) {
  :root { --nav-h: 60px; }

  /* Nav */
  .nav-links,
  .nav-actions .btn-ghost {
    display: none;
  }
  .nav-actions .btn-primary {
    font-size: 0.78rem;
    padding: 8px 14px;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hamburger { display: flex; }

  /* Listen section */
  .listen-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* Section padding */
  .section { padding: 72px 5%; }
  .page-hero { padding: 100px 5% 60px; }
}

/* ====================================================
   RESPONSIVE — MOBILE (max 640px)
===================================================== */
@media (max-width: 640px) {
  :root { --nav-h: 56px; }

  /* Nav — hide long CTA text on very small screens */
  .nav-actions .btn-primary {
    font-size: 0.75rem;
    padding: 7px 12px;
    max-width: 140px;
  }

  /* Sections */
  .section { padding: 56px 4%; }
  .page-hero { padding: 88px 4% 52px; }
  .listen-section { padding: 52px 4%; }

  /* Section title */
  h2.section-title { font-size: clamp(1.65rem, 6vw, 2rem); }

  /* Footer single column */
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  footer { padding: 52px 4% 28px; }

  /* Buttons full-width on small screens */
  .btn-large {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  /* Chat bubble max-width */
  .chat-bbl { max-width: 88%; font-size: 0.82rem; }

  /* Demo phone */
  .phone { width: 100%; min-height: unset; }
  .info-panel { width: 100%; }
}

/* ====================================================
   RESPONSIVE — SMALL MOBILE (max 400px)
===================================================== */
@media (max-width: 400px) {
  .nav-actions .btn-primary { display: none; }
  .logo { font-size: 1.1rem; }
  .logo-mark { width: 32px; height: 32px; border-radius: 10px; }
}
