:root {
  --bg: #0b0d13;
  --body-bg: #ffffff;
  --surface: #ffffff;
  --text: #0c0f1a;
  --muted: #4b5565;
  --primary: #39b6ff;
  --secondary: #27d6a5;
  --ring: rgba(57, 182, 255, 0.45);
  --danger: #ff7a90;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  background: var(--body-bg);
}

.shell {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header .shell {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #eef2ff;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-mark {
  width: 320px;
  height: 110px;
  object-fit: contain;
  transform: scale(1.6);
  transform-origin: left center;
  margin: 0;
  background: transparent;
}

.hero {
  padding: 5.4rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(12, 15, 26, 0.2);
  border-radius: 999px;
  color: #0c0f1a;
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  max-width: 16ch;
}

.hero-subtitle {
  color: var(--muted);
  max-width: 60ch;
  margin: 1rem 0 1.8rem;
}

.email-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  max-width: 680px;
}

input[type="email"] {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(12, 15, 26, 0.12);
  background: #ffffff;
  color: var(--text);
  padding: 0.9rem 1rem;
  font: inherit;
}

input[type="email"]::placeholder {
  color: #7f8ba5;
}

input[type="email"]:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn {
  border-radius: 6px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  min-height: 48px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #031622;
  box-shadow: 0 6px 16px rgba(39, 214, 165, 0.2);
}

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

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-nav {
  background: transparent;
  border-color: transparent;
  color: #031622;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 6px 16px rgba(39, 214, 165, 0.2);
  margin-right: 2.5rem;
}

.btn-social {
  background: #ffffff;
  border: 1px solid rgba(12, 15, 26, 0.12);
  color: var(--text);
  min-height: 48px;
}

.social-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-right: 0.45rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-google {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path fill='%23FFC107' d='M43.6 20.1H42V20H24v8h11.3C33.7 32.9 29.3 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 6 1.2 8.1 3.2l5.7-5.7C34.1 6.5 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.6-.4-3.9z'/><path fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 16 19 12 24 12c3.1 0 6 1.2 8.1 3.2l5.7-5.7C34.1 6.5 29.3 4 24 4 16.3 4 9.5 8.3 6.3 14.7z'/><path fill='%234CAF50' d='M24 44c5.2 0 10-2 13.5-5.2l-6.2-5.3c-1.8 1.3-4.1 2.1-7.3 2.1-5.2 0-9.6-3.4-11.2-8.1l-6.5 5C9.4 39.5 16.1 44 24 44z'/><path fill='%231976D2' d='M43.6 20.1H42V20H24v8h11.3c-1 2.7-3 4.9-5.8 6.2l.1-.1 6.2 5.3C34.6 41.5 44 36 44 24c0-1.3-.1-2.6-.4-3.9z'/></svg>");
}

.icon-github {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23181818' d='M12 .5C5.7.5.5 5.7.5 12c0 5.1 3.3 9.4 7.9 10.9.6.1.8-.3.8-.6v-2.1c-3.2.7-3.9-1.4-3.9-1.4-.5-1.3-1.2-1.6-1.2-1.6-1-.7.1-.7.1-.7 1.1.1 1.7 1.1 1.7 1.1 1 .1.8 1.6 1.9 2 .4.1 1 .1 1.6-.1.1-.8.4-1.3.7-1.6-2.5-.3-5.1-1.2-5.1-5.6 0-1.2.4-2.2 1.1-3-.1-.3-.5-1.4.1-2.9 0 0 .9-.3 3 .1.9-.2 1.9-.3 2.9-.3s2 .1 2.9.3c2.1-.4 3-.1 3-.1.6 1.5.2 2.6.1 2.9.7.8 1.1 1.8 1.1 3 0 4.4-2.6 5.3-5.1 5.6.4.3.8 1 .8 2.1v3.1c0 .3.2.7.8.6 4.6-1.5 7.9-5.8 7.9-10.9C23.5 5.7 18.3.5 12 .5z'/></svg>");
}

.icon-x {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000000' d='M18.2 2H21l-6.6 7.5L22 22h-6.5l-4.9-6.3L4.8 22H2l7.1-8.1L2 2h6.6l4.4 5.7L18.2 2zm-1.1 18h1.5L7 4H5.4l11.7 16z'/></svg>");
}
.btn-social:hover:not(:disabled) {
  transform: translateY(-1px);
}

.inline-status {
  margin-top: 0.6rem;
  min-height: 1.4rem;
  font-size: 0.95rem;
  color: #4b5565;
}

.inline-status.error {
  color: var(--danger);
}

.inline-status.success {
  color: var(--primary);
}

.social-proof {
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: #4b5565;
  font-weight: 500;
}

.social-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: 680px;
}

.dashboard-mock {
  background: #ffffff;
  border: 1px solid rgba(12, 15, 26, 0.1);
  padding: 1.2rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #4b5565;
  margin-bottom: 1rem;
}

