/* ========================================
   Speed to Lead — Demo Page
   Async Digital · demo.async-digital.com
   ======================================== */

:root {
  --text: #0b0b0c;
  --muted: #5a5f69;
  --bg: #ffffff;
  --card: #f6f7f9;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #0aa5ff;
  --accent-2: #0077ff;
  --glow: rgba(10, 165, 255, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

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

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.header {
  padding: 48px 0 56px;
  text-align: center;
}

.brand {
  display: flex;
  justify-content: center;
}

.logo {
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
}

.headline {
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 20px auto 0;
  max-width: 20ch;
  font-weight: 700;
}

.subtitle {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.55;
  margin: 16px auto 0;
  max-width: 46ch;
}

/* ---------- Section Labels ---------- */

.section-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 28px;
}

/* ---------- Flow Visual ---------- */

.flow-section {
  padding: 64px 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.flow-step {
  flex: 1;
  text-align: center;
  padding: 0 12px;
}

.flow-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--accent-2);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(10, 165, 255, 0.06);
}

.flow-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.flow-desc {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  max-width: 26ch;
  margin-left: auto;
  margin-right: auto;
}

/* Connectors */

.flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 28px;
  width: 56px;
  flex-shrink: 0;
  position: relative;
}

.connector-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 1px;
  opacity: 0.5;
}

.connector-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* ---------- Cards ---------- */

.cards-section {
  padding: 64px 0;
}

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

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

.card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ---------- CTA ---------- */

.cta-section {
  padding: 56px 0 64px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, var(--glow), transparent 70%);
}

.cta-headline {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

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

.btn:focus-visible {
  outline: 3px solid rgba(10, 165, 255, 0.35);
  outline-offset: 3px;
}

.btn-primary {
  background: #111;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  filter: brightness(0.95);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-outline:hover {
  background: var(--card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ---------- Footer ---------- */

.footer {
  padding: 32px 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .header {
    padding: 36px 0 44px;
  }

  .logo {
    max-width: 300px;
  }

  .flow-section {
    padding: 48px 0;
  }

  .flow {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .flow-step {
    padding: 0;
    max-width: 300px;
  }

  .flow-connector {
    width: 2px;
    height: 40px;
    padding-top: 0;
    flex-direction: column;
  }

  .connector-line {
    width: 2px;
    height: 100%;
  }

  .cards-section {
    padding: 48px 0;
  }

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

  .cta-section {
    padding: 44px 0 52px;
  }
}

@media (max-width: 480px) {
  .subtitle {
    font-size: 17px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}
