/* ============================================
   RAPIDHOST - style.css
   Mobile-first, CSS variables, no frameworks
   ============================================ */

/* ============================================
   1. RESET & BOX SIZING
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  flex-shrink: 0;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

input, textarea, select {
  max-width: 100%;
  font: inherit;
}

p, li, td, th, blockquote {
  overflow-wrap: break-word;
}

pre, code {
  max-width: 100%;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ============================================
   2. CSS VARIABLES - LIGHT + DARK THEMES
   ============================================ */
:root {
  --background: #f0f9ff;
  --foreground: #0a0a1a;
  --card: #e0f2fe;
  --card-foreground: #0a0a1a;
  --popover: #ffffff;
  --popover-foreground: #0a0a1a;
  --primary: #00c8e0;
  --primary-foreground: #0a0a1a;
  --secondary: #e0f2fe;
  --secondary-foreground: #0f172a;
  --muted: #bae6fd;
  --muted-foreground: #334155;
  --accent: #7c3aed;
  --accent-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #7dd3fc;
  --input: #e0f2fe;
  --ring: #00c8e0;

  /* Extended tokens */
  --header-bg: rgba(240, 249, 255, 0.92);
  --header-height: 68px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 24px rgba(0,200,224,0.25);
  --transition: 0.2s ease;
  --transition-md: 0.3s ease;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

[data-theme="dark"] {
  --background: #0a0a0f;
  --foreground: #e2e8f0;
  --card: #1a1a2e;
  --card-foreground: #e2e8f0;
  --popover: #0f0f1a;
  --popover-foreground: #e2e8f0;
  --primary: #00f5ff;
  --primary-foreground: #0a0a0f;
  --secondary: #1e1e3a;
  --secondary-foreground: #c8d6e5;
  --muted: #16162a;
  --muted-foreground: #94a3b8;
  --accent: #8b5cf6;
  --accent-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #1e2a4a;
  --input: #1a1a2e;
  --ring: #00f5ff;

  --header-bg: rgba(10, 10, 15, 0.92);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.6), 0 4px 12px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 32px rgba(0,245,255,0.2);
}

/* ============================================
   3. TYPOGRAPHY SYSTEM
   ============================================ */
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--foreground);
  background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw + 0.5rem, 3.75rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw + 0.5rem, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw + 0.3rem, 1.6rem); }
h4 { font-size: 1.1rem; }

p { line-height: 1.7; }

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

/* ============================================
   4. LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

@media (min-width: 1024px) {
  .container { padding-inline: 2.5rem; }
}

.text-center { text-align: center; }

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-subtext {
  font-size: clamp(1rem, 1.5vw + 0.3rem, 1.2rem);
  color: var(--muted-foreground);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.6;
}

/* ============================================
   5. BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Primary */
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.35);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 245, 255, 0.06);
}

/* Sizes */
.btn-sm {
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  min-height: 36px;
}

.btn-lg {
  font-size: 1rem;
  padding: 0.875rem 2rem;
  min-height: 52px;
}

.btn-full {
  width: 100%;
}

@media (max-width: 767px) {
  .btn-full-mobile {
    width: 100%;
  }
}

/* ============================================
   6. PROGRESS BAR
   ============================================ */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
  transition: width 0.2s ease, opacity 0.4s ease;
  pointer-events: none;
}

/* ============================================
   7. HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-md), box-shadow var(--transition-md);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-height);
  gap: 1rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  text-decoration: none;
}

.header-logo .logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.logo-wordmark {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--foreground);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-nav {
  display: none;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
    align-items: center;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-foreground);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--foreground);
  background: rgba(0, 245, 255, 0.07);
}

.nav-link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.625rem;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .header-actions {
    display: flex;
    margin-left: 1.5rem;
  }
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  transition: all var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(0, 245, 255, 0.08);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Show sun/moon based on theme */
.icon-moon { display: none; }
.icon-sun  { display: block; }

[data-theme="dark"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun  { display: none; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0.5rem;
  margin-left: auto;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background var(--transition);
}

.hamburger:hover {
  background: rgba(0, 245, 255, 0.08);
}

.hamburger:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  .hamburger { display: none; }
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: transform var(--transition-md), opacity var(--transition-md);
  transform-origin: center;
}

.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

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

