/* ═══════════════════════════════════════════
   ClawDeploy – Main Stylesheet
   ═══════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --accent: #e53e3e;
  --accent-hover: #c53030;
  --accent-glow: rgba(229, 62, 62, 0.35);
  --accent-2: #ff6b35;

  --bg: #0a0a0f;
  --bg-card: #111118;
  --bg-card-hover: #16161f;
  --bg-surface: #1a1a26;
  --bg-surface-2: #222235;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  --text: #f0f0f8;
  --text-muted: #8888aa;
  --text-subtle: #555570;

  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 8px 32px var(--accent-glow);

  --font: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --nav-h: 70px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg: #f8f8fc;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f8;
  --bg-surface: #ececf8;
  --bg-surface-2: #e0e0f0;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --text: #0f0f1a;
  --text-muted: #555570;
  --text-subtle: #9999bb;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.15);
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; }

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

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover { transform: translateY(-2px); filter: brightness(1.1); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  color: var(--text-muted);
  transition: all var(--transition);
  font-size: 1.1rem;
}
.btn-ghost:hover { background: var(--bg-surface); color: var(--text); }

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 1rem;
  transition: all var(--transition);
}
.btn-ghost-white:hover { color: #fff; gap: 10px; }

.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: 14px; }

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 14px auto 0;
  font-size: 1.05rem;
}
.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(229, 62, 62, 0.1);
  border: 1px solid rgba(229, 62, 62, 0.3);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ═══════════════════════════
   NAVBAR
   ═══════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

[data-theme="light"] .navbar {
  background: rgba(248, 248, 252, 0.9);
}

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

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 800;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.3rem; }
.logo-text { letter-spacing: -0.02em; }
.logo-text.small { font-size: 0.95rem; font-weight: 700; }
.accent { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: 16px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--bg-surface); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.theme-icon { font-size: 1.1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 20px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.mobile-menu a:hover, .mobile-menu a.btn-primary { color: var(--text); }
.mobile-menu .btn-primary {
  text-align: center;
  margin-top: 8px;
  color: #fff;
}
.mobile-menu.open { display: flex; }

/* ═══════════════════════════
   HERO
   ═══════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 80px) 24px 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

[data-theme="light"] .grid-overlay {
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}
.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -200px; left: -100px;
  animation: glowPulse 8s ease-in-out infinite alternate;
}
.glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  bottom: -200px; right: -100px;
  animation: glowPulse 10s ease-in-out infinite alternate-reverse;
}

@keyframes glowPulse {
  0% { opacity: 0.3; transform: scale(1); }
  100% { opacity: 0.5; transform: scale(1.1); }
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 860px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(229, 62, 62, 0.1);
  border: 1px solid rgba(229, 62, 62, 0.25);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease both;
}

.badge-dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

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

.hero-title {
  margin-bottom: 24px;
  animation: fadeInUp 0.6s 0.1s ease both;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.75;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.4s ease both;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Visual */
.hero-visual {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0.25;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .hero-visual { display: none; }
}

/* ── Terminal Window ── */
.terminal-window {
  background: #0d0d14;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-width: 360px;
}

[data-theme="light"] .terminal-window { background: #1a1a26; }

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-title { font-size: 0.8rem; color: var(--text-subtle); font-family: var(--font-mono); margin-left: auto; }

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
}
.terminal-line {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: termLine 0.4s ease forwards;
}
.terminal-line:nth-child(1) { animation-delay: 0.2s; }
.terminal-line.delay-1 { animation-delay: 0.7s; }
.terminal-line.delay-2 { animation-delay: 1.2s; }
.terminal-line.delay-3 { animation-delay: 1.7s; }
.terminal-line.delay-4 { animation-delay: 2.2s; }

