/* TianLab — terminal aesthetic. Ubuntu Mono everywhere; one accent at a time. */

@font-face {
  font-family: "Ubuntu Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/UbuntuMono-R.woff2") format("woff2");
}
@font-face {
  font-family: "Ubuntu Mono";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/UbuntuMono-RI.woff2") format("woff2");
}
@font-face {
  font-family: "Ubuntu Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/UbuntuMono-B.woff2") format("woff2");
}
@font-face {
  font-family: "Ubuntu Mono";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/UbuntuMono-BI.woff2") format("woff2");
}

:root {
  --font-mono: "Ubuntu Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --c-bg:        #f6f5ef;
  --c-bg-soft:   #efeee5;
  --c-surface:   #fffefa;
  --c-surface-2: #f0eee2;
  --c-text:      #1a1c20;
  --c-muted:     #5a5e66;
  --c-faint:     #aeb0a8;
  --c-line:      #d8d6c8;
  --c-line-soft: #e6e4d6;

  --c-coral:    #b06340;
  --c-green:    #00c950;
  --c-amber:    #c2410c;
  --c-cyan:     #0e7490;
  --c-magenta:  #be185d;
  --c-red:      #b91c1c;
  --c-yellow:   #b45309;

  --c-accent: var(--c-coral);

  --radius: 4px;
  --radius-lg: 8px;
  --shadow-1: 0 1px 0 0 var(--c-line), 0 8px 24px -16px rgba(0, 0, 0, 0.18);
  --shadow-card: 0 0 0 1px var(--c-line), 0 1px 0 0 var(--c-line);
  --shadow-card-h: 0 0 0 1px var(--c-text), 0 6px 0 -2px var(--c-bg-soft), 0 8px 24px -12px rgba(0, 0, 0, 0.2);

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  --t-fast: 140ms cubic-bezier(.4,.1,.2,1);
  --t-base: 220ms cubic-bezier(.4,.1,.2,1);
}

[data-theme="dark"], html[data-theme="auto"] {
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --c-bg:        #0a0a0c;
    --c-bg-soft:   #0f1014;
    --c-surface:   #14151a;
    --c-surface-2: #1a1c22;
    --c-text:      #e8eaee;
    --c-muted:     #9ba0aa;
    --c-faint:     #ffffff;
    --c-line:      #25272f;
    --c-line-soft: #1c1e25;

    --c-coral:    #d49070;
    --c-green:    #00c950;
    --c-amber:    #fb923c;
    --c-cyan:     #67c8e3;
    --c-magenta:  #f06fa1;
    --c-red:      #f08775;
    --c-yellow:   #f0c75e;

    --shadow-card: 0 0 0 1px var(--c-line), inset 0 1px 0 0 rgba(255,255,255,0.02);
    --shadow-card-h: 0 0 0 1px var(--c-coral), 0 0 0 4px rgba(212, 144, 112, 0.12);
  }
}

[data-theme="dark"] {
  --c-bg:        #0a0a0c;
  --c-bg-soft:   #0f1014;
  --c-surface:   #14151a;
  --c-surface-2: #1a1c22;
  --c-text:      #e8eaee;
  --c-muted:     #9ba0aa;
  --c-faint:     #ffffff;
  --c-line:      #25272f;
  --c-line-soft: #1c1e25;

  --c-coral:    #d49070;
  --c-green:    #00c950;
  --c-amber:    #fb923c;
  --c-cyan:     #67c8e3;
  --c-magenta:  #f06fa1;
  --c-red:      #f08775;
  --c-yellow:   #f0c75e;

  --shadow-card: 0 0 0 1px var(--c-line), inset 0 1px 0 0 rgba(255,255,255,0.02);
  --shadow-card-h: 0 0 0 1px var(--c-coral), 0 0 0 4px rgba(212, 144, 112, 0.12);
}

[data-theme="light"] {
  --c-bg:        #fafaf7;
  --c-bg-soft:   #f1f1ec;
  --c-surface:   #ffffff;
  --c-surface-2: #f4f4ef;
  --c-text:      #15171c;
  --c-muted:     #555861;
  --c-faint:     #a4a7b0;
  --c-line:      #d8d8d2;
  --c-line-soft: #e6e6e0;

  --c-coral:    #b06340;
  --c-green:    #00c950;
  --c-amber:    #c2410c;
  --c-cyan:     #0e7490;
  --c-magenta:  #be185d;

  --shadow-card: 0 0 0 1px var(--c-line), 0 1px 0 0 var(--c-line);
  --shadow-card-h: 0 0 0 1px var(--c-coral), 0 0 0 4px rgba(176, 99, 64, 0.10);
}

* { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 80% -10%, color-mix(in oklab, var(--c-accent) 8%, transparent), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, color-mix(in oklab, var(--c-accent) 6%, transparent), transparent 55%),
    var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "calt", "liga";
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--c-text) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--c-text) 6%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  opacity: 0.30;
  z-index: 1;
  mask-image:
    radial-gradient(ellipse 90% 65% at 50% 25%, black 0%, transparent 75%);
  -webkit-mask-image:
    radial-gradient(ellipse 90% 65% at 50% 25%, black 0%, transparent 75%);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] body::before { opacity: 0.22; }
}
[data-theme="dark"] body::before { opacity: 0.22; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-text);
  color: var(--c-bg);
  padding: 8px 14px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ── Nav ──────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--c-bg) 78%, transparent);
  border-bottom: 1px solid var(--c-line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.brand__path { color: var(--c-faint); }
.brand__name { color: var(--c-text); }
.brand__cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  background: var(--c-accent);
  margin-left: 4px;
  transform: translateY(0.12em);
  animation: blink 1.05s steps(2) infinite;
}

@keyframes blink { 50% { opacity: 0.25; } }

.nav__list { margin-left: auto; display: flex; justify-content: flex-end; }
.nav__list ul {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 6px;
  color: var(--c-text);
  font-size: 13px;
  border: 1px solid var(--c-line);
  background: transparent;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  cursor: pointer;
}

.nav__link:hover {
  border-color: var(--c-green);
  background: color-mix(in oklab, var(--c-green) 8%, transparent);
}

.nav__cmd-prefix {
  color: var(--c-green);
  font-weight: 600;
}
.nav__cmd-text { color: var(--c-text); }

.nav__link--cta {
  color: var(--c-green);
  border-color: var(--c-green);
}
.nav__link--cta .nav__cmd-text { color: var(--c-green); }
.nav__link--cta:hover {
  background: color-mix(in oklab, var(--c-green) 14%, transparent);
}

.nav__tools { display: flex; gap: 8px; align-items: center; }

.theme-toggle {
  padding: 4px 10px;
  min-height: 0;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  color: var(--c-text);
  cursor: pointer;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.theme-toggle:hover { color: var(--c-accent); }
.theme-toggle:hover { border-color: var(--c-accent); }

.theme-toggle [data-theme-icon="dark"]  { display: none; }
.theme-toggle [data-theme-icon="light"] { display: inline; }
[data-theme="dark"] .theme-toggle [data-theme-icon="dark"]  { display: inline; }
[data-theme="dark"] .theme-toggle [data-theme-icon="light"] { display: none; }
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .theme-toggle [data-theme-icon="dark"]  { display: inline; }
  html[data-theme="auto"] .theme-toggle [data-theme-icon="light"] { display: none; }
}

.nav__menu {
  display: none;
  padding: 4px 10px;
  min-height: 0;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav__menu span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--c-text);
}

@media (max-width: 880px) {
  .nav__inner { gap: 8px; }
  .nav__list { display: none; position: absolute; top: 64px; left: 0; right: 0; margin-left: 0; background: var(--c-bg); border-bottom: 1px solid var(--c-line); padding: 16px var(--gutter); }
  .nav__list ul { flex-direction: column; gap: 4px; align-items: stretch; }
  .nav__list[data-open="true"] { display: flex; }
  .nav__tools { margin-left: auto; }
  .nav__menu { display: inline-flex; order: 3; }
  .nav__tools .nav__link--cta { order: 2; }
  .theme-toggle { order: 1; }
}
@media (max-width: 520px) {
  .nav__tools .nav__link--cta { padding-left: 10px; padding-right: 10px; }
}

/* ── Hero ─────────────────────────────────────────────────────── */

.hero { padding: clamp(48px, 9vw, 96px) 0 clamp(48px, 7vw, 80px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__aside { margin-left: auto; margin-right: auto; }
}

.hero__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--c-muted);
}

.hero__dot { width: 10px; height: 10px; border-radius: 50%; }
.hero__dot--r { background: var(--c-red);    box-shadow: 0 0 0 1px color-mix(in oklab, var(--c-red) 40%, transparent); }
.hero__dot--y { background: var(--c-yellow); box-shadow: 0 0 0 1px color-mix(in oklab, var(--c-yellow) 40%, transparent); }
.hero__dot--g { background: var(--c-green);  box-shadow: 0 0 0 1px color-mix(in oklab, var(--c-green) 40%, transparent); }

.hero__chrome-label { margin-left: 8px; letter-spacing: 0.04em; }

.hero__main, .hero__aside {
  display: flex;
  flex-direction: column;
}

.hero__main {
  padding: 0 0 clamp(24px, 4vw, 32px);
  min-width: 0;
}

.hero__title {
  font-size: clamp(28px, 5.6vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  margin: clamp(20px, 4vw, 40px) clamp(20px, 4vw, 40px) 16px;
  letter-spacing: -0.025em;
  color: var(--c-text);
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.4vw, 18px);
  overflow-wrap: anywhere;
  word-break: normal;
}