.mobile-nav-list {
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-link {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-foreground);
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.mobile-nav-link:hover {
  color: var(--foreground);
  background: rgba(0, 245, 255, 0.07);
}

.mobile-nav-cta {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* ============================================
   8. HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4rem;
  overflow: hidden;
}

/* Gradient nodes (animated background orbs) */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-gradient-node {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
}

.node-1 {
  width: 500px;
  height: 500px;
  max-width: 60vw;
  background: var(--primary);
  top: -100px;
  right: 0;
  animation: floatNode 12s ease-in-out infinite alternate;
}

.node-2 {
  width: 380px;
  height: 380px;
  background: var(--accent);
  bottom: -80px;
  left: 10%;
  animation: floatNode 16s ease-in-out infinite alternate-reverse;
}

.node-3 {
  width: 280px;
  height: 280px;
  background: var(--primary);
  top: 40%;
  left: 50%;
  animation: floatNode 10s ease-in-out infinite alternate;
}

@keyframes floatNode {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

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

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-headline {
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.highlight-cyan {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheadline {
  font-size: clamp(1rem, 1.5vw + 0.3rem, 1.25rem);
  color: var(--muted-foreground);
  max-width: 520px;
  line-height: 1.65;
}

/* Stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  width: fit-content;
  max-width: 100%;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
}

.stat-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9375rem;
}

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

.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

.hero-microcopy {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: -0.5rem;
}

/* ── Terminal Window ── */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.terminal-window {
  background: #0d0d18;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

[data-theme="dark"] .terminal-window {
  border-color: #1e3050;
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1a1a2e;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28ca41; }

.terminal-title {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.25rem 1.25rem 1.5rem;
  min-height: 180px;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.term-prompt {
  color: var(--primary);
  font-weight: 700;
  user-select: none;
}

.term-cmd {
  color: #e2e8f0;
}

.term-cursor {
  color: var(--primary);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}

@keyframes blink {
  50% { opacity: 0; }
}

.terminal-output {
  color: var(--muted-foreground);
  line-height: 1.6;
  white-space: pre-wrap;
  font-size: 0.8rem;
}

/* ── Latency Map Card ── */
.latency-map-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.latency-map-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}

.live-badge {
  margin-left: auto;
  font-size: 0.6875rem;
  color: #22c55e;
  font-weight: 700;
  animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.latency-map-svg {
  background: #0a0a12;
  overflow: hidden;
}

.world-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-node {
  animation: mapPulse 2.5s ease-in-out infinite;
}

@keyframes mapPulse {
  0%, 100% { opacity: 0.9; r: 4; }
  50% { opacity: 0.6; r: 5; }
}

.latency-stats {
  display: flex;
  justify-content: space-around;
  padding: 0.75rem 1rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.latency-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}

.latency-region {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
}

.latency-ms {
  font-size: 0.875rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
}

/* ============================================
   9. FEATURES SECTION
   ============================================ */
.features-section {
  padding: 5rem 0;
  position: relative;
  background: var(--muted);
}

[data-theme="dark"] .features-section {
  background: var(--muted);
}

.section-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

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

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition-md), box-shadow var(--transition-md), border-color var(--transition-md);
}

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

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 245, 255, 0.1);
  color: var(--primary);
  margin-bottom: 1rem;
  transition: background var(--transition);
}

[data-theme="dark"] .feature-icon {
  background: rgba(0, 245, 255, 0.08);
}

.feature-card:hover .feature-icon {
  background: rgba(0, 245, 255, 0.18);
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--card-foreground);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

/* SEO content block */
.seo-content-block {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}

.seo-content-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.seo-content-block p {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.75;
  margin-bottom: 0.875rem;
}

.seo-content-block p:last-child {
  margin-bottom: 0;
}

/* ============================================
   10. PRODUCTS SECTION
   ============================================ */
.products-section {
  padding: 5rem 0;
  background: var(--background);
}

.products-carousel-wrapper {
  position: relative;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-md), box-shadow var(--transition-md), border-color var(--transition-md);
  overflow: hidden;
}

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

.product-card--featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-glow);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card-inner {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.product-icon {
  color: var(--primary);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 245, 255, 0.08);
  border-radius: var(--radius-sm);
}

.product-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--card-foreground);
}

.product-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  flex: 1;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.spec-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--secondary);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
}

