/* ============================================
   DevTech — Landing Page Styles
   Premium B2B dark-mode design
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Colors */
  --color-bg: #0a0a0f;
  --color-surface: #111118;
  --color-surface-2: #16161f;
  --color-surface-3: #1c1c28;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);
  --color-text: #e4e4ed;
  --color-text-muted: rgba(255, 255, 255, 0.5);
  --color-text-subtle: rgba(255, 255, 255, 0.35);

  /* Brand */
  --color-primary: #6366f1;
  --color-primary-hover: #818cf8;
  --color-primary-glow: rgba(99, 102, 241, 0.25);
  --color-accent: #8b5cf6;
  --color-accent-2: #a78bfa;

  /* Semantic */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-padding: clamp(80px, 12vw, 140px);
  --container-max: 1200px;
  --header-height: 72px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

/* ---------- Background Effects ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
}

.bg-glow--2 {
  width: 500px;
  height: 500px;
  bottom: 20%;
  left: -200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
}

/* ---------- Announcement Banner ---------- */
.announcement-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(234, 179, 8, 0.3);
  animation: slideDown 0.5s ease-out;
}

.announcement-banner.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.announcement-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.announcement-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.announcement-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.announcement-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 50;
  transition: top 0.3s ease, background 0.3s ease;
}