.hero__line {
  display: block;
  line-height: 1.05;
}

.hero__line--sub {
  font-size: 0.62em;
  font-weight: 400;
  color: var(--c-muted);
  letter-spacing: -0.015em;
}

.hero__prompt {
  color: var(--c-accent);
  margin-right: 0.32em;
}
.hero__line-text { color: inherit; }
.hero__line:first-child .hero__line-text { color: var(--c-text); }

.hero__caret {
  display: inline-block;
  width: 0.45em;
  height: 0.95em;
  background: var(--c-accent);
  margin-left: 0.08em;
  transform: translateY(0.05em);
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.hero__code {
  margin: 0 clamp(20px, 4vw, 40px);
  padding: 18px 20px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 14px;
  overflow-x: auto;
  white-space: pre;
}

.hero__code code { font-family: inherit; }

.tok-key { color: var(--c-magenta); }
.tok-id  { color: var(--c-cyan); }
.tok-op  { color: var(--c-muted); }
.tok-num { color: var(--c-amber); font-weight: 500; }
.tok-com { color: var(--c-faint); font-style: italic; }
.tok-str { color: var(--c-green); }

.hero__desc {
    margin: 20px clamp(20px, 4vw, 40px) 0;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
    color: var(--c-muted);
    white-space: pre-wrap;
    max-width: 56ch;
    border-left: solid 5px var(--c-accent);
    padding: 0px 10px;
    background: var(--c-bg-soft);
}
.hero__desc code { font-family: inherit; display: block; }
.hero__desc-mark { color: var(--c-green); font-weight: 500; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(20px, 4vw, 28px) clamp(20px, 4vw, 40px) 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  color: var(--c-text);
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  cursor: pointer;
  min-height: 44px;
}
.btn__cmd { color: var(--c-faint); font-size: 12px; }
.btn:hover { border-color: var(--c-accent); }
.btn:hover .btn__cmd { color: var(--c-accent); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--c-accent);
  color: var(--c-bg);
  border-color: var(--c-accent);
}
.btn--primary .btn__cmd { color: color-mix(in oklab, var(--c-bg) 70%, var(--c-accent) 30%); }
.btn--primary:hover {
  background: color-mix(in oklab, var(--c-accent) 88%, var(--c-text));
}
.btn--primary:hover .btn__cmd { color: color-mix(in oklab, var(--c-bg) 70%, var(--c-accent) 30%); }

.hero__aside {
  display: flex;
  flex-direction: column;
  background: color-mix(in oklab, var(--c-bg) 92%, transparent);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--c-text);
  min-width: 0;
  max-width: 450px;
}

.hero__aside .hero__chrome {
  border-bottom: 1px solid var(--c-line);
  background: color-mix(in oklab, var(--c-bg) 96%, transparent);
}

.hero__aside-title {
  margin: 18px 22px 8px;
  font-size: 14px;
  color: var(--c-muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__chart {
  width: calc(100% - 32px);
  margin: 16px 16px 8px;
  color: var(--c-accent);
}
.hero__chart-y text,
.hero__chart-x text { fill: var(--c-muted); font-family: var(--font-mono); }
.hero__chart-grid line { stroke: var(--c-line); stroke-dasharray: 2 4; }

.hero__aside-note {
  margin: 0 16px 16px;
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.6;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Sections (shared) ────────────────────────────────────────── */

.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px dashed var(--c-line); }

.section__header { margin-bottom: clamp(24px, 4vw, 40px); max-width: 70ch; }

.section__kicker {
  font-size: 13px;
  color: var(--c-accent);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.section__prompt { color: var(--c-muted); margin-right: 6px; }

.section__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section__subtitle {
  margin: 0;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ── Skills bar + grid ───────────────────────────────────────── */

.skill-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  margin-bottom: 24px;
  transition: border-color var(--t-fast);
}
.skill-bar:focus-within { border-color: var(--c-accent); }
.skill-bar__prompt { color: var(--c-accent); font-size: 14px; flex-shrink: 0; }
.skill-bar__input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: 15px;
  outline: none;
  min-width: 0;
}
.skill-bar__input::placeholder {
  color: var(--c-muted);
  opacity: 0.7;
}
.skill-bar__hint {
  color: var(--c-faint);
  font-size: 13px;
  padding: 2px 8px;
  border: 1px solid var(--c-line);
  border-radius: 3px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.skill {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t-base), transform var(--t-base);
  overflow: hidden;
}

.skill:hover { box-shadow: var(--shadow-card-h); transform: translateY(-2px); }

.skill__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-line);
  font-size: 12px;
  color: var(--c-muted);
}
.skill__filename { margin-left: 6px; flex: 1; color: var(--c-text); font-size: 13px; }
.skill__stars { color: var(--c-amber); font-size: 12px; }