@keyframes termLine {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.t-prompt { color: var(--accent); font-weight: 700; }
.t-cmd { color: #7dd3fc; }
.t-info { color: var(--success); }
.t-success { color: var(--success); font-weight: 600; }
.t-error { color: var(--error); }

.terminal-cursor {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--accent);
  animation: cursorBlink 1s step-end infinite;
  vertical-align: middle;
  margin-top: 4px;
}
.terminal-cursor-inline {
  color: var(--accent);
  animation: cursorBlink 1s step-end infinite;
}

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

.floating {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

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

/* ═══════════════════════════
   PROBLEM / SOLUTION
   ═══════════════════════════ */
.problem-solution {
  padding: 100px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}

.ps-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
}
.problem-card { border-color: rgba(239, 68, 68, 0.2); }
.solution-card { border-color: rgba(34, 197, 94, 0.2); }

.ps-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--error);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.ps-badge.success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
  color: var(--success);
}

.error-terminal { margin-bottom: 24px; }

/* Dashboard Preview */
.dashboard-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}
.status-badge.online {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.metrics-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.metric {
  flex: 1;
  text-align: center;
  background: var(--bg-surface);
  padding: 12px 8px;
  border-radius: 8px;
}
.metric-val {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}
.metric-label { font-size: 0.72rem; color: var(--text-muted); }

.activity-log { display: flex; flex-direction: column; gap: 6px; }
.log-item {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  padding: 6px 10px;
  border-radius: 6px;
}
.success-log { background: rgba(34, 197, 94, 0.08); color: var(--success); }
.info-log { background: rgba(59, 130, 246, 0.08); color: var(--info); }

.problem-list, .solution-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}
.problem-list li { color: var(--text-muted); }
.solution-list li { color: var(--text); font-weight: 500; }

.ps-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.arrow-icon {
  width: 56px; height: 56px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-accent);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.arrow-text { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; }

/* ═══════════════════════════
   FEATURES
   ═══════════════════════════ */
.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(229,62,62,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  border-color: rgba(229, 62, 62, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-card:hover::before { opacity: 1; }

.feature-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(229,62,62,0.08) 0%, var(--bg-card) 50%);
  border-color: rgba(229, 62, 62, 0.25);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 16px;
}
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  padding: 4px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ═══════════════════════════
   HOW IT WORKS
   ═══════════════════════════ */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex;
  gap: 0;
  position: relative;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-connector {
  position: absolute;
  top: 40px;
  left: calc(50% + 40px);
  right: calc(-50% + 40px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  z-index: 0;
}

.step-number {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(229, 62, 62, 0.08);
  line-height: 1;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  letter-spacing: -0.05em;
}

.step-content {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  z-index: 1;
  transition: all var(--transition);
  width: 100%;
}
.step-content:hover {
  border-color: rgba(229, 62, 62, 0.3);
  transform: translateY(-4px);
}

.step-icon { font-size: 2.5rem; margin-bottom: 16px; }
.step-content h3 { margin-bottom: 10px; }
.step-content p { color: var(--text-muted); font-size: 0.9rem; }

/* ═══════════════════════════
   USE CASES
   ═══════════════════════════ */
.use-cases {
  padding: 100px 0;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.case-card:hover {
  border-color: rgba(229, 62, 62, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.case-icon { font-size: 2rem; margin-bottom: 16px; }
.case-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.case-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ═══════════════════════════
   PRICING
   ═══════════════════════════ */
.pricing {
  padding: 100px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.billing-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}
.toggle-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-surface-2);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.toggle-slider::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  left: 3px; top: 3px;
  transition: var(--transition);
}
input:checked + .toggle-slider { background: var(--accent); border-color: var(--accent); }
input:checked + .toggle-slider::after { transform: translateX(22px); }

.save-badge {
  padding: 2px 8px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(229,62,62,0.06) 0%, var(--bg) 60%);
  transform: scale(1.02);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-accent);
}
.pricing-card.popular:hover { transform: scale(1.02) translateY(-6px); }

.pricing-card.ultra {
  background: linear-gradient(160deg, rgba(99,102,241,0.08) 0%, var(--bg) 60%);
  border-color: rgba(99, 102, 241, 0.3);
}

.pricing-card.coffee-card {
  background: linear-gradient(160deg, rgba(180, 83, 9, 0.1) 0%, var(--bg) 60%);
  border-color: rgba(217, 119, 6, 0.35);
}

.coffee-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  background: linear-gradient(135deg, #92400e, #d97706);
  color: #fff;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(217,119,6,0.35);
}

