/* =============================================================
   Acelerun Technologies — Main Stylesheet
   Design: Tech-industrial, precise, premium
   Fonts: Syne (display) + DM Sans (body)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

/* ----- CSS Variables ----- */
:root {
  --primary: #2563eb;
  --primary-hover: #1e40af;
  --primary-light: #dbeafe;
  --accent: #8b5cf6;
  --audio: #ec4899;
  --audio-light: #fce7f3;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --mid: #64748b;
  --border: #e2e8f0;
  --light: #f8fafc;
  --white: #ffffff;
  --success: #10b981;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.18);
  --shadow-primary: 0 8px 30px rgba(37,99,235,0.25);
  --shadow-audio: 0 8px 30px rgba(236,72,153,0.25);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dark);
  background-color: var(--light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }

/* ----- Navigation ----- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--dark);
  transition: opacity 0.2s;
}

.nav-logo:hover { opacity: 0.8; }

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-3);
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--primary-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}

/* Mobile nav */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
  padding: 4px;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 1rem 2rem;
}

.nav-mobile.open { display: block; }

.nav-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.nav-mobile-links li a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
}

.nav-mobile-links li:last-child a { border-bottom: none; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.975rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-outline-audio {
  background: transparent;
  color: var(--audio);
  border: 2px solid var(--audio);
}

.btn-outline-audio:hover {
  background: var(--audio-light);
  color: var(--audio);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--light);
  color: var(--dark);
}

.btn-ghost:hover {
  background: var(--border);
  transform: translateY(-2px);
}

/* ----- Container ----- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-sm { padding: 3.5rem 0; }
.section-lg { padding: 7rem 0; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-label.audio-label {
  color: var(--audio);
  background: var(--audio-light);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
  color: var(--dark);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--mid);
  line-height: 1.7;
}

/* ----- Hero ----- */
.hero {
  padding: 9rem 0 5rem;
  background: linear-gradient(160deg, #f0f7ff 0%, #f8fafc 40%, #fff7f0 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(236,72,153,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--primary);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--dark);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--mid);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.hero-image-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.hero-stat {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.hero-stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--mid);
  font-weight: 500;
}

.hero-stat.stat-video { bottom: -1.5rem; left: -1.5rem; }
.hero-stat.stat-audio { bottom: -1.5rem; right: -1.5rem; }
.hero-stat.stat-quality { top: 1.5rem; right: -1.5rem; }
.stat-value-blue { color: var(--primary); }
.stat-value-pink { color: var(--audio); }

/* ----- Stats Bar ----- */
.stats-bar {
  background: var(--dark);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.stat-item-value {
  font-family: 'Syne', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
}

/* ----- Feature Cards ----- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card.audio-card::before { background: var(--audio); }

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: var(--primary-light);
  color: var(--primary);
}

.feature-icon.audio-icon {
  background: var(--audio-light);
  color: var(--audio);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.6;
}

/* ----- Use Case Cards ----- */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.use-case-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.use-case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.use-case-image {
  overflow: hidden;
  height: 220px;
}

.use-case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.use-case-card:hover .use-case-image img { transform: scale(1.05); }

.use-case-body {
  padding: 1.75rem;
}

.use-case-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.use-case-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.use-case-desc {
  font-size: 0.925rem;
  color: var(--mid);
  line-height: 1.6;
}

/* ----- Protocol Cards ----- */
.protocols-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.protocol-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}

.protocol-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  transform: translateY(-3px);
}

.protocol-card.audio-protocol:hover {
  border-color: var(--audio);
  box-shadow: 0 0 0 3px var(--audio-light);
}

