/* ==========================================
   LOOPAI — CSS Custom Properties
   ========================================== */
:root {
  --bg-primary: #0a0f1e;
  --bg-secondary: #0d1225;
  --bg-card: #111829;
  --bg-card-hover: #161e30;
  --fg-primary: #ffffff;
  --fg-secondary: #94a3b8;
  --fg-muted: #4b5a6e;
  --accent: #00e5a0;
  --accent-dim: rgba(0, 229, 160, 0.08);
  --accent-border: rgba(0, 229, 160, 0.2);
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);

  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--fg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg-primary); }

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

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

/* ==========================================
   TYPOGRAPHY HELPERS
   ========================================== */
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.section-label.light { color: var(--accent); opacity: 0.7; }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg-primary);
  margin-bottom: var(--space-2xl);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Concentric rings */
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-ring-1 { width: 600px; height: 600px; opacity: 0.3; }
.hero-ring-2 { width: 900px; height: 900px; opacity: 0.15; }
.hero-ring-3 { width: 1300px; height: 1300px; opacity: 0.07; }

.hero-container {
  position: relative;
  z-index: 1;
  padding-top: 8rem;
  padding-bottom: 8rem;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2xl);
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: var(--space-xl);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--fg-secondary);
  font-weight: 400;
  max-width: 280px;
  line-height: 1.4;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--fg-primary);
  margin-bottom: var(--space-xl);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--fg-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  font-weight: 300;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg) var(--space-2xl);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--fg-secondary);
  font-weight: 400;
}

/* ==========================================
   PROOF / STATS
   ========================================== */
.proof {
  padding: var(--space-4xl) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  margin-bottom: var(--space-2xl);
}

.proof-card {
  padding: 0 var(--space-xl);
}

.proof-card:first-child { padding-left: 0; }

.proof-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.proof-context {
  font-size: 0.9rem;
  color: var(--fg-secondary);
  line-height: 1.6;
  font-weight: 300;
}

.proof-source {
  display: block;
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-top: 4px;
  font-style: italic;
}

.proof-divider {
  width: 1px;
  background: var(--border-strong);
  align-self: stretch;
}

.proof-note {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--fg-secondary);
  font-style: italic;
  text-align: center;
}

/* ==========================================
   FEATURES
   ========================================== */
.features {
  padding: var(--space-4xl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--accent-border);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--fg-secondary);
  line-height: 1.6;
  font-weight: 300;
}

.features-pricing {
  text-align: center;
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border);
}

.pricing-tag {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ==========================================
   NICHE
   ========================================== */
.niche {
  padding: var(--space-4xl) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.niche-intro {
  font-size: 1rem;
  color: var(--fg-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: var(--space-3xl);
  font-weight: 300;
}

.niche-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.niche-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.niche-card:hover { border-color: var(--accent-border); }

.niche-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.niche-card:hover .niche-accent { opacity: 1; }

.niche-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.niche-card p {
  font-size: 0.875rem;
  color: var(--fg-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-lg);
  font-weight: 300;
}

.niche-stat {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

.niche-stat strong { font-weight: 700; }

/* ==========================================
   MANIFESTO
   ========================================== */
.manifesto {
  padding: var(--space-4xl) 0;
  position: relative;
}

.manifesto-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  opacity: 0.5;
}

.manifesto-container {
  position: relative;
  z-index: 1;
}

.manifesto-body {
  max-width: 720px;
}

.manifesto-body p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.8;
  color: var(--fg-secondary);
  margin-bottom: var(--space-xl);
  font-weight: 300;
}

.manifesto-body p:last-child { margin-bottom: 0; }

/* ==========================================
   CLOSING
   ========================================== */
.closing {
  padding: var(--space-4xl) 0;
  border-top: 1px solid var(--border);
}

.closing-stat {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  padding: var(--space-2xl);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
}

.closing-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
}

.closing-text {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--fg-secondary);
  font-weight: 300;
}

.closing-text strong { color: var(--fg-primary); font-weight: 600; }

.closing-value {
  font-size: 1rem;
  color: var(--fg-muted);
  font-weight: 300;
  line-height: 1.7;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--fg-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: var(--space-xl);
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--fg-muted);
  opacity: 0.5;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-muted);
  opacity: 0.6;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  .container { padding: 0 var(--space-md); }

  .proof-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .proof-divider { display: none; }

  .proof-card { padding: 0; }

  .features-grid,
  .niche-grid {
    grid-template-columns: 1fr;
  }

  .hero-stat { flex-direction: column; gap: var(--space-sm); }

  .closing-stat { flex-direction: column; align-items: flex-start; }

  .hero-ring-1 { width: 300px; height: 300px; }
  .hero-ring-2 { width: 500px; height: 500px; }
  .hero-ring-3 { width: 800px; height: 800px; }
}

@media (max-width: 480px) {
  .hero-meta { flex-direction: column; gap: var(--space-sm); }
}