:root {
  color-scheme: dark;
  --bg: #070909;
  --bg-2: #0d1211;
  --surface: rgba(17, 24, 23, 0.84);
  --surface-strong: #121918;
  --surface-soft: rgba(255, 255, 255, 0.045);
  --text: #f4f1ea;
  --muted: #b9c0ba;
  --dim: #77827d;
  --line: rgba(244, 241, 234, 0.13);
  --line-strong: rgba(244, 241, 234, 0.22);
  --teal: #18d4c3;
  --teal-dark: #07897f;
  --teal-soft: rgba(24, 212, 195, 0.16);
  --amber: #ffb44c;
  --amber-soft: rgba(255, 180, 76, 0.16);
  --red: #ff6b5f;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --max: 1180px;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(244, 241, 234, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.025) 1px, transparent 1px),
    linear-gradient(145deg, rgba(24, 212, 195, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(255, 180, 76, 0.1), transparent 32%),
    linear-gradient(180deg, #0a0f0e 0%, #070909 50%, #0d1010 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 9, 9, 0.9), transparent 18%, transparent 82%, rgba(7, 9, 9, 0.9)),
    linear-gradient(180deg, transparent 0%, rgba(7, 9, 9, 0.58) 72%, #070909 100%);
}

a {
  color: inherit;
}

code,
pre {
  font-family:
    "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
}

img {
  max-width: 100%;
}

.hero,
.band,
.footer,
.legal-main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  width: 100%;
  margin: 0;
  padding: 18px max(16px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(180deg, rgba(7, 9, 9, 0.94), rgba(7, 9, 9, 0.6) 66%, transparent);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.72rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
}

.nav,
.footer-links {
  gap: 1.05rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav a,
.footer-links a,
.text-link {
  text-decoration: none;
}

.nav a,
.footer-links a {
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"],
.footer-links a:hover,
.footer-links a[aria-current="page"],
.text-link:hover {
  color: var(--teal);
  border-color: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(330px, 0.82fr);
  align-items: center;
  min-height: calc(100vh - 76px);
  gap: clamp(2rem, 7vw, 6.2rem);
  padding: clamp(58px, 9vh, 106px) 0 84px;
}

.hero-copy,
.copy-block,
.hero-visual,
.terminal,
.code-panel,
.inline-command,
.screenshot-frame,
.legal-content,
.capability-grid,
.boundary-grid,
.requirements-list {
  min-width: 0;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker,
.panel-label {
  color: var(--amber);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dl {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 1.1rem;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
    system-ui, sans-serif;
  font-size: clamp(3.9rem, 8.6vw, 7.2rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.legal-hero h1 {
  font-size: clamp(3.4rem, 8vw, 7.4rem);
}

h2 {
  margin-bottom: 1rem;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
    system-ui, sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 3.55rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.72rem;
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lede,
.hero p,
.band p,
.legal-content p {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.55vw, 1.22rem);
  line-height: 1.62;
}

.lede {
  max-width: 700px;
  color: #e4e2dc;
  font-size: clamp(1.22rem, 2.25vw, 1.65rem);
}

.hero-actions,
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.12rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  border-color: rgba(24, 212, 195, 0.56);
  background: linear-gradient(135deg, #12bfaf, #24ead9 58%, #8df5ec);
  color: #03110f;
  box-shadow: 0 18px 46px rgba(24, 212, 195, 0.18);
}

.button.secondary {
  background: rgba(244, 241, 234, 0.055);
  color: var(--text);
}

.proof-note {
  max-width: 620px;
  margin: 1.45rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--amber);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  inset: 11% 5% 10%;
  z-index: -2;
  border: 1px solid rgba(24, 212, 195, 0.2);
  border-radius: 24px;
  content: "";
  transform: rotate(-5deg);
}

.hero-visual::after {
  position: absolute;
  inset: 20% -2% 18% 16%;
  z-index: -3;
  border: 1px solid rgba(255, 180, 76, 0.18);
  border-radius: 24px;
  content: "";
  transform: rotate(7deg);
}

.app-icon {
  width: min(88vw, 410px);
  height: auto;
  filter: drop-shadow(0 36px 74px rgba(0, 0, 0, 0.52));
}

.flow-line {
  position: absolute;
  width: min(100%, 520px);
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--teal));
  opacity: 0.58;
  transform: translateY(42px);
  z-index: -1;
}

.context-panel,
.approval-chip {
  position: absolute;
  border: 1px solid rgba(244, 241, 234, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(244, 241, 234, 0.08), transparent 44px),
    rgba(9, 13, 13, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.context-panel {
  left: 0;
  bottom: 42px;
  width: min(370px, 82vw);
  padding: 0.9rem;
}

.context-panel > span {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.context-panel dl,
.context-panel dd {
  margin-bottom: 0;
}

.context-panel div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0.72rem;
  padding: 0.46rem 0;
  border-top: 1px solid rgba(244, 241, 234, 0.09);
}

.context-panel dt {
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 700;
}

.context-panel dd {
  color: #e9f8f5;
  font-family:
    "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.approval-chip {
  right: 0;
  top: 88px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 0.88rem;
  color: #dcfffb;
  font-size: 0.9rem;
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 18px var(--teal);
}

.band {
  padding: clamp(70px, 10vw, 136px) 0;
  border-top: 1px solid rgba(244, 241, 234, 0.08);
}

.two-column,
.approval,
.metadata,
.install,
.requirements,
.privacy,
.closing,
.capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 5vw, 4rem);
  align-items: center;
}

.copy-block {
  width: 100%;
  max-width: 590px;
}

.capabilities {
  align-items: start;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.capability-grid article {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.35rem);
  background:
    linear-gradient(180deg, rgba(244, 241, 234, 0.06), transparent 58px),
    rgba(13, 18, 17, 0.82);
}

.capability-grid span {
  display: inline-flex;
  margin-bottom: 2.6rem;
  color: var(--teal);
  font-family:
    "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.capability-grid p {
  margin-bottom: 0;
  font-size: 1rem;
}

.screenshot-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.terminal,
.code-panel,
.inline-command {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(244, 241, 234, 0.07), transparent 44px),
    #080c0c;
  box-shadow: var(--shadow);
}

.terminal pre,
.code-panel pre,
.inline-command {
  margin: 0;
  padding: 1.1rem;
}

.terminal code,
.code-panel code,
.inline-command code {
  color: #e1fbf7;
  font-size: 0.9rem;
  line-height: 1.62;
}

.code-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 1rem;
}

.code-panel {
  padding-top: 1rem;
}

.panel-label,
.panel-note {
  padding: 0 1.1rem;
}

.panel-note {
  color: var(--dim);
  font-size: 0.98rem;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 2rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.boundary-grid > div {
  padding: 1.3rem;
  background: rgba(12, 17, 16, 0.82);
}

.boundary-grid > div:first-child {
  border-top: 3px solid var(--teal);
}

.boundary-grid > div + div {
  border-top: 3px solid var(--amber);
}

ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.65;
}

li + li {
  margin-top: 0.42rem;
}

.text-link {
  color: #dcfffb;
  font-weight: 800;
}

.requirements-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  list-style: none;
}

.requirements-list li {
  margin: 0;
  padding: 1rem 1.1rem;
  background: rgba(12, 17, 16, 0.82);
}

.closing {
  padding-bottom: clamp(88px, 13vw, 160px);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 28px 0 44px;
  border-top: 1px solid rgba(244, 241, 234, 0.08);
  color: var(--dim);
}

.legal-page {
  background:
    linear-gradient(rgba(244, 241, 234, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.024) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 180, 76, 0.09), transparent 30%),
    linear-gradient(180deg, #0a0f0e 0%, #070909 100%);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.legal-main {
  padding: clamp(58px, 9vw, 110px) 0 clamp(78px, 12vw, 140px);
}

.legal-hero {
  max-width: 900px;
  margin-bottom: clamp(44px, 7vw, 78px);
}

.legal-date {
  color: var(--amber);
  font-size: 0.94rem;
  font-weight: 800;
}

.legal-content {
  max-width: 830px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 2.4rem 0 0.85rem;
  font-size: clamp(1.55rem, 2.7vw, 2.45rem);
  line-height: 1.02;
}

.legal-content a {
  color: #dcfffb;
  overflow-wrap: anywhere;
}

@media (max-width: 960px) {
  .hero,
  .two-column,
  .approval,
  .metadata,
  .install,
  .requirements,
  .privacy,
  .closing,
  .capabilities,
  .code-grid,
  .boundary-grid,
  .requirements-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .hero-visual {
    min-height: 430px;
    order: -1;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid span {
    margin-bottom: 1.4rem;
  }

  .metadata .copy-block {
    order: -1;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 8px;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  h1 {
    font-size: clamp(3.1rem, 14vw, 4.45rem);
  }

  h2 {
    font-size: clamp(1.75rem, 8.5vw, 2.55rem);
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .closing-actions {
    width: 100%;
  }

  .hero-visual {
    width: 100%;
    min-height: 390px;
    overflow: clip;
  }

  .hero-visual::before {
    inset: 9% 7% 8%;
    transform: none;
  }

  .hero-visual::after {
    inset: 17% 12% 16%;
    transform: none;
  }

  .app-icon {
    width: min(82vw, 310px);
  }

  .context-panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: min(370px, 100%);
    margin: 0 auto;
    transform: none;
  }

  .context-panel div {
    grid-template-columns: 1fr;
    gap: 0.16rem;
  }

  .approval-chip {
    right: auto;
    left: 50%;
    top: 18px;
    max-width: calc(100% - 24px);
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .footer {
    flex-direction: column;
  }

  .terminal code,
  .code-panel code,
  .inline-command code {
    font-size: 0.82rem;
  }

  .terminal pre,
  .code-panel pre,
  .inline-command {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .hero,
  .band,
  .footer,
  .legal-main {
    width: min(var(--max), calc(100% - 24px));
  }

  .site-header {
    padding-right: 12px;
    padding-left: 12px;
  }

  .nav {
    font-size: 0.86rem;
  }

  .context-panel {
    width: min(360px, 92vw);
  }
}
