:root {
  color-scheme: light dark;
  --burnt-peach: #df7c52;
  --burnt-peach-ink: #b5532a;
  --amaranth: #d1495b;
  --amaranth-dark: #c1384b;
  --honey-bronze: #edae49;
  --honey-bronze-ink: #9a650c;
  --mauve-shadow: #69435b;
  --yale-blue: #003d5b;

  --bg: light-dark(#ffffff, #000000);
  --surface: light-dark(#f9fafb, #0a0a0a);
  --surface-2: light-dark(#f3f4f6, #121212);
  --border: light-dark(rgba(15, 23, 42, 0.1), rgba(255, 255, 255, 0.1));
  --text: light-dark(#0f172a, #f8fafc);
  --muted: light-dark(#475569, #94a3b8);

  --vt-x: 50vw;
  --vt-y: 50vh;
  --vt-r: 100vmax;

  accent-color: light-dark(#b5532a, #df7c52);
  scrollbar-color: light-dark(rgba(105, 67, 91, 0.35), rgba(223, 124, 82, 0.4)) transparent;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]),
html.dark {
  color-scheme: dark;
}

:root:has(> head > meta[name="color-scheme"][content="light"]),
html:not(.dark) {
  color-scheme: light;
}

@supports not (scrollbar-color: auto) {
  * { scrollbar-width: auto; }
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-thumb { background: rgba(223, 124, 82, 0.35); border-radius: 9999px; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

code, pre, .mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: light-dark(rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0.9));
  backdrop-filter: blur(12px);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--burnt-peach), var(--amaranth));
  color: #ffffff;
  border: none;
}

.btn-icon {
  padding: 8px;
  width: 36px;
  height: 36px;
}

.hero {
  padding: 72px 0 48px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -120px auto auto 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 360px;
  background: radial-gradient(circle, rgba(223, 124, 82, 0.22), rgba(209, 73, 91, 0.14), rgba(105, 67, 91, 0.08), transparent 70%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(223, 124, 82, 0.14);
  color: light-dark(var(--burnt-peach-ink), var(--burnt-peach));
  border: 1px solid rgba(223, 124, 82, 0.28);
}

h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 18px 0 16px;
}

.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 660px;
  margin: 0 0 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0;
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.chrono-keep-dark {
  color-scheme: only dark;
  background: #0a0a0a;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px;
  accent-color: #df7c52;
}

.footer {
  margin-top: 64px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Radial View Transitions */
html.vt-theme-switching *,
html.vt-theme-switching *::before,
html.vt-theme-switching *::after {
  transition: none !important;
}

::view-transition-group(root) { animation: none; }
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

html.vt-theme-forward::view-transition-old(root) { z-index: 1; }
html.vt-theme-forward::view-transition-new(root) {
  z-index: 2;
  animation: stride-vt-expand 850ms cubic-bezier(0.55, 0, 0.25, 1) both;
}

html.vt-theme-reverse::view-transition-new(root) { z-index: 1; }
html.vt-theme-reverse::view-transition-old(root) {
  z-index: 2;
  animation: stride-vt-shrink 850ms cubic-bezier(0.55, 0, 0.25, 1) both;
}

@keyframes stride-vt-expand {
  from { clip-path: circle(0px at var(--vt-x) var(--vt-y)); }
  to { clip-path: circle(var(--vt-r) at var(--vt-x) var(--vt-y)); }
}

@keyframes stride-vt-shrink {
  from { clip-path: circle(var(--vt-r) at var(--vt-x) var(--vt-y)); }
  to { clip-path: circle(0px at var(--vt-x) var(--vt-y)); }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