.header.banner-hidden {
  top: 0;
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.logo-icon {
  display: flex;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav {
  display: none;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover {
  color: white;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: none;
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 60;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  transition: all 0.3s;
  border-radius: 2px;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-link {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.mobile-link:hover {
  color: white;
}

.mobile-cta {
  margin-top: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}

.btn--sm {
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  height: 36px;
}

.btn--md {
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  height: 44px;
}

.btn--lg {
  font-size: 15px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  height: 48px;
}

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

.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--color-primary-glow);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.btn--outline {
  background: transparent;
  color: white;
  border-color: var(--color-border-hover);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: white;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Button shimmer */
.btn-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}

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

/* ---------- Section Common ---------- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.06);
}

.section-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-description {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 100px);
  padding-bottom: 60px;
  overflow: hidden;
  z-index: 1;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
}

.hero-title {
  font-size: clamp(36px, 7vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
  animation: fadeInUp 0.6s ease-out backwards;
}

.hero-title-line:nth-child(1) { animation-delay: 0.1s; }
.hero-title-line:nth-child(2) { animation-delay: 0.2s; }
.hero-title-line:nth-child(3) { animation-delay: 0.3s; }

.hero-title-line--accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent), #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--color-text-muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-weight: 300;
  animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

.hero-btn {
  position: relative;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.6s backwards;
}

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

.hero-stat-number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, white, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--color-text-subtle);
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* Hero Visual — Terminal */
.hero-visual {
  max-width: 700px;
  margin: 60px auto 0;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out 0.7s backwards;
}

.hero-visual-window {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dot--red { background: #ef4444; }
.window-dot--yellow { background: #f59e0b; }
.window-dot--green { background: #10b981; }

.window-title {
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-subtle);
}

.window-content {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
}

.terminal-line {
  opacity: 0;
  animation: typeIn 0.4s ease-out forwards;
  animation-delay: var(--delay);
}

.terminal-prompt {
  color: var(--color-success);
  margin-right: 8px;
}

.terminal-command {
  color: white;
}

.terminal-output {
  padding-left: 20px;
}

.terminal-output--info {
  color: var(--color-text-muted);
}

.terminal-output--success {
  color: var(--color-success);
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--color-primary);
  animation: blink 1s infinite;
  vertical-align: middle;
}

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

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Hero Wave */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 120px;
}

/* ---------- Trusted By ---------- */
.trusted {
  padding: 60px 0;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trusted-label {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-text-subtle);
  margin-bottom: 32px;
}

.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 60px);
  flex-wrap: wrap;
}

.trusted-logo {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.trusted-logo:hover {
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Features ---------- */
.features {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.feature-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover .feature-card-glow {
  opacity: 1;
}

.feature-card--large {
  grid-column: 1 / -1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon--purple {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
}

.feature-icon--blue {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}

.feature-icon--emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

.feature-icon--amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.feature-icon--rose {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
}

.feature-icon--cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-description {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Feature Visual — Code Block */
.feature-visual {
  margin-top: 24px;
}

.code-block {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
}

.code-keyword { color: #c084fc; }
.code-var { color: #60a5fa; }
.code-func { color: #fbbf24; }
.code-prop { color: #34d399; }
.code-string { color: #fb923c; }
.code-bool { color: #f472b6; }

/* ---------- How It Works ---------- */
.how-it-works {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 1;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}

.step:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.step-number {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.step-connector {
  display: none;
}

.step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.step-description {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Step Visuals */
.step-visual {
  margin-top: 16px;
}

/* Connection Dots */
.connection-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 0;
}

.dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  position: relative;
}

.dot--github {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.dot--github::after { content: '⚡'; }

.dot--devtech {
  background: rgba(99, 102, 241, 0.2);
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 20px var(--color-primary-glow);
}
.dot--devtech::after { content: 'D'; font-size: 16px; color: var(--color-primary); }

.dot--cloud {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.dot--cloud::after { content: '☁'; }

.dot-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-border), var(--color-primary), var(--color-border));
  animation: flowLine 2s infinite;
}

@keyframes flowLine {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

/* Analysis Bars */
.analysis-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.analysis-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.analysis-bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--width);
  background: color-mix(in srgb, var(--color) 15%, transparent);
  border-radius: var(--radius-sm);
  animation: barFill 1.5s ease-out;
}

@keyframes barFill {
  from { width: 0; }
}

.analysis-bar span {
  position: relative;
  z-index: 1;
}

.analysis-bar span:last-child {
  color: var(--color);
  font-weight: 700;
}

/* Deploy Status */
.deploy-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deploy-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.deploy-item--success {
  color: var(--color-success);
}

.deploy-item--active {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--color-primary-hover);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.2); }
  50% { box-shadow: 0 0 20px 0 rgba(99, 102, 241, 0.1); }
}

.deploy-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* ---------- Pricing ---------- */
.pricing {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 1;
}

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

.pricing-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.pricing-card--featured {
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.06), var(--color-surface));
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.1) inset;
}

.pricing-card--featured:hover {
  border-color: rgba(99, 102, 241, 0.5);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 16px;
  border-radius: var(--radius-full);
}

.pricing-header {
  margin-bottom: 24px;
}

.pricing-tier {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pricing-desc {
  font-size: 14px;
  color: var(--color-text-muted);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.pricing-currency {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.pricing-amount {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-amount--custom {
  font-size: 36px;
}

.pricing-period {
  font-size: 14px;
  color: var(--color-text-muted);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 14px;
  color: var(--color-text-muted);
  padding-left: 28px;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.pricing-btn {
  width: 100%;
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}

.testimonial-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
}

.testimonial-role {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---------- CTA Section ---------- */
.cta {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 1;
}

.cta-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.15), transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-description {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-form {
  max-width: 500px;
  margin: 0 auto;
}

.cta-input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-input {
  width: 100%;
  height: 48px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: 14px;
  color: white;
  outline: none;
  transition: border-color 0.2s;
}

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

.cta-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.cta-submit {
  width: 100%;
}

.cta-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-subtle);
}

/* ---------- Footer ---------- */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 280px;
}

.footer-tagline {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--color-text-muted);
  padding: 6px 0;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--color-text-subtle);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all 0.2s;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

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

/* Intersection Observer animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Responsive ---------- */

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

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

  .pricing-card:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .testimonial-card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .cta-input-group {
    flex-direction: row;
  }

  .cta-submit {
    width: auto;
    flex-shrink: 0;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .step {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .step-visual {
    margin-top: 0;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .header-actions {
    display: flex;
  }

  .mobile-toggle {
    display: none;
  }
}

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

  .feature-card--large {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .feature-card--large .feature-visual {
    margin-top: 0;
    display: flex;
    align-items: center;
  }

  .feature-card--large .code-block {
    width: 100%;
  }

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

  .pricing-card:last-child {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }

  .pricing-card--featured {
    transform: scale(1.05);
  }

  .pricing-card--featured:hover {
    transform: scale(1.05) translateY(-4px);
  }

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

  .testimonial-card:last-child {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }
}

/* Large */
@media (min-width: 1280px) {
  .container {
    padding: 0 40px;
  }
}

/* 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;
  }
}
