:root {
  --lime: #D3FFAF;
  --blue: #05A5FA;
  --ink: #0B1110;
  --paper: #F7F9F5;
  --white: #FFFFFF;
  --muted: #62706C;
  --line: #CCD6D1;
  --coral: #FF6747;
  --yellow: #FFD84D;
  --header-height: 72px;
  color-scheme: light;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
  overflow-x: hidden;
}

body::selection {
  color: var(--ink);
  background: var(--lime);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 3px;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--coral);
  transform-origin: left center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-height);
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid rgba(11, 17, 16, 0.14);
  background: rgba(247, 249, 245, 0.92);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(11, 17, 16, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 850;
}

.brand-mark {
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  background: var(--blue);
  box-shadow: 4px 4px 0 var(--lime);
  font-size: 14px;
  line-height: 1;
}

.brand-name {
  font-size: 18px;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 2px;
  background: var(--blue);
  transition: right 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  right: 0;
}

.header-repo {
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
  background: var(--lime);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.header-repo:hover,
.header-repo:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.hero {
  position: relative;
  height: 82svh;
  min-height: 610px;
  max-height: 850px;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: #16211E;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: 64%;
  background: rgba(11, 17, 16, 0.92);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -1;
  width: 36%;
  height: 12px;
  background: var(--lime);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.hero-shot {
  position: absolute;
  width: 342px;
  height: auto;
  border: 8px solid var(--ink);
  border-radius: 34px;
  outline: 2px solid rgba(255, 255, 255, 0.62);
  box-shadow: 18px 22px 0 var(--blue);
  will-change: transform;
}

.hero-shot-primary {
  top: 6%;
  right: 11%;
  transform: rotate(4deg);
}

.hero-shot-secondary {
  right: -7%;
  bottom: -58%;
  width: 304px;
  transform: rotate(-5deg);
  box-shadow: -16px 18px 0 var(--lime);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  padding: 70px 0 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 22px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lime);
}

.hero-kicker span {
  width: 28px;
  height: 3px;
  background: var(--blue);
}

.hero h1 {
  margin: 0;
  max-width: 650px;
  color: var(--white);
  font-size: 96px;
  line-height: 0.9;
  font-weight: 900;
}

.hero-lead {
  max-width: 620px;
  margin: 28px 0 0;
  font-size: 28px;
  line-height: 1.28;
  font-weight: 820;
}

.hero-copy {
  max-width: 590px;
  margin: 18px 0 0;
  color: #C8D2CE;
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-width: 168px;
  min-height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 2px solid var(--white);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button-lime {
  background: var(--lime);
  border-color: var(--lime);
}

.button-blue {
  background: var(--blue);
  border-color: var(--blue);
}

.button:hover,
.button:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--white);
}

.hero-facts {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #AEBAB6;
  font-size: 12px;
  font-weight: 700;
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-facts span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.hero-next {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  transform: translateX(-50%);
}

.hero-next span:last-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  animation: nudge 1.7s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.signal-band {
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background: var(--lime);
}

.signal-track {
  width: max-content;
  min-height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  animation: signal-slide 24s linear infinite alternate;
}

.signal-track b {
  color: var(--blue);
  font-size: 24px;
}

@keyframes signal-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-160px); }
}

.section {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1.35fr);
  column-gap: 56px;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  color: #257B66;
}

.section-heading h2,
.workbench-copy h2,
.pipeline-heading h2,
.security-copy h2,
.closing h2 {
  margin: 0;
  font-size: 54px;
  line-height: 1.05;
  font-weight: 900;
}

.section-heading > p:last-child {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  min-height: 340px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
}

.feature-card-blue { background: var(--blue); }
.feature-card-lime { background: var(--lime); }
.feature-card-dark { color: var(--white); background: var(--ink); }
.feature-card-coral { background: var(--coral); }

.feature-index {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 12px;
  font-weight: 800;
}

.feature-card h3 {
  margin: auto 0 12px;
  font-size: 27px;
  line-height: 1.1;
}

