/* Sifpress website — design tokens ported from sifpress1 (src/index.css). */

@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/geist-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/geist-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Geist Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/geist-latin-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  --background: oklch(0.96 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --border: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --radius: 0.625rem;
  --font-sans:
    'Geist Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
  --font-mono:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
  color-scheme: light;
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --card-foreground: oklch(0.985 0 0);
  --primary: oklch(0.922 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.78 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --border: oklch(1 0 0 / 10%);
  --ring: oklch(0.556 0 0);
  color-scheme: dark;
}

@property --rainbow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rainbow-spin {
  to {
    --rainbow-angle: 360deg;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: color-mix(in oklch, var(--foreground) 16%, transparent);
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid color-mix(in oklch, var(--ring) 70%, transparent);
  outline-offset: 2px;
}

.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.shell {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- ambient background (sifpress1 ambient-bg + canvas scene) ---------- */

.ambient-bg {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  background-color: var(--background);
  background-image:
    radial-gradient(
      130% 110% at 6% -12%,
      color-mix(in oklch, var(--primary) 9%, transparent) 0%,
      transparent 55%
    ),
    radial-gradient(
      90% 70% at 100% 0%,
      color-mix(in oklch, var(--ring) 8%, transparent) 0%,
      transparent 50%
    ),
    radial-gradient(
      130% 90% at 50% 125%,
      color-mix(in oklch, var(--primary) 7%, transparent) 0%,
      transparent 60%
    );
}

.dark .ambient-bg {
  background-image:
    radial-gradient(
      130% 110% at 6% -12%,
      color-mix(in oklch, var(--primary) 13%, transparent) 0%,
      transparent 55%
    ),
    radial-gradient(
      90% 70% at 100% 0%,
      color-mix(in oklch, var(--ring) 10%, transparent) 0%,
      transparent 50%
    ),
    radial-gradient(
      130% 90% at 50% 125%,
      color-mix(in oklch, var(--primary) 9%, transparent) 0%,
      transparent 60%
    );
}

#ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- glass system (sifpress1) ---------- */

.glass-control {
  background: linear-gradient(
    180deg,
    color-mix(in oklch, var(--background) 45%, transparent),
    color-mix(in oklch, var(--background) 14%, transparent)
  );
  background-clip: padding-box;
  border: 1px solid color-mix(in oklch, var(--border), transparent 45%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 8px 32px rgb(0 0 0 / 0.12),
    inset 0 1px 0 color-mix(in oklch, white 28%, transparent);
}

.dark .glass-control {
  background: linear-gradient(
    180deg,
    color-mix(in oklch, var(--card) 62%, transparent),
    color-mix(in oklch, var(--card) 28%, transparent)
  );
  border-color: color-mix(in oklch, white 14%, transparent);
  box-shadow:
    0 8px 32px rgb(0 0 0 / 0.45),
    inset 0 1px 0 color-mix(in oklch, white 10%, transparent);
}

.apple-panel {
  background: linear-gradient(
    180deg,
    color-mix(in oklch, var(--background) 68%, transparent),
    color-mix(in oklch, var(--background) 34%, transparent)
  );
  background-clip: padding-box;
  border: 1px solid color-mix(in oklch, var(--border), transparent 45%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 8px 32px rgb(0 0 0 / 0.08),
    inset 0 1px 0 color-mix(in oklch, white 28%, transparent);
}

.dark .apple-panel {
  background: linear-gradient(
    180deg,
    color-mix(in oklch, var(--card) 72%, transparent),
    color-mix(in oklch, var(--card) 42%, transparent)
  );
  border-color: color-mix(in oklch, white 14%, transparent);
  box-shadow:
    0 8px 32px rgb(0 0 0 / 0.45),
    inset 0 1px 0 color-mix(in oklch, white 10%, transparent);
}

.rainbow-card {
  position: relative;
}

.rainbow-card > * {
  position: relative;
  z-index: 1;
}

.rainbow-card::before,
.rainbow-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--rainbow-angle, 0deg),
    rgb(66 133 244 / 0) 0deg,
    #4285f4 30deg,
    #9b72cb 62deg,
    #d96570 94deg,
    #f2a60d 126deg,
    rgb(242 166 13 / 0) 158deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.rainbow-card::after {
  inset: -6px;
  padding: 6px;
  filter: blur(14px);
  transition: opacity 0.5s ease;
}

.rainbow-card:hover::before,
.rainbow-card:hover::after {
  animation: rainbow-spin 6s linear infinite;
}

.rainbow-card:hover::before {
  opacity: 1;
}

.rainbow-card:hover::after {
  opacity: 0.55;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem clamp(0.75rem, 3vw, 1.5rem) 0;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 64rem;
  height: 3.4rem;
  margin-inline: auto;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  border-radius: 9999px;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled .nav-pill {
  box-shadow:
    0 12px 40px rgb(0 0 0 / 0.18),
    inset 0 1px 0 color-mix(in oklch, white 28%, transparent);
}

.dark .site-header.is-scrolled .nav-pill {
  box-shadow:
    0 12px 40px rgb(0 0 0 / 0.55),
    inset 0 1px 0 color-mix(in oklch, white 10%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.brand-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
}

.brand-logo-sm {
  width: 1.6rem;
  height: 1.6rem;
}

.brand-name {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

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

.nav-links a.active {
  color: var(--foreground);
  background: color-mix(in oklch, var(--foreground) 8%, transparent);
}

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

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
  color: var(--muted-foreground);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.icon-btn:hover {
  color: var(--foreground);
  background: color-mix(in oklch, var(--foreground) 8%, transparent);
}

.icon-btn .ic {
  display: none;
  width: 1.05rem;
  height: 1.05rem;
}

[data-theme='light'] .icon-btn .ic-sun,
[data-theme='dark'] .icon-btn .ic-moon,
[data-theme='system'] .icon-btn .ic-monitor,
html:not([data-theme]) .icon-btn .ic-monitor {
  display: block;
}

@media (min-width: 820px) {
  .nav-links {
    display: flex;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding-inline: 1.35rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--foreground);
  color: var(--background);
  box-shadow:
    0 8px 24px rgb(0 0 0 / 0.16),
    inset 0 1px 0 color-mix(in oklch, white 30%, transparent);
}

.btn-primary:hover {
  background: color-mix(in oklch, var(--foreground) 88%, var(--background));
}

.btn-ghost {
  background: color-mix(in oklch, var(--background) 45%, transparent);
  border-color: color-mix(in oklch, var(--border), transparent 30%);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  color: var(--foreground);
}

.btn-ghost:hover {
  background: color-mix(in oklch, var(--foreground) 8%, transparent);
}

.dark .btn-ghost {
  background: color-mix(in oklch, white 6%, transparent);
  border-color: color-mix(in oklch, white 14%, transparent);
}

.dark .btn-ghost:hover {
  background: color-mix(in oklch, white 12%, transparent);
}

.btn-sm {
  height: 2.3rem;
  padding-inline: 0.9rem;
  font-size: 0.85rem;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
  padding-top: clamp(7.5rem, 16vh, 10.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.eyebrow-rule {
  width: 2rem;
  height: 1px;
  background: color-mix(in oklch, var(--foreground) 35%, transparent);
}

.eyebrow-center {
  justify-content: center;
}

.display {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: color-mix(in oklch, var(--foreground) 78%, transparent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.require-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.require-line span {
  padding: 0.2rem 0.6rem;
  border: 1px solid color-mix(in oklch, var(--border), transparent 20%);
  border-radius: 9999px;
  background: color-mix(in oklch, var(--muted) 55%, transparent);
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.08em 0.35em;
  border: 1px solid color-mix(in oklch, var(--border), transparent 30%);
  border-radius: 0.35rem;
  background: color-mix(in oklch, var(--muted) 75%, transparent);
  white-space: nowrap;
}

/* hero artifact card */

.file-card {
  border-radius: 1.5rem;
}

.file-card-inner {
  overflow: hidden;
  border-radius: inherit;
}

.file-card-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid color-mix(in oklch, var(--border), transparent 25%);
  background: color-mix(in oklch, var(--muted) 55%, transparent);
}

.file-ic {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--muted-foreground);
}

.file-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 9999px;
  background: var(--foreground);
  color: var(--background);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pill-mono {
  font-family: var(--font-mono);
  font-weight: 500;
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.file-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.7rem 1.25rem;
}

.file-list li + li {
  border-top: 1px dashed color-mix(in oklch, var(--border), transparent 40%);
}

.file-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--foreground);
}

.file-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.file-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid color-mix(in oklch, var(--border), transparent 25%);
  background: color-mix(in oklch, var(--muted) 45%, transparent);
}

.file-foot-note {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ---------- stats ---------- */

.stats-wrap {
  padding-bottom: 1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 1.5rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
}

.stat + .stat {
  border-top: 1px solid color-mix(in oklch, var(--border), transparent 35%);
}

@media (min-width: 768px) {
  .stat + .stat {
    border-top: 0;
    border-left: 1px solid color-mix(in oklch, var(--border), transparent 35%);
  }
}

@media (max-width: 767px) {
  .stat + .stat {
    border-top: 0;
  }
  .stat:nth-child(even) {
    border-left: 1px solid color-mix(in oklch, var(--border), transparent 35%);
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid color-mix(in oklch, var(--border), transparent 35%);
  }
}

.stat-value {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.25rem);
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2,
.cta-copy h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}

.section-head h2 .inline-code {
  font-size: 0.82em;
}

.section-lede {
  margin: 1rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.65;
  color: color-mix(in oklch, var(--foreground) 72%, transparent);
}

.subhead {
  max-width: 46rem;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  margin-bottom: 1.5rem;
}

.subhead h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.subhead .section-lede {
  font-size: 1.02rem;
}

/* ---------- feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
  gap: 1.15rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
}

.card-ic {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: color-mix(in oklch, var(--foreground) 7%, transparent);
  border: 1px solid color-mix(in oklch, var(--border), transparent 30%);
}

.card-ic .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.card h3 {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.card p .inline-code {
  white-space: normal;
}

/* ---------- routing / panels ---------- */

.routing-grid,
.inside-grid {
  display: grid;
  gap: 1.15rem;
}

.routing-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.inside-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 295px), 1fr));
}

.panel {
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border-radius: 1.35rem;
}

.panel-title {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.panel-title .inline-code {
  text-transform: none;
  letter-spacing: 0;
}

.proto-list,
.url-list,
.frag-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.proto-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  font-size: 0.95rem;
}

.proto-list li + li {
  border-top: 1px solid color-mix(in oklch, var(--border), transparent 45%);
}

.proto-list em {
  font-style: normal;
  color: var(--muted-foreground);
}

.proto-key {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 0.5rem;
  background: var(--foreground);
  color: var(--background);
}

.proto-arrow {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--muted-foreground);
}

.url-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.8rem 0;
}

