/* ===== Design Tokens ===== */
/* Synced with app DarkColors (Ui/constants/theme.ts) */
:root {
  --bg: #0a0a0b;
  --bg-surface: #111113;
  --bg-elevated: #16161a;
  --bg-card: rgba(255,255,255,0.03);
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dim: rgba(99,102,241,0.12);
  --accent-glow: rgba(99,102,241,0.15);
  --cyan: #06b6d4;
  --cyan-dim: rgba(6,182,212,0.12);
  --amber: #f97316;
  --amber-dim: rgba(249,115,22,0.12);
  --rose: #f43f5e;
  --rose-dim: rgba(244,63,94,0.12);
  --emerald: #22c55e;
  --emerald-dim: rgba(34,197,94,0.12);
  --blue: #3b82f6;
  --blue-dim: rgba(59,130,246,0.12);
  --pink: #ec4899;
  --pink-dim: rgba(236,72,153,0.12);
  --yellow: #facc15;
  --yellow-dim: rgba(250,204,21,0.12);
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-tertiary: #71717a;
  --border: #27272a;
  --border-subtle: #1f1f23;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

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

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

/* ===== Ambient Background ===== */
.ambient-bg {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to { transform: translate(60px,40px) scale(1.1); }
}
.logo-ui {
  width: 36px;
  height: 36px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.3s ease;
}
.nav-logo:hover .logo-ui {
  transform: scale(1.05) rotate(-5deg);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.logo-ui svg { width: 18px; height: 18px; }


/* ===== Navigation ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
nav.scrolled {
  padding: 0.75rem 0;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--text);
  font-weight: 800; font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.logo-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.9rem;
  font-weight: 500; transition: all 0.2s ease;
  padding: 0.5rem 0;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-menu-btn span {
  width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; top: 70px; left: 0; right: 0;
  background: rgba(10,10,11,0.95); backdrop-filter: blur(20px);
  padding: 2rem; flex-direction: column; gap: 1.5rem; z-index: 99;
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  color: var(--text-muted); text-decoration: none; font-size: 1.1rem;
  font-weight: 500; transition: color 0.2s;
}
.mobile-link:hover { color: var(--text); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.75rem; border-radius: 12px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: all 0.3s ease; cursor: pointer; border: none;
  font-family: var(--font);
}
.btn-primary {
  background: var(--text); color: var(--bg);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.15);
}
.btn-glass {
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255,255,255,0.08); }
.btn-nav {
  background: var(--accent); color: #fff; padding: 0.6rem 1.4rem;
  border-radius: 12px; font-size: 0.85rem;
  box-shadow: 0 4px 15px var(--accent-dim);
}
.btn-nav:hover { 
  background: var(--accent-light); 
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}
.btn-glow {
  background: var(--accent);
  color: #fff;
}
.btn-glow:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.05rem; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 6rem; padding-bottom: 2rem;
}
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }

.badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 1.25rem; border-radius: 100px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--accent-light); font-weight: 500;
  margin-bottom: 2.5rem; backdrop-filter: blur(10px);
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--emerald);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 900; letter-spacing: -0.04em;
  line-height: 1.1; margin-bottom: 1.5rem; color: var(--text);
}
.gradient-text {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.8;
}

.hero .cta-group {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 4rem;
}

/* Stats */
.hero-stats {
  display: flex; justify-content: center; align-items: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
  font-size: 2.5rem; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-plus { font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-label {
  display: block; font-size: 0.8rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.25rem;
}
.stat-divider {
  width: 1px; height: 40px; background: var(--border);
}


/* ===== Section Headers ===== */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--accent-light); margin-bottom: 1rem;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.2;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.1rem; color: var(--text-muted); max-width: 550px; margin: 0 auto;
}

/* ===== Features Grid ===== */
.features { padding: 7rem 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  position: relative; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 2.25rem; border-radius: 20px;
  transition: all 0.4s ease;
}
.feature-card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-4px);
  background: rgba(255,255,255,0.04);
}