.plan-btn.btn-coffee {
  background: linear-gradient(135deg, #92400e, #d97706);
  color: #fff;
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
}
.plan-btn.btn-coffee:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217,119,6,0.35);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-accent);
}

.plan-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.plan-icon { font-size: 1.8rem; margin-bottom: 16px; }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.price-currency { font-size: 1.2rem; font-weight: 700; color: var(--text-muted); }
.price-amount {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
}
.price-amount.custom-price {
  font-size: 1.8rem;
  color: #818cf8;
}
.price-period { font-size: 0.85rem; color: var(--text-muted); }

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.55;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 0.88rem;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.plan-features li.muted { color: var(--text-muted); }
.check { color: var(--success); font-weight: 700; flex-shrink: 0; }
.cross { color: var(--text-subtle); flex-shrink: 0; }

.plan-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
}
.plan-btn.btn-primary { background: var(--accent); color: #fff; }
.plan-btn.btn-primary:hover { background: var(--accent-hover); }
.plan-btn.btn-outline {
  border: 1.5px solid var(--border-strong);
  color: var(--text);
}
.plan-btn.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.plan-btn.btn-accent {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: #fff;
}

.pricing-note {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

/* ═══════════════════════════
   TESTIMONIALS
   ═══════════════════════════ */
.testimonials {
  padding: 100px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: all var(--transition);
}
.testi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 62, 62, 0.2);
}
.testi-card.featured-testi {
  border-color: rgba(229, 62, 62, 0.3);
  background: linear-gradient(135deg, rgba(229,62,62,0.05) 0%, var(--bg-card) 60%);
}

.testi-stars { font-size: 0.85rem; margin-bottom: 14px; }
.testi-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.9rem; }
.author-role { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ═══════════════════════════
   FAQ
   ═══════════════════════════ */
.faq {
  padding: 100px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: rgba(229, 62, 62, 0.3);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  transition: all var(--transition);
}
.faq-question:hover { color: var(--accent); }

.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--bg-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.35s;
  padding: 0 24px;
}
.faq-answer.open {
  max-height: 500px;
  padding: 0 24px 20px;
  transition: max-height 0.5s cubic-bezier(1, 0, 1, 0), padding 0.35s;
}
.faq-answer p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ═══════════════════════════
   CTA BANNER
   ═══════════════════════════ */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, #0d0d14 0%, #1a0a0a 50%, #0d0d14 100%);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .cta-banner {
  background: linear-gradient(135deg, #1a0a0a 0%, #2d0d0d 50%, #1a0a0a 100%);
}

.cta-inner {
  position: relative;
  text-align: center;
  z-index: 1;
}
.cta-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(229,62,62,0.2) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-inner h2 {
  color: #fff;
  margin-bottom: 16px;
}
.cta-inner p {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  margin-bottom: 40px;
}
.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

/* ═══════════════════════════
   FOOTER
   ═══════════════════════════ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 16px 0 24px;
  max-width: 260px;
}

.social-links {
  display: flex;
  gap: 10px;
}
.social-link {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-subtle); }

/* ═══════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ═══════════════════════════
   PARTICLES
   ═══════════════════════════ */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-100px) translateX(var(--drift)); opacity: 0; }
}

/* ═══════════════════════════
   RESPONSIVE
   ═══════════════════════════ */
@media (max-width: 1024px) {
  .feature-card.featured { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ps-grid { grid-template-columns: 1fr; }
  .ps-arrow { flex-direction: row; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions .btn-primary { display: none; }
  .hamburger { display: flex; }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }

  .hero { padding: calc(var(--nav-h) + 40px) 24px 80px; }
  .hero-stats { gap: 16px; }

  .steps { flex-direction: column; }
  .step-connector { display: none; }

  .pricing-card.popular { transform: scale(1); }
  .pricing-card.popular:hover { transform: translateY(-6px); }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions a { text-align: center; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta a { text-align: center; }
  .ps-grid { gap: 20px; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-surface-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Selection ── */
::selection { background: rgba(229, 62, 62, 0.25); color: var(--text); }