.price-from {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.price-value strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.price-value strong span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.btn-full {
  margin-top: auto;
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

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

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

@media (min-width: 1024px) {
  .carousel-dots { display: none; }
}

.products-footer {
  text-align: center;
  margin-top: 2rem;
}

.compare-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  transition: opacity var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.compare-link:hover { opacity: 0.75; }

/* ============================================
   11. WHY RAPIDHOST SECTION
   ============================================ */
.why-section {
  padding: 5rem 0;
  background: var(--muted);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}

.why-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  order: -1;
}

@media (min-width: 1024px) {
  .why-visual { order: 0; }
}

.why-visual img {
  max-width: 100%;
  width: 420px;
  border-radius: var(--radius-lg);
  opacity: 0.9;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.why-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.why-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.why-number {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(0, 245, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  line-height: 1.8;
}

.why-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  color: var(--foreground);
}

.why-content p {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

/* ── Comparison Table ── */
.comparison-callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow: hidden;
}

.comparison-callout h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  min-width: 440px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  font-weight: 700;
  color: var(--foreground);
  background: var(--muted);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  font-weight: 500;
  color: var(--muted-foreground);
}

.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
  color: var(--primary);
  font-weight: 700;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.check-yes,
.check-neutral {
  text-align: center;
}

.check-yes svg,
.check-neutral svg {
  display: inline-block;
  vertical-align: middle;
}

/* ============================================
   12. INFRASTRUCTURE SECTION
   ============================================ */
.infra-section {
  padding: 5rem 0;
  background: var(--background);
}

.world-map-container {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}

.infra-world-map {
  width: 100%;
  height: auto;
  display: block;
}

.dc-node {
  cursor: pointer;
  transition: opacity var(--transition);
}

.dc-node:hover { opacity: 0.85; }

.pulse-ring {
  animation: pulseRing 2.5s ease-out infinite;
}

@keyframes pulseRing {
  0%   { r: 10; opacity: 0.5; }
  100% { r: 20; opacity: 0; }
}

.connection-lines line {
  animation: dash 6s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -100; }
}

.map-tooltip {
  position: absolute;
  background: var(--popover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--popover-foreground);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 10;
}

.map-tooltip.visible {
  opacity: 1;
}

/* Infra stats bar */
.infra-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .infra-stats { grid-template-columns: repeat(3, 1fr); }
}

.infra-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  gap: 0.25rem;
}

.infra-stat-number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  font-family: var(--font-mono);
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.infra-stat-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--foreground);
}

.infra-stat-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* Details / Accordion */
.infra-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.infra-detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.infra-detail-card summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.125rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--foreground);
  user-select: none;
  list-style: none;
  transition: background var(--transition);
}

.infra-detail-card summary::-webkit-details-marker { display: none; }

.infra-detail-card summary:hover {
  background: rgba(0, 245, 255, 0.04);
}

.infra-detail-card summary svg:first-child {
  color: var(--primary);
  flex-shrink: 0;
}

.infra-detail-card summary span {
  flex: 1;
}

.infra-detail-card .chevron {
  color: var(--muted-foreground);
  transition: transform var(--transition-md);
  flex-shrink: 0;
}

.infra-detail-card[open] .chevron {
  transform: rotate(180deg);
}

.infra-detail-card p {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* ============================================
   13. DEVELOPER EXPERIENCE SECTION
   ============================================ */
.devex-section {
  padding: 5rem 0;
  background: var(--muted);
}

.devex-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .devex-block {
    grid-template-columns: 1fr 1fr;
  }
  .devex-block--reversed .devex-visual {
    order: 1;
  }
  .devex-block--reversed .devex-text {
    order: 0;
  }
}

.devex-text h3 {
  font-size: clamp(1.2rem, 2vw + 0.3rem, 1.6rem);
  font-weight: 700;
  margin-bottom: 0.875rem;
  color: var(--foreground);
}

.devex-text p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.devex-text code {
  background: var(--secondary);
  padding: 0.125rem 0.4rem;
  border-radius: 4px;
  color: var(--primary);
  font-size: 0.875em;
}

.devex-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.devex-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.devex-feature-list li svg {
  color: var(--primary);
  flex-shrink: 0;
}

.devex-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  transition: opacity var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.devex-link:hover { opacity: 0.75; }

