@font-face {
  font-family: "Kapiler";
  src: url("../assets/fonts/Kapiler.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: block;
}

.hero {
  
  --hero-bg: #ffffff;
  --hero-grid-line: rgba(0, 0, 0, 0.06);
  --hero-particle-rgb: 0, 0, 0;
  --hero-line-rgb: 0, 0, 0;
  position: relative;
  overflow: hidden;
  min-height: auto;
  background: var(--hero-bg);
  isolation: isolate;
  padding: max(clamp(32px, 5vw, 64px), calc(var(--header-height) + 8px)) var(--page-gutter) clamp(12px, 2vw, 24px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.9) 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.9) 60%, transparent 100%);
  pointer-events: none;
}

.hero-network {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

:root[data-theme="dark"] .hero {
  --hero-bg: #050510;
  --hero-grid-line: rgba(255, 255, 255, 0.06);
  --hero-particle-rgb: 255, 255, 255;
  --hero-line-rgb: 255, 255, 255;
}

.hero-inner {
  --hero-status-line-height: 1.472rem;
  --hero-status-padding-bottom: 16px;
  --hero-status-border-width: 1px;
  --hero-title-frame-overlap: -26px;
  position: relative;
  max-width: var(--container-max);
  min-width: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "content visual"
    "actions traits";
  align-items: center;
  column-gap: clamp(12px, 2vw, 24px);
  row-gap: clamp(4px, 0.8vw, 10px);
}

.hero-content {
  grid-area: content;
  display: flex;
  width: min(100%, 540px);
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

/* Hero entrance motion is intentional and always on, even when the device has
   animations turned off (prefers-reduced-motion) — see base.css note. */
.hero-content > * {
  animation: hero-rise 0.7s var(--ease-out) both;
}

.hero-status { animation-delay: 0.05s; }
.hero-title-frame { animation-delay: 0.14s; }
.hero-description { animation-delay: 0.26s; }
.hero-visual { animation: hero-rise 0.7s var(--ease-out) 0.3s both; }
.hero-actions-buttons { animation: hero-rise 0.7s var(--ease-out) 0.42s both; }
.hero-craft { animation: hero-rise 0.7s var(--ease-out) 0.42s both; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-fade-in {
  from { opacity: 0; }
}

.hero-status {
  align-self: stretch;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: var(--hero-status-padding-bottom);
  margin-bottom: clamp(30px, 4vw, 40px);
  border-bottom: 1px solid var(--border-strong);
  font-size: 0.92rem;
  font-weight: 500;
}

.hero-status-prompt {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px 1px var(--success-shadow);
  animation: dot-pulse 2.6s ease-in-out infinite;
}

.hero-status-text { color: var(--text); font-weight: 600; }

.hero-status-meta {
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.hero-title-frame {
  position: relative;
  width: 100%;
  min-width: 0;
  margin-top: var(--hero-title-frame-overlap);
  margin-bottom: clamp(24px, 4vw, 44px);
  padding: clamp(28px, 3.5vw, 44px) clamp(28px, 3.5vw, 48px);
  padding-top: clamp(36px, 4vw, 52px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(59, 91, 253, 0.04) 0%, rgba(255, 255, 255, 0.7) 40%, rgba(59, 91, 253, 0.02) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@supports not (backdrop-filter: blur(1px)) {
  .hero-title-frame { background: var(--surface); background-color: var(--surface); }
}

.hero-title-frame::after {
  content: "";
  position: absolute;
  bottom: 14px;
  left: 16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  box-shadow: 0 0 8px var(--accent-glow);
}

.hero-frame-label {
  position: absolute;
  top: 12px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: frame-label-in 0.5s var(--ease) 0.5s forwards;
}

@keyframes frame-label-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  color: var(--text);
}

.hero-title-line { display: block; }

.hero-title-line--muted {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

.hero-title-line--accent {
  max-width: 100%;
  margin-top: 2px;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero-accent {
  position: relative;
  display: inline;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-accent::before {
  content: "";
  position: absolute;
  inset: -2px -4px;
  z-index: -1;
  border-radius: 6px;
  background: rgba(59, 91, 253, 0.06);
  opacity: 0;
  animation: accent-bg-in 0.6s var(--ease) 0.8s forwards;
}

@keyframes accent-bg-in {
  from { opacity: 0; transform: scaleX(0.6); }
  to { opacity: 1; transform: scaleX(1); }
}

.hero-accent::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.05em;
  left: 0;
  height: 4px;
  border-radius: 3px;
  background: var(--gradient);
  box-shadow: 0 0 4px 1px rgba(59, 91, 253, 0.07), 0 2px 8px rgba(59, 91, 253, 0.25), 0 4px 16px rgba(59, 91, 253, 0.12);
  transform: scaleX(0);
  transform-origin: right;
  animation: accent-underline-in 0.7s var(--ease) 0.6s forwards;
}

@keyframes accent-underline-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-brand {
  max-width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.hero-brand-name {
  position: relative;
  display: inline-block;
  max-width: 100%;
  font-family: "Kapiler", var(--font-mono) !important;
  font-weight: 300 !important;
  font-size: clamp(2.6rem, 6.5vw, 4.2rem) !important;
  line-height: 1;
  letter-spacing: 0.1em !important;
  white-space: nowrap;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-2);
  text-shadow: 0 0 6px var(--accent-glow), 0 0 14px rgba(59, 91, 253, 0.08);
  will-change: transform;
  animation: hero-name-flicker 6s steps(1, end) infinite;
}

.hero-brand-name::before,
.hero-brand-name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  pointer-events: none;
  white-space: nowrap;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0.45;
}

.hero.is-glitch-paused .hero-brand-name,
.hero.is-glitch-paused .hero-brand-name::before,
.hero.is-glitch-paused .hero-brand-name::after { animation-play-state: paused; }

.hero-brand-name::before {
  -webkit-text-stroke: 1.5px rgba(59, 91, 253, 0.50);
  text-shadow: 0 0 8px rgba(59, 91, 253, 0.20);
  animation: hero-jitter-a 0.15s steps(2, end) infinite, hero-ghost-fade-a 6s steps(1, end) infinite;
}

.hero-brand-name::after {
  -webkit-text-stroke: 1.5px rgba(109, 139, 255, 0.50);
  text-shadow: 0 0 8px rgba(109, 139, 255, 0.20);
  animation: hero-jitter-b 0.18s steps(2, end) infinite, hero-ghost-fade-b 6s steps(1, end) infinite;
}

@keyframes hero-jitter-a {
  0% { transform: translate(2px, -1px); }
  25% { transform: translate(-1px, 2px); }
  50% { transform: translate(3px, 1px); }
  75% { transform: translate(-2px, -3px); }
  100% { transform: translate(1px, -2px); }
}

@keyframes hero-jitter-b {
  0% { transform: translate(-2px, 1px); }
  25% { transform: translate(1px, -2px); }
  50% { transform: translate(-3px, -1px); }
  75% { transform: translate(2px, 3px); }
  100% { transform: translate(-1px, 2px); }
}

@keyframes hero-ghost-fade-a {
  0%, 6.2% { opacity: 0; }
  7.5% { opacity: 0.55; }
  8.3% { opacity: 0.45; }
  9% { opacity: 0.5; }
  10.4%, 49.2% { opacity: 0; }
  49.5% { opacity: 0.4; }
  50.1%, 85% { opacity: 0; }
  85.4% { opacity: 0.5; }
  86.2% { opacity: 0.45; }
  87% { opacity: 0.4; }
  87.8%, 100% { opacity: 0; }
}

@keyframes hero-ghost-fade-b {
  0%, 6.1% { opacity: 0; }
  7.4% { opacity: 0.5; }
  8.2% { opacity: 0.45; }
  8.9% { opacity: 0.55; }
  10.3%, 49.1% { opacity: 0; }
  49.4% { opacity: 0.35; }
  50%, 85% { opacity: 0; }
  85.3% { opacity: 0.5; }
  86.1% { opacity: 0.45; }
  86.9% { opacity: 0.4; }
  87.7%, 100% { opacity: 0; }
}

@keyframes hero-name-flicker {
  0%, 7.2% { opacity: 1; }
  7.5% { opacity: 0.7; }
  7.8% { opacity: 1; }
  8.2% { opacity: 0.85; }
  8.6%, 49.2% { opacity: 1; }
  49.5% { opacity: 0.75; }
  49.8%, 85% { opacity: 1; }
  85.4% { opacity: 0.65; }
  86%, 87% { opacity: 1; }
  87.8% { opacity: 1; }
  89.3% { opacity: 0.7; }
  89.8%, 100% { opacity: 1; }
}

.hero-brand-tag {
  margin-bottom: 0.5em;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.hero-description {
  display: flex;
  max-width: 50ch;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hero-description-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 2;
  text-wrap: pretty;
}

.hero-description-meta {
  margin-top: 0;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-actions-buttons {
  grid-area: actions;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  min-width: 0;
  margin-top: -28px;
  justify-self: start;
  align-self: center;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: var(--radius-pill);
  background: var(--gradient);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), var(--shadow-cta);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease), filter 0.2s var(--ease);
}

.hero-cta-icon,
.hero-cta-arrow { display: inline-flex; transition: transform 0.25s var(--ease); }
.hero-cta-icon svg { display: block; width: 1em; height: 1em; }
.hero-cta-arrow svg { display: block; width: 0.95em; height: 0.95em; }
.hero-cta:hover, .hero-cta:focus-visible { transform: translateY(-2px); filter: brightness(1.05); }
.hero-cta:active { transform: translateY(0); }
.hero-cta:hover .hero-cta-icon, .hero-cta:focus-visible .hero-cta-icon { transform: translateX(-3px); }

.hero-cta-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  transition: color 0.2s var(--ease);
}

.hero-cta-secondary::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--accent-strong);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease);
}

.hero-cta-secondary:hover, .hero-cta-secondary:focus-visible { color: var(--accent-strong); }
.hero-cta-secondary:hover::after, .hero-cta-secondary:focus-visible::after { transform: scaleX(1); }
.hero-cta-secondary:hover .hero-cta-arrow, .hero-cta-secondary:focus-visible .hero-cta-arrow { transform: translateX(-3px); }

.hero-visual {
  grid-area: visual;
  width: 100%;
  max-width: 540px;
  min-width: 0;
  margin: 0;
  align-self: start;
  margin-top: calc(var(--hero-status-line-height) + var(--hero-status-padding-bottom) + var(--hero-status-border-width) + var(--hero-title-frame-overlap) + clamp(30px, 4vw, 40px));
  direction: ltr;
}

.desktop {
  overflow: hidden;
  color: #dfe5f2;
}

.desktop-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(10, 13, 18, 0.85);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  max-height: none;
  transition: max-height 0.35s var(--ease);
}

.desktop-code {
  margin: 0;
  padding: 22px 26px 26px;
  direction: ltr;
  text-align: left;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.9;
  tab-size: 2;
  white-space: normal;
  --code-gutter-width: 2.6em;
  --code-gutter-gap: 1.5em;
  color: #d4d4d4;
  background: #1e1e1e;
}

.desktop-window::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 34px;
  background: linear-gradient(to top, rgba(10, 13, 18, 0.85), rgba(10, 13, 18, 0) 70%);
  pointer-events: none;
}

