/**
 * BitCD Cloud – AI Infra Management Business Site
 * Mobile-first: 320px → 4K. Logo-inspired purple & magenta theme.
 */

:root {
  /* Logo gradient: blue-purple → magenta (BitCD) */
  --color-purple-dark: #522EDC;
  --color-purple: #6A3DFB;
  --color-magenta-dark: #E52E8C;
  --color-magenta: #FF3D9E;
  /* Light theme: soft purple & magenta tints */
  --bg-dark: #f5f2fb;
  --bg-mid: #faf8fd;
  --bg-card: #ffffff;
  --bg-card-hover: #f0ebfa;
  --border: rgba(82, 46, 220, 0.12);
  --text: #1e1a2a;
  --text-muted: #5c5468;
  --accent: var(--color-purple);
  --accent-light: #7c4dff;
  --accent-magenta: var(--color-magenta);
  --accent-glow: rgba(106, 61, 251, 0.2);
  --gradient-hero: linear-gradient(165deg, #f8f6fc 0%, rgba(106, 61, 251, 0.08) 35%, rgba(255, 61, 158, 0.08) 70%, #fdf5fa 100%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, transparent 100%);
  --gradient-brand: linear-gradient(135deg, var(--color-purple) 0%, var(--color-magenta) 100%);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 72px;
  --transition: 0.25s ease;
  --shadow: 0 4px 24px rgba(82, 46, 220, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(90deg, rgba(82, 46, 220, 0.95) 0%, rgba(106, 61, 251, 0.9) 50%, rgba(229, 46, 140, 0.9) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
  background: linear-gradient(90deg, rgba(82, 46, 220, 0.98) 0%, rgba(106, 61, 251, 0.95) 50%, rgba(229, 46, 140, 0.95) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Header nav & CTA: light text on purple/magenta background */
.site-header .nav-list a {
  color: rgba(255, 255, 255, 0.9);
}

.site-header .nav-list a:hover {
  color: #fff;
  text-decoration: none;
}

.site-header .btn-primary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-purple-dark);
}

.site-header .btn-primary:hover {
  background: #fff;
  color: var(--color-purple-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.site-header .btn-secondary {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
}

.site-header .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.site-header .nav-toggle {
  color: #fff;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.logo-link:hover {
  color: var(--text);
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.nav-list a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav-list a:hover {
  color: var(--text);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition), transform 0.15s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 20px var(--accent-glow);
}

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

.btn-secondary:hover {
  background: rgba(106, 61, 251, 0.06);
  color: var(--accent);
  text-decoration: none;
  border-color: rgba(106, 61, 251, 0.3);
}

.btn-header {
  padding: 0.5rem 1.25rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 1rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  background-size: 100% 100%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(106, 61, 251, 0.1) 0%, rgba(229, 46, 140, 0.06) 40%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-headline {
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  animation: fadeUp 0.8s ease-out;
}

.hero-subheadline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  animation: fadeUp 0.8s ease-out 0.1s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease-out 0.2s both;
}

.hero-trust {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  animation: fadeUp 0.8s ease-out 0.3s both;
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto 2rem;
  animation: fadeUp 0.8s ease-out 0.4s both;
}

.hero-card {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  transition: border-color var(--transition), background var(--transition), transform 0.2s ease;
  box-shadow: 0 2px 12px rgba(82, 46, 220, 0.06);
}

.hero-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(106, 61, 251, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(82, 46, 220, 0.1);
}

.hero-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

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

.hero-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-decoration: none;
  animation: fadeUp 0.8s ease-out 0.5s both;
}

.hero-scroll:hover {
  color: var(--accent);
  text-decoration: none;
}

.hero-scroll-icon {
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll-icon::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---- Section common ---- */
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 50ch;
}

/* ---- Features ---- */
.features {
  background: var(--bg-mid);
}

.features .section-subtitle {
  margin-bottom: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), background var(--transition), transform 0.2s ease, box-shadow var(--transition);
  box-shadow: 0 2px 12px rgba(82, 46, 220, 0.06);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(106, 61, 251, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(82, 46, 220, 0.12);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(106, 61, 251, 0.15) 0%, rgba(229, 46, 140, 0.1) 100%);
  border-radius: var(--radius);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.feature-card ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.feature-link {
  font-size: 0.9375rem;
  font-weight: 600;
}

.feature-link:hover {
  text-decoration: none;
}

/* ---- Why Choose Us (stats) ---- */
.why {
  background: var(--bg-dark);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform 0.2s ease;
  box-shadow: 0 2px 12px rgba(82, 46, 220, 0.06);
}

.stat-item:hover {
  border-color: rgba(106, 61, 251, 0.25);
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(82, 46, 220, 0.08);
}

.stat-value {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ---- Product Demo ---- */
.demo {
  background: var(--bg-mid);
}

.demo-carousel {
  position: relative;
  margin-top: 1rem;
}

.demo-track {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 2px 12px rgba(82, 46, 220, 0.06);
}

.demo-slide {
  display: none;
  padding: 2rem;
}

.demo-slide-active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

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

.demo-visual {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
}

.demo-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, rgba(106, 61, 251, 0.06) 0%, rgba(229, 46, 140, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-placeholder-2 { background: linear-gradient(135deg, rgba(106, 61, 251, 0.05) 0%, rgba(229, 46, 140, 0.08) 100%); }
.demo-placeholder-3 { background: linear-gradient(135deg, rgba(229, 46, 140, 0.08) 0%, rgba(106, 61, 251, 0.05) 100%); }

.demo-caption h3 {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.demo-caption p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.demo-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.demo-dot:hover,
.demo-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.demo-cta {
  display: inline-block;
  margin-top: 0.5rem;
}

/* ---- Customers (marquee) ---- */
.customers {
  background: var(--bg-dark);
  padding: 3rem 0;
}

.customers-title {
  text-align: center;
  margin-bottom: 2rem;
}

.customers-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.customers-track {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.customer-logo {
  flex-shrink: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(82, 46, 220, 0.04);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Testimonials ---- */
.testimonials {
  background: var(--bg-mid);
}

.testimonials-carousel {
  position: relative;
  margin-top: 1rem;
}

.testimonials-track {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.testimonial-slide {
  display: none;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(82, 46, 220, 0.06);
}

.testimonial-slide-active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.testimonial-type {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.testimonial-case-title {
  font-size: 1rem;
  margin: 0 0 1rem;
}

.testimonial-case-title a {
  color: var(--text);
}

.testimonial-case-title a:hover {
  color: var(--accent);
}

.testimonial-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.testimonial-stat {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.testimonial-stat strong {
  color: var(--accent);
  margin-right: 0.25rem;
}

.testimonial-quote {
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0 0 1rem;
  font-style: normal;
  color: var(--text);
}

.testimonial-author {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.testimonial-author span {
  font-weight: 400;
  color: var(--text-muted);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.testimonial-dot:hover,
.testimonial-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ---- Pricing ---- */
.pricing {
  background: var(--bg-dark);
}

.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pricing-toggle-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.pricing-toggle-label em {
  font-size: 0.75rem;
  color: var(--accent);
  font-style: normal;
  margin-left: 0.25rem;
}

.pricing-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), border-color var(--transition);
}

.pricing-toggle:hover {
  border-color: var(--accent);
}

.pricing-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}

.pricing-toggle[aria-pressed="true"] .pricing-toggle-knob {
  transform: translateX(22px);
  background: var(--accent);
}

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

.pricing-card {
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform 0.2s ease;
  box-shadow: 0 2px 12px rgba(82, 46, 220, 0.06);
}

.pricing-card:hover {
  border-color: rgba(106, 61, 251, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(82, 46, 220, 0.1);
}

.pricing-card-highlighted {
  border-color: rgba(106, 61, 251, 0.35);
  background: linear-gradient(180deg, rgba(106, 61, 251, 0.06) 0%, var(--bg-card) 100%);
  box-shadow: 0 4px 20px rgba(82, 46, 220, 0.1);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--bg-mid);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.pricing-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.pricing-price {
  margin-bottom: 1.25rem;
}

.price-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.price-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card .price-yearly {
  display: none;
}

.pricing-card .btn {
  width: 100%;
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.pricing.is-yearly .price-monthly {
  display: none !important;
}

.pricing.is-yearly .price-yearly {
  display: inline !important;
}

/* ---- CTA ---- */
.cta {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 0 1rem 4rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 16px rgba(82, 46, 220, 0.06);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.cta-subtitle {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.cta-trust {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.cta-newsletter-title {
  font-size: 1.125rem;
  margin: 0 0 0.75rem;
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cta-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cta-form input::placeholder {
  color: var(--text-muted);
}

.cta-form input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---- Footer ---- */
.site-footer {
  padding: 3rem 1rem 2rem;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  vertical-align: middle;
}

.footer-logo:hover {
  text-decoration: none;
}

.footer-logo:hover img {
  opacity: 0.9;
}

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

.footer-column h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

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

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- Responsive: 480px ---- */
@media (min-width: 480px) {
  .hero-cards {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* ---- Responsive: 768px ---- */
@media (min-width: 768px) {
  .section-inner {
    padding: 5rem 1.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .cta-inner {
    grid-template-columns: 1fr 1fr;
  }

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

/* ---- Responsive: 1024px ---- */
@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .demo-visual {
    min-height: 360px;
  }

  .demo-placeholder {
    height: 360px;
  }
}

/* ---- Responsive: 1280px+ ---- */
@media (min-width: 1280px) {
  .section-inner {
    padding: 6rem 2rem;
  }
}

/* ---- Mobile nav ---- */
@media (max-width: 767px) {
  .nav-primary {
    display: none;
  }

  .nav-primary.is-open {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-mid);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }

  .nav-primary.is-open .nav-list {
    flex-direction: column;
  }

  .btn-header {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .customers-track {
    animation: none;
  }
}

/* ========== Demo page (Book a Demo) ========== */
.demo-page .demo-main {
  min-height: calc(100vh - var(--header-h));
  padding: calc(var(--header-h) + 2rem) 1rem 3rem;
}

.demo-main-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.demo-content {
  max-width: 36rem;
}

.demo-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.demo-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  line-height: 1.6;
}

.demo-what {
  margin-bottom: 1.5rem;
}

.demo-what-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.demo-what-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.demo-what-list li {
  margin-bottom: 0.5rem;
}

.demo-trust {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.demo-action-link {
  font-weight: 600;
  color: var(--accent);
}

.demo-action-link:hover {
  color: var(--accent-light);
}

/* Demo form */
.demo-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 420px;
  box-shadow: 0 2px 16px rgba(82, 46, 220, 0.06);
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.demo-form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.demo-form input::placeholder,
.demo-form textarea::placeholder {
  color: var(--text-muted);
}

.demo-form input:focus,
.demo-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.demo-form textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-demo-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  margin-top: 0.25rem;
}

.demo-privacy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 1.25rem 0 0;
  line-height: 1.5;
}

.demo-privacy a {
  color: var(--accent);
}

.site-footer-demo {
  padding: 1.5rem 1rem;
  text-align: center;
}

.site-footer-demo .footer-copy {
  margin: 0;
}

/* Demo page: show both header CTAs on mobile */
.demo-page .header-ctas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.demo-page .nav-primary .nav-list a[href="index.html#demo"] {
  display: none;
}

@media (min-width: 768px) {
  .demo-main-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }

  .demo-form-wrap {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

@media (max-width: 767px) {
  .demo-page .btn-header {
    display: inline-flex;
  }

  .demo-page .header-ctas .btn-secondary {
    display: none;
  }
}

/* ========== Launching soon page ========== */
.launching-soon-page .launching-main {
  min-height: calc(100vh - var(--header-h));
  padding: calc(var(--header-h) + 3rem) 1rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.launching-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.launching-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 40%, rgba(106, 61, 251, 0.12) 0%, rgba(229, 46, 140, 0.06) 40%, transparent 70%);
  pointer-events: none;
}

.launching-inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.launching-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.launching-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 2rem;
}

.launching-form {
  margin-bottom: 1rem;
}

.launching-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: stretch;
}

.launching-form-row input {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  padding: 0.875rem 1.25rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.launching-form-row input::placeholder {
  color: var(--text-muted);
}

.launching-form-row input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-launching-submit {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.launching-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

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

.site-header-launching .nav-primary,
.site-header-launching .btn-header {
  display: none;
}

.site-footer-launching {
  padding: 1.5rem 1rem;
  text-align: center;
}

.site-footer-launching .footer-copy {
  margin: 0;
}