/* Code window */
.code-window {
  background: #0d0d18;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1a1a2e;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.code-dot--red    { background: #ff5f57; }
.code-dot--yellow { background: #ffbd2e; }
.code-dot--green  { background: #28ca41; }

.code-window-title {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--muted-foreground);
  margin-left: 0.375rem;
}

.code-content {
  padding: 1.25rem 1.25rem 1.5rem;
  overflow-x: auto;
  white-space: pre;
  font-size: 0.8rem;
  line-height: 1.7;
}

/* Syntax coloring */
.cli-prompt { color: #00f5ff; font-weight: 700; }
.cli-cmd    { color: #e2e8f0; }
.cli-arg    { color: #94a3b8; }
.cli-output { color: #64748b; }
.cli-success { color: #22c55e; }

.yaml-key { color: #8b5cf6; }
.yaml-val { color: #22c55e; }

/* Deploy UI Mock */
.deploy-ui-mock {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.deploy-ui-header {
  background: var(--secondary);
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.deploy-ui-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
}

.deploy-ui-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.deploy-ui-row {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.deploy-ui-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.deploy-ui-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--foreground);
}

.deploy-ui-region-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.375rem;
}

@media (min-width: 480px) {
  .deploy-ui-region-grid { grid-template-columns: repeat(4, 1fr); }
}

.region-opt {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  text-align: center;
  cursor: pointer;
}

.region-opt--active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 245, 255, 0.08);
}

.plan-opt-row {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.plan-opt {
  font-size: 0.75rem;
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  cursor: pointer;
  white-space: nowrap;
}

.plan-opt--active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 245, 255, 0.08);
}

.deploy-ui-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  min-height: 44px;
  transition: opacity var(--transition), box-shadow var(--transition);
}

.deploy-ui-btn:hover {
  opacity: 0.85;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.deploy-ui-eta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
  font-family: var(--font-mono);
}

/* Integration tags */
.integration-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.int-tag {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  padding: 0.375rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted-foreground);
  transition: all var(--transition);
}

.int-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 245, 255, 0.06);
}

/* ============================================
   14. WEB3 SECTION
   ============================================ */
.web3-section {
  padding: 5rem 0;
  background: var(--background);
  position: relative;
  overflow: hidden;
}

/* Hex grid background */
.web3-hex-bg {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      60deg,
      transparent,
      transparent 28px,
      rgba(139, 92, 246, 0.04) 28px,
      rgba(139, 92, 246, 0.04) 29px
    ),
    repeating-linear-gradient(
      120deg,
      transparent,
      transparent 28px,
      rgba(0, 245, 255, 0.04) 28px,
      rgba(0, 245, 255, 0.04) 29px
    );
  pointer-events: none;
  z-index: 0;
}

.web3-section .container {
  position: relative;
  z-index: 1;
}

.web3-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .web3-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

.web3-statement h2 {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.web3-body {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-top: 1rem;
}

.web3-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.web3-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color var(--transition-md), transform var(--transition-md);
}

.web3-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.web3-card-icon {
  color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  margin-bottom: 0.25rem;
}

.web3-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--card-foreground);
}

.web3-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.web3-cta-row {
  text-align: center;
}

.web3-cta-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.web3-cta-link:hover { opacity: 0.75; }

/* ============================================
   15. PRICING SECTION
   ============================================ */
.pricing-section {
  padding: 5rem 0;
  background: var(--muted);
}

/* Billing toggle */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}

.billing-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.billing-toggle {
  position: relative;
  width: 46px;
  height: 26px;
  background: var(--secondary);
  border-radius: 100px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
  min-height: 0;
}

.billing-toggle[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform var(--transition-md);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.billing-toggle[aria-pressed="true"] .toggle-thumb {
  transform: translateX(20px);
}

.save-badge {
  background: rgba(0, 245, 255, 0.15);
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.1875rem 0.5rem;
  border-radius: 100px;
  border: 1px solid var(--primary);
}

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

@media (min-width: 640px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.pricing-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-md), box-shadow var(--transition-md);
}

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

.pricing-card--featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-glow);
}

.pricing-badge {
  background: var(--primary);
  color: var(--primary-foreground);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-card-inner {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

.pricing-plan-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--card-foreground);
}

.pricing-tagline {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin-top: -0.75rem;
}

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

.price-amount {
  font-size: 2.75rem;
  font-weight: 900;
  font-family: var(--font-mono);
  letter-spacing: -0.04em;
  color: var(--primary);
}

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

