/* ================================================================
   Aivoicemail — Landing Page Styles
   ================================================================ */

/* ── Tokens ───────────────────────────────────────────────────── */
:root {
  --bg:           #060d1a;
  --surface:      #0d1a2e;
  --card:         #122035;
  --border:       #1c3350;
  --text:         #e8f0fc;
  --muted:        #7a95b5;
  --accent:       #00d4ff;
  --accent-dim:   rgba(0,212,255,0.10);
  --green:        #00e5a0;
  --green-dim:    rgba(0,229,160,0.10);
  --amber:        #f59e0b;
  --radius:       12px;
  --radius-sm:    8px;
}

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

html { scroll-behavior: smooth; }

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

/* ── Typography ─────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout helpers ─────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ─────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6,13,26,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo svg { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.btn-sm {
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  display: inline-block;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: #22dcff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 60% 40%, rgba(0,212,255,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(0,229,160,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: #fff;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-hero-lg {
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-hero-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-hero-primary:hover {
  background: #22dcff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,212,255,0.3);
}
.btn-hero-ghost {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
}
.btn-hero-ghost:hover {
  color: var(--text);
  border-color: var(--muted);
  text-decoration: none;
}
.hero-trust {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}
.avatar-stack { display: flex; }
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--card);
  margin-left: -8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 700;
}
.avatar:first-child { margin-left: 0; }

/* ── Hero visual ────────────────────────────────────────────────── */
.hero-visual {
  position: relative;
}
.phone-mockup {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px 24px;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 6px;
  background: var(--border);
  border-radius: 100px;
}
.call-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-top: 16px;
}
.call-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.call-info { flex: 1; }
.call-name { font-size: 0.85rem; font-weight: 600; }
.call-number { font-size: 0.75rem; color: var(--muted); }
.call-badge-live {
  background: rgba(0,229,160,0.12);
  border: 1px solid rgba(0,229,160,0.25);
  color: var(--green);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
  margin: 16px 0;
  justify-content: center;
}
.wave-bar {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}
@keyframes wave {
  0%, 100% { height: 8px; opacity: 0.5; }
  50% { height: 28px; opacity: 1; }
}
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.15s; }
.wave-bar:nth-child(7) { animation-delay: 0.25s; }
.wave-bar:nth-child(8) { animation-delay: 0.35s; }
.wave-bar:nth-child(9) { animation-delay: 0.05s; }
.wave-bar:nth-child(10) { animation-delay: 0.18s; }
.wave-bar:nth-child(11) { animation-delay: 0.28s; }
.call-transcript {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.78rem;
  line-height: 1.5;
}
.transcript-line { margin-bottom: 6px; }
.transcript-line:last-child { margin-bottom: 0; }
.transcript-ai { color: var(--accent); font-weight: 600; }
.transcript-caller { color: var(--muted); }
.transcript-time { font-size: 0.7rem; color: #3a5570; margin-bottom: 10px; }
.lang-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 0.72rem;
  color: var(--muted);
}
.lang-pills { display: flex; gap: 4px; }
.lang-pill {
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 4px;
  padding: 2px 7px;
  font-weight: 600;
}

/* ── Section shared ─────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #fff;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ── Languages grid ─────────────────────────────────────────────── */
.languages-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.lang-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.lang-tag {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s;
}
.lang-tag:hover { border-color: var(--accent); }
.lang-flag { font-size: 1.1rem; line-height: 1; }
.lang-name { color: var(--text); }
.lang-native { color: var(--muted); font-size: 0.75rem; }
.lang-plus {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-dim);
  border: 1px dashed rgba(0,212,255,0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}
.lang-vs {
  text-align: center;
  padding: 20px;
}
.lang-vs-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}
.competitor-lang-list { margin-top: 16px; }
.competitor-lang-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.competitor-lang-tag .avail { color: var(--green); font-weight: 600; }
.competitor-lang-tag .miss { color: #ff4444; font-weight: 600; }

/* ── Features ───────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(0,212,255,0.4);
  transform: translateY(-2px);
}
.feature-icon {
  width: 40px; height: 40px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.2rem;
}
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; color: #fff; }
.feature-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.feature-badge {
  display: inline-block;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
  padding: 2px 7px;
  margin-bottom: 8px;
}

/* ── Competitor table ────────────────────────────────────────────── */
.competitor-section { background: var(--surface); }
.comp-table-wrap { overflow-x: auto; }
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.comp-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.comp-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(28,51,80,0.5);
  color: var(--text);
  vertical-align: top;
}
.comp-table tr:last-child td { border-bottom: none; }
.comp-table .check { color: var(--green); }
.comp-table .miss { color: #ff4444; }
.comp-table .warn { color: var(--amber); }
.comp-table .comp-name { font-weight: 700; color: #fff; }
.comp-price { font-weight: 600; color: var(--accent); }
.our-edge {
  background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(0,229,160,0.04));
  border: 1px solid rgba(0,212,255,0.2);
}
.our-edge td { color: var(--text); }

/* ── CTA Section ─────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #0a1a2f, #061423);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-section h2 { margin-bottom: 12px; }
.cta-section p { color: var(--muted); max-width: 480px; margin: 0 auto 36px; font-size: 1rem; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-lang-select {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.cta-lang-select label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.cta-lang-select select {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237a95b5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.cta-lang-select select option { background: var(--surface); }

/* ── Test call modal ─────────────────────────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  max-width: 480px;
  width: 100%;
  text-align: center;
}
.modal h3 { font-size: 1.4rem; margin-bottom: 8px; color: #fff; }
.modal p { font-size: 0.9rem; color: var(--muted); margin-bottom: 24px; }
.modal-lang-select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237a95b5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.modal-lang-select option { background: var(--surface); }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }
.modal-close {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.modal-close:hover { color: var(--text); }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 0.82rem; color: var(--muted); margin-top: 8px; max-width: 260px; }
.footer-links { display: flex; gap: 48px; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--muted); font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); text-decoration: none; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .lang-grid { grid-template-columns: 1fr; }
  .lang-vs { display: none; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 24px; }
  .nav-links { display: none; }
}
/* Lead form */
#lead-modal .modal { max-width: 440px; }
.lead-field { margin-bottom: 16px; }
.lead-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c8d8e8;
  margin-bottom: 6px;
}
.lead-field .required { color: #00d4ff; }
.lead-field .optional { color: #5a6e82; font-weight: 400; }
.lead-field input,
.lead-field select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #e8f0fa;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.lead-field input::placeholder { color: #5a6e82; }
.lead-field input:focus,
.lead-field select:focus {
  outline: none;
  border-color: #00d4ff;
  background: rgba(255,255,255,0.1);
}
.lead-field select { cursor: pointer; }
.field-error {
  display: block;
  font-size: 0.78rem;
  color: #ff6b6b;
  margin-top: 4px;
}
.form-error {
  background: rgba(255,107,107,0.12);
  border: 1px solid rgba(255,107,107,0.3);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ff8080;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.form-success {
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 8px;
  padding: 10px 14px;
  color: #00d4ff;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .lang-list { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.8rem; }
}