/* Artisso site. Shares its layout language with osaiku.com,
   re-tuned to the Artisso logo's amber-to-coral gradient. */

:root {
  --bg: #0b0d14;
  --bg-tint: #0f121b;
  --bg-card: #0d1018;
  --surface: rgba(50, 56, 74, 0.40);
  --surface-solid: #1a1e2a;
  --titlebar: #262b39;
  --line: rgba(110, 114, 134, 0.42);
  --line-soft: rgba(110, 114, 134, 0.2);
  --text: #eef0f6;
  --text-2: #b3b8c8;
  --text-3: #82889c;
  --gold: #ffd27a;
  --amber: #ffb547;
  --coral: #ff8a4c;
  --rose: #f0527a;
  --teal: #2dd4bf;
  --green: #4ade80;
  --ink: #17110d;           /* dark text on warm buttons */

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Shared bits ---------- */

.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  flex: none;
}
.dot--green { background: var(--green); box-shadow: 0 0 10px rgba(74, 222, 128, 0.6); }
.dot--amber { background: var(--amber); box-shadow: 0 0 10px rgba(255, 181, 71, 0.55); }

.grad {
  background: linear-gradient(100deg, var(--gold) 0%, var(--coral) 48%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow, .section .label {
  font: 500 13px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 18px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font: 600 15px/1 var(--font);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), var(--coral));
  box-shadow: 0 8px 28px -8px rgba(255, 138, 76, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover { box-shadow: 0 12px 34px -8px rgba(255, 138, 76, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(50, 56, 74, 0.25);
}
.btn--ghost:hover { border-color: var(--coral); background: rgba(255, 138, 76, 0.08); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform 0.15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Navigation ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 20, 0.74);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  display: flex; align-items: center; gap: 20px;
  height: 66px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  font: 700 20px/1 var(--font-display);
  letter-spacing: 0.01em;
}
.nav__links {
  display: flex; gap: 4px;
  margin-left: auto;
}
.nav__links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 138, 76, 0.1); }

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(11, 13, 20, 0.6);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.06em;
}
.lang a, .lang span {
  padding: 7px 9px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--text-3);
}
.lang a:hover { color: var(--text); }
.lang [aria-current] { color: var(--ink); background: var(--amber); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 56px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(255, 138, 76, 0.22), transparent 65%),
    radial-gradient(620px 420px at 98% 60%, rgba(240, 82, 122, 0.15), transparent 70%),
    radial-gradient(700px 480px at 4% 92%, rgba(45, 212, 191, 0.10), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(179, 184, 200, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(179, 184, 200, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 700;
  margin-bottom: 24px;
}
.lead {
  font-size: 19px;
  color: var(--text-2);
  max-width: 34em;
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__note {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  color: var(--text-3);
  margin: 0;
}
.hero__note a { color: var(--text-2); }
.hero__note a:hover { color: var(--text); }

.hero__visual {
  position: relative;
  margin: 0;
}

.window {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--titlebar);
  border: 1px solid rgba(126, 128, 148, 0.5);
  box-shadow:
    0 0 0 1px rgba(11, 13, 20, 0.6),
    0 40px 90px -30px rgba(4, 6, 12, 0.95),
    0 0 80px -12px rgba(255, 138, 76, 0.32);
}
.window__bar {
  position: relative;
  display: flex; align-items: center;
  height: 38px;
  padding: 0 14px 0 16px;
  background: linear-gradient(180deg, #2e3444, var(--titlebar));
  border-bottom: 1px solid rgba(110, 114, 134, 0.5);
}
.window__title {
  position: absolute; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--text-2);
}
/* The hero badge sits over the left of the bar, so its title moves right. */
.hero__visual .window__title { left: auto; right: 16px; transform: none; }
.window__ctl { display: flex; gap: 8px; }
.window__ctl i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(179, 184, 200, 0.22);
}
.window__ctl i:first-child { background: var(--coral); }

/* Code editor inside the hero window. Each line is its own block so the
   counter can number it; white-space is preserved per line only. */
.code {
  display: block;
  margin: 0;
  padding: 18px 0 20px;
  background: #11141d;
  font: 500 clamp(11.5px, 1.1vw, 13px)/1.75 var(--font-mono);
  color: #d4d8e4;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 114, 134, 0.5) transparent;
  counter-reset: line;
}
.code .l {
  display: block;
  white-space: pre;
  padding: 0 22px 0 0;
  counter-increment: line;
}
.code .l::before {
  content: counter(line);
  display: inline-block;
  width: 44px;
  padding-right: 18px;
  text-align: right;
  color: #4b5164;
}
.code .l.hl { background: linear-gradient(90deg, rgba(255, 138, 76, 0.14), transparent 80%); box-shadow: inset 2px 0 0 var(--coral); }
.tk-c { color: #6f7790; font-style: italic; }
.tk-k { color: #ff9e7a; }
.tk-t { color: var(--teal); }
.tk-f { color: var(--gold); }
.tk-n { color: #c8b6ff; }

.term {
  display: block;
  padding: 14px 22px 16px;
  border-top: 1px solid rgba(110, 114, 134, 0.4);
  background: #0c0e15;
  font: 500 13px/1.7 var(--font-mono);
  color: var(--text-3);
  white-space: pre;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 114, 134, 0.5) transparent;
}
.term b { color: var(--green); font-weight: 500; }
.term .ok { color: var(--text-2); }
.caret {
  display: inline-block;
  width: 8px; height: 15px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--coral);
  animation: blink 1.1s steps(1) infinite;
}

.hero__logo {
  position: absolute;
  right: -34px; bottom: 62px;
  width: 96px; height: 96px;
  border-radius: 24%;
  box-shadow: 0 18px 50px -10px rgba(255, 138, 76, 0.6), 0 0 0 1px rgba(255, 210, 122, 0.18);
  animation: float 7s ease-in-out infinite;
}
.badge {
  position: absolute;
  left: -28px; top: -30px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 14px;
  background: rgba(26, 30, 42, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  animation: float 8s ease-in-out -3s infinite;
}
.badge__icon {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  font: 700 12px/1 var(--font-mono);
  color: #fff;
  background: linear-gradient(135deg, #2f6bff, #6659d9);
}
.badge strong { display: block; font: 600 17px/1.15 var(--font-display); }
.badge strong + span { display: block; font-size: 12px; color: var(--text-3); line-height: 1.3; }

.hero__visual figcaption {
  margin-top: 14px;
  text-align: right;
  font-size: 13px;
  color: var(--text-3);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- Stats ---------- */

/* 1px gaps over a line-coloured backdrop draw the dividers at every width. */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin: 72px 0 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--line-soft);
  overflow: hidden;
}
.stats > div {
  padding: 24px 24px 22px;
  background: var(--bg-card);
}
.stats dt {
  font: 600 30px/1.1 var(--font-display);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  white-space: nowrap;
}
.stats dt small { font-size: 18px; color: var(--text-3); font-weight: 500; }
.stats dd { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.4; }
.stats__src { margin: 12px 0 0; font-size: 13px; color: var(--text-3); }

/* ---------- Sections ---------- */

.section { padding: 112px 0; }
.section--tint {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(255, 138, 76, 0.06), transparent 70%),
    var(--bg-tint);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600;
  margin-bottom: 24px;
  max-width: 22em;
}
.section p { color: var(--text-2); }
.intro { font-size: 18px; max-width: 46em; margin-bottom: 48px; }

/* ---------- Services ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(255, 138, 76, 0.5); transform: translateY(-2px); }
.card svg {
  width: 40px; height: 40px;
  padding: 8px;
  margin-bottom: 20px;
  border-radius: 10px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: linear-gradient(135deg, rgba(255, 210, 122, 0.14), rgba(240, 82, 122, 0.12));
  border: 1px solid rgba(255, 181, 71, 0.25);
}
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 15px; margin: 0; }
.card__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 18px 0 0; padding: 0;
  list-style: none;
}
.card__tags li {
  padding: 4px 8px;
  border-radius: 6px;
  font: 500 11.5px/1.2 var(--font-mono);
  color: var(--text-2);
  background: rgba(11, 13, 20, 0.5);
  border: 1px solid var(--line-soft);
}

/* ---------- Process ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 72px;
  align-items: start;
}
.split > div:first-child p { font-size: 18px; max-width: 34em; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 36px;
}
.facts div {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(11, 13, 20, 0.45);
}
.facts dt {
  font: 500 12px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.facts dd { margin: 0; font-size: 15px; color: var(--text); line-height: 1.45; }

.loop {
  padding: 28px 28px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -40px rgba(255, 138, 76, 0.45);
}
.loop__title {
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3) !important;
  margin-bottom: 22px;
}
.loop ol {
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: step;
}
.loop li {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 16px;
  padding-bottom: 18px;
}
.loop li::before {
  content: counter(step);
  grid-row: span 2;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  font: 500 14px/1 var(--font-mono);
  color: var(--amber);
  background: rgba(255, 181, 71, 0.1);
  border: 1px solid rgba(255, 181, 71, 0.35);
  position: relative; z-index: 1;
}
.loop li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16.5px; top: 34px; bottom: 0;
  width: 1px;
  background: linear-gradient(var(--line), rgba(110, 114, 134, 0.15));
}
.loop b { font-weight: 600; font-size: 16px; line-height: 1.3; padding-top: 1px; }
.loop span { font-size: 14px; color: var(--text-2); line-height: 1.4; }
.loop li.is-you::before {
  color: var(--ink);
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.45);
}
.loop li.is-you b::after {
  content: attr(data-tag);
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 2px;
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.4);
}

/* ---------- Flagship (OSAIKU) ---------- */

.flagship {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}
.flagship__copy > p { font-size: 17px; }
.flagship__visual { position: relative; margin: 0; }
.flagship__visual .window { box-shadow: 0 0 0 1px rgba(11, 13, 20, 0.6), 0 40px 90px -30px rgba(4, 6, 12, 0.95), 0 0 80px -10px rgba(113, 105, 168, 0.55); }
.flagship__logo {
  position: absolute;
  right: -22px; bottom: -26px;
  width: 88px; height: 88px;
  border-radius: 22%;
  box-shadow: 0 18px 50px -10px rgba(47, 107, 255, 0.65), 0 0 0 1px rgba(56, 217, 255, 0.15);
  animation: float 7s ease-in-out infinite;
}
.flagship__visual figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-3);
}

