/* ============ TOKENS ============ */
:root {
  --bg: #22344C;
  --bg-gradient-start: #263C56;
  --bg-gradient-end: #1C2C42;
  --bg-glow: rgba(78, 130, 216, 0.4);
  --surface: #29405C;
  --surface-raised: #314B6B;
  --border: #3E5678;
  --text: #F8F5EF;
  --text-muted: #C6CEDC;
  --accent: #D9A35A;
  --accent-strong: #E8B876;
  --positive: #6FCF97;
  --negative: #E27D7D;

  --font-heading: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container-width: 1140px;
  --radius: 12px;
}

/* ============ RESET / BASE ============ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  background:
    radial-gradient(ellipse 1100px 640px at 50% -8%, var(--bg-glow) 0%, rgba(78, 130, 216, 0) 62%),
    linear-gradient(160deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  background-attachment: fixed;
  background-size: cover;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); text-align: center; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #1A1206;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

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

section {
  padding: 88px 0;
}

.section-intro {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #1A1206;
  box-shadow: 0 8px 24px -8px rgba(217, 163, 90, 0.55);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 44, 66, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  color: var(--accent);
  display: inline-flex;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}

.brand-secondary {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.main-nav ul {
  display: flex;
  gap: 22px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.header-cta {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ============ CALL-FLOW DIAGRAM (shared) ============ */
.call-flow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.call-flow-vertical {
  flex-direction: column;
  align-items: stretch;
}

.flow-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  flex: 1;
  min-width: 100px;
}

.call-flow-vertical .flow-step {
  flex-direction: row;
  justify-content: center;
  min-width: unset;
}

.flow-icon {
  font-size: 1.3rem;
}

.flow-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.flow-arrow-down {
  display: block;
  text-align: center;
  font-size: 1.6rem;
}

.flow-step-positive {
  border-color: var(--positive);
  color: var(--positive);
}

.flow-step-negative {
  border-color: var(--negative);
  color: var(--negative);
}

/* ============ HERO ============ */
.hero {
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-subheadline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-copy .hero-ctas {
  justify-content: flex-start;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 28px;
}

/* ---- illustrated phone mock ---- */
.phone-mock {
  width: min(300px, 100%);
  background: linear-gradient(165deg, var(--surface-raised) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 44px 20px 28px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.4);
  position: relative;
}

.phone-mock-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 5px;
  border-radius: 4px;
  background: var(--border);
}

.phone-mock-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.call-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.call-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--positive);
  animation: pulseDot 1.8s ease-in-out infinite;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 26px;
}

.waveform span {
  width: 4px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  animation: waveBar 1.1s ease-in-out infinite;
}

.waveform span:nth-child(2) { animation-delay: 0.1s; }
.waveform span:nth-child(3) { animation-delay: 0.2s; }
.waveform span:nth-child(4) { animation-delay: 0.3s; }
.waveform span:nth-child(5) { animation-delay: 0.4s; }

.chat-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.4;
  opacity: 0;
  animation: bubbleIn 0.5s ease forwards;
}

.chat-bubble-customer {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  animation-delay: 0.5s;
}

.chat-bubble-ai {
  align-self: flex-end;
  background: rgba(217, 163, 90, 0.16);
  border: 1px solid rgba(217, 163, 90, 0.4);
  color: var(--accent-strong);
  border-bottom-right-radius: 4px;
  animation-delay: 1.1s;
}

.lead-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(111, 207, 151, 0.15);
  color: var(--positive);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0;
  animation: bubbleIn 0.5s ease forwards;
  animation-delay: 1.7s;
}

/* ---- interactive circular CTA ---- */
.phone-cta {
  position: absolute;
  right: 8%;
  bottom: -6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.phone-cta-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #1A1206;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 26px -6px rgba(217, 163, 90, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.phone-cta-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ringPulse 2.4s ease-out infinite;
}

.phone-cta-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.phone-cta:hover .phone-cta-ring {
  transform: scale(1.08);
  box-shadow: 0 14px 32px -6px rgba(217, 163, 90, 0.7);
}

.phone-cta:hover .phone-cta-label {
  color: var(--accent);
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(111, 207, 151, 0.55); }
  50% { box-shadow: 0 0 0 5px rgba(111, 207, 151, 0); }
}

@keyframes waveBar {
  0%, 100% { height: 6px; }
  50% { height: 22px; }
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes ringPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .call-status-dot,
  .waveform span,
  .phone-cta-ring::after {
    animation: none;
  }

  .chat-bubble,
  .lead-chip {
    animation: none;
    opacity: 1;
  }
}

/* ============ PROBLEM ============ */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 820px;
  margin: 0 auto;
}

.comparison-col h3 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.comparison-with h3 {
  color: var(--accent);
}

/* ============ STATS ============ */
.stats-inner {
  max-width: 760px;
  text-align: center;
}

.stats-figures {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin: 48px 0 40px;
  flex-wrap: wrap;
}

.stat-figure {
  flex: 1 1 240px;
  max-width: 300px;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 14px;
}

.stat-caption {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 280px;
  margin: 0 auto;
}

.stats-main-line {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 12px;
}

.stats-support {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.stats-sources {
  margin-top: 28px;
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.7;
}

@media (max-width: 640px) {
  .stats-figures {
    flex-direction: column;
    align-items: center;
    gap: 36px;
  }
}

/* ============ CARD GRIDS ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.feature-icon {
  display: inline-flex;
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ============ HOW IT WORKS ============ */
.timeline {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.timeline li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.timeline-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #1A1206;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
}

.timeline p {
  margin: 0;
  padding-top: 8px;
  font-size: 1.02rem;
}

/* ============ LIVE DEMO ============ */
.live-demo {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.live-demo-inner {
  text-align: center;
}

.demo-panel {
  max-width: 480px;
  margin: 0 auto;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--surface-raised);
}

.demo-phone-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ============ INDUSTRIES ============ */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.industry-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

.industry-item span:first-child {
  font-size: 1.6rem;
}

/* ============ FINAL CTA ============ */
.final-cta {
  text-align: center;
}

/* ============ CONTACT ============ */
.contact-inner {
  max-width: 640px;
}

.contact h2 {
  margin-bottom: 40px;
}

#contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row-full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

input, select, textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
}

#contact-form button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 8px;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9rem;
  color: var(--accent);
  min-height: 1.2em;
}

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-explainer {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 360px;
}

.footer-contact, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contact a:hover, .footer-legal a:hover {
  color: var(--accent);
}

.footer-copyright {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
}

/* ============ SCROLL REVEAL (hooked up in Stage 3) ============ */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .card-grid,
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy .hero-ctas {
    justify-content: center;
  }

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

  .hero-subheadline {
    margin-left: auto;
    margin-right: auto;
  }

  .comparison {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 880px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.open {
    max-height: 320px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 18px;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-visual {
    margin-top: 12px;
    padding-bottom: 40px;
  }

  section {
    padding: 64px 0;
  }
}

@media (max-width: 640px) {
  .card-grid,
  .card-grid-4,
  .industry-grid {
    grid-template-columns: 1fr;
  }

  #contact-form {
    grid-template-columns: 1fr;
  }

  .demo-phone-number {
    font-size: 1.3rem;
  }
}
