/* ==========================================================================
   components.css — every visual block on the site, top to bottom.
   ========================================================================== */

/* ---------- 0. Animated background ---------- */
.bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.bg__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.7px);
  background-size: 28px 28px;
}
.bg__spot {
  position: absolute; left: 0; right: 0; top: 0; height: 940px;
  background-image: radial-gradient(var(--dot-hi) 1.4px, transparent 2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
          mask-image: radial-gradient(closest-side, #000, transparent);
  -webkit-mask-size: 640px 640px; mask-size: 640px 640px;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.bg__orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: var(--orb-opacity); }
.bg__orb--1 { width: 640px; height: 640px; left: 50%; margin-left: -320px; top: -60px; background: var(--accent-deep); }
.bg__orb--2 { width: 560px; height: 560px; left: -180px; top: 1500px; background: var(--accent); }
.bg__orb--3 { width: 600px; height: 600px; right: -120px; top: 3000px; background: var(--accent-deep); }
.bg__circuit { position: absolute; left: 0; top: 0; width: 100%; height: 940px; }
.trace { fill: none; stroke: var(--trace); stroke-width: 1.2; }
.pulse { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--accent)); }
.trace-node { fill: var(--bg); stroke: var(--accent); stroke-width: 1.5; }

.page { position: relative; z-index: 1; }

/* The Code Peak mark — peak follows the text colour, cursor is always blue */
.mark-peak { fill: none; stroke: var(--fg); stroke-width: 13; stroke-linejoin: miter; }
.mark-cursor { fill: var(--accent); }

/* ---------- 1. Liquid glass ---------- */
.glass {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
          backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--glass-shadow);
}
.glass::before { /* bright gradient edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--glass-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.glass::after { /* moving sheen */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(110deg, transparent 40%, var(--sheen) 50%, transparent 60%);
  background-size: 260% 100%; background-position: 150% 0;
  pointer-events: none;
}
.glass > * { position: relative; z-index: 1; } /* content sits above the edge + sheen layers */

