/* ============================================================
   LUMINA — Landing Page Styles
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --color-primary:       #6366f1;
  --color-primary-dark:  #4f46e5;
  --color-primary-light: #a5b4fc;
  --color-secondary:     #8b5cf6;
  --color-accent:        #06b6d4;
  --color-bg:            #0f0f13;
  --color-surface:       #18181f;
  --color-surface-2:     #1f1f2a;
  --color-border:        rgba(255, 255, 255, 0.08);
  --color-text:          #f1f0ff;
  --color-text-muted:    #94a3b8;
  --color-white:         #ffffff;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Sizing */
  --radius-sm:  0.375rem;
  --radius-md:  0.75rem;
  --radius-lg:  1rem;
  --radius-xl:  1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.35);
  --shadow-lg:  0 20px 50px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.25);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Accessibility ────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.375rem); }

p { color: var(--color-text-muted); }

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

ul, ol { list-style: none; }

img, svg { display: block; }

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
}

.btn--sm  { padding: 0.4rem 0.9rem; font-size: 0.875rem; }
.btn--lg  { padding: 0.875rem 1.75rem; font-size: 1rem; }

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.btn--outline {
  border-color: var(--color-border);
  color: var(--color-text);
  background: transparent;
}
.btn--outline:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
}
.btn--ghost:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-primary-dark);
}
.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline-white {
  border-color: rgba(255,255,255,0.4);
  color: var(--color-white);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

/* ── Navigation ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(15, 15, 19, 0.85);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-block: 1rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.nav__links li { display: contents; }
.nav__links a:not(.btn) {
  padding: 0.375rem 0.75rem;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav__links a:not(.btn):hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav__burger span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
  display: block;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4rem, 8vw, 7rem);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-bottom: var(--space-4xl);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary-light);
  margin-bottom: var(--space-lg);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero__heading {
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.hero__subtext {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 50ch;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.hero__note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* Dashboard Mockup */
.hero__visual {
  position: relative;
  perspective: 1000px;
}

.dashboard-mockup {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: rotateY(-8deg) rotateX(3deg);
  transition: transform var(--transition-slow);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: rotateY(-8deg) rotateX(3deg) translateY(0); }
  50%       { transform: rotateY(-8deg) rotateX(3deg) translateY(-10px); }
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot--red    { background: #ef4444; }
.dot--yellow { background: #f59e0b; }
.dot--green  { background: #22c55e; }

.mockup-title {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-left: auto;
  margin-right: auto;
}

.mockup-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.stat-label  { font-size: 0.6875rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-value  { font-size: 1.375rem; font-weight: 700; color: var(--color-text); }
.stat-change { font-size: 0.75rem; font-weight: 600; }
.stat-change--up   { color: #22c55e; }
.stat-change--down { color: #ef4444; }

.chart-placeholder { border-radius: var(--radius-md); overflow: hidden; }
.chart-placeholder svg { width: 100%; height: auto; }

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.375rem;
  height: 60px;
}
.bar {
  flex: 1;
  height: var(--h);
  background: rgba(99, 102, 241, 0.3);
  border-radius: 3px 3px 0 0;
  transition: background var(--transition-base);
}
.bar--active { background: var(--color-primary); }

/* Hero Stats */
.hero__stats {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.stats-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  padding-block: var(--space-xl);
}

.stat-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: var(--space-md);
}
.stat-item strong {
  display: block;
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-text), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item span { font-size: 0.8125rem; color: var(--color-text-muted); }

.divider {
  display: block;
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* ── Section Shared ───────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 650px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-tag {
  display: inline-block;
  padding: 0.3rem 0.875rem;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.section-header h2 { color: var(--color-text); margin-bottom: var(--space-md); }
.section-header p  { font-size: 1.0625rem; }

/* ── Features ─────────────────────────────────────────────── */
.features {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}
.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 30px rgba(99,102,241,0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
  margin-bottom: var(--space-lg);
}

.feature-card h3 {
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
}
.feature-card p { font-size: 0.9375rem; line-height: 1.65; }

/* ── How It Works ─────────────────────────────────────────── */
.how-it-works {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  max-width: 720px;
  margin-inline: auto;
  position: relative;
}

.steps-list::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
}

.step {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}

.step__number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--color-white);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px rgba(99,102,241,0.4);
}

.step__content h3 {
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}
.step__content p { font-size: 0.9375rem; line-height: 1.7; }

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  transition: border-color var(--transition-base);
}
.testimonial-card:hover { border-color: rgba(99,102,241,0.3); }

.testimonial-card blockquote p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-text);
  quotes: '\201C' '\201D';
}
.testimonial-card blockquote p::before { content: open-quote; }
.testimonial-card blockquote p::after  { content: close-quote; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: auto;
}

.author-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-white);
  flex-shrink: 0;
}

.author-name {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text);
}
.author-role {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ── CTA Section ──────────────────────────────────────────── */
.cta-section {
  padding-block: clamp(5rem, 10vw, 9rem);
  background: linear-gradient(135deg, #1a1040 0%, #0f0f13 50%, #0d1a2e 100%);
  border-top: 1px solid var(--color-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.25) 0%, rgba(139,92,246,0.1) 50%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  font-size: clamp(1.875rem, 4vw, 3rem);
}

.cta-section p {
  font-size: 1.125rem;
  margin-bottom: var(--space-2xl);
  color: rgba(255,255,255,0.65);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.cta-note {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-3xl);
  padding-block: clamp(3rem, 5vw, 5rem);
}

.footer-brand .nav__logo {
  margin-bottom: var(--space-md);
}
.footer-brand p {
  font-size: 0.875rem;
  max-width: 25ch;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.footer-col h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer-col a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--color-text); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-bottom p { font-size: 0.8125rem; }

.social-links {
  display: flex;
  gap: var(--space-md);
}
.social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.social-links a:hover {
  color: var(--color-text);
  border-color: var(--color-primary);
  background: rgba(99,102,241,0.1);
}

/* ── Animations ───────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .nav__burger { display: flex; }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100dvh;
    width: min(300px, 100%);
    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    gap: var(--space-xs);
    transition: right var(--transition-slow);
    overflow-y: auto;
    z-index: 99;
  }
  .nav__links.is-open { right: 0; }
  .nav__links a:not(.btn) { display: block; width: 100%; padding: 0.625rem 0.75rem; }
  .nav__links .btn { margin-top: var(--space-sm); }

  /* Hero */
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__actions { justify-content: center; }
  .hero__note { margin-inline: auto; }
  .hero__badge { margin-inline: auto; }
  .hero__subtext { margin-inline: auto; }
  .hero__visual {
    order: -1;
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }
  .dashboard-mockup {
    transform: none;
    animation: float-simple 6s ease-in-out infinite;
  }
  @keyframes float-simple {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  /* Stats */
  .stats-list { gap: 0; }
  .stat-item { min-width: 100px; }
  .divider { height: 30px; }

  /* Steps */
  .steps-list::before { display: none; }
  .step { flex-direction: column; gap: var(--space-md); }

  /* Footer */
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { text-align: center; justify-content: center; }
  .stats-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .stat-item[aria-hidden="true"] { display: none; }
}

/* ── Overlay for mobile nav ───────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.nav-overlay.is-open { opacity: 1; pointer-events: all; }