.feature-card p {
  min-height: 92px;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.feature-meta {
  margin-top: 20px;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  border-top: 1px solid currentColor;
  font-size: 11px;
  font-weight: 800;
}

.workbench-band {
  padding: 110px max(24px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(440px, 1.25fr);
  gap: 80px;
  align-items: center;
  border-block: 1px solid var(--ink);
  background: var(--blue);
}

.workbench-copy .eyebrow {
  color: var(--ink);
}

.workbench-copy p:last-child {
  max-width: 450px;
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 1.7;
}

.voice-workbench {
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 12px 12px 0 var(--lime);
}

.workbench-toolbar,
.workbench-footer,
.text-input-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(70px, 1fr));
  border: 1px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
}

.mode-button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid var(--ink);
  color: var(--ink);
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.mode-button:last-child { border-right: 0; }
.mode-button.is-active { background: var(--lime); }

.mode-status {
  font-family: ui-monospace, "Cascadia Code", monospace;
  color: var(--muted);
  font-size: 12px;
}

.text-input-label {
  display: block;
  margin: 30px 0 9px;
  font-size: 12px;
  font-weight: 850;
}

#voice-text {
  width: 100%;
  min-height: 112px;
  padding: 16px;
  resize: vertical;
  border: 1px solid var(--ink);
  border-radius: 5px;
  outline: none;
  color: var(--ink);
  background: #F4F7F5;
  font-size: 16px;
  line-height: 1.65;
  transition: box-shadow 160ms ease, background-color 160ms ease;
}

#voice-text:focus {
  background: var(--white);
  box-shadow: 0 0 0 4px var(--lime);
}

.text-input-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.waveform {
  height: 102px;
  margin: 28px 0 24px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-block: 1px solid var(--line);
}

.waveform i {
  width: 5px;
  height: var(--bar-height, 18%);
  min-height: 8px;
  border-radius: 1px;
  background: var(--blue);
  transition: height 280ms ease, background-color 280ms ease;
}

.voice-workbench.is-generating .waveform i {
  animation: waveform-pulse 620ms ease-in-out infinite alternate;
  animation-delay: calc(var(--bar-index, 0) * 24ms);
}

@keyframes waveform-pulse {
  to { height: 78%; background: var(--coral); }
}

.workbench-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.generate-button {
  min-width: 138px;
  min-height: 48px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  color: var(--white);
  background: var(--ink);
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.generate-button:hover,
.generate-button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--lime);
}

.section-showcase {
  padding-bottom: 140px;
}

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(470px, 1.35fr);
  gap: 64px;
  align-items: center;
}

.gallery-tabs {
  display: grid;
  border-top: 1px solid var(--ink);
}

.gallery-tab {
  min-height: 104px;
  padding: 16px 14px;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-content: center;
  border: 0;
  border-bottom: 1px solid var(--ink);
  text-align: left;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background-color 160ms ease, padding-left 160ms ease;
}

.gallery-tab > span {
  grid-row: 1 / 3;
  align-self: center;
  font-family: ui-monospace, "Cascadia Code", monospace;
  color: var(--muted);
  font-size: 12px;
}

.gallery-tab strong {
  font-size: 18px;
}

.gallery-tab small {
  color: var(--muted);
  font-size: 12px;
}

.gallery-tab:hover,
.gallery-tab:focus-visible {
  padding-left: 22px;
  background: rgba(5, 165, 250, 0.09);
}

.gallery-tab.is-active {
  padding-left: 22px;
  background: var(--lime);
}

.gallery-tab.is-active > span {
  color: var(--ink);
  font-weight: 900;
}

.gallery-stage {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(220px, 0.65fr);
  align-items: center;
  gap: 36px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
}

.gallery-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 48%;
  background: var(--blue);
  transition: background-color 220ms ease;
}

.screenshot-button {
  position: relative;
  z-index: 2;
  width: 310px;
  height: 650px;
  margin-left: 42px;
  padding: 0;
  border: 7px solid var(--ink);
  border-radius: 30px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 12px 14px 0 var(--lime);
  cursor: zoom-in;
}