/* ---------- 2. Navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 20; padding: 16px var(--gutter) 0; }
.nav {
  max-width: var(--container); margin: 0 auto;
  border-radius: 16px; padding: 10px 10px 10px 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.brand:hover { color: var(--fg); }
.brand__name { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; }
.nav__links { display: flex; flex-wrap: wrap; gap: 22px; font-family: var(--font-mono); font-size: 13px; }
.nav__links a { color: var(--fg-2); }
.nav__links a:hover { color: var(--fg); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 13px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; cursor: pointer; border: 0;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent-deep); color: var(--on-accent); }
.btn--primary:hover { color: var(--on-accent); box-shadow: 0 14px 32px -10px rgba(61, 107, 255, 0.9); }
.btn--lg { font-size: 17px; padding: 18px 30px; border-radius: 12px; }

.icon-btn {
  width: 44px; height: 44px; padding: 0; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--panel); color: var(--fg);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .2s, border-color .2s;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--link); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun { display: none; }

/* ---------- 4. Hero ---------- */
.hero {
  max-width: var(--container); margin: 0 auto;
  padding: 140px var(--gutter) 120px;
  display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center;
}
.hero__logo { width: 200px; height: 200px; border-radius: 56px; display: flex; align-items: center; justify-content: center; }
.hero__name { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero__title { font-size: clamp(40px, 5.6vw, 78px); line-height: 1; font-weight: 700; letter-spacing: 0.04em; }
.hero__legal { font-size: 13px; font-weight: 500; letter-spacing: 0.42em; color: var(--fg-2); }
.hero__tagline { max-width: 620px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; color: var(--fg-2); }
.scroll-cue { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.scroll-cue svg path { fill: none; stroke: var(--link); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 5. Ticker (two marquee rows) ---------- */
.ticker {
  border-block: 1px solid var(--line); background: var(--panel);
  padding: 16px 0; display: flex; flex-direction: column; gap: 12px; overflow: hidden;
}
.ticker__row { display: flex; width: max-content; font-family: var(--font-mono); font-size: 15px; white-space: nowrap; color: var(--fg-2); }
.ticker__row--alt { color: var(--fg-3); }
.ticker__row span { padding-right: 36px; }
.ticker__row .sym { color: var(--accent); }

/* ---------- 6. Git rail + commit headers ---------- */
.rail { margin-left: 8px; border-left: 1px dashed var(--line-2); padding-left: var(--rail-pad); }
.section { padding: 64px 0; }
.section--first { padding-top: 96px; }
.section--last { padding-bottom: 96px; }
.commit { position: relative; display: flex; flex-direction: column; gap: 14px; }
.commit__node {
  position: absolute; top: 2px; left: calc(-1 * var(--rail-pad) - 8px);
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.commit__node--head { background: var(--accent); }
.commit__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; color: var(--fg-2); }
.commit__hash { color: var(--link); }
.head-tag { color: var(--on-accent); background: var(--accent-deep); padding: 3px 8px; border-radius: 6px; }

/* ---------- 7. Build & ship ---------- */
.stack-lg { display: flex; flex-direction: column; gap: 56px; }
.stack-md { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.split > * { flex: 1 1 360px; min-width: 0; }
.split > .split__wide { flex: 1 1 500px; }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; font-size: 16px; line-height: 1.55; color: var(--fg-2); }
.checklist svg { flex-shrink: 0; margin-top: 2px; width: 20px; height: 20px; }
.checklist svg path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.checklist b { color: var(--fg); font-weight: 600; }

/* code editor window */
.window { border-radius: var(--radius-lg); }
.window__bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.window__dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.window__dot--r { background: #FF5F57; } .window__dot--y { background: #FEBC2E; } .window__dot--g { background: #28C840; }
.window__tab { margin-left: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--fg); padding: 5px 10px; border-radius: 6px; background: var(--chip); }
.window__tab--dim { margin-left: 0; color: var(--fg-3); background: transparent; }
.window__title { margin-left: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); }
.code { display: flex; gap: 18px; padding: 22px 20px; font-family: var(--font-mono); font-size: 14px; line-height: 2; }
.code__lines { color: var(--line-no); text-align: right; user-select: none; }
.code__body { min-width: 0; overflow: hidden; color: var(--code); }
.code .kw { color: var(--code-kw); }
.code .str { color: var(--code-str); }
.code .an { color: var(--link); }
.code .fn { color: var(--fg); font-weight: 700; }
.code .cm { color: var(--fg-3); }
.code-caret { display: inline-block; width: 9px; height: 18px; margin-left: 2px; vertical-align: -3px; background: var(--accent); }
.build-bar { border-top: 1px solid var(--line); padding: 14px 20px; min-height: 58px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.build-bar__label { font-family: var(--font-mono); font-size: 12px; color: var(--link); margin-right: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; padding: 7px 12px; border-radius: 8px; background: var(--chip); color: var(--fg); }
.chip svg { width: 12px; height: 12px; }
.chip svg path { fill: none; stroke: var(--link); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.statusbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 8px 20px; background: var(--status); font-family: var(--font-mono); font-size: 11px; color: var(--fg-2); }

/* ship steps */
.steps { position: relative; }
.steps__line { position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: var(--line-2); }
.steps__flow { position: absolute; inset: -1px 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 30% 100%; background-repeat: no-repeat; }
.grid-cards { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.card__meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; }
.card__hash { color: var(--link); }
.card__num { color: var(--fg-3); }
.card__title { font-size: 20px; font-weight: 700; }
.card__text { font-size: 15px; line-height: 1.6; color: var(--fg-2); }

/* platforms */
.platform { border-radius: 18px; padding: 22px; display: flex; align-items: center; gap: 14px; }
.platform__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--chip); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.platform__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--fg); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.platform__name { font-size: 17px; font-weight: 700; }
.platform__store { font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); }

/* hover lift used by cards */
.lift { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(61, 107, 255, 0.55), 0 30px 70px -30px rgba(61, 107, 255, 0.5); }