.code-line {
  display: grid;
  grid-template-columns: var(--code-gutter-width) minmax(0, 1fr);
  column-gap: var(--code-gutter-gap);
  align-items: start;
}
.code-line--enter { animation: code-line-in 0.3s var(--ease); }
@keyframes code-line-in { from { opacity: 0; } }
.code-gutter { color: #5a6478; text-align: right; }
.code-text {
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #d4d4d4;
}
.code-comment { color: #6a9955; }
.code-keyword { color: #569cd6; }
.code-property { color: #9cdcfe; }
.code-string { color: #ce9178; }
.code-type { color: #4ec9b0; }

.hero-craft {
  grid-area: traits;
  justify-self: start;
  align-self: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: -20px;
  position: relative;
  margin-top: -8px;
  padding: clamp(10px, 1.4vw, 16px) clamp(12px, 1.8vw, 20px) clamp(12px, 1.6vw, 18px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 96%, var(--accent-tint)), var(--surface-alt));
  box-shadow: var(--shadow-md);
  direction: ltr;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s var(--ease);
}

.hero-craft:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.hero-craft:hover .hero-craft-device--large  { transform: translate(-2px, -2px); }
.hero-craft:hover .hero-craft-device--medium { transform: translate(3px, -1px); }
.hero-craft:hover .hero-craft-device--small  { transform: translate(-1px, 2px); }
.hero-craft:hover .hero-craft-device--phone  { transform: translate(2px, -2px); }

.hero-craft-label {
  position: relative;
  z-index: 4;
  display: block;
  margin-bottom: clamp(8px, 1.2vw, 14px);
  color: var(--text-faint);
  font: 700 .63rem var(--font-mono);
  letter-spacing: .04em;
}

.hero-craft-canvas {
  position: relative;
  min-height: clamp(100px, 13.5vw, 134px);
}

.hero-craft-device {
  position: absolute;
  display: block;
  border: 1px solid var(--border-strong);
  border-radius: clamp(4px, .7vw, 7px);
  background: var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 4px 16px rgba(0,0,0,.06),
    0 1px 3px rgba(0,0,0,.04);
  overflow: hidden;
  transition: transform .45s var(--ease);
}

.hero-craft-device--large {
  top: 6%;
  left: 8%;
  width: 78%;
  height: 94%;
  z-index: 3;
}

.hero-craft-device--medium {
  bottom: 0;
  left: 24%;
  width: 42%;
  height: 72%;
  z-index: 4;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 6px 22px rgba(0,0,0,.09),
    0 1px 3px rgba(0,0,0,.05);
}

.hero-craft-device--small {
  bottom: 6%;
  right: 10%;
  width: 22%;
  height: 84%;
  z-index: 5;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    0 7px 26px rgba(0,0,0,.11),
    0 1px 4px rgba(0,0,0,.06);
}

.hero-craft-device--phone {
  top: 12%;
  left: 10%;
  width: 9%;
  height: 60%;
  z-index: 4;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 6px 22px rgba(0,0,0,.09),
    0 1px 3px rgba(0,0,0,.05);
}

.hero-craft-topbar {
  display: block;
  width: 100%;
  height: 12%;
  background: linear-gradient(180deg, var(--accent-tint), transparent);
  border-bottom: 1px solid var(--border);
}

.hero-craft-sidebar {
  display: block;
  position: absolute;
  top: 14%;
  left: 0;
  bottom: 0;
  width: 26%;
  border-right: 1px solid var(--border);
  background: linear-gradient(90deg, var(--accent-tint), transparent 60%);
}

.hero-craft-body {
  display: block;
  position: absolute;
  right: 6%;
  top: 22%;
  width: 66%;
  height: 35%;
  border: 1px solid var(--border);
  border-radius: clamp(2px, .35vw, 4px);
  background:
    linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 40%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    0 2px 6px rgba(0,0,0,.04);
}

.hero-craft-device--large .hero-craft-body {
  right: 6%;
  top: 22%;
  width: 66%;
  height: 35%;
}

.hero-craft-device--medium .hero-craft-body {
  left: 5%;
  right: 5%;
  top: 22%;
  width: auto;
  height: 32%;
}

.hero-craft-device--small .hero-craft-body {
  left: 5%;
  right: 5%;
  top: 20%;
  width: auto;
  height: 38%;
}

.hero-craft-device--phone .hero-craft-body {
  left: 5%;
  right: 5%;
  top: 18%;
  width: auto;
  height: 34%;
}

.hero-craft-btn {
  display: block;
  position: absolute;
  bottom: 18%;
  height: 8%;
  border-radius: var(--radius-pill);
  background: var(--gradient);
  animation: craft-btn-glow 3.6s var(--ease) infinite;
  transition: box-shadow .45s var(--ease);
}

.hero-craft-device--large .hero-craft-btn {
  right: 8%;
  width: 30%;
}

.hero-craft-device--medium .hero-craft-btn {
  left: 8%;
  width: 40%;
}

@keyframes craft-btn-glow {
  0%, 100% { box-shadow: 0 0 8px var(--accent-glow); }
  52%      { box-shadow: 0 0 20px var(--accent-glow), 0 0 32px var(--accent-tint-strong); }
}

.hero-craft-caption {
  display: block;
  margin-top: clamp(8px, 1.2vw, 14px);
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 500;
  text-align: center;
}

.hero-craft-em {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .desktop-code { font-size: 0.9rem; }
}

@media (min-width: 901px) {
  .hero-content { align-self: start; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .hero {
    padding-top: max(clamp(44px, 6.5vw, 56px), calc(var(--header-height) + 20px));
    padding-bottom: clamp(28px, 4vw, 44px);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    grid-template-areas: "content visual" "actions traits";
    column-gap: clamp(28px, 4.5vw, 44px);
    row-gap: clamp(14px, 2vw, 22px);
    align-items: start;
  }

  .hero-content { width: min(100%, 420px); max-width: 100%; align-self: start; }
  .hero-status { justify-content: flex-start; margin-bottom: clamp(16px, 2.5vw, 22px); padding-bottom: 10px; font-size: .82rem; }
  .hero-status-meta { display: none; }
  .hero-title-frame { margin-top: 0; margin-bottom: clamp(16px, 2.5vw, 24px); padding: clamp(22px, 3vw, 30px) clamp(18px, 3vw, 26px); padding-top: clamp(28px, 3.5vw, 38px); }
  .hero-frame-label { left: 14px; top: 10px; font-size: .62rem; transform: none; }
  .hero-title-line--muted { font-size: clamp(.95rem, 1.6vw, 1.15rem); }
  .hero-title-line--accent { font-size: clamp(1.2rem, 2.2vw, 1.65rem); line-height: 1.5; }
  .hero-brand { justify-content: flex-start; margin-top: 8px; }
  .hero-brand-name { font-size: clamp(2rem, 4.5vw, 2.8rem) !important; }
  .hero-description { max-width: 38ch; }
  .hero-description-text { font-size: .92rem; line-height: 1.85; }
  .hero-description-meta { font-size: .72rem; }
  .hero-visual { width: 100%; max-width: 420px; margin-top: calc(var(--hero-status-line-height) + 10px + var(--hero-status-border-width) + clamp(16px, 2.5vw, 22px)); margin-inline: 0; }
  .desktop-code { font-size: .74rem; line-height: 1.75; min-height: calc(12 * 1.75em + 34px); padding: 14px 16px 20px; }
  .desktop-code { --code-gutter-width: 1.8em; --code-gutter-gap: .6em; }
  .hero-actions-buttons { justify-content: flex-start; justify-self: stretch; align-self: center; gap: clamp(14px, 2.5vw, 20px); }
  .hero-cta { padding: clamp(12px, 1.6vw, 14px) clamp(20px, 3vw, 28px); font-size: .9rem; gap: 8px; }
  .hero-cta-secondary { font-size: .9rem; }
  .hero-craft { width: 100%; max-width: 100%; justify-self: stretch; align-self: center; }
}

@media (max-width: 640px) {
  .hero { padding: max(clamp(36px, 6vw, 72px), calc(var(--header-height) + 16px)) var(--page-gutter) clamp(16px, 3vw, 32px); }
  .hero-brand-name, .hero-brand-name::before, .hero-brand-name::after { color: transparent; -webkit-text-fill-color: transparent; }
  .hero-brand-name { -webkit-text-stroke: 1.5px var(--accent-2); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "content" "actions" "visual" "traits"; row-gap: 14px; }
  .hero-content { width: 100%; max-width: none; align-items: flex-start; text-align: start; }
  .hero-status { justify-content: flex-start; margin-bottom: 18px; padding-bottom: 10px; font-size: .85rem; }
  .hero-title-line--muted, .hero-title-line--accent { text-align: start; }
  .hero-title-line--muted { font-size: 1.05rem; }
  .hero-title-line--accent { font-size: 1.4rem; }
  .hero-title-frame { width: 100%; min-height: 0; margin-top: 0; margin-bottom: 16px; padding: 22px 18px 20px; padding-top: 30px; }
  .hero-frame-label { display: none; }
  .hero-brand { justify-content: flex-start; }
  .hero-description { align-items: flex-start; }
  .hero-description-text { font-size: 1rem; line-height: 1.9; }
  .hero-visual { width: 100%; max-width: none; margin-top: 0; margin-inline: 0; }
  .desktop-code { font-size: .78rem; min-height: calc(12 * 1.9em + 36px); padding: 16px 18px 20px; }
  .hero-actions-buttons { justify-self: stretch; flex-direction: row; flex-wrap: nowrap; align-items: center; width: 100%; gap: 10px; margin-top: 0; }
  .hero-cta { flex: 1 1 0; width: auto; padding: 11px 12px; font-size: .85rem; gap: 7px; white-space: nowrap; }
  .hero-cta-secondary { flex: 1 1 0; align-self: center; justify-content: center; font-size: .85rem; gap: 6px; white-space: nowrap; }
  .hero-craft { width: 100%; max-width: none; justify-self: stretch; margin-top: 0; }
}

@media (max-width: 480px) {
  .hero-brand-tag { display: none; }
}

@media (max-width: 400px) {
  .desktop-code { font-size: .72rem; min-height: calc(12 * 1.9em + 32px); padding: 14px 16px 18px; }
  .hero-title-line--muted { font-size: 1rem; }
  .hero-title-line--accent { font-size: 1.3rem; }
}

@media (max-width: 360px) {
  .hero-actions-buttons { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-cta, .hero-cta-secondary { width: 100%; flex: none; }
  .hero-cta-secondary { min-height: 38px; }
}

/* The hero network and craft button motion stay active even when the device
   has animations turned off (prefers-reduced-motion). */