.pricing-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0.875rem;
  background: var(--secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.pricing-specs span {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--secondary-foreground);
  flex: 1;
  min-width: 80px;
  text-align: center;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pricing-features li svg {
  color: var(--primary);
  flex-shrink: 0;
}

.pricing-custom {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.inline-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pricing-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.trust-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ============================================
   16. USE CASES SECTION
   ============================================ */
.usecases-section {
  padding: 5rem 0;
  background: var(--background);
}

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

@media (min-width: 640px) {
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.usecase-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  overflow: hidden;
  transition: transform var(--transition-md), box-shadow var(--transition-md), border-color var(--transition-md);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.usecase-card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .usecase-card--wide { grid-column: 1 / -1; }
}

/* Accent colors per use case */
.usecase-card--saas {
  border-top: 2px solid var(--primary);
}
.usecase-card--saas:hover { border-color: var(--primary); }

.usecase-card--ai {
  border-top: 2px solid var(--accent);
}
.usecase-card--ai:hover { border-color: var(--accent); }

.usecase-card--ecommerce {
  border-top: 2px solid #22c55e;
}
.usecase-card--ecommerce:hover { border-color: #22c55e; }

.usecase-card--web3 {
  border-top: 2px solid var(--accent);
}
.usecase-card--web3:hover { border-color: var(--accent); }

.usecase-card--api {
  border-top: 2px solid var(--primary);
}
.usecase-card--api:hover { border-color: var(--primary); }

.usecase-bg-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--border);
  opacity: 0.4;
  pointer-events: none;
  transition: opacity var(--transition-md);
}

.usecase-card:hover .usecase-bg-icon {
  opacity: 0.6;
}

.usecase-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--card-foreground);
}

.usecase-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  flex: 1;
}

.usecase-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: opacity var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: auto;
  display: inline-block;
}

.usecase-link:hover { opacity: 0.75; }

/* ============================================
   17. SOCIAL PROOF / TESTIMONIALS + FAQ + FINAL CTA
   ============================================ */
.social-section {
  background: var(--muted);
}

/* Testimonials */
.testimonials-wrap {
  padding: 5rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition-md), box-shadow var(--transition-md);
  opacity: 0;
  transform: translateY(20px);
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
}

.testimonial-card p {
  font-size: 0.9375rem;
  color: var(--card-foreground);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--foreground);
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* ── FAQ ── */
.faq-wrap {
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 768px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.125rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
  min-height: 44px;
}

.faq-question:hover {
  background: rgba(0, 245, 255, 0.04);
}

.faq-question:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: -2px;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--primary);
  transition: transform var(--transition-md);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* ── Final CTA ── */
.final-cta-wrap {
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--border);
  background: var(--background);
}

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

@media (min-width: 1024px) {
  .final-cta-grid { grid-template-columns: 1fr 1fr; }
}

.final-cta-statement {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.final-cta-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 2rem;
}

.final-cta-bullets li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.final-cta-bullets li svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Contact Form */
.final-cta-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.form-input {
  background: var(--input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--foreground);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  min-height: 44px;
}

.form-input::placeholder {
  color: var(--muted-foreground);
  opacity: 0.7;
}

.form-input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.12);
}

.form-input.error {
  border-color: var(--destructive);
}

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

.form-error {
  font-size: 0.8125rem;
  color: var(--destructive);
  min-height: 1.2em;
}

.form-micro {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  text-align: center;
}

.form-success[hidden] {
  display: none;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  color: #22c55e;
}

.form-success p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

/* ============================================
   18. FOOTER
   ============================================ */
.site-footer {
  background: var(--popover);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1fr; }
}

.footer-col--brand {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  width: fit-content;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
}

.footer-logo span {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  max-width: 280px;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.footer-social {
  display: flex;
  gap: 0.625rem;
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  transition: all var(--transition);
}

.social-icon:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(0, 245, 255, 0.08);
}

.social-icon:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a,
.footer-policy-link {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  transition: color var(--transition);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font-family: inherit;
}

.footer-links a:hover,
.footer-policy-link:hover {
  color: var(--primary);
}

.footer-links a:focus-visible,
.footer-policy-link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* ============================================
   19. COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 800;
  max-width: 100vw;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  transform: translateY(0);
  opacity: 1;
  transition: transform var(--transition-md), opacity var(--transition-md);
}

.cookie-banner.hidden {
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
}

.cookie-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.cookie-policy-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: inherit;
  transition: opacity var(--transition);
}

.cookie-policy-link:hover { opacity: 0.75; }
.cookie-policy-link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 0.625rem;
  justify-content: flex-end;
}

/* ============================================
   20. POLICY MODALS
   ============================================ */
.policy-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  animation: fadeIn 0.2s ease;
}

.policy-modal[hidden] {
  display: none;
}

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

.policy-modal-inner {
  background: var(--popover);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 800px;
  margin: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease;
  overflow: hidden;
}

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

.policy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 1;
}