/* ---------- 8. Terminal ---------- */
.terminal { border-radius: var(--radius-lg); }
.terminal__screen { padding: 22px 22px 8px; min-height: 190px; font-family: var(--font-mono); font-size: 14px; line-height: 1.9; }
.terminal__prompt { color: var(--link); }
.terminal__cmd { color: var(--fg); }
.terminal__out { color: var(--fg-2); white-space: pre-wrap; }
.terminal__caret { display: inline-block; width: 9px; height: 17px; vertical-align: -3px; background: var(--accent); }
.terminal__cmds { padding: 14px 22px 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.cmd {
  min-height: 44px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: transparent; color: var(--fg-2);
  font-family: var(--font-mono); font-size: 13px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.cmd:hover { border-color: var(--link); color: var(--fg); }
.cmd[aria-pressed="true"] { border-color: var(--accent); background: var(--chip-strong); color: var(--fg); }

/* ---------- 9. Products (showcase: tabs + phone mockups) ---------- */
.products { display: block; }
.showcase { --app-accent: var(--accent); }
.showcase__tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 0; margin-bottom: -1px; scrollbar-width: thin; position: relative; z-index: 2; }
.showcase__tab {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-2); background: transparent;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.showcase__tab:hover { background: var(--hover); color: var(--fg); }
.showcase__tab[aria-selected="true"] { color: var(--fg); background: var(--chip); border-color: var(--line-2); }
.showcase__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex-shrink: 0; }
.showcase__dot--live { background: var(--link); }
.showcase__tabicon { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.showcase__tabicon--placeholder { background: var(--accent-deep); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font: 700 11px var(--font-sans); }

.showcase__panel {
  --px: 44px; /* horizontal padding; the mobile carousel reads it to bleed to the card edges */
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 30px; align-items: center;
  padding: 44px var(--px); border-radius: 0 var(--radius-xl) var(--radius-xl) var(--radius-xl);
}
.showcase__panel[hidden] { display: none; }
.showcase__glow {
  position: absolute !important; width: 420px; height: 420px; border-radius: 50%; right: 8%; top: 50%; transform: translateY(-50%);
  background: radial-gradient(circle, var(--app-accent), transparent 65%); opacity: .22; filter: blur(40px); pointer-events: none; z-index: 0 !important;
}
.showcase__info { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.showcase__status { font-family: var(--font-mono); font-size: 12px; display: inline-flex; align-items: center; gap: 8px; }
.showcase__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse-dot 1.8s infinite; }
@keyframes pulse-dot { 50% { opacity: .35; } }
.showcase__title { display: flex; align-items: center; gap: 16px; }
.showcase__icon { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.showcase__icon--placeholder { background: var(--accent-deep); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font: 700 24px var(--font-sans); }
.showcase__panel .product__name { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.02em; line-height: 1.1; }
.showcase__panel .product__desc { font-size: 16px; line-height: 1.65; }
.showcase__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.showcase__tags span { font-family: var(--font-mono); font-size: 12px; background: var(--chip); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; color: var(--fg-2); }
.showcase__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.store-btn {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 8px 20px; border-radius: 14px;
  background: var(--accent-deep); color: var(--on-accent); font-size: 15px; font-weight: 700; text-decoration: none;
  transition: transform .2s, background-color .2s;
}
a.store-btn:hover { transform: translateY(-2px); background: var(--accent); }
.store-btn--soon { background: var(--hover); border: 1px solid var(--line-2); color: var(--fg-3); cursor: not-allowed; }
.store-btn__small { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.store-btn__big { font-size: 17px; font-weight: 700; color: var(--fg-2); }
.showcase__file { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-3); }

/* ---- Phones ----------------------------------------------------------------------------
   No fixed heights and no fixed offsets. .deck is a size container, so every measurement below
   is derived from the width the deck really gets (cqw = 1% of the deck's width).
   • ≥ 641px : layered deck (centre phone + two angled neighbours), scales down with the column.
   • ≤ 640px : native swipe carousel (scroll-snap). No transforms to clip, so nothing can overflow. */
.deck {
  container-type: inline-size;
  display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0;
}
.deck__track {
  --pw: clamp(150px, 42cqw, 224px);   /* phone width */
  --pad: calc(var(--pw) * .031);      /* bezel thickness */
  position: relative; width: 100%; height: calc(var(--pw) * 2.14);
  display: flex; justify-content: center; align-items: center;
}
@supports not (width: 1cqw) { .deck__track { --pw: 200px; } }

.phone {
  position: absolute; width: var(--pw); padding: var(--pad); border: 0; border-radius: calc(var(--pw) * .17); cursor: pointer;
  background: linear-gradient(160deg, #2b3347, #0c1019); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .65), inset 0 0 0 1.5px rgba(255, 255, 255, .14);
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .4s, filter .4s;
  -webkit-tap-highlight-color: transparent;
}
.phone[data-pos="c"] { transform: none; z-index: 3; cursor: default; }
.phone[data-pos="r"] { transform: translateX(calc(var(--pw) * .67)) scale(.8) rotate(5deg); z-index: 2; filter: brightness(.72); }
.phone[data-pos="l"] { transform: translateX(calc(var(--pw) * -.67)) scale(.8) rotate(-5deg); z-index: 2; filter: brightness(.72); }
.phone[data-pos="x"] { transform: scale(.6); opacity: 0; pointer-events: none; z-index: 1; }
.phone:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* The screen's height comes from the screenshot's own aspect ratio (1320×2868), so it never distorts. */
.phone__screen { display: block; width: 100%; aspect-ratio: 1320 / 2868; border-radius: calc(var(--pw) * .138); overflow: hidden; position: relative; background: #070b14; }
.phone__screen::before { /* camera pill */
  content: ""; position: absolute; top: calc(var(--pw) * .031); left: 50%; width: 28%; height: calc(var(--pw) * .071);
  transform: translateX(-50%); border-radius: 99px; background: #05070b; z-index: 2;
}
.phone__screen img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  background: radial-gradient(circle at 50% 32%, var(--app-accent), #070b14 72%); color: #fff;
}
.phone__ph b { width: 76px; height: 76px; border-radius: 22px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); display: flex; align-items: center; justify-content: center; font-size: 32px; }
.phone__ph span { font-family: var(--font-mono); font-size: 11px; opacity: .85; }

.deck__label { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-3); min-height: 1.3em; }
.deck__dots { display: flex; gap: 4px; min-height: 24px; }
.deck__dots button { width: 24px; height: 24px; border: 0; background: transparent; cursor: pointer; position: relative; }
.deck__dots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 99px; background: var(--line-2); transition: width .3s, margin .3s, background-color .3s; }
.deck__dots button[aria-current="true"]::after { width: 24px; margin-left: -12px; background: var(--app-accent); }

/* Tablet and below: info on top, phones below */
@media (max-width: 900px) {
  .showcase__panel { --px: 22px; grid-template-columns: 1fr; padding-block: 30px; }
  .showcase__glow { right: 50%; top: auto; bottom: -40px; transform: translateX(50%); }
}

/* Phones: swipe carousel */
@media (max-width: 640px) {
  .showcase__panel { --px: 0px; padding-block: 26px 18px; }   /* no side padding on the card: the deck bleeds to its edges… */
  .showcase__info { padding-inline: 20px; }                    /* …while the text keeps its own */
  .showcase__icon { width: 52px; height: 52px; border-radius: 14px; }
  .showcase__cta, .showcase__cta .store-btn { width: 100%; }
  .showcase__tabs { scrollbar-width: none; }
  .showcase__tabs::-webkit-scrollbar { display: none; }

  .deck__track {
    --pw: clamp(160px, 62cqw, 250px);
    justify-content: flex-start; align-items: flex-start; gap: 14px; height: auto;
    padding: 6px calc((100cqw - var(--pw)) / 2) 34px;   /* bottom room so the phone shadow isn't clipped by the scroller */
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .deck__track::-webkit-scrollbar { display: none; }
  .deck__track .phone[data-pos] {
    box-shadow: 0 16px 28px -16px rgba(0, 0, 0, .6), inset 0 0 0 1.5px rgba(255, 255, 255, .14);
    position: relative; flex: 0 0 var(--pw); scroll-snap-align: center; scroll-snap-stop: always;
    transform: scale(.93); opacity: 1; filter: brightness(.7); pointer-events: auto; z-index: auto;
  }
  .deck__track .phone[data-pos="c"] { transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .phone { transition: none; }
  .showcase__status::before { animation: none; }
}

/* ---------- 10. Team ---------- */
.code-block { padding: 24px 22px; font-family: var(--font-mono); font-size: 14px; line-height: 2; color: var(--code); overflow-x: auto; white-space: pre; }
.code-block .kw { color: var(--code-kw); }
.code-block .str { color: var(--code-str); }
.team-links { border-top: 1px solid var(--line); padding: 16px 22px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.team-links__row { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.team-links__name { font-weight: 600; min-width: 140px; }
.team-links a { font-weight: 600; }

/* ---------- 11. Contact ---------- */
.contact-card { border-radius: var(--radius-xl); padding: 64px 40px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.contact-card__title { font-size: clamp(38px, 5vw, 68px); line-height: 1.03; font-weight: 700; letter-spacing: -0.04em; }
.contact-card__text { max-width: 480px; font-size: 17px; line-height: 1.6; color: var(--fg-2); }
.prompt-box { font-family: var(--font-mono); font-size: 15px; color: var(--fg-2); padding: 12px 18px; border-radius: var(--radius-sm); background: var(--inset); border: 1px solid var(--line-2); word-break: break-all; }
.prompt-box a { color: var(--fg-2); }
.prompt-box a:hover { color: var(--fg); }

/* ---------- 12. Footer ---------- */
.footer { border-top: 1px solid var(--line-2); background: var(--footer); position: relative; z-index: 1; }
.footer__grid { max-width: var(--container); margin: 0 auto; padding: 64px var(--gutter) 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__heading { font-family: var(--font-mono); font-size: 12px; color: var(--link); }
.footer__col a { font-size: 15px; color: var(--fg-2); transition: color .2s; }
.footer__col a:hover { color: var(--fg); }
.footer__company { font-size: 14px; line-height: 1.7; color: var(--fg-2); }
.footer__bar { border-top: 1px solid var(--line-2); background: var(--status); }
.footer__bar-inner { max-width: var(--container); margin: 0 auto; padding: 14px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); }
.footer__bar-inner > div { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- 13. Legal / document pages ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 120px var(--gutter) 96px; }
.doc__card { border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 56px); }
.doc h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--fg-2); font-size: 16px; line-height: 1.75; }
.doc ul { padding-left: 20px; margin: 8px 0; }
.doc .doc__updated { font-family: var(--font-mono); font-size: 13px; color: var(--fg-3); margin-bottom: 24px; }
.doc .doc__note { margin-top: 32px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--inset); border: 1px dashed var(--line-2); font-size: 14px; }

/* ---------- 14. 404 ---------- */
.notfound { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 120px var(--gutter); }
.notfound .terminal { width: min(640px, 100%); }

/* ---------- 15. Small screens ---------- */
@media (max-width: 720px) {
  :root { --rail-pad: 28px; --gutter: 18px; }
  .nav__links { display: none; }
  .hero { padding-top: 96px; padding-bottom: 88px; }
  .hero__logo { width: 160px; height: 160px; border-radius: 44px; }
  .hero__legal { letter-spacing: 0.3em; }
  .contact-card { padding: 48px 22px; }
  .steps__line { display: none; }
  .nav { padding: 8px 8px 8px 14px; gap: 10px; }
  .nav .btn { padding: 10px 16px; }
  .code { font-size: 12px; gap: 12px; padding: 18px 14px; }
  .code__body { overflow-x: auto; }        /* long lines scroll instead of being cut off */
  .build-bar, .statusbar { padding-inline: 14px; }
}

/* very narrow phones: the mark alone is enough in the nav (the hero shows the full name) */
@media (max-width: 420px) {
  .site-header .brand__name { display: none; }
}
