/* ============================================================
   logify.ai Design System
   Hybrid theme: dark hero/nav/footer + light content sections
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Custom Properties --- */
:root {
  /* Dark palette */
  --dark-bg: #08090d;
  --dark-bg-elevated: #0f1219;
  --dark-surface: #161b24;
  --dark-border: #1e2533;
  --dark-text: #f0f4f8;
  --dark-muted: #8b97a8;

  /* Light palette */
  --light-bg: #fafbfd;
  --light-bg-elevated: #ffffff;
  --light-surface: #f3f5f8;
  --light-border: #e2e6ec;
  --light-text: #111827;
  --light-muted: #5f6b7a;

  /* Brand */
  --brand-primary: #2563eb;
  --brand-primary-light: #3b82f6;
  --brand-primary-dark: #1d4ed8;
  --brand-accent: #06d6a0;
  --brand-accent-light: #34d399;
  --brand-gradient: linear-gradient(135deg, #2563eb, #06d6a0);
  --brand-gradient-subtle: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(6,214,160,0.06));

  /* Semantic */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Typography */
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --shadow-glow-brand: 0 8px 32px rgba(37,99,235,0.25);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 600ms;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 720px;
  --nav-height: 72px;
}

/* --- Typography --- */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--light-text);
  background: var(--light-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.display-heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
}

.mono { font-family: var(--font-mono); font-size: 0.875rem; }
.muted { font-size: 0.9rem; }
.small { font-size: 0.875rem; }

/* --- Layout --- */
.container {
  width: min(var(--container-max), 92vw);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  width: min(var(--container-narrow), 92vw);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Section Themes --- */
.dark-section {
  background: var(--dark-bg);
  color: var(--dark-text);
  position: relative;
  overflow: hidden;
}

.dark-section .muted,
.dark-section .lead { color: var(--dark-muted); }

.dark-section .eyebrow { color: var(--brand-accent); }

.light-section {
  background: var(--light-bg);
  color: var(--light-text);
  position: relative;
}

.light-section .muted,
.light-section .lead { color: var(--light-muted); }

.light-section .eyebrow { color: var(--brand-primary); }

.light-section-alt {
  background: var(--light-surface);
  color: var(--light-text);
  position: relative;
}

.light-section-alt .muted,
.light-section-alt .lead { color: var(--light-muted); }

.light-section-alt .eyebrow { color: var(--brand-primary); }

.section-padding {
  padding: var(--space-4xl) 0;
}

.section-padding-sm {
  padding: var(--space-3xl) 0;
}

/* --- Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 13, 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(30, 37, 51, 0.6);
  height: var(--nav-height);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--dark-text);
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-center {
  display: flex;
  gap: var(--space-xl);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-center a {
  color: var(--dark-muted);
  position: relative;
  padding: 4px 0;
  transition: color var(--duration-fast) ease;
}

.nav-center a:hover { color: var(--dark-text); }

.nav-center a.active {
  color: var(--dark-text);
}

.nav-center a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--brand-gradient);
  border-radius: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.nav-actions form { margin: 0; }

.user-chip {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--dark-border);
  background: var(--dark-surface);
  font-size: 0.85rem;
  color: var(--dark-muted);
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--dark-text);
  padding: var(--space-sm);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(8, 9, 13, 0.98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dark-border);
  padding: var(--space-lg);
  z-index: 99;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  color: var(--dark-muted);
  font-size: 1rem;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(30, 37, 51, 0.4);
  transition: color var(--duration-fast) ease;
}

.mobile-nav a:hover { color: var(--dark-text); }

.mobile-nav a.active { color: var(--dark-text); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: transform var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease,
              background var(--duration-fast) ease,
              border-color var(--duration-fast) ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--brand-primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-brand);
}

.btn-accent {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-brand);
}

.btn-ghost {
  background: transparent;
  border-color: var(--dark-border);
  color: var(--dark-text);
}

.btn-ghost:hover {
  border-color: var(--dark-muted);
  background: rgba(255,255,255,0.04);
}

.btn-ghost-light {
  background: transparent;
  border-color: var(--light-border);
  color: var(--light-text);
}

.btn-ghost-light:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-ghost:disabled,
.btn-ghost-light:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

/* Google button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #e0e0e0;
  transition: transform var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}

.btn-google:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.google-icon { flex-shrink: 0; }

/* --- Cards --- */
/* Glass card for dark sections */
.glass-card {
  background: rgba(15, 18, 25, 0.7);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset, var(--shadow-lg);
}

/* Light card for light sections */
.card {
  background: var(--light-bg-elevated);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-no-hover:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

/* Gradient border card */
.gradient-border-wrap {
  padding: 1px;
  background: var(--brand-gradient);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--duration-normal) ease;
}

.gradient-border-wrap:hover {
  box-shadow: var(--shadow-glow-brand);
}

.gradient-border-inner {
  background: var(--light-bg-elevated);
  border-radius: calc(var(--radius-lg) - 1px);
  padding: var(--space-xl);
}

/* Dark card for dark sections */
.dark-card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

/* --- Hero Section --- */
.hero-dark {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(6,214,160,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(139,92,246,0.08) 0%, transparent 50%),
    linear-gradient(180deg, #08090d 0%, #0f1219 100%);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-dark .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: 80px 80px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content .eyebrow {
  margin-bottom: var(--space-md);
}

.hero-content h1 {
  margin-bottom: var(--space-lg);
  color: var(--dark-text);
}

.hero-content .lead {
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-visual {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-grid .card h3 {
  margin-bottom: var(--space-sm);
}

.feature-grid .card p {
  color: var(--light-muted);
  line-height: 1.6;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

/* --- App Cards --- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

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

.app-card {
  background: var(--light-bg-elevated);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) ease;
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.app-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.app-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-icon svg {
  width: 24px;
  height: 24px;
}

.app-card-title {
  flex: 1;
}

.app-card-title h3 {
  margin-bottom: 2px;
}

.app-card p {
  color: var(--light-muted);
  line-height: 1.6;
  flex: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-live {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-beta {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-dev {
  background: rgba(139, 92, 246, 0.08);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.badge-soon {
  background: rgba(156, 163, 175, 0.1);
  color: #6b7280;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-md);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--light-surface);
  border: 1px solid var(--light-border);
}

.key-row .label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.7rem;
  color: var(--light-muted);
  font-weight: 600;
}

.card-actions {
  margin-top: var(--space-md);
}

/* Upcoming app cards (slightly muted) */
.app-card-upcoming {
  opacity: 0.75;
}

.app-card-upcoming:hover {
  opacity: 1;
}

/* --- App Pills (home page compact listing) --- */
.app-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--light-bg-elevated);
  border: 1px solid var(--light-border);
  text-decoration: none;
  color: var(--light-text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) ease;
}

.app-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.app-pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.app-pill-name {
  font-weight: 600;
}

.app-pill .badge {
  font-size: 0.65rem;
  padding: 2px 8px;
}

/* --- App Sections (apps page dividers) --- */
.apps-section {
  margin-bottom: var(--space-2xl);
}

.apps-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--light-border);
}

.apps-section-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

.apps-section-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Steps / How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--light-border);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--light-bg-elevated);
  border: 2px solid var(--light-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  transition: border-color var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease;
}