.policy-modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--popover-foreground);
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  transition: all var(--transition);
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.12);
  color: var(--destructive);
}

.modal-close:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.policy-modal-body {
  padding: 1.5rem 2rem 2.5rem;
  color: var(--popover-foreground);
  font-size: 0.9375rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.policy-modal-body h3,
.policy-modal-body h4 {
  margin: 1.5rem 0 0.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.policy-modal-body p {
  margin-bottom: 0.875rem;
  color: var(--muted-foreground);
}

.policy-modal-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.875rem;
}

.policy-modal-body li {
  margin-bottom: 0.375rem;
  color: var(--muted-foreground);
}

/* ============================================
   21. SCROLL ANIMATIONS (fade-in-up)
   ============================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for groups */
.fade-in-up:nth-child(1) { transition-delay: 0ms; }
.fade-in-up:nth-child(2) { transition-delay: 80ms; }
.fade-in-up:nth-child(3) { transition-delay: 160ms; }
.fade-in-up:nth-child(4) { transition-delay: 240ms; }
.fade-in-up:nth-child(5) { transition-delay: 320ms; }

/* ============================================
   22. ACCESSIBILITY ENHANCEMENTS
   ============================================ */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

/* Skip to main content */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* High contrast for muted text */
@media (prefers-contrast: more) {
  :root {
    --muted-foreground: #4a5568;
  }
  [data-theme="dark"] {
    --muted-foreground: #cbd5e0;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   23. RESPONSIVE ADJUSTMENTS
   ============================================ */

/* ── 768px tablet ── */
@media (min-width: 768px) {
  .hero-stats {
    flex-wrap: nowrap;
  }

  .stat-item {
    padding: 0.375rem 1rem;
  }

  .pricing-toggle {
    gap: 1.125rem;
  }
}

/* ── 1024px desktop ── */
@media (min-width: 1024px) {
  .hero-section {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
  }

  .hero-content {
    gap: 1.75rem;
  }

  .why-visual {
    order: 1;
  }

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

  .devex-block {
    gap: 4rem;
  }
}

/* ── Mobile (max-width: 480px) ── */
@media (max-width: 479px) {
  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .pricing-card-inner {
    padding: 1.25rem;
  }

  .pricing-specs {
    flex-direction: column;
    align-items: flex-start;
  }

  .pricing-specs span {
    text-align: left;
    min-width: 0;
  }

  .final-cta-form-card {
    padding: 1.25rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.625rem 0.75rem;
    font-size: 0.8rem;
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: none;
    bottom: 0.75rem;
  }
}

/* ── Overflow safety net ── */
[class*="grid"] > * {
  min-width: 0;
}

[class*="flex"] > * {
  min-width: 0;
}

.header-inner,
.footer-grid,
.hero-inner,
.why-grid,
.devex-block,
.final-cta-grid,
.web3-inner {
  min-width: 0;
}

.header-inner > * {
  min-width: 0;
}

/* ============================================
   24. LIGHT THEME OVERRIDES
   ============================================ */
:root:not([data-theme="dark"]) .terminal-window,
:root:not([data-theme="dark"]) .code-window {
  background: #1a1a2e;
  border-color: #2a2a4a;
}

:root:not([data-theme="dark"]) .latency-map-svg {
  background: #1a1a2e;
}

:root:not([data-theme="dark"]) .world-map-container {
  background: #f8fafc;
}

:root:not([data-theme="dark"]) .infra-world-map rect:first-child {
  fill: #e0f2fe;
}

:root:not([data-theme="dark"]) .why-section {
  background: #e8f4fd;
}

:root:not([data-theme="dark"]) .pricing-section {
  background: #e8f4fd;
}

:root:not([data-theme="dark"]) .testimonials-wrap {
  background: #e8f4fd;
}

:root:not([data-theme="dark"]) .devex-section {
  background: #e8f4fd;
}

:root:not([data-theme="dark"]) .hero-gradient-node {
  opacity: 0.08;
}

:root:not([data-theme="dark"]) .feature-icon {
  background: rgba(0, 200, 224, 0.12);
}

:root:not([data-theme="dark"]) .product-icon {
  background: rgba(0, 200, 224, 0.1);
}

/* ============================================
   25. SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

/* ============================================
   26. SELECTION COLOR
   ============================================ */
::selection {
  background: rgba(0, 245, 255, 0.25);
  color: var(--foreground);
}

[data-theme="dark"] ::selection {
  background: rgba(0, 245, 255, 0.2);
}