.dashboard-pill {
  border: 1px solid rgba(12, 15, 26, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.dashboard-cards {
  display: grid;
  gap: 0.8rem;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 28px;
  border: 1px solid rgba(12, 15, 26, 0.12);
  background: #ffffff;
  padding: 0.2rem;
}

.logo-chip img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.logo-pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(12, 15, 26, 0.12);
  background: #ffffff;
  color: #374151;
  letter-spacing: 0.02em;
}

.logo-pill.twilio {
  border-color: rgba(255, 106, 92, 0.45);
}

.service-card {
  background: #ffffff;
  border: 1px solid rgba(12, 15, 26, 0.08);
  padding: 0.9rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(12, 15, 26, 0.08);
}

.service-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.service-logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  display: inline-block;
}

.service-meta {
  color: #6b7280;
  font-size: 0.9rem;
}

.service-usage {
  color: #4b5565;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

.service-gauge {
  --pct: 50%;
  margin-top: 0.55rem;
  height: 8px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}

.service-gauge::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--pct);
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.heatmap {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}

.heatmap-bar {
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
}

.heatmap-bar.hot {
  background: linear-gradient(90deg, #ff6b6b, #f97316);
}

.heatmap-bar.warm {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.heatmap-bar.mid {
  background: linear-gradient(90deg, #39b6ff, #60a5fa);
}

.heatmap-bar.cool {
  background: linear-gradient(90deg, #27d6a5, #22c55e);
}

.heatmap-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.section {
  border-top: 1px solid rgba(12, 15, 26, 0.08);
  padding: 3.6rem 0;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 2rem;
}

.section-light {
  background: #ffffff;
  color: #0c0f1a;
}

.section-light .section-title,
.section-light .section-subtitle,
.section-light .demo-points span {
  color: #0c0f1a;
}

.section-light .demo-points span {
  border-color: rgba(12, 15, 26, 0.2);
}

.section-light .video-frame {
  background: #ffffff;
  border-color: rgba(12, 15, 26, 0.12);
}

.section-light .video-frame video {
  background: #e9eef8;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 1.6rem;
  align-items: center;
}

.demo-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.demo-points span {
  border: 1px solid rgba(12, 15, 26, 0.2);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  color: #374151;
}

.video-frame {
  background: #ffffff;
  border: 1px solid rgba(12, 15, 26, 0.12);
  padding: 0.4rem;
  max-width: 520px;
  justify-self: end;
}

.video-frame video {
  width: 100%;
  display: block;
  background: #e9eef8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}

.stat {
  background: #ffffff;
  border: 1px solid rgba(12, 15, 26, 0.08);
  padding: 1rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(12, 15, 26, 0.08);
}

.stat-value {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  color: var(--primary);
}

.stat-label {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.problem-line {
  color: #374151;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.steps-list {
  display: grid;
  gap: 1.1rem;
}

.step-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
}

.step-index {
  font-family: "Space Grotesk", sans-serif;
  color: var(--primary);
  font-weight: 600;
}

.step-line h3 {
  margin-bottom: 0.2rem;
}

.step-line p {
  margin: 0;
  color: #6b7280;
}

.three-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid rgba(12, 15, 26, 0.08);
  padding: 1.2rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(12, 15, 26, 0.08);
}

.feature-kicker {
  font-family: "Space Grotesk", sans-serif;
  color: var(--primary);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.signal {
  border: 1px solid rgba(12, 15, 26, 0.12);
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  color: #4b5565;
  background: #ffffff;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.signal:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(12, 15, 26, 0.08);
}

.timeline {
  display: grid;
  gap: 1.2rem;
  margin: 2rem 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(12, 15, 26, 0.08);
}

.timeline-year {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--primary);
}

.vision-quote {
  font-size: 1.1rem;
  color: #374151;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.why-card {
  background: #ffffff;
  border: 1px solid rgba(12, 15, 26, 0.08);
  padding: 1rem;
}

.credibility {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.credibility span {
  border: 1px solid rgba(12, 15, 26, 0.12);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: #374151;
}

.social-confirmation {
  margin-top: 0.95rem;
  padding: 0.95rem;
  border: 1px solid rgba(12, 15, 26, 0.12);
  max-width: 680px;
  background: #ffffff;
}

.small-note {
  display: none;
}

.site-footer {
  padding: 2rem 0;
  width: 100%;
  color: #9aa6c0;
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: #eef2ff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  border-color: var(--text);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: min(92vw, 370px);
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(12, 15, 26, 0.14);
  background: #ffffff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .three-grid,
  .signal-row {
    grid-template-columns: 1fr;
  }

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

  .logo-mark {
    width: 220px;
    height: 78px;
    transform: scale(1.2);
  }
}

@media (max-width: 900px) {
  .social-row,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .email-form {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .demo-grid {
    gap: 1rem;
  }

  .video-frame {
    max-width: 100%;
    justify-self: stretch;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
