:root {
    color-scheme: dark;
    --bg: #05070a;
    --bg-elevated: #0c1016;
    --fg: #f7f7f7;
    --muted: #9ba4b5;
    --accent: #5eead4;
    --border-subtle: #1f2937;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html,
  body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
      "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
    color: var(--fg);
  }
  
  body {
    display: flex;
    flex-direction: column;
  }
  
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.95),
      rgba(15, 23, 42, 0.75),
      transparent
    );
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  }
  
  .site-header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .brand {
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--fg);
  }
  
  .brand-dot {
    color: var(--accent);
  }
  
  .nav {
    display: flex;
    gap: 1rem;
  }
  
  .nav a {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--muted);
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.15s ease-out, transform 0.15s ease-out;
  }
  
  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.1rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #38bdf8);
    border-radius: 999px;
    transition: width 0.2s ease-out;
  }
  
  .nav a:hover {
    color: var(--fg);
    transform: translateY(-1px);
  }
  
  .nav a:hover::after {
    width: 100%;
  }
  
  .app-root {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
  }
  
  .site-footer {
    margin-top: auto;
    padding: 1.5rem 1.25rem 2rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
  }
  
  /* Page shell */
  
  .page {
    background: radial-gradient(circle at top left, #111827, #020617 55%, #020617);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    padding: 2rem 1.5rem 2.25rem;
    overflow: hidden;
  
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    animation: page-enter 260ms ease-out forwards;
  }
  
  @keyframes page-enter {
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  /* Typography */
  
  .page-title {
    font-size: clamp(2rem, 3vw, 2.4rem);
    margin: 0 0 0.5rem;
    letter-spacing: -0.03em;
  }
  
  .page-subtitle {
    margin: 0 0 1.5rem;
    color: var(--muted);
    font-size: 0.95rem;
  }
  
  /* Chips & buttons */
  
  .chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.6rem 0 1.8rem;
  }
  
  .chip {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--muted);
    background: linear-gradient(
      120deg,
      rgba(15, 23, 42, 0.9),
      rgba(15, 23, 42, 0.4)
    );
  }
  
  .btn {
    border-radius: 999px;
    border: none;
    font-size: 0.85rem;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
  }
  
  .btn-sm {
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
  }
  
  .btn-primary {
    background: linear-gradient(120deg, #22c55e, #06b6d4);
    color: #020617;
    box-shadow: 0 14px 30px rgba(34, 197, 94, 0.4);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
  }
  
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(34, 197, 94, 0.6);
  }
  
  .btn-ghost {
    background: rgba(15, 23, 42, 0.9);
    color: var(--fg);
    border: 1px solid rgba(148, 163, 184, 0.6);
  }
  
  /* Hero layout */
  
  .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.2fr);
    gap: 1.75rem;
  }
  
  .hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #bbf7d0, #22c55e);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3);
  }
  
  .hero-kv {
    font-family: ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    font-size: 0.8rem;
    color: var(--muted);
  }
  
  /* Cards */
  
  .card-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 1.25rem;
  }
  
  .card {
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1rem 1rem 1.1rem;
  }
  
  .card h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
  }
  
  .card p {
    margin: 0.35rem 0 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
  }
  
  .card-meta {
    font-size: 0.75rem;
    color: var(--muted);
  }
  
  /* Scroll-triggered animation */
  
  [data-animate] {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 220ms ease-out, transform 220ms ease-out;
  }
  
  [data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Sandbox blob */
  
  .sandbox-blob {
    margin-top: 0.75rem;
    width: 100%;
    height: 150px;
    border-radius: 18px;
    background: radial-gradient(circle at 0 0, #22c55e, #0f172a);
    cursor: pointer;
    transition: transform 120ms ease-out;
  }
  
  /* Responsive */
  
  @media (max-width: 720px) {
    .site-header-inner {
      padding-inline: 1rem;
    }
  
    .nav {
      gap: 0.6rem;
    }
  
    .app-root {
      padding-inline: 1rem;
    }
  
    .page {
      padding-inline: 1.25rem;
    }
  
    .hero-layout {
      grid-template-columns: minmax(0, 1fr);
    }
  }
  