.ticks { list-style: none; margin: 0 0 32px; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}
.ticks li::before {
  content: "";
  position: absolute; left: 2px; top: 0.6em;
  width: 7px; height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--green);
}

.progress { margin: 28px 0 28px; }
.progress__head {
  display: flex; justify-content: space-between; gap: 16px;
  margin-bottom: 10px;
  font: 500 13px/1.4 var(--font-mono);
  color: var(--text-2);
}
.progress__head b { color: var(--text); font-weight: 500; }
.progress__bar {
  display: grid;
  grid-template-columns: repeat(36, 1fr);
  gap: 3px;
}
.progress .s {
  height: 12px;
  border-radius: 3px;
  background: rgba(179, 184, 200, 0.07);
  box-shadow: inset 0 0 0 1px rgba(110, 114, 134, 0.35);
}
.progress .s.done {
  background: linear-gradient(180deg, #a497ff, #6659d9);
  box-shadow: none;
}
.progress .s.now {
  background: var(--amber);
  box-shadow: 0 0 16px rgba(255, 181, 71, 0.6);
  animation: pulse 2.4s ease-in-out infinite;
}
.progress__legend {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  margin-top: 12px;
  font: 500 12px/1.4 var(--font-mono);
  color: var(--text-3);
}
.progress__legend span { display: inline-flex; align-items: center; gap: 8px; }
.k {
  width: 10px; height: 10px; border-radius: 3px;
  background: rgba(179, 184, 200, 0.07);
  box-shadow: inset 0 0 0 1px rgba(110, 114, 134, 0.5);
}
.k.done { background: #9283f5; box-shadow: none; }
.k.now { background: var(--amber); box-shadow: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Open source ---------- */

.repos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.repo {
  display: flex; flex-direction: column;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
.repo:hover { border-color: rgba(255, 138, 76, 0.5); transform: translateY(-2px); background: rgba(50, 56, 74, 0.5); }
.repo__top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
}
.repo__kind {
  font: 500 11.5px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.repo__top svg { width: 18px; height: 18px; fill: none; stroke: var(--text-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s ease, transform 0.2s ease; }
.repo:hover .repo__top svg { stroke: var(--coral); transform: translate(2px, -2px); }
.repo h3 {
  font: 600 17px/1.3 var(--font-mono);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.repo p { font-size: 14.5px; line-height: 1.55; margin: 0 0 20px; }
.repo__meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  margin-top: auto;
  font: 500 12.5px/1.2 var(--font-mono);
  color: var(--text-3);
}
.repo__meta span { display: inline-flex; align-items: center; gap: 6px; }
.lang-dot { width: 10px; height: 10px; border-radius: 50%; background: #178600; }
.lang-dot--unity { background: #c8c8c8; }
.lang-dot--nuget { background: #3b82f6; }
.repo__meta .star { color: var(--amber); }

.repos__more { margin-top: 28px; }

/* ---------- Stack ---------- */

.stack {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.stack__group {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: rgba(11, 13, 20, 0.4);
}
.stack__group h3 {
  font: 500 12px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}
.stack__group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack__group li {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

/* ---------- Contact ---------- */

.cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 56px;
  padding: 56px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(520px 320px at 0% 0%, rgba(255, 138, 76, 0.2), transparent 70%),
    radial-gradient(520px 320px at 100% 100%, rgba(240, 82, 122, 0.14), transparent 70%),
    var(--surface-solid);
  border: 1px solid rgba(255, 138, 76, 0.32);
}
.cta h2 { margin-bottom: 18px; }
.cta p { font-size: 18px; max-width: 32em; margin-bottom: 32px; }
.cta__details { margin: 0; align-self: center; }
.cta__details div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cta__details div:last-child { border-bottom: 0; }
.cta__details dt {
  font: 500 12px/1.7 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.cta__details dd { margin: 0; font-size: 15px; color: var(--text); overflow-wrap: anywhere; }
.cta__details a { text-decoration-color: rgba(255, 138, 76, 0.5); text-underline-offset: 3px; }
.cta__details a:hover { color: var(--gold); }

/* ---------- Footer ---------- */

.footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(700px 260px at 15% 100%, rgba(255, 181, 71, 0.06), transparent 70%),
    radial-gradient(700px 260px at 85% 100%, rgba(240, 82, 122, 0.06), transparent 70%);
}
.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px; flex-wrap: wrap;
}
.brand--footer { align-items: center; gap: 14px; font: inherit; letter-spacing: 0; }
.brand--footer strong { display: block; font: 700 18px/1.2 var(--font-display); }
.brand--footer span { font-size: 14px; color: var(--text-2); }
.footer p { margin: 0; font-size: 13px; color: var(--text-3); text-align: right; line-height: 1.7; }
.footer p a { color: var(--text-2); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(6, 1fr); }
  .stats > div { grid-column: span 2; }
  .stats > div:nth-child(n+4) { grid-column: span 3; }
  .cards, .repos { grid-template-columns: 1fr 1fr; }
  .stack { grid-template-columns: repeat(6, 1fr); }
  .stack__group { grid-column: span 2; }
  .stack__group:nth-child(n+4) { grid-column: span 3; }
  .nav__links a { padding: 8px 9px; font-size: 14px; }
}

@media (max-width: 960px) {
  .hero { padding-top: 56px; }
  .hero__inner, .split, .flagship, .cta { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero__visual { margin-top: 20px; }
  .hero__logo { right: 16px; bottom: auto; top: -44px; width: 80px; height: 80px; }
  .badge { left: 16px; }
  .hero__visual figcaption { text-align: left; }
  .flagship__logo { right: 12px; width: 72px; height: 72px; }
  .nav__links { display: none; }
  .lang { margin-left: auto; }
  .cta { padding: 40px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .lead { font-size: 17px; }
  .nav__inner { gap: 12px; }
  .nav .btn--sm { display: none; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .stats > div, .stats > div:nth-child(n+4) { grid-column: auto; padding: 18px; }
  .stats > div:first-child { grid-column: 1 / -1; }
  .stats dt { font-size: 24px; }
  .cards, .repos, .facts, .stack { grid-template-columns: minmax(0, 1fr); }
  .stack__group, .stack__group:nth-child(n+4) { grid-column: auto; }
  .code { font-size: 12px; }
  .code .l::before { width: 34px; padding-right: 12px; }
  .term { font-size: 12px; padding: 12px 16px 14px; }
  .badge { display: none; }
  .progress__bar { gap: 2px; }
  .progress .s { height: 10px; border-radius: 2px; }
  .footer p { text-align: left; }
  .loop { padding: 22px 18px 14px; }
  .card, .repo, .stack__group { padding: 22px; }
  .cta { padding: 28px 20px; border-radius: 20px; }
  .cta__details div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