.url-list li + li {
  border-top: 1px solid color-mix(in oklch, var(--border), transparent 45%);
}

.url-list code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  word-break: break-all;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.tag-spa {
  background: color-mix(in oklch, var(--foreground) 9%, transparent);
  color: var(--foreground);
}

.tag-api {
  background: var(--foreground);
  color: var(--background);
}

.panel-note {
  margin: 1.25rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px dashed color-mix(in oklch, var(--border), transparent 40%);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* ---------- architecture ---------- */

.arch {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.arch-box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: min(100%, 17rem);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  background: color-mix(in oklch, var(--background) 55%, transparent);
  border: 1px solid color-mix(in oklch, var(--border), transparent 25%);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 color-mix(in oklch, white 25%, transparent);
}

.dark .arch-box {
  background: color-mix(in oklch, var(--card) 55%, transparent);
  border-color: color-mix(in oklch, white 14%, transparent);
}

.arch-browser,
.arch-entry {
  background: color-mix(in oklch, var(--foreground) 6%, transparent);
}

.arch-entry {
  min-width: min(100%, 22rem);
}

.arch-label {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.arch-mono {
  font-family: var(--font-mono);
  font-weight: 600;
}

.arch-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-foreground);
}

.arch-arrow {
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.5rem 0;
  color: var(--muted-foreground);
}

