:root {
      --bg: #f7f4ee;
      --surface: #ffffff;
      --surface-soft: #efe8dc;
      --text: #1e1b18;
      --muted: #6b6258;
      --border: #d8ccbb;
      --primary: #345995;
      --primary-strong: #243f6f;
      --accent: #c94f7c;
      --accent-soft: #f5d4df;
      --success: #34785f;
      --warning: #b47a1f;
      --danger: #a64242;
      --shadow: 0 16px 35px rgba(40, 32, 23, 0.12);
      --radius: 18px;
      --max-width: 1120px;
      --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    }

    body.dark-mode {
      --bg: #111418;
      --surface: #1a2027;
      --surface-soft: #252d36;
      --text: #f3efe7;
      --muted: #b8afa3;
      --border: #3a4652;
      --primary: #8ab4ff;
      --primary-strong: #bad2ff;
      --accent: #e07aa0;
      --accent-soft: #4f2d3b;
      --success: #8de0b7;
      --warning: #ffd27d;
      --danger: #ff9a9a;
      --shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font-family: var(--font-main);
      line-height: 1.6;
      transition: background 180ms ease, color 180ms ease;
    }

    a {
      color: var(--primary);
      text-decoration-thickness: 0.08em;
      text-underline-offset: 0.18em;
    }

    a:hover {
      color: var(--accent);
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 10;
      background: color-mix(in srgb, var(--surface) 88%, transparent);
      border-bottom: 1px solid var(--border);
      backdrop-filter: blur(14px);
    }
      .brand {
        display: flex;
        align-items: center;
        gap: 1rem;
      }
      
      .brand-text {
        display: flex;
        flex-direction: column;
      }
      
      .name,
      .tagline {
        margin: 0;
        line-height: 1.25;
      }
      
      .avatar {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
      }

    .header-inner,
    main,
    .footer-inner {
      width: min(var(--max-width), calc(100% - 32px));
      margin: 0 auto;
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 1rem 0;
    }

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

    nav {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      flex-wrap: wrap;
    }

    nav a,
    .button,
    button {
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 0.5rem 0.85rem;
      background: var(--surface);
      color: var(--text);
      text-decoration: none;
      font: inherit;
      cursor: pointer;
    }

    nav a:hover,
    .button:hover,
    button:hover {
      border-color: var(--primary);
      color: var(--primary);
    }

    .button.primary {
      background: var(--primary);
      border-color: var(--primary);
      color: white;
    }

    body.dark-mode .button.primary {
      color: #101318;
    }

    .button.accent {
      background: var(--accent);
      border-color: var(--accent);
      color: #17110c;
    }

    main {
      padding: 0 2rem 2rem 2rem;
    }

    .hero {
      display: grid;
      grid-template-columns: 1.35fr 0.65fr;
      gap: 1.25rem;
      align-items: stretch;
      margin-top: 1rem;
    }

    .panel,
    .card,
    .demo-block {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }

    .panel {
      padding: clamp(1.25rem, 3vw, 2.25rem);
    }

    .eyebrow {
      color: var(--accent);
      font-weight: 750;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-size: 0.78rem;
    }

    h1,
    h2,
    h3 {
      line-height: 1.15;
      margin: 0 0 0.75rem;
    }

    h1 {
      font-size: clamp(2.4rem, 6vw, 5rem);
      letter-spacing: -0.06em;
    }

    h2 {
      font-size: clamp(1.6rem, 3vw, 2.4rem);
      letter-spacing: -0.035em;
    }

    h3 {
      font-size: 1.15rem;
    }

    p {
      margin: 0 0 1rem;
    }

    .lead {
      color: var(--muted);
      font-size: clamp(1.05rem, 2vw, 1.3rem);
      max-width: 68ch;
    }

    .hero-actions {
      display: flex;
      gap: 0.75rem;
      flex-wrap: wrap;
      margin-top: 1.25rem;
    }

    .qr-panel {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 1rem;
    }

    .qr-box {
      display: grid;
      place-items: center;
      background: white;
      border-radius: 16px;
      padding: 1rem;
      border: 1px solid var(--border);
    }

    .qr-box img {
      width: min(100%, 220px);
      height: auto;
      display: block;
    }

    .small {
      color: var(--muted);
      font-size: 0.9rem;
    }

.timeline {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  border-left: 2px solid var(--border);
}