.skill__link {
  padding: 16px 18px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill__source { margin: 0; font-size: 12px; color: var(--c-muted); }
.skill__source-name { color: var(--c-cyan); }

.skill__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-clamp: 4;
  overflow: hidden;
}

.skill__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-top: 1px dashed var(--c-line);
  font-size: 12px;
  color: var(--c-muted);
}

.skill__pill {
  padding: 2px 8px;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  color: var(--c-faint);
  letter-spacing: 0.04em;
}

/* ── Occupations ─────────────────────────────────────────────── */

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.chip:hover {
  border-color: var(--c-accent);
  color: var(--c-text);
  background: color-mix(in oklab, var(--c-surface) 85%, var(--c-accent) 6%);
}
.chip__count {
  color: var(--c-faint);
  font-size: 12px;
  padding: 2px 8px;
  border: 1px solid var(--c-line);
  border-radius: 3px;
}
.chip:hover .chip__count { color: var(--c-accent); border-color: var(--c-accent); }

/* ── Categories ──────────────────────────────────────────────── */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  border-top: 1px dashed var(--c-line);
  border-left: 1px dashed var(--c-line);
}

.cat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-right: 1px dashed var(--c-line);
  border-bottom: 1px dashed var(--c-line);
  font-size: 14px;
  color: var(--c-text);
  transition: background var(--t-fast), color var(--t-fast);
  position: relative;
}
.cat__hash { color: var(--c-faint); font-weight: 600; }
.cat__name { flex: 1; }
.cat__count { color: var(--c-faint); font-size: 12px; }

.cat[data-accent="green"]   { --cat: var(--c-green); }
.cat[data-accent="amber"]   { --cat: var(--c-amber); }
.cat[data-accent="cyan"]    { --cat: var(--c-cyan); }
.cat[data-accent="magenta"] { --cat: var(--c-magenta); }

.cat:hover {
  background: color-mix(in oklab, var(--c-surface) 80%, var(--cat, var(--c-accent)) 12%);
}
.cat:hover .cat__hash, .cat:hover .cat__count { color: var(--cat, var(--c-accent)); }

/* ── API ─────────────────────────────────────────────────────── */

.api__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
@media (max-width: 880px) { .api__grid { grid-template-columns: 1fr; } }

.api__sample {
  margin: 0;
  padding: 20px 22px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  font-size: 13.5px;
  line-height: 1.65;
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

/* ── About ───────────────────────────────────────────────────── */

.about__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }

.about__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.about__steps li {
  padding: 22px 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  position: relative;
}
.about__step {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 12px;
  color: var(--c-faint);
  letter-spacing: 0.06em;
}
.about__steps h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.about__steps p { margin: 0; color: var(--c-muted); font-size: 14px; line-height: 1.65; }
.about__steps code { font-family: inherit; color: var(--c-accent); }

/* ── Browse steps ────────────────────────────────────────────── */

.browse__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
}
.browse__steps li {
  padding: 14px 18px;
  background: var(--c-surface);
  border-left: 2px solid var(--c-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.browse__steps code { color: var(--c-accent); font-family: inherit; margin-right: 8px; }

/* ── FAQ ─────────────────────────────────────────────────────── */

.faq__list { display: grid; gap: 8px; }

.faq__item {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 500;
  user-select: none;
  transition: background var(--t-fast);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: var(--c-surface-2); }
.faq__num { color: var(--c-faint); font-size: 13px; font-weight: 400; min-width: 22px; }
.faq__q { flex: 1; }
.faq__caret {
  font-size: 18px;
  color: var(--c-muted);
  transition: transform var(--t-base);
  width: 20px;
  text-align: center;
}
.faq__item[open] .faq__caret { transform: rotate(45deg); color: var(--c-accent); }
.faq__a {
  padding: 0 22px 20px 60px;
  color: var(--c-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ── Footer ──────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--c-line);
  margin-top: clamp(48px, 8vw, 80px);
  padding: 48px 0 32px;
  background: var(--c-surface);
}

.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-bottom: 36px;
}
@media (max-width: 880px) { .foot__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot__top { grid-template-columns: 1fr; } }

.foot__brand-name {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--c-text);
}
.foot__tagline { color: var(--c-muted); font-size: 13px; line-height: 1.65; margin: 0; max-width: 38ch; }

.foot__title {
  font-size: 12.5px;
  color: var(--c-accent);
  margin: 0 0 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.foot__group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot__group a {
  font-size: 14px;
  color: var(--c-muted);
  transition: color var(--t-fast);
}
.foot__group a:hover { color: var(--c-text); }

.foot__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px dashed var(--c-line);
  font-size: 12px;
  color: var(--c-faint);
}

@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;
  }
}
