:root {
  color-scheme: dark;
  --bg: #07110f;
  --bg-soft: #0b1714;
  --panel: rgba(16, 30, 26, 0.88);
  --panel-strong: #10211c;
  --line: rgba(193, 224, 213, 0.13);
  --line-strong: rgba(193, 224, 213, 0.22);
  --text: #f3f6f4;
  --muted: #a8b7b1;
  --accent: #b8f36b;
  --accent-soft: #d8ff9f;
  --ink: #0b140f;
  --font-sans: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -10%, rgba(51, 93, 74, 0.31), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button,
video {
  font: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.2;
  pointer-events: none;
}

.ambient-one {
  width: 26rem;
  height: 26rem;
  top: 18rem;
  left: -17rem;
  background: #58bd8f;
}

.ambient-two {
  width: 22rem;
  height: 22rem;
  top: 55rem;
  right: -14rem;
  background: #9cc857;
}

.site-header,
.section-shell,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  grid-template-columns: repeat(3, 5px);
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding-block: 7px;
  border: 1px solid rgba(184, 243, 107, 0.58);
  border-radius: 9px;
  background: rgba(184, 243, 107, 0.07);
}

.brand-mark i {
  display: block;
  width: 5px;
  border-radius: 2px;
  background: var(--accent);
}

.brand-mark i:nth-child(1) { height: 9px; opacity: 0.65; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 13px; opacity: 0.82; }
.brand-mark.small { width: 27px; height: 27px; transform: scale(0.9); }

.header-link {
  color: var(--muted);
  font-size: 14px;
  transition: color 160ms ease;
}

.header-link:hover,
.header-link:focus-visible {
  color: var(--text);
}

.hero {
  padding: 124px 0 100px;
  text-align: center;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid rgba(184, 243, 107, 0.22);
  border-radius: 999px;
  background: rgba(184, 243, 107, 0.05);
  letter-spacing: 0.1em;
}

.eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(184, 243, 107, 0.09);
}

.hero h1 {
  max-width: 940px;
  margin: 30px auto 24px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 1.08;
  letter-spacing: -0.065em;
  font-weight: 600;
}

.hero h1 em {
  color: var(--accent-soft);
  font-style: normal;
  font-weight: 500;
}