.timeline li {
  position: relative;
  padding: 0 0 1.25rem 1.25rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline time {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
}

.timeline p {
  margin: 0.25rem 0 0;
}

    .section {
      margin-top: 2rem;
    }

    .section-header {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 1rem;
      border-bottom: 1px solid var(--border);
      padding-bottom: 0.75rem;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }

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

    .card {
      padding: 1.1rem;
    }

    .card p:last-child,
    .panel p:last-child {
      margin-bottom: 0;
    }

    .swatches {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0.75rem;
    }

    .swatch {
      border: 1px solid var(--border);
      border-radius: 14px;
      overflow: hidden;
      background: var(--surface);
    }

    .swatch-color {
      height: 72px;
    }

    .swatch-info {
      padding: 0.7rem;
      font-family: var(--font-mono);
      font-size: 0.8rem;
    }

    .bg-primary { background: var(--primary); }
    .bg-accent { background: var(--accent); }
    .bg-surface-soft { background: var(--surface-soft); }
    .bg-text { background: var(--text); }
    .bg-success { background: var(--success); }
    .bg-warning { background: var(--warning); }
    .bg-danger { background: var(--danger); }
    .bg-border { background: var(--border); }

    .mode-demo {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }

    .theme-preview {
      border-radius: var(--radius);
      padding: 1.25rem;
      border: 1px solid var(--border);
    }

    .theme-preview.light {
      background: #f7f4ee;
      color: #1e1b18;
    }

    .theme-preview.dark {
      background: #111418;
      color: #f3efe7;
      border-color: #3a4652;
    }

    .theme-preview .mini-card {
      border-radius: 14px;
      padding: 0.9rem;
      margin-top: 0.75rem;
    }

    .theme-preview.light .mini-card {
      background: #ffffff;
      border: 1px solid #d8ccbb;
    }

    .theme-preview.dark .mini-card {
      background: #1a2027;
      border: 1px solid #3a4652;
    }

    .tag-row {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
      margin: 0.75rem 0;
    }

    .tag {
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--surface-soft);
      padding: 0.28rem 0.6rem;
      font-size: 0.85rem;
      color: var(--muted);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      overflow: hidden;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: var(--surface);
    }

    th,
    td {
      padding: 0.75rem;
      text-align: left;
      border-bottom: 1px solid var(--border);
      vertical-align: top;
    }

    th {
      background: var(--surface-soft);
    }

    tr:last-child td {
      border-bottom: 0;
    }

    code,
    pre {
      font-family: var(--font-mono);
    }

    code {
      background: var(--surface-soft);
      padding: 0.12rem 0.28rem;
      border-radius: 6px;
    }

    pre {
      overflow: auto;
      padding: 1rem;
      background: var(--surface-soft);
      border-radius: 14px;
      border: 1px solid var(--border);
    }

    blockquote {
      margin: 0;
      padding: 1rem 1.25rem;
      border-left: 5px solid var(--accent);
      background: var(--surface-soft);
      border-radius: 0 14px 14px 0;
      color: var(--muted);
    }

    form {
      display: grid;
      gap: 0.75rem;
    }

    label {
      display: grid;
      gap: 0.25rem;
      font-weight: 650;
    }

    input,
    textarea,
    select {
      width: 100%;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 0.75rem;
      background: var(--surface);
      color: var(--text);
      font: inherit;
    }

    textarea {
      min-height: 120px;
      resize: vertical;
    }

    .banner {
      padding: 1rem;
      border-radius: 14px;
      background: var(--accent-soft);
      border: 1px solid var(--accent);
    }

    .timeline {
      display: grid;
      gap: 0.75rem;
      border-left: 2px solid var(--border);
      padding-left: 1rem;
    }

    .timeline-item {
      position: relative;
      padding: 0.85rem;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 14px;
    }

    .timeline-item::before {
      content: "";
      position: absolute;
      left: calc(-1rem - 7px);
      top: 1.2rem;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: var(--accent);
    }
.paper-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.paper-card {
  display: block;

  padding: 0.85rem 1rem;

  border: 1px solid var(--border);

  border-radius: 14px;

  background: var(--surface-soft, rgba(255,255,255,0.04));

  color: inherit;

  text-decoration: none;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}

.paper-card:hover {
  border-color: var(--accent);

  color: var(--accent);
}

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

    .footer-inner {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 1rem;
      padding: 2rem 0;
    }

    @media (max-width: 820px) {
      .hero,
      .grid,
      .grid.two,
      .mode-demo,
      .footer-inner {
        grid-template-columns: 1fr;
      }

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

      .header-inner {
        align-items: flex-start;
        flex-direction: column;
      }
    }