.arch-fork {
  width: min(70%, 34rem);
  height: 1.6rem;
  border: 1px dashed color-mix(in oklch, var(--foreground) 30%, transparent);
  border-top: 0;
  border-radius: 0 0 1rem 1rem;
}

.arch-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: min(100%, 46rem);
  margin-top: 0.75rem;
}

@media (min-width: 720px) {
  .arch-split {
    grid-template-columns: 1fr 1fr;
  }
}

.arch-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arch-end {
  background: var(--foreground);
  border-color: transparent;
  color: var(--background);
}

.arch-end .arch-sub {
  color: color-mix(in oklch, var(--background) 70%, var(--foreground));
}

.arch-caption {
  margin: 2.25rem 0 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--muted-foreground);
}

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

/* ---------- sifront pipeline ---------- */

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.flow-arrow {
  font-family: var(--font-mono);
  color: var(--muted-foreground);
}

.flow .arch-box {
  min-width: 0;
  padding: 0.8rem 1.1rem;
  text-align: left;
}

@media (max-width: 700px) {
  .flow-arrow {
    display: none;
  }
}

.panel-copy {
  margin: -0.2rem 0 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.kv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kv-chips code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.22rem 0.6rem;
  border: 1px solid color-mix(in oklch, var(--border), transparent 25%);
  border-radius: 9999px;
  background: color-mix(in oklch, var(--muted) 60%, transparent);
  color: var(--foreground);
}