.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-dim); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-icon-cyan { background: var(--cyan-dim); color: var(--cyan); }
.feature-icon-amber { background: var(--amber-dim); color: var(--amber); }
.feature-icon-rose { background: var(--rose-dim); color: var(--rose); }
.feature-icon-emerald { background: var(--emerald-dim); color: var(--emerald); }
.feature-icon-blue { background: var(--blue-dim); color: var(--blue); }

.feature-card h3 {
  font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem;
}
.feature-card p {
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.7;
}

/* ===== Law Showcase ===== */
.laws-showcase { padding: 7rem 0; }
.law-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.law-card {
  position: relative; padding: 2.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; transition: all 0.4s ease;
  overflow: hidden;
}
.law-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.law-number {
  font-size: 3rem; font-weight: 900; color: rgba(99,102,241,0.1);
  position: absolute; top: 1rem; right: 1.5rem;
  font-family: var(--mono);
}
.law-card h3 {
  font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem;
}
.law-card blockquote {
  font-style: italic; color: var(--cyan);
  border-left: 2px solid var(--accent); padding-left: 1rem;
  margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.6;
}
.law-card > p {
  color: var(--text-muted); font-size: 0.9rem; line-height: 1.7;
  margin-bottom: 1.25rem;
}
.law-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag {
  font-size: 0.75rem; font-weight: 500; padding: 0.3rem 0.8rem;
  border-radius: 100px; background: var(--accent-dim); color: var(--accent-light);
}

/* ===== App Preview ===== */
.app-preview { padding: 7rem 0; }
.preview-layout {
  display: grid; grid-template-columns: 1fr;
  gap: 4rem; align-items: center; text-align: center;
  max-width: 800px; margin: 0 auto;
}
.preview-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.2;
  margin-bottom: 1.25rem;
}
.preview-text > p {
  color: var(--text-muted); font-size: 1.05rem; line-height: 1.8;
  margin-bottom: 2rem;
}
.preview-features {
  list-style: none; display: flex; flex-direction: column; gap: 1rem;
  align-items: center;
}
.preview-features li {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--text-muted); font-size: 0.95rem;
}
.preview-features svg { color: var(--emerald); flex-shrink: 0; }

/* Mockup */
.preview-mockup { display: flex; justify-content: center; }
.mockup-frame { position: relative; max-width: 380px; }
.mockup-glow {
  position: absolute; inset: -20px; border-radius: 40px;
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 70%);
  z-index: 0; filter: blur(20px); opacity: 0.5;
}
.mockup-image {
  position: relative; z-index: 1; width: 100%;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
}

/* ===== Download CTA ===== */
.download-cta { padding: 7rem 0; }
.cta-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(129,140,248,0.05));
  border: 1px solid rgba(99,102,241,0.15); border-radius: 28px;
  padding: 5rem 3rem; text-align: center;
}
.cta-bg-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(99,102,241,0.08) 1px, transparent 1px);
  background-size: 24px 24px; opacity: 0.5;
}
.cta-card h2 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 1rem;
  position: relative;
}
.cta-card > p {
  color: var(--text-muted); font-size: 1.1rem;
  max-width: 500px; margin: 0 auto 2.5rem; position: relative;
}
.cta-card .section-tag { position: relative; }
.cta-card .cta-group {
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  position: relative;
}
.cta-note {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text-muted);
}
.cta-note svg { color: var(--emerald); }

/* ===== Footer ===== */
footer { padding: 4rem 0 2rem; border-top: 1px solid var(--border); }
.footer-content {
  display: flex; justify-content: space-between;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand { max-width: 300px; }
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 4rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col h4 {
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.5rem;
}
.footer-col a {
  color: var(--text-muted); text-decoration: none; font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--border);
  text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid, .law-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .features-grid, .law-cards { grid-template-columns: 1fr; }
  .preview-layout { grid-template-columns: 1fr; text-align: center; }
  .preview-features { align-items: center; }
  .preview-mockup { order: -1; }
  .mockup-frame { max-width: 300px; }
  .hero .cta-group { flex-direction: column; align-items: center; }
  .hero-stats { gap: 1.5rem; }
  .stat-divider { display: none; }
  .cta-card { padding: 3rem 1.5rem; }
  .footer-content { flex-direction: column; }
  .footer-links { gap: 2rem; }
}
