:root {
  --bg: #0E0E18;
  --bg-dark: #09090F;
  --card: #16162A;
  --card-alt: #1E1E34;
  --purple: #7C6FF7;
  --blue: #5B8AF0;
  --lilac: #A89EFF;
  --purple-soft: #9B8EFF;
  --green: #34D399;
  --green-deep: #22C55E;
  --lime: #4ADE80;
  --cyan: #38BDF8;
  --cyan-deep: #0EA5E9;
  --amber: #FBBF24;
  --amber-deep: #F59E0B;
  --red: #F87171;
  --red-deep: #EF4444;
  --text: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-dim: rgba(255, 255, 255, 0.35);
  --text-faint: rgba(255, 255, 255, 0.2);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --gradient: linear-gradient(135deg, #7C6FF7, #5B8AF0);
  --gradient-soft: linear-gradient(135deg, rgba(124, 111, 247, 0.15), rgba(91, 138, 240, 0.08));
  --shadow-purple: 0 12px 40px rgba(124, 111, 247, 0.25);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --max-width: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "Fira Code", "Cascadia Code", Menlo, Monaco, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--lilac); }

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

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(14, 14, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.navbar.scrolled { background: rgba(14, 14, 24, 0.95); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.nav-logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; box-shadow: 0 4px 16px rgba(124, 111, 247, 0.4);
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--gradient); color: var(--text); padding: 9px 20px;
  border-radius: 9px; font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(124, 111, 247, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124, 111, 247, 0.4); color: var(--text); }
.mobile-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  position: relative; padding: 140px 0 100px; text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 111, 247, 0.18), transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 100px; font-size: 12px; font-weight: 600;
  background: var(--gradient-soft); border: 1px solid rgba(124, 111, 247, 0.25);
  color: var(--lilac); margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px); font-weight: 900; line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 24px;
}
.hero h1 .grad {
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p {
  font-size: clamp(15px, 2vw, 19px); color: var(--text-muted);
  max-width: 580px; margin: 0 auto 40px; line-height: 1.65;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 12px; font-size: 14px; font-weight: 700;
  transition: all 0.25s; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--gradient); color: var(--text);
  box-shadow: var(--shadow-purple);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(124, 111, 247, 0.35); color: var(--text); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.06); color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); color: var(--text); }