.protocol-badge {
  font-family: 'DM Mono', monospace;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.protocol-badge.audio { color: var(--audio); }

.protocol-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.protocol-desc {
  font-size: 0.75rem;
  color: var(--mid);
}

/* ----- Pricing Cards ----- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.plan-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.plan-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-primary);
  position: relative;
}

.plan-card.audio-popular {
  border: 2px solid var(--audio);
  box-shadow: var(--shadow-audio);
  position: relative;
}

.plan-badge {
  position: absolute;
  top: 0;
  right: 1.5rem;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.plan-badge.audio { background: var(--audio); }

.plan-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.plan-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.plan-tagline {
  font-size: 0.875rem;
  color: var(--mid);
  margin-bottom: 1.5rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.plan-currency {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.plan-amount {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-period {
  font-size: 0.9rem;
  color: var(--mid);
  margin-left: 0.25rem;
}

.plan-features {
  padding: 1.5rem 2rem;
  flex: 1;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.925rem;
  color: var(--dark-3);
}

.plan-feature-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--success);
  margin-top: 1px;
}

.plan-footer {
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid var(--border);
}

/* ----- FAQ ----- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  transition: color 0.2s;
}

.faq-question:hover { color: var(--primary); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--mid);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ----- Contact ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-label {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  color: var(--dark);
}

.contact-item-value {
  font-size: 0.925rem;
  color: var(--mid);
}

.contact-item-value a {
  color: var(--primary);
  transition: color 0.2s;
}

.contact-item-value a:hover { color: var(--primary-hover); text-decoration: underline; }

.privacy-note {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.privacy-note-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.privacy-note-text {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.65;
}

/* ----- Footer ----- */
.footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.footer-brand-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  color: #64748b;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-social {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

.footer-col-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: #64748b;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 3px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #475569;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-bottom-links a {
  color: #475569;
  transition: color 0.2s;
}

.footer-bottom-links a:hover { color: #94a3b8; }

/* ----- Page Hero (inner pages) ----- */
.page-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(160deg, #f0f7ff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  margin-bottom: 1rem;
}

.page-hero-desc {
  font-size: 1.1rem;
  color: var(--mid);
  max-width: 600px;
}

/* ----- Prose content (legal pages) ----- */
.prose-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin: 2.5rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.prose h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin: 1.5rem 0 0.5rem;
}

.prose p {
  margin-bottom: 1rem;
  color: var(--dark-3);
  line-height: 1.75;
  font-size: 0.975rem;
}

.prose ul, .prose ol {
  margin: 0.75rem 0 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.prose li {
  color: var(--dark-3);
  line-height: 1.65;
  font-size: 0.975rem;
}

.prose a { color: var(--primary); }
.prose a:hover { text-decoration: underline; }

.prose strong { font-weight: 600; color: var(--dark); }

/* ----- Sitemap ----- */
.sitemap-section { margin-bottom: 2.5rem; }

.sitemap-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.sitemap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.sitemap-list a {
  font-size: 0.9rem;
  color: var(--mid);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.2s;
}

.sitemap-list a:hover { color: var(--primary); }

.sitemap-sub {
  list-style: none;
  padding-left: 1.25rem;
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sitemap-sub a {
  font-size: 0.85rem;
  color: #94a3b8;
}

.sitemap-sub a:hover { color: var(--primary); }

/* ----- About page ----- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-card.audio { border-left-color: var(--audio); }

/* ----- Utility ----- */
.text-primary { color: var(--primary); }
.text-audio { color: var(--audio); }
.text-mid { color: var(--mid); }
.text-white { color: white; }
.bg-white { background: white; }
.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); }

.divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* ----- Animations ----- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* IntersectionObserver-triggered animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children > * { transition-delay: calc(var(--index, 0) * 0.08s); }

/* =============================================================
   NEW GRID CLASSES (replaces problematic inline styles)
   ============================================================= */

.infra-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.audio-includes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.about-values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.terms-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.sitemap-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* =============================================================
   RESPONSIVE — 1200px (large tablets / small desktops)
   ============================================================= */
@media (max-width: 1200px) {
  .hero-title { font-size: clamp(2rem, 4vw, 3.5rem); }
  .hero-stat { padding: 0.75rem 1rem; }
  .hero-stat-value { font-size: 1.4rem; }
}

/* =============================================================
   RESPONSIVE — 1024px (tablets landscape)
   ============================================================= */
