:root {
  color-scheme: light dark;
  --bg: #f5f7fb;
  --bg-alt: rgba(255, 255, 255, 0.65);
  --text: #0f172a;
  --text-muted: #4a5568;
  --card: rgba(255, 255, 255, 0.9);
  --card-border: rgba(148, 163, 184, 0.35);
  --brand: #3a7afe;
  --brand-dark: #0e7490;
  --shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  --radius: 18px;
  --transition: 280ms cubic-bezier(0.16, 1, 0.3, 1);
  --glow: rgba(58, 122, 254, 0.25);
}

html.dark {
  --bg: #05060a;
  --bg-alt: rgba(16, 24, 40, 0.65);
  --text: #f8fafc;
  --text-muted: #cbd5f5;
  --card: rgba(11, 14, 23, 0.82);
  --card-border: rgba(88, 124, 188, 0.32);
  --brand: #8cb9ff;
  --brand-dark: #39c6f4;
  --shadow: 0 25px 50px -12px rgba(15, 118, 216, 0.35);
  --glow: rgba(12, 92, 235, 0.4);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(1200px 900px at -10% -10%, rgba(58, 122, 254, 0.24), transparent 60%),
    radial-gradient(1000px 800px at 110% 110%, rgba(14, 116, 144, 0.22), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 7vw, 80px) 80px;
}

.hero {
  display: grid;
  gap: 36px;
  max-width: 1080px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--bg-alt), transparent 80%);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: -50% 20% auto;
  height: 360px;
  background: radial-gradient(circle at center, var(--glow), transparent 60%);
  opacity: 0.75;
  z-index: 0;
  pointer-events: none;
}

.hero__top,
.hero__copy {
  position: relative;
  z-index: 1;
}

.hero__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

html.dark .brand {
  background: rgba(226, 232, 240, 0.14);
}

.brand:hover {
  transform: translateY(-1px);
  background: rgba(58, 122, 254, 0.12);
}

.brand img {
  border-radius: 14px;
  width: 56px;
  height: 56px;
}

.hero__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero__link {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.06);
  transition: background var(--transition), transform var(--transition);
}

html.dark .hero__link {
  background: rgba(226, 232, 240, 0.12);
}

.hero__link:hover,
.hero__link:focus-visible {
  outline: none;
  background: rgba(58, 122, 254, 0.18);
  transform: translateY(-1px);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.6);
  color: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

html.dark .theme-toggle {
  background: rgba(15, 23, 42, 0.35);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -12px rgba(14, 116, 144, 0.6);
}

.theme-toggle--pulse {
  animation: pulse 320ms ease;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.theme-toggle__icon {
  font-size: 1.1rem;
}

.hero__copy h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
  margin: 0 0 18px;
  text-wrap: balance;
}

.hero__copy p {
  margin: 0;
  max-width: 720px;
  color: var(--text-muted);
  font-size: clamp(16px, 2vw, 19px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(58, 122, 254, 0.8), rgba(14, 116, 144, 0.75));
  color: white;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1120px;
  margin: 0 auto;
}

.guide-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  min-height: 320px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.guide-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(58, 122, 254, 0.16), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

html.dark .guide-card::before {
  background: radial-gradient(circle at top right, rgba(12, 92, 235, 0.28), transparent 55%);
}

.guide-card:hover,
.guide-card:focus-within {
  transform: translateY(-8px);
  border-color: rgba(58, 122, 254, 0.55);
  box-shadow: 0 30px 60px -24px rgba(58, 122, 254, 0.6);
}

.guide-card:hover::before,
.guide-card:focus-within::before {
  opacity: 1;
}

.guide-card__link {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  text-decoration: none;
  color: inherit;
  padding: clamp(22px, 4vw, 32px);
  position: relative;
  z-index: 1;
}

.guide-card__badge {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(58, 122, 254, 0.15);
  color: var(--brand-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html.dark .guide-card__badge {
  background: rgba(12, 92, 235, 0.22);
  color: #e0f2ff;
}

.guide-card__highlights {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.guide-card__cta {
  margin-top: auto;
  font-weight: 600;
  color: var(--brand);
  font-size: 1rem;
}

.guide-card--soon {
  opacity: 0.85;
}

.guide-card--soon .guide-card__cta {
  color: var(--text-muted);
}

.guide-card--soon .guide-card__link {
  cursor: not-allowed;
}

[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.foot {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  background: linear-gradient(140deg, rgba(58, 122, 254, 0.18), rgba(14, 116, 144, 0.14));
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 36px);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
}

.foot__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.foot__grid h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
}

.foot__grid p {
  margin: 0;
  color: var(--text-muted);
}

.foot__links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
}

.foot__link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: transform var(--transition), background var(--transition);
}

html.dark .foot__link {
  background: rgba(15, 23, 42, 0.45);
}

.foot__link:hover,
.foot__link:focus-visible {
  outline: none;
  transform: translateY(-2px);
  background: rgba(58, 122, 254, 0.2);
}

.foot__legal {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 720px) {
  .page {
    gap: 48px;
    padding: 28px 18px 64px;
  }

  .hero {
    gap: 28px;
  }

  .hero__actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .guide-card {
    min-height: auto;
  }
}