/* ---------- quick start ---------- */

.qs-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .qs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.codeblock {
  border: 1px solid color-mix(in oklch, var(--border), transparent 20%);
  border-radius: var(--radius, 0.625rem);
  background: color-mix(in oklch, var(--muted) 45%, transparent);
  overflow: hidden;
}

.codeblock + .codeblock,
.codeblock-wide {
  margin-top: 1.15rem;
}

.qs-grid .codeblock + .codeblock {
  margin-top: 0;
}

.codeblock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid color-mix(in oklch, var(--border), transparent 30%);
  background: color-mix(in oklch, var(--muted) 55%, transparent);
}

.codeblock-title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 9999px;
  background: var(--foreground);
  color: var(--background);
  font-size: 0.68rem;
}

.copy-btn {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: var(--radius, 0.625rem);
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.copy-btn:hover {
  color: var(--foreground);
  background: color-mix(in oklch, var(--foreground) 8%, transparent);
}

.copy-btn .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.copy-btn .ic-check {
  display: none;
  color: oklch(0.6 0.15 150);
}

.copy-btn.copied .ic-copy {
  display: none;
}

.copy-btn.copied .ic-check {
  display: block;
}

.codeblock pre {
  margin: 0;
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--foreground);
}

.codeblock .cmt {
  color: var(--muted-foreground);
}

.codeblock .str {
  color: oklch(0.55 0.15 145);
}

.dark .codeblock .str {
  color: oklch(0.72 0.13 145);
}

.req-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1.15rem;
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border-radius: 1.35rem;
}

@media (min-width: 768px) {
  .req-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.req-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.req-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.req-value {
  font-size: 0.9rem;
  color: var(--foreground);
}

/* ---------- inside lists ---------- */

.frag-list li {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.6rem 0;
  font-size: 0.9rem;
}

.frag-list li + li {
  border-top: 1px solid color-mix(in oklch, var(--border), transparent 50%);
}

.frag-list code {
  flex: none;
  min-width: 7.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}

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

.frag-plain li,
.frag-list li.frag-cont {
  align-items: flex-start;
}

.frag-list li.frag-cont {
  gap: 0.6rem;
}

.frag-bullet {
  flex: none;
  color: var(--foreground) !important;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ---------- closing CTA + footer ---------- */

.cta-section {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.cta-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.75rem, 5vw, 3rem);
  border-radius: 1.75rem;
  text-align: center;
  align-items: center;
}

.cta-copy p {
  max-width: 34rem;
  margin: 0.85rem auto 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: color-mix(in oklch, var(--foreground) 72%, transparent);
}

.cta-panel .cta-row {
  margin-top: 0;
  justify-content: center;
}

.site-footer {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid color-mix(in oklch, var(--border), transparent 30%);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- motion / transparency preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .rainbow-card:hover::before,
  .rainbow-card:hover::after {
    animation-duration: 6s !important;
    animation-iteration-count: infinite !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass-control,
  .apple-panel {
    background: var(--background);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .arch-box,
  .btn-ghost {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
