:root {
  --bg: #fffdf8;
  --bg-soft: #f7f2e8;
  --surface: #ffffff;
  --surface-alt: #fcf8ef;
  --text: #1f2937;
  --muted: #5f6b7a;
  --line: #e9dec9;
  --primary: #8b5cf6;
  --primary-strong: #7c3aed;
  --accent: #f59e0b;
  --shadow: 0 18px 48px rgba(31, 41, 55, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1160px;
}

body.dark-theme {
  --bg: #11131a;
  --bg-soft: #171b24;
  --surface: #171b24;
  --surface-alt: #1d2330;
  --text: #edf2f7;
  --muted: #b6c0cf;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #b794f4;
  --primary-strong: #c4b5fd;
  --accent: #fbbf24;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.10), transparent 24%),
    linear-gradient(180deg, #fffefb 0%, var(--bg) 100%);
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
}

body.dark-theme {
  background:
    radial-gradient(circle at top right, rgba(183, 148, 244, 0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(251, 191, 36, 0.08), transparent 24%),
    linear-gradient(180deg, #0d1016 0%, var(--bg) 100%);
}

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

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(255, 253, 248, 0.82);
  border-bottom: 1px solid rgba(233, 222, 201, 0.8);
}

body.dark-theme .site-header {
  background: rgba(13, 16, 22, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-badge {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: var(--shadow);
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.86rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link,
.theme-toggle {
  min-height: 46px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.theme-toggle:hover,
.button:hover {
  transform: translateY(-2px);
}

.toggle-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.hero {
  padding: 4rem 0 2rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy,
.hero-panel {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.055em;
  margin-bottom: 1rem;
  max-width: 11ch;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.button {
  min-height: 54px;
  padding: 0 1.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: var(--shadow);
}

.button-secondary {
  background: transparent;
  border: 1px solid var(--line);
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.signal-row span {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 700;
}

body.dark-theme .signal-row span {
  background: rgba(255, 255, 255, 0.03);
}

.panel-window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 100%;
}

.window-top {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1rem 0;
}

.window-top span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--line);
}

.window-top span:first-child { background: #f87171; }
.window-top span:nth-child(2) { background: #fbbf24; }
.window-top span:nth-child(3) { background: #4ade80; }

.window-body {
  padding: 1rem 1.2rem 1.3rem;
}

.window-label,
.mini-label {
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.panel-window h2 {
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  max-width: 11ch;
}

.lab-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.95rem;
}

.lab-list li {
  display: grid;
  gap: 0.12rem;
  padding: 0.95rem 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.lab-list strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.lab-list span {
  color: var(--muted);
}

.section {
  padding: 1.25rem 0 4rem;
}

.cards-grid,
.framework-grid {
  display: grid;
  gap: 1rem;
}

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

.mini-card,
.framework-card,
.cta-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mini-card {
  padding: 1.3rem;
  border-radius: var(--radius-lg);
}

.mini-card h3,
.framework-card h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.mini-card p:last-child,
.framework-card p,
.section-heading p,
.cta-panel p,
.site-footer p {
  color: var(--muted);
}

.section-alt {
  background: linear-gradient(180deg, rgba(247, 242, 232, 0.56) 0%, rgba(247, 242, 232, 0.2) 100%);
  border-top: 1px solid rgba(233, 222, 201, 0.8);
  border-bottom: 1px solid rgba(233, 222, 201, 0.8);
}

body.dark-theme .section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.4rem;
}

.section-heading h2,
.cta-panel h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  margin-bottom: 0.75rem;
}

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

.framework-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
}

.framework-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(245, 158, 11, 0.16));
  color: var(--primary-strong);
  font-weight: 800;
  margin-bottom: 0.9rem;
}

body.dark-theme .framework-icon {
  background: linear-gradient(135deg, rgba(183, 148, 244, 0.14), rgba(251, 191, 36, 0.12));
}

.cta-panel {
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer {
  padding: 0 0 2rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.footer-row a {
  color: var(--primary);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero-shell,
  .cards-grid,
  .framework-grid,
  .cta-panel,
  .footer-row {
    grid-template-columns: 1fr;
  }

  .hero-shell,
  .cta-panel,
  .footer-row {
    display: grid;
  }

  h1 {
    max-width: 13ch;
  }
}

@media (max-width: 720px) {
  .nav {
    min-height: 76px;
  }

  .brand-copy small {
    display: none;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .nav-link {
    display: none;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .signal-row {
    gap: 0.55rem;
  }

  .signal-row span,
  .mini-card,
  .framework-card,
  .cta-panel,
  .window-body {
    padding-inline: 1rem;
  }
}