.step:hover .step-number {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.step-number svg {
  width: 28px;
  height: 28px;
  color: var(--brand-primary);
}

.step h3 {
  margin-bottom: var(--space-xs);
}

.step p {
  color: var(--light-muted);
  font-size: 0.95rem;
  max-width: 240px;
  margin: 0 auto;
}

/* --- Section Transition Waves --- */
.wave-divider {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -1px;
}

.wave-divider-bottom {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -1px;
}

/* --- Login Page --- */
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(37,99,235,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(6,214,160,0.08) 0%, transparent 50%),
    var(--dark-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--dark-text);
  position: relative;
  overflow: hidden;
}

.login-page .grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.login-brand {
  text-align: center;
  margin-bottom: var(--space-2xl);
  position: relative;
  z-index: 2;
}

.login-brand .logo {
  font-size: 2rem;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.login-brand .logo-mark {
  width: 36px;
  height: 36px;
}

.login-brand p {
  color: var(--dark-muted);
  font-size: 1.1rem;
}

.login-card {
  width: min(420px, 90vw);
  position: relative;
  z-index: 2;
}

.login-card .glass-card {
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
}

.login-helper {
  text-align: center;
  margin-top: var(--space-md);
  font-size: 0.85rem;
  color: var(--dark-muted);
}

.login-footer {
  position: relative;
  z-index: 2;
  margin-top: var(--space-3xl);
  font-size: 0.8rem;
  color: rgba(139, 151, 168, 0.6);
  letter-spacing: 0.5px;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
}

.alert-error {
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.alert-info {
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
}

/* --- Company / Trust Section --- */
.company-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-3xl);
  align-items: start;
}

.company-facts {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.company-fact {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.95rem;
  color: var(--dark-muted);
}

.company-fact svg {
  width: 18px;
  height: 18px;
  color: var(--brand-accent);
  flex-shrink: 0;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: var(--space-4xl) 0;
}

.cta-section h2 {
  margin-bottom: var(--space-md);
}

.cta-section .lead {
  margin-bottom: var(--space-xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Billing --- */
.billing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.usage-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.metric {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--light-text);
}

.label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--light-muted);
  margin-bottom: 4px;
}

.provider-list {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.provider {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--light-border);
  background: var(--light-bg-elevated);
}

.provider-soon {
  opacity: 0.6;
}

.notice {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.06);
  margin-bottom: var(--space-lg);
  color: var(--light-text);
}

/* --- Tables --- */
.table {
  display: grid;
  gap: var(--space-sm);
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--light-border);
  align-items: center;
}

.table-row.header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--light-muted);
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  color: var(--light-muted);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  opacity: 0.4;
}

/* --- Code Blocks --- */
.code-window {
  background: var(--dark-bg);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-xl);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--dark-surface);
  border-bottom: 1px solid var(--dark-border);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dark-border);
}

.code-dot:nth-child(1) { background: #ff5f57; }
.code-dot:nth-child(2) { background: #ffbd2e; }
.code-dot:nth-child(3) { background: #28c840; }

.code-window pre {
  padding: var(--space-lg);
  overflow-x: auto;
  margin: 0;
  background: transparent;
  border: none;
}

.code-window code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--dark-text);
  line-height: 1.6;
}

pre {
  background: var(--dark-bg);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  overflow-x: auto;
  border: 1px solid var(--dark-border);
}

code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* --- Forms --- */
.form {
  display: grid;
  gap: var(--space-md);
}

.input-group {
  display: grid;
  gap: 6px;
}

.input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--light-border);
  background: var(--light-bg-elevated);
  color: var(--light-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}

.input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* --- Checklist --- */
.checklist {
  display: grid;
  gap: var(--space-sm);
}

.checklist li {
  padding-left: 28px;
  position: relative;
  line-height: 1.6;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(6, 214, 160, 0.15);
  border: 1.5px solid var(--brand-accent);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--brand-accent);
  border-bottom: 2px solid var(--brand-accent);
  transform: rotate(-45deg);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-links h4 {
  color: var(--dark-text);
  margin-bottom: var(--space-md);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  transition: color var(--duration-fast) ease;
}

.footer-links a:hover { color: var(--dark-text); }

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

/* --- Page Headers (light sections) --- */
.page-header {
  padding: var(--space-3xl) 0 var(--space-xl);
}

.page-header h1 {
  margin-bottom: var(--space-sm);
}

.page-header .lead {
  color: var(--light-muted);
  max-width: 600px;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header .eyebrow {
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header .lead {
  max-width: 560px;
}

.section-header-center {
  text-align: center;
}

.section-header-center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* Fallback: show everything if JS fails */
body.no-js .reveal {
  opacity: 1;
  transform: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(15px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.glow-border {
  position: relative;
}

.glow-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--brand-gradient);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}

/* Constellation node animation */
.constellation-node {
  animation: pulse-glow 3s ease-in-out infinite;
}

.constellation-node:nth-child(2) { animation-delay: 0.5s; }
.constellation-node:nth-child(3) { animation-delay: 1s; }
.constellation-node:nth-child(4) { animation-delay: 1.5s; }
.constellation-node:nth-child(5) { animation-delay: 2s; }

/* --- Admin Styles (keep existing) --- */
.admin-nav {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--dark-border);
  margin-bottom: var(--space-xl);
}

.admin-nav a {
  color: var(--dark-muted);
  font-size: 0.9rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) ease,
              background var(--duration-fast) ease;
}

.admin-nav a:hover {
  color: var(--dark-text);
  background: var(--dark-surface);
}

.admin-nav a.active {
  color: var(--dark-text);
  background: var(--dark-surface);
}

/* Admin pages keep dark theme */
.admin-page {
  background: var(--dark-bg);
  color: var(--dark-text);
  min-height: 100vh;
}

.admin-page .card {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  color: var(--dark-text);
}

.admin-page .card:hover {
  box-shadow: none;
  transform: none;
}

.admin-page .label { color: var(--dark-muted); }
.admin-page .metric { color: var(--dark-text); }
.admin-page .muted { color: var(--dark-muted); }

.admin-page .input {
  background: var(--dark-bg);
  border-color: var(--dark-border);
  color: var(--dark-text);
}

.admin-page .input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.admin-page .table-row {
  border-color: var(--dark-border);
}

.admin-page .table-row.header {
  color: var(--dark-muted);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid-sm { grid-template-columns: repeat(2, 1fr); }
  .company-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}

@media (max-width: 768px) {
  .nav-center { display: none; }
  .mobile-menu-btn { display: block; }

  .hero-dark { padding: 80px 0 60px; }
  .display-heading { font-size: clamp(2rem, 6vw, 2.5rem); }

  .feature-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .app-grid-sm { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: var(--space-xl); }
  .steps::before { display: none; }

  .billing-grid { grid-template-columns: 1fr; }
  .usage-metrics { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom { flex-direction: column; text-align: center; }

  .section-padding { padding: var(--space-3xl) 0; }

  .table-row { grid-template-columns: 1fr; }
  .provider { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; }
  .user-chip { display: none; }
  .nav-actions .btn-sm { padding: 6px 12px; font-size: 0.8rem; }
  .app-pills { flex-direction: column; }
  .app-pill { justify-content: center; }
}
