:root {
  --background: oklch(0.17 0.012 170);
  --foreground: oklch(0.96 0.006 150);
  --card: oklch(0.21 0.014 172);
  --card-soft: oklch(0.21 0.014 172 / 60%);
  --card-softer: oklch(0.21 0.014 172 / 45%);
  --primary: oklch(0.78 0.14 168);
  --primary-foreground: oklch(0.18 0.02 170);
  --secondary: oklch(0.26 0.015 172);
  --secondary-soft: oklch(0.26 0.015 172 / 45%);
  --muted-foreground: oklch(0.7 0.012 160);
  --muted-foreground-soft: oklch(0.7 0.012 160 / 80%);
  --accent: oklch(0.3 0.03 168);
  --border: oklch(1 0 0 / 10%);
  --border-strong: oklch(1 0 0 / 16%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.65;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.17 0.012 170 / 72%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--foreground);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--foreground);
  font-weight: 600;
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -17px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-cta {
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--secondary-soft);
  color: var(--foreground);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--secondary);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-arrow::after {
  content: '\2192';
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-arrow:hover::after {
  transform: translateX(3px);
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Banner slider ---------- */

.banner-slider {
  position: relative;
  width: 100%;
  height: 42vw;
  max-height: 620px;
  min-height: 280px;
  overflow: hidden;
  background: var(--card);
}

.banner-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease;
}

.banner-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.banner-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.17 0.012 170 / 5%) 0%, oklch(0.17 0.012 170 / 78%) 100%);
}

.banner-caption {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 720px;
  padding: 32px min(6vw, 64px) 56px;
}

.banner-caption .section-label {
  color: var(--primary);
}

.banner-caption h2 {
  margin: 8px 0 8px;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 600;
}

.banner-caption p {
  margin: 0;
  max-width: 520px;
  color: var(--muted-foreground);
  font-size: 1.02rem;
}

.banner-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: oklch(0.17 0.012 170 / 55%);
  color: var(--foreground);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.2s ease;
}

.banner-arrow:hover {
  background: var(--secondary);
}

.banner-arrow svg {
  width: 20px;
  height: 20px;
}

.banner-prev {
  left: 20px;
}

.banner-next {
  right: 20px;
}

.banner-dots {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: oklch(1 0 0 / 35%);
  cursor: pointer;
  transition: background-color 0.2s ease, width 0.2s ease;
}

.banner-dot.is-active {
  width: 22px;
  background: var(--primary);
}

@media (max-width: 900px) {
  .banner-slider {
    height: 56vw;
  }
}

@media (max-width: 640px) {
  .banner-slider {
    height: 68vw;
    min-height: 240px;
  }

  .banner-caption {
    padding: 20px 20px 40px;
  }

  .banner-arrow {
    width: 36px;
    height: 36px;
  }

  .banner-prev {
    left: 12px;
  }

  .banner-next {
    right: 12px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 108px 0 76px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.hero::before {
  top: -160px;
  right: -60px;
  width: 480px;
  height: 480px;
  background: oklch(0.78 0.14 168 / 15%);
}

.hero::after {
  bottom: -160px;
  left: -80px;
  width: 380px;
  height: 380px;
  background: oklch(0.78 0.14 168 / 10%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--secondary-soft);
  color: var(--muted-foreground);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.hero h1,
.page-header h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1 .accent,
.page-header h1 .accent {
  color: var(--primary);
}

.hero p,
.page-header p {
  margin: 0 0 20px;
  color: var(--muted-foreground);
  font-size: 1.08rem;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-card,
.card {
  background: var(--card-soft);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hero-card h3,
.card h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.15rem;
  font-weight: 600;
}

.hero-card ul,
.card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted-foreground);
}

.hero-card li,
.card li {
  margin-bottom: 6px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: oklch(0.78 0.14 168 / 12%);
  color: var(--primary);
  margin-bottom: 18px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
}

.card.card-hover:hover {
  border-color: oklch(0.78 0.14 168 / 40%);
  background: var(--card);
  text-decoration: none;
}

/* ---------- Sections ---------- */

.section {
  padding: 44px 0 76px;
}

.section-tinted {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--secondary-soft);
}

.page-header {
  position: relative;
  padding: 84px 0 36px;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -160px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  background: oklch(0.78 0.14 168 / 12%);
  pointer-events: none;
}

.section-header {
  margin-bottom: 30px;
  max-width: 720px;
}

.section-header .eyebrow {
  margin-bottom: 12px;
}

.section-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 1.08rem;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card p {
  margin: 0;
  color: var(--muted-foreground);
}

.card ul {
  margin-top: 14px;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
}

.footer-cta {
  padding: 76px 0;
}

.footer-cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card-softer);
  padding: 56px 40px;
  text-align: center;
}

.footer-cta-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(110px);
  background: oklch(0.78 0.14 168 / 15%);
}

.footer-cta-card h2 {
  margin: 0 auto;
  max-width: 620px;
  font-size: 1.9rem;
  font-weight: 600;
}

.footer-cta-card p {
  margin: 14px auto 0;
  max-width: 520px;
  color: var(--muted-foreground);
  font-size: 1.08rem;
}

.footer-cta-card .btn {
  margin-top: 26px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.footer > .footer-inner:first-child {
  border-top: none;
}

.brand-sm {
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.brand-sm .brand-mark {
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
  border-radius: 7px;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted-foreground);
}

.footer-links a:hover {
  color: var(--foreground);
  text-decoration: none;
}

/* ---------- Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.badge-live {
  background: oklch(0.78 0.14 168 / 15%);
  color: var(--primary);
}

.badge-dev {
  background: oklch(0.7 0.1 220 / 16%);
  color: oklch(0.78 0.1 220);
}

.badge-explore {
  background: oklch(0.65 0.1 300 / 16%);
  color: oklch(0.8 0.1 300);
}

/* ---------- Insights / articles ---------- */

.card-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.article-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
  text-decoration: none;
  border-color: oklch(0.78 0.14 168 / 40%);
  background: var(--card);
  transform: translateY(-2px);
}

.article-card h3 {
  margin-bottom: 6px;
}

.article-meta {
  color: var(--muted-foreground);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  margin-top: 44px;
  font-size: 1.4rem;
  font-weight: 600;
}

.prose p {
  color: var(--muted-foreground);
  margin: 0 0 18px;
  font-size: 1.02rem;
}

.prose ul {
  color: var(--muted-foreground);
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose strong {
  color: var(--foreground);
}

.disclaimer {
  border-left: 3px solid var(--primary);
  background: var(--card-soft);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 88px;
  }

  .footer-cta-card {
    padding: 40px 26px;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    gap: 16px 20px;
    font-size: 0.88rem;
  }

  .nav-links a.active::after {
    bottom: -13px;
  }

  .section {
    padding: 32px 0 56px;
  }

  .footer-cta {
    padding: 56px 0;
  }

  .hero-card,
  .card {
    padding: 22px;
  }
}