.screenshot-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 160ms ease, transform 220ms ease;
}

.screenshot-button:hover img {
  transform: scale(1.018);
}

.gallery-stage.is-changing .screenshot-button img {
  opacity: 0;
  transform: translateY(12px) scale(0.99);
}

.gallery-caption {
  position: relative;
  z-index: 2;
  padding: 24px 38px 24px 0;
  color: var(--white);
}

.gallery-caption p {
  margin: 0 0 12px;
  color: var(--lime);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 11px;
  font-weight: 800;
}

.gallery-caption h3 {
  margin: 0;
  font-size: 32px;
  line-height: 1.14;
}

.gallery-caption span {
  display: block;
  margin-top: 18px;
  color: #BFCAC6;
  font-size: 14px;
  line-height: 1.7;
}

.pipeline-band {
  padding: 110px max(24px, calc((100vw - 1240px) / 2));
  border-block: 1px solid var(--ink);
  background: var(--lime);
}

.pipeline-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 64px;
}

.pipeline-heading .eyebrow {
  margin: 0 0 8px;
  order: 2;
}

.pipeline {
  position: relative;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  border: 1px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.pipeline-step {
  position: relative;
  min-height: 180px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ink);
}

.pipeline-step:last-child { border-right: 0; }
.pipeline-step-final { color: var(--white); background: var(--blue); }

.pipeline-step > span {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 11px;
  font-weight: 800;
}

.pipeline-step strong {
  margin-top: auto;
  font-size: 20px;
}

.pipeline-step small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.pipeline-step-final small { color: #D9EEF8; }

.storage-band {
  padding: 110px max(24px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(440px, 1.2fr);
  gap: 80px;
  align-items: start;
  color: var(--white);
  background: var(--ink);
  border-bottom: 12px solid var(--blue);
}

.storage-copy .eyebrow { color: var(--lime); }

.storage-copy h2 {
  margin: 0;
  font-size: 54px;
  line-height: 1.05;
  font-weight: 900;
}

.storage-copy > p:not(.eyebrow) {
  max-width: 500px;
  margin: 24px 0 0;
  color: #BFCAC6;
  font-size: 16px;
  line-height: 1.75;
}

.storage-copy > a {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--lime);
  font-weight: 850;
}

.storage-root {
  padding: 22px 0 26px;
  border-block: 1px solid rgba(255,255,255,0.3);
}

.storage-root span {
  display: block;
  margin-bottom: 10px;
  color: var(--lime);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 11px;
  font-weight: 800;
}

.storage-root code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--white);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 16px;
  line-height: 1.6;
}

.storage-list { margin: 0; }

.storage-list > div {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(180px, 1.2fr);
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.24);
}

.storage-list dt {
  color: var(--blue);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-weight: 800;
}

.storage-list dd {
  margin: 0;
  color: #BFCAC6;
  font-size: 14px;
}

.security-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 1.15fr);
  gap: 90px;
  align-items: center;
}

.security-visual {
  position: relative;
  max-width: 410px;
  margin: 0 auto;
}

.security-visual::before {
  content: "";
  position: absolute;
  inset: -18px 18px 18px -18px;
  z-index: -1;
  border: 2px solid var(--ink);
  background: var(--blue);
}

.security-visual img {
  width: 100%;
  border: 7px solid var(--ink);
  border-radius: 30px;
  box-shadow: 14px 16px 0 var(--lime);
}

.security-copy .eyebrow {
  color: #257B66;
}

.security-lead {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.security-list {
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.security-list li {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.security-list li span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  background: var(--lime);
}

.security-status {
  margin-top: 28px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--yellow);
  font-size: 13px;
  font-weight: 850;
}

.security-status i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 103, 71, 0.2);
}

.closing {
  padding: 120px max(24px, calc((100vw - 1240px) / 2));
  color: var(--white);
  background: var(--ink);
  border-top: 12px solid var(--blue);
}

.closing .eyebrow {
  color: var(--lime);
}