/* ===== Hero Stats ===== */
.hero-stats {
  display: flex; justify-content: center; gap: 48px;
  margin-top: 72px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-value { font-size: 36px; font-weight: 900; color: var(--text); }
.stat-value.grad { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 12px; color: var(--text-dim); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

/* ===== Section ===== */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--lilac); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-subtitle { font-size: 16px; color: var(--text-muted); max-width: 540px; margin: 0 auto; }

/* ===== Features Grid ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: all 0.3s; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--bar-color, var(--gradient)); opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 22px; margin-bottom: 20px;
  background: var(--icon-bg, rgba(124, 111, 247, 0.13)); color: var(--icon-color, var(--purple));
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Color variants */
.feature-card.c-purple { --bar-color: linear-gradient(90deg, #7C6FF7, #9B8EFF); --icon-color: #7C6FF7; --icon-bg: rgba(124, 111, 247, 0.13); }
.feature-card.c-amber { --bar-color: linear-gradient(90deg, #FBBF24, #F59E0B); --icon-color: #FBBF24; --icon-bg: rgba(251, 191, 36, 0.13); }
.feature-card.c-green { --bar-color: linear-gradient(90deg, #34D399, #22C55E); --icon-color: #34D399; --icon-bg: rgba(52, 211, 153, 0.13); }
.feature-card.c-cyan { --bar-color: linear-gradient(90deg, #38BDF8, #0EA5E9); --icon-color: #38BDF8; --icon-bg: rgba(56, 189, 248, 0.13); }
.feature-card.c-lime { --bar-color: linear-gradient(90deg, #4ADE80, #22C55E); --icon-color: #4ADE80; --icon-bg: rgba(74, 222, 128, 0.13); }
.feature-card.c-red { --bar-color: linear-gradient(90deg, #F87171, #EF4444); --icon-color: #F87171; --icon-bg: rgba(248, 113, 113, 0.13); }

/* ===== Categories ===== */
.categories-band { background: var(--bg-dark); padding: 80px 0; }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-item {
  text-align: center; padding: 28px 16px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--border); transition: all 0.3s;
}
.cat-item:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.cat-icon { font-size: 32px; margin-bottom: 12px; }
.cat-name { font-size: 14px; font-weight: 600; }
.cat-desc { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 720px; margin: 0 auto; }
.price-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px; position: relative; transition: all 0.3s;
}
.price-card:hover { border-color: var(--border-hover); }
.price-card.pro {
  background: linear-gradient(135deg, #211B47, #181833);
  border-color: rgba(124, 111, 247, 0.35); border-width: 1.5px;
  box-shadow: var(--shadow-purple);
}
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: var(--text); font-size: 10px; font-weight: 700;
  padding: 5px 16px; border-radius: 100px; letter-spacing: 1px;
}
.price-tier { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 10px; }
.price-card.pro .price-tier { color: var(--lilac); }
.price-amount { font-size: 42px; font-weight: 900; display: flex; align-items: baseline; gap: 4px; }
.price-amount span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.price-billing { font-size: 12px; color: var(--text-dim); margin-top: 6px; margin-bottom: 28px; }
.price-features { list-style: none; margin-bottom: 28px; }
.price-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 8px 0; color: var(--text-muted); }
.price-features li.included { color: rgba(255, 255, 255, 0.75); }
.price-features li .check {
  width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 10px; flex-shrink: 0;
}
.price-features li.included .check { background: rgba(52, 211, 153, 0.18); color: var(--green); }
.price-features li.included.pro .check { background: rgba(124, 111, 247, 0.25); color: var(--lilac); }
.price-features li:not(.included) .check { background: rgba(255, 255, 255, 0.06); color: var(--text-faint); }
.price-card .btn { width: 100%; justify-content: center; }
.price-note { text-align: center; font-size: 12px; color: var(--text-dim); margin-top: 28px; }

/* Billing toggle */
.billing-toggle {
  display: inline-flex; padding: 4px; border-radius: 10px; background: rgba(255, 255, 255, 0.04);
  margin: 0 auto 40px; gap: 2px;
}
.billing-toggle button {
  background: none; border: none; color: var(--text-muted); font-size: 13px; font-weight: 600;
  padding: 8px 20px; border-radius: 8px; cursor: pointer; transition: all 0.2s; font-family: var(--font);
}
.billing-toggle button.active { background: rgba(255, 255, 255, 0.08); color: var(--text); }

/* ===== Safety Section ===== */
.safety-section { background: var(--bg-dark); }
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.safety-list { list-style: none; }
.safety-list li {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.safety-list li:last-child { border-bottom: none; }
.safety-check {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: rgba(52, 211, 153, 0.15); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.safety-text strong { display: block; font-size: 15px; margin-bottom: 2px; }
.safety-text span { font-size: 13px; color: var(--text-muted); }

/* ===== App Preview ===== */
.app-preview { text-align: center; padding: 80px 0; }
.app-window {
  max-width: 900px; margin: 0 auto; border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); border: 1px solid var(--border);
  background: var(--bg);
}
.app-titlebar {
  height: 40px; background: #10101A; display: flex; align-items: center;
  padding: 0 16px; gap: 8px; border-bottom: 1px solid var(--border);
}
.app-dot { width: 12px; height: 12px; border-radius: 50%; }
.app-dot.red { background: #FF5F57; }
.app-dot.yellow { background: #FEBC2E; }
.app-dot.green { background: #28C840; }
.app-body { padding: 32px; display: grid; grid-template-columns: 200px 1fr; gap: 0; min-height: 380px; }
.app-sidebar { border-right: 1px solid var(--border); padding-right: 20px; }
.app-sidebar-item { padding: 8px 12px; border-radius: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.app-sidebar-item.active { background: rgba(124, 111, 247, 0.12); color: var(--text); }
.app-main { padding-left: 24px; }
.app-hero-card {
  background: linear-gradient(135deg, #211B47, #181833); border-radius: 14px;
  padding: 24px; margin-bottom: 20px; border: 1px solid rgba(124, 111, 247, 0.22);
}
.app-hero-card h4 { font-size: 13px; color: var(--lilac); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.app-hero-card .big { font-size: 32px; font-weight: 900; }
.app-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--card); border-radius: 10px; margin-bottom: 8px;
  border: 1px solid var(--border);
}
.app-row-label { font-size: 13px; }
.app-row-size { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.app-bar { width: 100px; height: 5px; border-radius: 100px; background: rgba(255, 255, 255, 0.06); margin-right: 12px; overflow: hidden; }
.app-bar-fill { height: 100%; border-radius: 100px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; background: var(--bg-dark); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-text { font-weight: 700; font-size: 15px; }
.footer-desc { font-size: 13px; color: var(--text-dim); max-width: 280px; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; color: var(--text-muted); }
.footer-col a:hover { color: var(--lilac); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 12px; color: var(--text-dim); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 12px; color: var(--text-dim); }

/* ===== Legal Pages ===== */
.legal { padding: 120px 0 80px; }
.legal-header { margin-bottom: 48px; }
.legal-header h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.legal-header .updated { font-size: 13px; color: var(--text-dim); }
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 22px; font-weight: 700; margin: 40px 0 16px; }
.legal-content h3 { font-size: 17px; font-weight: 600; margin: 28px 0 12px; }
.legal-content p { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.75; }
.legal-content ul { margin: 12px 0 20px 20px; }
.legal-content li { font-size: 15px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.7; }
.legal-content strong { color: var(--text); }
.legal-content a { color: var(--lilac); text-decoration: underline; }

/* ===== CTA Section ===== */
.cta-section {
  text-align: center; padding: 100px 0; position: relative; overflow: hidden;
}
.cta-bg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 111, 247, 0.12), transparent 70%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 16px; }
.cta-content p { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; }

/* ===== Animations ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .safety-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .app-body { grid-template-columns: 160px 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); padding: 24px; border-bottom: 1px solid var(--border); gap: 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .app-body { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .section { padding: 70px 0; }
  .hero { padding: 110px 0 70px; }
}
