/* ── Kastly /for/* landing pages — shared styles ── */

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

:root {
  --bg: #0B0D10;
  --surface: #0F1216;
  --text: #EDEEF3;
  --muted: #8B8FA8;
  --border: rgba(237,238,243,0.08);
  --gradient: linear-gradient(90deg, #FC4445, #9B5DE5);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Top gradient bar ── */
.grad-bar { height: 6px; background: var(--gradient); }

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.88; }

/* ── Layout ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Audience pill ── */
.audience-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  padding: 6px 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── Hero ── */
.hero {
  padding: 100px 40px 80px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.hero .audience-pill { margin-bottom: 28px; }
.hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 8px;
}
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  margin: 20px auto 40px;
  max-width: 560px;
}
.hero-cta {
  display: inline-block;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 40px;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.hero-cta:hover { opacity: 0.88; transform: translateY(-1px); }
.hero-sub {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 0 40px; }

/* ── Features ── */
.features { padding: 80px 40px; }
.section-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 56px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.2s;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}
.feature-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 10px;
}
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── How it works ── */
.how-it-works {
  background: var(--surface);
  padding: 80px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 56px;
}
.step { position: relative; }
.step-num {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  margin-bottom: 12px;
}
.step h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 8px;
}
.step p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── Stats ── */
.stats {
  padding: 80px 40px;
  display: flex;
  justify-content: center;
  gap: 0;
}
.stats-inner {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 760px;
}
.stat {
  flex: 1;
  text-align: center;
  padding: 40px 24px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-val {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--muted); }

/* ── CTA section ── */
.cta-section { padding: 40px 40px 80px; }
.cta-box {
  border-radius: 20px;
  padding: 72px 40px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.cta-box h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--text);
  margin-bottom: 14px;
}
.cta-box p { font-size: 16px; color: var(--muted); margin-bottom: 36px; }
.cta-btn {
  display: inline-block;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 40px;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.cta-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.cta-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
footer .logo { font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 18px; color: var(--text); }
footer p { font-size: 13px; color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hero { padding: 72px 20px 60px; }
  .container, .features, .cta-section { padding-left: 20px; padding-right: 20px; }
  .how-it-works { padding: 60px 20px; }
  .stats { padding: 60px 20px; }
  .divider { margin: 0 20px; }
  .stats-inner { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  footer { padding: 28px 20px; }
}