.closing h2 {
  max-width: 900px;
  font-size: 64px;
}

.closing > p:not(.eyebrow) {
  max-width: 650px;
  margin: 26px 0 0;
  color: #BFCAC6;
  font-size: 16px;
  line-height: 1.7;
}

.closing-links {
  margin-top: 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.closing-links a {
  min-width: 210px;
  min-height: 54px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--white);
  border-radius: 5px;
  color: var(--ink);
  background: var(--lime);
  font-weight: 850;
  transition: transform 160ms ease, background-color 160ms ease;
}

.closing-links a:nth-child(even) { background: var(--blue); }
.closing-links a:hover,
.closing-links a:focus-visible { transform: translateY(-4px); }

.site-footer {
  min-height: 100px;
  padding: 22px max(24px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  background: var(--ink);
  font-size: 12px;
}

.footer-brand .brand-mark {
  border-color: var(--white);
  box-shadow: 4px 4px 0 var(--lime);
}

.site-footer p { margin: 0; }
.site-footer p:last-child { justify-self: end; }

.lightbox {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  overflow: auto;
  color: var(--white);
  background: var(--ink);
}

.lightbox::backdrop {
  background: rgba(11, 17, 16, 0.82);
  backdrop-filter: blur(10px);
}

.lightbox img {
  width: min(420px, 100%);
  margin: 0 auto;
  border-radius: 18px;
}

.lightbox p {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.lightbox-close {
  position: sticky;
  top: 0;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin: 0 0 -40px auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
  font-size: 25px;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

@media (max-width: 1080px) {
  .site-nav { gap: 18px; }
  .hero-shot-primary { right: 3%; }
  .hero-shot-secondary { display: none; }
  .hero::before { width: 72%; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card { min-height: 300px; }
  .showcase-layout { gap: 32px; }
  .gallery-stage { grid-template-columns: minmax(280px, 1fr); }
  .gallery-caption { display: none; }
  .gallery-accent { width: 100%; }
  .screenshot-button { margin: 32px auto; }
}

@media (max-width: 820px) {
  :root { --header-height: 64px; }
  .site-header {
    padding-inline: 18px;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }
  .site-nav {
    justify-self: end;
    max-width: 300px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a:nth-child(3),
  .site-nav a:nth-child(4) { display: none; }
  .header-repo { display: none; }
  .hero {
    height: auto;
    min-height: 760px;
  }
  .hero::before {
    width: 100%;
    background: rgba(11, 17, 16, 0.9);
    clip-path: polygon(0 0, 100% 0, 100% 74%, 0 92%);
  }
  .hero-media { opacity: 0.48; }
  .hero-shot-primary {
    top: auto;
    right: -36px;
    bottom: -250px;
    width: 310px;
    transform: rotate(5deg);
  }
  .hero-content {
    width: calc(100% - 36px);
    padding: 68px 0 220px;
    justify-content: flex-start;
  }
  .hero h1 { font-size: 72px; }
  .hero-lead { max-width: 560px; font-size: 24px; }
  .hero-copy { max-width: 520px; }
  .hero-next { left: 22px; transform: none; }
  .section { width: calc(100% - 36px); padding: 88px 0; }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 36px;
  }
  .section-heading h2,
  .workbench-copy h2,
  .pipeline-heading h2,
  .security-copy h2,
  .closing h2 { font-size: 42px; }
  .workbench-band {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-block: 80px;
  }
  .showcase-layout { grid-template-columns: 1fr; }
  .gallery-tabs {
    grid-template-columns: repeat(4, minmax(90px, 1fr));
    overflow-x: auto;
    border: 1px solid var(--ink);
    border-radius: 6px;
  }
  .gallery-tab {
    min-height: 74px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    border-right: 1px solid var(--ink);
    border-bottom: 0;
    text-align: center;
  }
  .gallery-tab:last-child { border-right: 0; }
  .gallery-tab > span,
  .gallery-tab small { display: none; }
  .gallery-tab:hover,
  .gallery-tab:focus-visible,
  .gallery-tab.is-active { padding-left: 14px; }
  .gallery-stage { min-height: 700px; }
  .pipeline-heading { align-items: flex-start; flex-direction: column; }
  .pipeline-heading .eyebrow { order: 0; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline-step {
    min-height: 96px;
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
  .pipeline-step:last-child { border-bottom: 0; }
  .pipeline-step > span { grid-row: 1 / 3; align-self: center; }
  .pipeline-step strong { margin-top: 0; }
  .security-section { grid-template-columns: 1fr; gap: 70px; }
  .storage-band { grid-template-columns: 1fr; gap: 50px; padding-block: 84px; }
  .security-visual { max-width: 350px; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer > p:nth-child(2) { display: none; }
}

@media (max-width: 560px) {
  .brand-name { font-size: 16px; }
  .site-nav { gap: 14px; font-size: 12px; }
  .hero { min-height: 720px; }
  .hero-content { padding-top: 56px; }
  .hero h1 { font-size: 62px; }
  .hero-lead { font-size: 22px; }
  .hero-copy { font-size: 14px; line-height: 1.65; }
  .hero-actions { width: 100%; flex-direction: column; }
  .button { width: min(100%, 310px); }
  .hero-facts { gap: 8px 14px; }
  .section-heading h2,
  .workbench-copy h2,
  .pipeline-heading h2,
  .security-copy h2,
  .closing h2 { font-size: 35px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 270px; }
  .workbench-band,
  .pipeline-band,
  .closing { padding-inline: 18px; }
  .voice-workbench { padding: 16px; box-shadow: 7px 7px 0 var(--lime); }
  .workbench-toolbar { align-items: stretch; flex-direction: column; }
  .mode-status { align-self: flex-end; }
  .waveform { gap: 3px; }
  .waveform i { width: 4px; }
  .workbench-footer { align-items: stretch; flex-direction: column; }
  .generate-button { width: 100%; }
  .gallery-tabs { grid-template-columns: repeat(4, minmax(72px, 1fr)); }
  .gallery-tab { padding-inline: 6px; font-size: 12px; }
  .gallery-tab:hover,
  .gallery-tab:focus-visible,
  .gallery-tab.is-active { padding-left: 6px; }
  .gallery-stage { min-height: 620px; }
  .screenshot-button {
    width: 270px;
    height: 566px;
    margin: 26px auto;
  }
  .security-copy { min-width: 0; }
  .storage-band { padding-inline: 18px; }
  .storage-copy h2 { font-size: 35px; }
  .storage-list > div { grid-template-columns: 1fr; gap: 5px; padding-block: 16px; }
  .security-lead { font-size: 15px; }
  .closing { padding-block: 88px; }
  .closing h2 { font-size: 39px; }
  .closing-links { flex-direction: column; }
  .closing-links a { width: 100%; }
}

@media (max-height: 650px) and (min-width: 821px) {
  .hero { height: calc(100svh - 88px); min-height: 280px; max-height: none; }
  .hero-content { padding-block: 18px; }
  .hero-kicker { margin-bottom: 8px; }
  .hero h1 { font-size: 54px; }
  .hero-lead { margin-top: 10px; font-size: 18px; }
  .hero-copy,
  .hero-facts { display: none; }
  .hero-actions { margin-top: 14px; }
  .button { min-height: 42px; }
  .hero-shot-primary { top: -48%; width: 290px; }
  .hero-next { bottom: 8px; }
}

@media (max-height: 650px) and (max-width: 820px) {
  .hero { min-height: calc(100svh - 84px); }
  .hero-content { padding: 28px 0 120px; }
  .hero-kicker { margin-bottom: 10px; }
  .hero h1 { font-size: 48px; }
  .hero-lead { margin-top: 12px; font-size: 18px; }
  .hero-copy,
  .hero-facts { display: none; }
  .hero-actions { margin-top: 14px; }
  .button { min-height: 42px; }
  .hero-shot-primary { bottom: -330px; width: 250px; }
  .hero-next { bottom: 6px; }
}

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