/* =============================================
   Cookies Clone — Landing Page Styles
   ============================================= */

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

/* --- Variables --- */
:root {
  --bg-primary: #050816;
  --bg-secondary: #0a0f24;
  --bg-card: #111936;
  --bg-card-hover: #182040;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent2: #06b6d4;
  --gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --gradient-text: linear-gradient(135deg, #818cf8 0%, #22d3ee 100%);
  --border: rgba(99, 102, 241, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: rgba(5, 8, 22, 0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.navbar.scrolled { border-bottom-color: var(--border); background: rgba(5,8,22,0.9); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.navbar-logo { width: 32px; height: 32px; border-radius: 8px; }
.navbar-links { display: flex; align-items: center; gap: 32px; }
.navbar-links a { font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: var(--transition); }
.navbar-links a:hover { color: var(--text-primary); }
.navbar-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
  width: 36px; height: 36px; align-items: center; justify-content: center;
  border-radius: 8px;
  transition: background var(--transition);
}
.navbar-toggle:hover { background: rgba(255,255,255,0.06); }
.navbar-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
/* Hamburger → X animation */
.navbar-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column; gap: 4px;
  padding: 0 24px;
  max-height: 0; overflow: hidden;
  opacity: 0;
  transition: max-height 400ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 300ms ease,
              padding 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
  max-height: 360px; opacity: 1;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  font-size: 15px; color: var(--text-secondary); font-weight: 500;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color var(--transition);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--text-primary); }
.mobile-menu .btn-nav { margin-top: 8px; text-align: center; justify-content: center; }

@media (max-width: 768px) {
  .navbar { padding: 12px 0; }
  .navbar-links { display: none; }
  .navbar-toggle { display: flex; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border: none; border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 12px; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 4px 16px rgba(99,102,241,0.35); }
.btn-primary:hover { box-shadow: 0 6px 24px rgba(99,102,241,0.5); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); background: rgba(99,102,241,0.08); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.navbar-links .btn-nav,
.mobile-menu .btn-nav,
.btn-nav {
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
  color: #0a0a0a;
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(255,255,255,0.2), 0 2px 8px rgba(0,0,0,0.3);
  letter-spacing: 0.02em;
  transition: all var(--transition);
}
.navbar-links .btn-nav:hover,
.mobile-menu .btn-nav:hover,
.btn-nav:hover {
  background: #f1f1f1;
  color: #0a0a0a;
  box-shadow: 0 0 24px rgba(255,255,255,0.35), 0 4px 12px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

/* --- Hero --- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4;
}
.hero-orb-1 { width: 600px; height: 600px; background: rgba(99,102,241,0.25); top: -20%; left: -10%; animation: float 8s ease-in-out infinite; }
.hero-orb-2 { width: 400px; height: 400px; background: rgba(6,182,212,0.2); bottom: -10%; right: -5%; animation: float 10s ease-in-out infinite reverse; }
.hero-orb-3 { width: 300px; height: 300px; background: rgba(168,85,247,0.15); top: 40%; left: 50%; animation: float 12s ease-in-out infinite; }

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

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
  border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--accent-hover); margin-bottom: 24px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; animation: pulse-d 2s infinite; }
@keyframes pulse-d { 0%,100%{opacity:1}50%{opacity:.4} }
.hero-title { font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; }
.hero-desc { font-size: 17px; color: var(--text-secondary); max-width: 480px; margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 32px; }
.stat { text-align: center; }
.stat-number { font-size: 28px; font-weight: 800; color: var(--text-primary); }
.stat-suffix { font-size: 16px; font-weight: 700; color: var(--accent-hover); }
.stat-label { display: block; font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.stat-divider { width: 1px; background: var(--border); }

.hero-wave { position: absolute; bottom: -2px; left: 0; right: 0; z-index: 2; }
.hero-wave svg { display: block; width: 100%; height: 80px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
}
@media (max-width: 480px) {
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-title { font-size: 28px; }
  .hero-desc { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn-lg { width: 100%; justify-content: center; }
  .hero-stats { gap: 20px; }
  .stat-number { font-size: 22px; }
  .section-title { font-size: 24px; }
  .features { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .feature-card { padding: 24px; }
  .how-it-works { padding: 60px 0; }
  .step { gap: 16px; }
  .step-number { width: 40px; height: 40px; font-size: 16px; }
  .download { padding: 60px 0; }
  .download-card { padding: 32px 20px; }
  .download-actions { flex-direction: column; align-items: center; }
  .download-actions .btn-lg { width: 100%; justify-content: center; }
}

/* --- Browser Mockup (Hero) --- */
.browser-mockup {
  background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 60px rgba(99,102,241,0.08); overflow: hidden;
}
.browser-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.2); }
.browser-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; } .dot.yellow { background: #f59e0b; } .dot.green { background: #10b981; }
.browser-address { flex:1; display:flex; align-items:center; gap:6px; padding:6px 12px; background:rgba(255,255,255,0.04); border-radius:6px; font-size:12px; color:var(--text-muted); }
.browser-body { padding: 16px; }

/* Extension popup inside mockup */
.extension-popup { background: #0a0e1a; border-radius: 12px; padding: 16px; border: 1px solid rgba(99,102,241,0.15); }
.ext-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ext-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.ext-title { font-size: 15px; font-weight: 700; background: var(--gradient-text); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.ext-subtitle { font-size: 10px; color: var(--text-muted); }
.ext-domain { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(99,102,241,0.12); border-radius: 999px; font-size: 11px; color: var(--text-secondary); margin-bottom: 12px; }
.ext-dot { width: 5px; height: 5px; border-radius: 50%; background: #10b981; }
.ext-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.ext-tab { flex:1; text-align:center; padding:8px; font-size:11px; font-weight:600; border-radius:8px 8px 0 0; color:var(--text-muted); }
.ext-tab.active { background:var(--bg-card); color:var(--text-primary); }
.ext-card { background:var(--bg-card); border:1px solid var(--border); border-radius:10px; padding:12px; margin-bottom:10px; }
.ext-card-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:4px; }
.ext-label { font-size:9px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-muted); font-weight:600; }
.ext-count { padding:3px 8px; background:var(--gradient); border-radius:999px; font-size:10px; font-weight:700; color:#fff; }
.ext-card-domain { font-size:14px; font-weight:600; }
.ext-btn { padding:10px; border-radius:8px; text-align:center; font-size:12px; font-weight:600; margin-bottom:6px; }
.ext-btn-primary { background:var(--gradient); color:#fff; }
.ext-btn-secondary { background:var(--bg-card); color:var(--text-primary); border:1px solid var(--border); }

/* --- Features --- */
.features { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-badge {
  display: inline-block; padding: 6px 16px; background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--accent-hover); margin-bottom: 20px;
}
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px; }
.section-desc { font-size: 16px; color: var(--text-secondary); max-width: 520px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; transition: all var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background:var(--gradient); opacity:0; transition:var(--transition);
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,0.25); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }
@media (min-width: 769px) and (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- How It Works --- */
.how-it-works { padding: 100px 0; background: var(--bg-secondary); }
.steps { max-width: 640px; margin: 0 auto; }
.step { display: flex; gap: 24px; align-items: flex-start; }
.step-number {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #fff; box-shadow: 0 0 24px rgba(99,102,241,0.3);
}
.step-content { flex: 1; }
.step-icon-wrapper { margin-bottom: 12px; }
.step-icon { font-size: 28px; }
.step-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.step-connector { display: flex; justify-content: center; padding: 16px 0; color: var(--text-muted); padding-left: 12px; }

/* Step visuals */
.step-browser { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.step-browser-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.2); }
.step-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); }
.step-url { font-size: 11px; color: var(--text-muted); margin-left: 8px; }
.step-browser-body { padding: 16px; text-align: center; }
.step-action { font-size: 13px; color: var(--text-secondary); padding: 8px; }
.step-success { color: #10b981; }
.step-json { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.step-json code { font-size: 11px; color: var(--accent-hover); word-break: break-all; }

/* --- Download --- */
.download { padding: 100px 0; }
.download-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 64px 48px; text-align: center; overflow: hidden;
}
.download-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.download-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3; }
.download-orb-1 { width: 300px; height: 300px; background: rgba(99,102,241,0.3); top: -30%; left: -10%; }
.download-orb-2 { width: 250px; height: 250px; background: rgba(6,182,212,0.25); bottom: -30%; right: -5%; }
.download-content { position: relative; z-index: 1; }
.download-title { font-size: clamp(28px, 4vw, 38px); font-weight: 800; margin-bottom: 16px; }
.download-desc { font-size: 16px; color: var(--text-secondary); max-width: 480px; margin: 0 auto 32px; }
.download-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.download-note { font-size: 12px; color: var(--text-muted); }

@media (max-width: 600px) { .download-card { padding: 40px 24px; } }

/* --- Footer --- */
.footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.footer-logo { width: 24px; height: 24px; border-radius: 6px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { font-size: 12px; color: var(--text-muted); }
.footer-copy a { color: var(--accent-hover); }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* --- Animations --- */
[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }
