@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Outfit:wght@600;700;800;900&display=swap');

:root {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  --panel: #ffffff;
  --panel-glass: rgba(255, 255, 255, 0.7);
  --line: rgba(226, 232, 240, 0.8);
  --text: #0f172a;
  --muted: #475569;
  --muted-soft: #64748b;
  --primary: #0066FF;
  --primary-glow: rgba(0, 102, 255, 0.2);
  --primary-deep: #004ecc;
  --ink: #020617;
  --success: #10b981;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --danger-line: #fecaca;
  --danger-text: #991b1b;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-gradient);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

body {
  padding: 40px 24px 60px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-deep);
}

.shell {
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding: 0 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 4px 12px rgba(0, 102, 255, 0.15));
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-kicker {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 2px 10px;
  border-radius: 99px;
  width: fit-content;
  margin-bottom: 4px;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 14px;
  color: var(--muted-soft);
  font-weight: 500;
  margin-top: 4px;
}

.topbar-links {
  display: flex;
  gap: 12px;
}

.topbar-links a {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.topbar-links a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

/* Layout Components */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.glass {
  background: var(--panel-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero {
  margin-bottom: 24px;
}

.hero-main {
  padding: 48px;
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  position: relative;
}

.hero-main::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 24px 0;
  letter-spacing: -0.04em;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 0 32px 0;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(0, 102, 255, 0.4);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--muted-soft);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid var(--danger-line);
}

.btn-danger:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
  transform: translateY(-2px);
}

.hero-facts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fact-card {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.fact-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.meta-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted-soft);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.meta-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

/* Trust Strip */
.trust-strip {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px;
}

.trust-chip {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-chip::before {
  content: '✓';
  color: var(--success);
  font-weight: 900;
}

/* Content Grid */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel {
  padding: 40px;
}

.panel h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.panel p {
  margin-bottom: 20px;
  color: var(--muted);
}

.panel ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.panel li {
  margin-bottom: 12px;
  color: var(--muted);
}

.panel strong {
  color: var(--ink);
  font-weight: 700;
}

/* Stat Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat-card {
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 8px;
}

/* Tile Row */
.tile-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mini-card {
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.mini-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--ink);
}

.mini-card p {
  font-size: 14px;
  margin: 0;
}

/* Callout */
.callout {
  padding: 24px;
  background: var(--primary-glow);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary);
  margin: 24px 0;
}

.callout strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--primary-deep);
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step {
  display: flex;
  gap: 24px;
}

.step-index {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

/* Sidebar Links */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.link-list a {
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.link-list a:hover {
  border-color: var(--primary);
  background: var(--primary-glow);
  transform: translateX(4px);
}

.link-list a::after {
  content: '→';
  opacity: 0.5;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--success);
  color: white;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-note {
  font-size: 13px;
  color: var(--muted-soft);
  line-height: 1.5;
}

/* Footer */
.page-footer {
  margin-top: 60px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted-soft);
  font-size: 14px;
  font-weight: 500;
}

/* Responsiveness */
@media (max-width: 1100px) {
  .hero-layout,
  .section-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding: 24px 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .topbar-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .hero-main {
    padding: 32px 24px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .panel {
    padding: 24px;
  }

  .stat-grid,
  .tile-row {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    gap: 12px;
  }
}
