/* ============================================
   GrabFlow — Landing Page
   Refined Dark Premium UI
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Refined dark palette — NOT pitch black, warm dark tones */
  --bg-body: #111118;
  --bg-surface: #18181f;
  --bg-elevated: #1e1e28;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-strong: rgba(255, 255, 255, 0.08);

  --text-primary: #eeeef2;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b82;

  --accent-purple: #8b5cf6;
  --accent-cyan: #22d3ee;
  --accent-pink: #ec4899;
  --accent-green: #34d399;
  --accent-amber: #fbbf24;
  --accent-red: #f87171;

  --gradient-brand: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --gradient-brand-hover: linear-gradient(135deg, #7c3aed 0%, #0891b2 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.06));

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(139, 92, 246, 0.25);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.15);
  --shadow-glow-strong: 0 0 60px rgba(139, 92, 246, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1100px;
  --nav-height: 64px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Gradient text utility */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.25);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.4);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  background: rgba(17, 17, 24, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(17, 17, 24, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-glow);
}

.nav-logo-sm {
  width: 28px;
  height: 28px;
}

.nav-title {
  font-size: 18px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--text-primary);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--gradient-brand);
  color: white;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.3);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(17, 17, 24, 0.98);
  backdrop-filter: blur(20px);
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 999;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.mobile-link:hover,
.mobile-link.cta {
  color: var(--text-primary);
}

.mobile-link.cta {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

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

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

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(139, 92, 246, 0.2);
  top: -10%;
  right: -5%;
  animation: orbFloat1 12s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(6, 182, 212, 0.15);
  bottom: -5%;
  left: -5%;
  animation: orbFloat2 15s ease-in-out infinite;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(236, 72, 153, 0.1);
  top: 40%;
  left: 50%;
  animation: orbFloat3 10s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.1); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, -30px) scale(0.95); }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s ease backwards;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.1s backwards;
}

.hero-desc {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease 0.3s backwards;
  flex-wrap: wrap;
}

/* Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gradient-brand);
  color: white;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.45);
}

.btn-primary:hover::before {
  opacity: 1;
}

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

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

/* Secondary Button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--bg-glass);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-glass-strong);
  color: var(--text-primary);
  border-color: var(--border-accent);
  transform: translateY(-1px);
}

/* Ghost Button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
  border-radius: var(--radius-full);
}

.btn-ghost:hover {
  color: var(--text-secondary);
  background: var(--bg-glass);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  animation: fadeInUp 0.6s ease 0.4s backwards;
  flex-wrap: wrap;
}

.hero-stars {
  display: flex;
  align-items: center;
  gap: 3px;
}

.star-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 6px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--border-subtle);
}

.stat-items {
  display: flex;
  gap: 28px;
}

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

.stat-value {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

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

/* ============================================
   SECTION COMMON
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: var(--gradient-subtle);
  border: 1px solid var(--border-accent);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 12px auto 0;
  line-height: 1.6;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  padding: 100px 0;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--icon-color, #8b5cf6), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--icon-color, #8b5cf6) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--icon-color, #8b5cf6);
  border: 1px solid color-mix(in srgb, var(--icon-color, #8b5cf6) 15%, transparent);
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
  transform: scale(1.05);
  box-shadow: 0 0 20px color-mix(in srgb, var(--icon-color, #8b5cf6) 20%, transparent);
}

.feature-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-surface);
  position: relative;
}

.how-it-works::before,
.how-it-works::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.how-it-works::before { top: 0; }
.how-it-works::after { bottom: 0; }

.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.step-card {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: all var(--transition-smooth);
}

.step-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: white;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.4);
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 20px;
  color: var(--accent-purple);
  border: 1px solid var(--border-accent);
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-connector {
  flex-shrink: 0;
  opacity: 0.5;
}

/* ============================================
   BROWSERS SECTION
   ============================================ */
.browsers {
  padding: 100px 0;
  position: relative;
}

.browser-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.browser-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
  min-width: 120px;
}

.browser-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.browser-icon {
  font-size: 32px;
  line-height: 1;
}

.browser-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
  padding: 100px 0;
  background: var(--bg-surface);
  position: relative;
}

.faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

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

.faq-item {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  border-color: var(--border-accent);
}

.faq-item.active {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: color var(--transition-fast);
}

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

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-purple);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth), padding var(--transition-smooth);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 80px 0 100px;
}

.cta-card {
  position: relative;
  padding: 64px 40px;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  text-align: center;
  overflow: hidden;
}

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

.orb-cta-1 {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  filter: blur(80px);
  top: -30%;
  right: -10%;
}

.orb-cta-2 {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  filter: blur(80px);
  bottom: -30%;
  left: -10%;
}

.cta-title {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  letter-spacing: -1px;
}

.cta-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  position: relative;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-body);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-name {
  font-size: 15px;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  animation: modalIn 0.3s ease;
  box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-glass);
  color: var(--text-muted);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  line-height: 1;
}

.modal-close:hover {
  background: var(--bg-glass-strong);
  color: var(--text-primary);
}

.modal-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 1px solid var(--border-accent);
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  text-align: left;
}

.modal-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: all var(--transition-normal);
}

.modal-step.step-done {
  border-color: var(--accent-green);
  background: rgba(52, 211, 153, 0.05);
}

.modal-step.step-done .modal-step-num {
  background: var(--accent-green);
}

.modal-step.step-active {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.07);
}

.modal-step-num {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: white;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.modal-step-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.btn-modal-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-size: 13px;
  border-radius: var(--radius-md);
  width: 100%;
  justify-content: center;
}

.btn-install-now {
  background: linear-gradient(135deg, #34d399, #059669);
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.3);
}

.btn-install-now:hover {
  box-shadow: 0 6px 24px rgba(52, 211, 153, 0.45);
  transform: translateY(-2px);
}

.btn-modal {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 14px;
  border-radius: var(--radius-md);
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .steps-grid {
    flex-direction: column;
    gap: 16px;
  }

  .step-connector {
    transform: rotate(90deg);
  }

  .step-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-title {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

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

  .cta-card {
    padding: 40px 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .browser-grid {
    gap: 10px;
  }

  .browser-card {
    padding: 16px 20px;
    min-width: 90px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn-primary {
    width: 100%;
    justify-content: center;
  }
}