.hero-copy {
  max-width: 690px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button:focus-visible,
.text-download:focus-visible,
.checksum-button:focus-visible,
.header-link:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.button-primary {
  color: var(--ink);
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(119, 170, 64, 0.17);
}

.button-primary:hover {
  background: #c8ff83;
}

.button-secondary {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
}

.button-secondary:hover {
  border-color: rgba(193, 224, 213, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.release-line {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  color: #82928c;
  font-size: 12px;
}

.release-line strong { color: #b8c5c0; font-weight: 600; }
.release-dot { width: 3px; height: 3px; border-radius: 50%; background: #53645e; }

.product-frame {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(11, 24, 20, 0.76);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.frame-topbar {
  height: 52px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #92a19c;
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}

.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #33443e; }
.local-status { justify-self: end; display: inline-flex; align-items: center; gap: 7px; }
.local-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.frame-body {
  min-height: 430px;
  display: grid;
  grid-template-columns: 70px 1fr;
}

.frame-sidebar {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 0;
}

.sidebar-lines { margin-top: 50px; display: grid; gap: 25px; }
.sidebar-lines i { width: 19px; height: 3px; border-radius: 2px; background: #34433e; }
.sidebar-lines i:nth-child(2) { background: var(--accent); box-shadow: 0 0 16px rgba(184, 243, 107, 0.35); }

.workflow-preview { padding: 58px clamp(30px, 6vw, 82px) 68px; }
.preview-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.mini-label { color: #7f918a; font-size: 10px; font-weight: 700; letter-spacing: 0.15em; }
.preview-heading h2 { margin: 10px 0 0; font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.04em; }
.preview-badge { color: #9eafa8; font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; }

.workflow-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}

.workflow-grid article {
  min-height: 190px;
  padding: 25px 20px;
  border-right: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.024), transparent 65%);
}

.workflow-grid article:last-child { border-right: 0; }
.step-number { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; }
.workflow-grid h3 { margin: 43px 0 9px; font-size: 14px; }
.workflow-grid p { margin: 0; color: #81928c; font-size: 11px; line-height: 1.65; }

.principles {
  padding: 150px 0;
}

.principles-intro {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 70px;
  align-items: end;
}

.principles-intro h2,
.demo-copy h2,
.download-panel h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.16;
  letter-spacing: -0.055em;
}

.principles-intro p,
.demo-copy p,
.download-panel > div > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.principle-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.principle-grid article {
  padding: 34px 32px 0 0;
  border-right: 1px solid var(--line);
}

.principle-grid article + article { padding-left: 32px; }
.principle-grid article:last-child { border-right: 0; }
.principle-icon { color: var(--accent); font-size: 19px; }
.principle-grid h3 { margin: 35px 0 12px; font-size: 17px; }
.principle-grid p { margin: 0; color: #8fa09a; font-size: 13px; line-height: 1.75; }

.demo-section {
  padding: 90px 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1.4fr);
  gap: 80px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.demo-copy h2 { margin: 18px 0 20px; }
.demo-copy p { margin-bottom: 28px; }
.text-download { display: inline-flex; gap: 14px; align-items: center; color: var(--accent); font-size: 14px; font-weight: 700; }
.text-download:hover { color: var(--accent-soft); }
.video-size { display: block; margin-top: 10px; color: #6e7f79; font-size: 11px; }

.video-wrap {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #020706;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.video-wrap::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020706;
}

.download-panel {
  margin-top: 70px;
  margin-bottom: 130px;
  padding: clamp(34px, 7vw, 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.62fr);
  gap: clamp(50px, 10vw, 130px);
  align-items: center;
  border: 1px solid rgba(184, 243, 107, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(184, 243, 107, 0.09), transparent 45%),
    var(--panel-strong);
}

.download-panel h2 { margin: 18px 0 22px; }
.download-card { padding: 24px; border: 1px solid var(--line-strong); border-radius: 15px; background: rgba(5, 13, 11, 0.52); }
.download-card-top { display: flex; gap: 15px; align-items: center; margin-bottom: 20px; }
.package-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 11px; color: var(--accent); background: rgba(184, 243, 107, 0.08); border: 1px solid rgba(184, 243, 107, 0.16); font-size: 20px; }
.download-card-top div { display: grid; gap: 3px; }
.download-card-top strong { font-size: 14px; }
.download-card-top span { color: #80918b; font-size: 11px; }
.button-full { width: 100%; }
.package-meta { margin: 20px 0 0; }
.package-meta > div { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.package-meta dt { color: #778983; font-size: 11px; }
.package-meta dd { margin: 0; color: #afbeb9; font-size: 11px; }
.package-meta code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: #aabbb5; }
.checksum-button { width: 100%; margin-top: 16px; padding: 0; color: #8fa29b; border: 0; background: transparent; text-align: left; font-size: 11px; cursor: pointer; }
.checksum-button:hover { color: var(--accent); }
.copy-status { min-height: 16px; margin: 6px 0 0; color: var(--accent); font-size: 10px; }

.site-footer {
  min-height: 120px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  color: #62736d;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.footer-brand { color: #b6c4bf; font-size: 13px; }
.site-footer p { text-align: center; }
.site-footer > span { justify-self: end; }

@media (max-width: 900px) {
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-grid article { border-bottom: 1px solid var(--line); }
  .workflow-grid article:nth-child(2) { border-right: 0; }
  .workflow-grid article:nth-child(3),
  .workflow-grid article:nth-child(4) { border-bottom: 0; }
  .principles-intro { grid-template-columns: 1fr; gap: 28px; }
  .demo-section { grid-template-columns: 1fr; gap: 42px; }
  .download-panel { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header,
  .section-shell,
  .site-footer { width: min(100% - 32px, 1180px); }
  .site-header { height: 72px; }
  .header-link { display: none; }
  .hero { padding: 88px 0 70px; }
  .hero h1 { margin-top: 24px; letter-spacing: -0.055em; }
  .hero-copy { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .release-line { flex-wrap: wrap; row-gap: 6px; }
  .frame-topbar { grid-template-columns: 1fr 1fr; }
  .frame-topbar > span:nth-child(2) { display: none; }
  .frame-body { grid-template-columns: 1fr; }
  .frame-sidebar { display: none; }
  .workflow-preview { padding: 36px 20px 30px; }
  .preview-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-grid article { min-height: 150px; border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .workflow-grid article:last-child { border-bottom: 0 !important; }
  .workflow-grid h3 { margin-top: 30px; }
  .principles { padding: 105px 0; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article,
  .principle-grid article + article { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle-grid article:last-child { border-bottom: 0; }
  .principle-grid h3 { margin-top: 20px; }
  .demo-section { padding: 72px 0; }
  .download-panel { width: 100%; border-radius: 0; border-left: 0; border-right: 0; margin-bottom: 80px; }
  .download-card { padding: 18px; }
  .site-footer { padding: 30px 0; grid-template-columns: 1fr; text-align: center; }
  .site-footer p { margin: 0; }
  .site-footer > span { justify-self: center; }
  .footer-brand { justify-self: center; }
}

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