@media (max-width: 1024px) {
  .protocols-grid   { grid-template-columns: repeat(3, 1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .pricing-grid-3   { grid-template-columns: 1fr 1fr; }
  .terms-summary-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-stat.stat-quality { right: -0.5rem; }
  .hero-stat.stat-video   { left: -0.5rem; }
  .hero-stat.stat-audio   { right: -0.5rem; }
}

/* =============================================================
   RESPONSIVE — 768px (tablets portrait / large phones)
   ============================================================= */
@media (max-width: 768px) {

  /* --- Spacing --- */
  .section    { padding: 3rem 0; }
  .section-sm { padding: 2rem 0; }
  .section-lg { padding: 4rem 0; }
  .container  { padding: 0 1.25rem; }

  /* --- Typography --- */
  .hero-title   { font-size: clamp(2rem, 8vw, 3rem); }
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .section-desc  { font-size: 1rem; }
  .page-hero-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .page-hero { padding: 7rem 0 3rem; }

  /* --- Navigation --- */
  .nav-links,
  .nav-cta        { display: none; }
  .nav-mobile-toggle { display: flex; }

  /* --- Hero --- */
  .hero           { padding: 7rem 0 3.5rem; }
  .hero-inner     { grid-template-columns: 1fr; }
  .hero-visual    { display: none; }
  .hero-actions   { gap: 0.75rem; }

  /* --- Stats bar --- */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-item-value { font-size: 1.75rem; }

  /* --- Features --- */
  .features-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .feature-card  { padding: 1.5rem; }

  /* --- Use cases --- */
  .use-cases-grid { grid-template-columns: 1fr; }

  /* --- Protocols --- */
  .protocols-grid { grid-template-columns: repeat(2, 1fr); }

  /* --- Infrastructure features (infra-features-grid) --- */
  .infra-features-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* --- Pricing --- */
  .pricing-grid   { grid-template-columns: 1fr; }
  .pricing-grid-3 { grid-template-columns: 1fr; }
  .plan-card.popular,
  .plan-card.audio-popular { transform: none; box-shadow: var(--shadow-md); }
  .audio-includes-grid { grid-template-columns: 1fr; }

  /* --- Contact --- */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* --- Footer --- */
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer        { padding: 3rem 0 1.5rem; }

  /* --- Inner pages grids --- */
  .about-values-grid    { grid-template-columns: 1fr; }
  .terms-summary-grid   { grid-template-columns: 1fr 1fr; }
  .sitemap-content-grid { grid-template-columns: 1fr; gap: 2rem; }
  .team-grid            { grid-template-columns: 1fr; }

  /* --- Prose/Legal pages --- */
  .prose-wrap { padding: 2.5rem 1.25rem; }

  /* --- Tables overflow --- */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* --- Section header --- */
  .section-header { margin-bottom: 2.5rem; }
}

/* =============================================================
   RESPONSIVE — 580px (most phones)
   ============================================================= */
@media (max-width: 580px) {

  /* --- Features --- */
  .features-grid { grid-template-columns: 1fr; }

  /* --- Protocols --- */
  .protocols-grid { grid-template-columns: 1fr 1fr; }

  /* --- Hero --- */
  .hero-actions   { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; text-align: center; }

  /* --- Stats bar --- */
  .stats-bar  { padding: 2rem 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat-item-value { font-size: 1.5rem; }

  /* --- Pricing plan footer buttons (inline width) --- */
  .plan-footer .btn { width: 100% !important; justify-content: center !important; }

  /* --- Terms summary --- */
  .terms-summary-grid { grid-template-columns: 1fr; }

  /* --- Footer --- */
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-socials { gap: 0.5rem; }

  /* --- Nav logo text --- */
  .nav-logo-text { font-size: 1.1rem; }

  /* --- Page hero --- */
  .page-hero { padding: 6.5rem 0 2.5rem; }

  /* --- Section label + title spacing --- */
  .section-header { margin-bottom: 2rem; }
  .section-title  { margin-bottom: 0.75rem; }
}

/* =============================================================
   RESPONSIVE — 400px (very small phones)
   ============================================================= */
@media (max-width: 400px) {
  .container { padding: 0 1rem; }
  .stats-grid { gap: 0.75rem; }
  .stat-item-value { font-size: 1.35rem; }
  .hero-title { font-size: 1.85rem; }
  .nav-container { padding: 0 1rem; }
  .protocol-card { padding: 1rem 0.625rem; }
  .protocol-badge { font-size: 0.875rem; }
}

/* =============================================================
   GLOBAL OVERFLOW PREVENTION
   ============================================================= */
html, body { overflow-x: hidden; }
.nav-mobile { max-width: 100vw; }

@media (max-width: 580px) {
  .nav-mobile { padding: 0.75rem 1.25rem; }
}
