:root {
  --announce-h: 42px;
  --bg: #f7f3ea;
  --bg-alt: #f1ebdf;
  --surface: #fbf8f2;
  --surface-strong: #ffffff;
  --text: #10231f;
  --text-soft: rgba(16, 35, 31, 0.74);
  --text-faint: rgba(16, 35, 31, 0.5);
  --border: #ddd6c8;
  --border-strong: rgba(18, 61, 51, 0.16);
  --green: #123d33;
  --forest: #1f5a46;
  --sage: #8ead91;
  --sand: #e4c37f;
  --shadow: 0 10px 30px rgba(16, 35, 31, 0.05);
  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  --max-w: 1180px;
  --nav-h: 74px;
  --radius: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

main {
  overflow: clip;
}

section {
  padding: 8rem 0;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-eyebrow {
  margin-bottom: 1rem;
  color: var(--text-faint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-heading,
h1,
h2 {
  font-family: var(--font-display);
}

.section-heading {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 4.7vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.section-sub {
  max-width: 34rem;
  color: var(--text-soft);
  font-size: 1.06rem;
}

.section-intro {
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 600;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--green);
  color: #f7f3ea;
  padding: 0.88rem 1.35rem;
}

.btn-primary:hover {
  background: #184d40;
}

.btn-outline {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.45);
  color: var(--green);
  padding: 0.88rem 1.35rem;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.85);
}

.btn-sm {
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
}

#site-nav {
  position: sticky;
  top: var(--announce-h);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.22s ease, border-color 0.22s ease, backdrop-filter 0.22s ease;
}

#site-nav.scrolled {
  background: rgba(247, 243, 234, 0.86);
  border-color: rgba(16, 35, 31, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: var(--nav-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
}

.announcement-bar {
  position: sticky;
  top: 0;
  z-index: 110;
  min-height: var(--announce-h);
  border-bottom: 1px solid rgba(16, 35, 31, 0.08);
  background: rgba(247, 243, 234, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.announcement-inner {
  min-height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  text-align: center;
}

.announcement-inner strong {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-logo img {
  width: 146px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-soft);
}

.theme-toggle:hover {
  color: var(--green);
  border-color: var(--border-strong);
}

.icon-sun {
  display: none;
}

.icon-moon {
  display: block;
}

#hero {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--announce-h) + 3.5rem);
  padding-bottom: 6.5rem;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 10%, rgba(228, 195, 127, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(142, 173, 145, 0.16), transparent 30%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 3.5rem;
  align-items: center;
}

.hero-copy h1 {
  max-width: 10ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3.4rem, 7.3vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.88;
  text-wrap: balance;
}

.hero-tagline {
  max-width: 36rem;
  margin-bottom: 2rem;
  color: var(--text-soft);
  font-size: 1.14rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.trust-strip {
  color: var(--text-faint);
  font-size: 0.92rem;
}

.trust-strip span {
  margin: 0 0.4rem;
}

.hero-visual {
  display: grid;
  gap: 1rem;
}

.hero-stage {
  position: relative;
  padding: 1.3rem 0 1.1rem;
}

.hero-frame,
.preview-frame,
.code-card,
.stack-card,
.feature-card,
.diagram-card,
.preview-note,
.table-card,
.cta-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-frame {
  padding: 1rem;
  transform: perspective(1400px) rotateX(10deg) rotateY(-12deg);
  transform-style: preserve-3d;
}

.frame-header,
.code-toolbar {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.frame-header span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d9d1c3;
}

.product-shell {
  display: grid;
  grid-template-columns: 126px 1fr;
  overflow: hidden;
  border: 1px solid rgba(16, 35, 31, 0.06);
  border-radius: calc(var(--radius) - 8px);
  background: #fffdf9;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 16px 28px rgba(16, 35, 31, 0.08);
}

.product-sidebar {
  min-height: 100%;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f3eee4;
  border-right: 1px solid rgba(16, 35, 31, 0.06);
}

.sidebar-group {
  display: grid;
  gap: 0.6rem;
}

.sidebar-section-label {
  color: var(--text-faint);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-switch {
  padding: 0.24rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.24rem;
  border: 1px solid rgba(16, 35, 31, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.sidebar-toggle {
  min-width: 0;
  padding: 0.58rem 0.35rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-faint);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle.active {
  background: rgba(18, 61, 51, 0.12);
  color: var(--green);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 2px rgba(16, 35, 31, 0.08);
}

.sidebar-pill {
  padding: 0.62rem 0.8rem;
  border-radius: 12px;
  color: var(--text-faint);
  font-size: 0.82rem;
  font-weight: 600;
}

.sidebar-pill.active {
  background: var(--green);
  color: #f7f3ea;
}

.product-main {
  padding: 1.2rem;
}

.product-topline,
.panel-header,
.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-topline strong,
.preview-header strong {
  font-size: 1.02rem;
}

.product-banner {
  margin-top: 0.9rem;
  padding: 0.72rem 0.84rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(16, 35, 31, 0.06);
  border-radius: 16px;
  background: rgba(142, 173, 145, 0.1);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
}

.product-banner button {
  padding: 0.35rem 0.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
}

.product-chip {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(142, 173, 145, 0.18);
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 700;
}

.product-summary-grid {
  margin: 1rem 0 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.summary-card,
.panel,
.preview-balance,
.preview-note {
  border: 1px solid rgba(16, 35, 31, 0.07);
  border-radius: 18px;
  background: var(--surface-strong);
}

.summary-card {
  padding: 0.95rem;
}

.summary-card strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.25rem;
}

.summary-card small,
.panel-header span,
.preview-header span,
.preview-note p {
  color: var(--text-faint);
}

.product-panels {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.9rem;
}

.panel {
  padding: 1rem;
}

.product-list {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.7rem;
}

.product-list-row {
  padding: 0.78rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 14px;
  background: rgba(16, 35, 31, 0.04);
  font-size: 0.84rem;
}

.product-list-row strong {
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.transaction-row {
  padding: 0.78rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(16, 35, 31, 0.06);
  font-size: 0.93rem;
}

.transaction-row:last-child {
  border-bottom: 0;
}

.positive {
  color: var(--forest);
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-layer--back {
  position: absolute;
  top: 0.8rem;
  right: 1.2rem;
  width: 44%;
  z-index: 0;
  transform: perspective(1000px) rotateX(12deg) rotateY(-22deg) translateZ(-40px);
  opacity: 0.92;
}

.mini-shell {
  padding: 1rem;
  border: 1px solid rgba(16, 35, 31, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px rgba(16, 35, 31, 0.08);
}

.mini-shell-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.95rem;
}

.mini-pill {
  width: 72px;
  height: 12px;
  border-radius: 999px;
  background: rgba(18, 61, 51, 0.15);
}

.mini-pill--soft {
  width: 54px;
  background: rgba(228, 195, 127, 0.36);
}

.mini-shell-bars {
  display: grid;
  gap: 0.55rem;
}

.mini-shell-bars span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(18, 61, 51, 0.86), rgba(142, 173, 145, 0.48));
}

.floating-card {
  position: absolute;
  z-index: 2;
  min-width: 182px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(18, 61, 51, 0.04),
    0 18px 44px rgba(16, 35, 31, 0.12);
}

.floating-card--top {
  top: -1rem;
  right: -1.3rem;
  transform: rotate(4deg);
}

.floating-card--bottom {
  left: -1.6rem;
  bottom: 1.6rem;
  transform: rotate(-6deg);
}

.floating-label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text-faint);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floating-card strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.2;
}

.floating-pill-row {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.floating-pill {
  padding: 0.35rem 0.58rem;
  border-radius: 999px;
  background: rgba(18, 61, 51, 0.1);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
}

.floating-rows {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.floating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
}

.hero-badge {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.hero-badge span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-faint);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-badge strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2.4rem;
  align-items: start;
}

.comparison-stack {
  display: grid;
  gap: 1rem;
}

.stack-card {
  padding: 1.45rem;
}

.stack-card h3,
.feature-card h3,
.preview-note h3,
.footer-links-group h3 {
  margin-bottom: 0.45rem;
  font-size: 1.04rem;
}

.stack-card p,
.feature-card p,
.preview-note p,
.footer-brand p,
.footer-links-group a,
td {
  color: var(--text-soft);
}

#features {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.34) 22%, transparent 100%);
}

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

.feature-card {
  padding: 1.6rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover,
.stack-card:hover,
.preview-note:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(142, 173, 145, 0.16);
  color: var(--green);
}

.split-layout--privacy,
.split-layout--code {
  align-items: center;
}

.privacy-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.8rem;
  list-style: none;
}

.privacy-list li {
  position: relative;
  padding-left: 1.6rem;
  font-weight: 500;
}

.privacy-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--sand);
}

.diagram-card {
  min-height: 310px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(228, 195, 127, 0.14), transparent 26%),
    var(--surface);
}

.diagram-node {
  min-width: 110px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(16, 35, 31, 0.08);
  border-radius: 18px;
  background: #fffdf9;
  text-align: center;
  font-weight: 700;
}

.diagram-node--device {
  background: rgba(142, 173, 145, 0.16);
}

.diagram-node--moor {
  background: rgba(18, 61, 51, 0.08);
}

.diagram-arrow {
  color: var(--text-faint);
  font-size: 1.4rem;
}

.code-card {
  padding: 1.2rem;
}

.code-card pre {
  padding: 1.2rem;
  overflow: auto;
  border-radius: 18px;
  background: #fffdf9;
  color: var(--green);
  font-size: 0.95rem;
  line-height: 1.85;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, 0.7fr);
  gap: 1rem;
}

.preview-main {
  min-width: 0;
}

.preview-frame {
  padding: 1.2rem;
}

.preview-header {
  margin-bottom: 1rem;
}

.preview-surface {
  padding: 1.2rem;
  border: 1px solid rgba(16, 35, 31, 0.07);
  border-radius: 20px;
  background: #fffdf9;
}

.preview-balance {
  margin-bottom: 1rem;
  padding: 1.1rem;
}

.preview-balance span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.preview-balance strong {
  font-size: 1.8rem;
}

.preview-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.85fr);
  gap: 1rem;
}

.preview-chip-row {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preview-chip {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 35, 31, 0.08);
  background: rgba(255, 255, 255, 0.8);
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 700;
}

.preview-column {
  display: grid;
  gap: 0.55rem;
}

.preview-check {
  padding: 0.95rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  border-radius: 16px;
  background: rgba(16, 35, 31, 0.04);
}

.preview-check strong {
  color: var(--green);
  font-size: 0.9rem;
}

.preview-column span {
  font-size: 0.9rem;
}

.preview-column--list {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(142, 173, 145, 0.14);
  color: var(--green);
  font-weight: 600;
}

.preview-column--list div + div {
  margin-top: 0.6rem;
}

.preview-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 35, 31, 0.08);
}

.preview-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--sage));
}

.preview-support {
  display: grid;
  gap: 1rem;
}

.preview-note {
  padding: 1.3rem;
}

.table-card {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem 1.2rem;
  text-align: left;
}

thead {
  background: rgba(18, 61, 51, 0.05);
}

th {
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody tr + tr td {
  border-top: 1px solid rgba(16, 35, 31, 0.07);
}

#cta {
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.cta-card {
  padding: 3rem 2rem;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(228, 195, 127, 0.16), transparent 32%),
    var(--surface);
}

.cta-card .section-heading,
.cta-card .section-sub {
  max-width: none;
}

.cta-card .section-sub {
  margin: 0 auto 1.5rem;
}

footer {
  padding: 0 0 4rem;
}

.footer-grid {
  padding-top: 2rem;
  border-top: 1px solid rgba(16, 35, 31, 0.08);
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(0, 0.7fr));
  gap: 1.4rem;
}

.footer-brand {
  display: flex;
  gap: 0.9rem;
}

.footer-brand img {
  width: 34px;
  height: 34px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 0.2rem;
}

.footer-links-group {
  display: grid;
  gap: 0.5rem;
}

.footer-links-group a:hover {
  color: var(--green);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(16, 35, 31, 0.46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 430px;
  padding: 2.3rem 2rem;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(16, 35, 31, 0.14);
  text-align: center;
  transform: translateY(8px);
  transition: transform 0.2s ease;
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: var(--text-faint);
  font-size: 1.5rem;
}

.modal-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(142, 173, 145, 0.16);
  color: var(--green);
}

.modal-box h2 {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.modal-sub,
.modal-privacy {
  color: var(--text-soft);
}

.modal-sub {
  margin-bottom: 1.25rem;
}

#modal-email-form {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

.email-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fffdf9;
  color: var(--text);
  font-size: 0.96rem;
  outline: none;
}

.email-input:focus {
  border-color: var(--green);
}

.email-input.input-error {
  border-color: #b9544d;
}

.modal-submit {
  width: 100%;
}

.modal-skip {
  border: 0;
  background: transparent;
  color: var(--text-faint);
  font-size: 0.92rem;
}

.modal-privacy {
  margin-top: 0.75rem;
  font-size: 0.84rem;
}

[data-theme='dark'] {
  --bg: #0c1714;
  --bg-alt: #10231f;
  --surface: #10201d;
  --surface-strong: #142723;
  --text: #f7f3ea;
  --text-soft: rgba(247, 243, 234, 0.78);
  --text-faint: rgba(247, 243, 234, 0.5);
  --border: rgba(247, 243, 234, 0.11);
  --border-strong: rgba(247, 243, 234, 0.18);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

[data-theme='dark'] #site-nav.scrolled {
  background: rgba(12, 23, 20, 0.8);
  border-color: rgba(247, 243, 234, 0.08);
}

[data-theme='dark'] .announcement-bar {
  border-color: rgba(247, 243, 234, 0.08);
  background: rgba(12, 23, 20, 0.9);
}

[data-theme='dark'] .theme-toggle,
[data-theme='dark'] .btn-outline,
[data-theme='dark'] .hero-badge,
[data-theme='dark'] .modal-box,
[data-theme='dark'] .product-shell,
[data-theme='dark'] .summary-card,
[data-theme='dark'] .panel,
[data-theme='dark'] .preview-surface,
[data-theme='dark'] .preview-balance,
[data-theme='dark'] .preview-note,
[data-theme='dark'] .diagram-node,
[data-theme='dark'] .code-card pre,
[data-theme='dark'] .email-input {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme='dark'] .btn-outline,
[data-theme='dark'] .theme-toggle {
  color: var(--text);
}

[data-theme='dark'] .btn-primary {
  color: #0f1e1a;
}

[data-theme='dark'] .product-sidebar {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme='dark'] .sidebar-pill.active {
  color: #0f1e1a;
  background: var(--sage);
}

[data-theme='dark'] .diagram-node--device {
  background: rgba(142, 173, 145, 0.18);
}

[data-theme='dark'] .diagram-node--moor {
  background: rgba(228, 195, 127, 0.12);
}

[data-theme='dark'] .floating-card,
[data-theme='dark'] .mini-shell {
  background: rgba(20, 39, 35, 0.72);
  border-color: rgba(247, 243, 234, 0.12);
}

[data-theme='dark'] #open-source,
[data-theme='dark'] #comparison {
  background: rgba(255, 255, 255, 0.015);
}

[data-theme='dark'] .icon-sun {
  display: block;
}

[data-theme='dark'] .icon-moon {
  display: none;
}

@media (max-width: 1080px) {
  .hero-layout,
  .split-layout,
  .preview-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 720px) {
  section {
    padding: 5rem 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.9rem, 13vw, 4.2rem);
  }

  .hero-badges,
  .product-summary-grid,
  .product-panels,
  .preview-columns {
    grid-template-columns: 1fr;
  }

  .product-shell {
    grid-template-columns: 1fr;
  }

  .product-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(16, 35, 31, 0.06);
  }

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

  .diagram-card {
    min-height: 0;
    flex-direction: column;
  }

  .diagram-arrow {
    transform: rotate(90deg);
  }

  .footer-grid {
    gap: 2rem;
  }
}

@media (max-width: 560px) {
  .hero-ctas,
  .nav-right {
    flex-wrap: wrap;
  }

  .product-main,
  .cta-card,
  .hero-frame,
  .preview-frame,
  .stack-card,
  .feature-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tbody tr {
    padding: 0.5rem 0;
    border-top: 1px solid rgba(16, 35, 31, 0.07);
  }

  tbody tr:first-child {
    border-top: 0;
  }

  td {
    padding: 0.35rem 1rem;
  }

  td:first-child {
    color: var(--green);
    font-weight: 700;
    padding-top: 1rem;
  }
}

/* ═══════════════════════════════════════════════
   PHASE 1 — HERO ELEVATION
   ═══════════════════════════════════════════════ */

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  height: 70%;
  background: radial-gradient(ellipse at 50% 35%, rgba(142, 173, 145, 0.28) 0%, transparent 70%);
  filter: blur(52px);
  pointer-events: none;
  z-index: 0;
}

.hero-frame {
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 1px rgba(16, 35, 31, 0.05),
    0 2px 4px rgba(16, 35, 31, 0.03),
    0 14px 28px rgba(16, 35, 31, 0.07),
    0 44px 76px rgba(16, 35, 31, 0.05);
  will-change: transform;
  transition:
    transform 0.55s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.55s ease;
}

.hero-badges {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════
   PHASE 2A — PRIVACY DIAGRAM
   ═══════════════════════════════════════════════ */

.diagram-card {
  min-height: 0;
  padding: 2.5rem 1.8rem;
  gap: 0;
  box-shadow:
    0 0 0 1px rgba(18, 61, 51, 0.05),
    0 18px 38px rgba(16, 35, 31, 0.07);
}

.diagram-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
}

.diagram-node {
  min-width: 0;
  width: 100%;
  padding: 1.05rem 0.7rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
}

.diagram-node--device {
  background: rgba(142, 173, 145, 0.28);
}

.diagram-node--moor {
  background: rgba(18, 61, 51, 0.1);
}

.diagram-node-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  opacity: 0.85;
}

.diagram-node-label {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

.diagram-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
}

.connector-svg {
  width: 100%;
  height: 10px;
  overflow: visible;
}

.connector-line {
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-dasharray: 4 4;
  stroke-dashoffset: 8;
  animation: dash-flow 1.5s linear infinite;
}

.connector-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

@keyframes dash-flow {
  to { stroke-dashoffset: 0; }
}

/* ═══════════════════════════════════════════════
   PHASE 2B — TERMINAL CARD
   ═══════════════════════════════════════════════ */

.code-card {
  padding: 0;
  overflow: hidden;
  background: #161d1b;
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 0 0 1px rgba(12, 23, 20, 0.2),
    0 24px 48px rgba(7, 16, 13, 0.28);
}

.code-toolbar {
  padding: 0.8rem 1rem;
  background: #0f1512;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 0.42rem;
  align-items: center;
  margin-bottom: 0;
}

.dot {
  border-radius: 999px;
}

.dot-red    { width: 12px; height: 12px; background: #ff5f57; }
.dot-yellow { width: 12px; height: 12px; background: #febc2e; }
.dot-green  { width: 12px; height: 12px; background: #28c840; }

.code-filename {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.02em;
}

.code-card pre {
  padding: 1.4rem 1.6rem;
  background: transparent;
  color: #cdd8d3;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.92;
}

.tok-key    { color: #8ec4a8; }
.tok-string { color: #e4c37f; }
.tok-bool   { color: #f0967a; }
.tok-null   { color: rgba(205, 216, 211, 0.4); }

[data-theme='dark'] .code-card {
  background: #0f1512;
  border-color: rgba(255, 255, 255, 0.06);
}

/* ═══════════════════════════════════════════════
   PHASE 3 — SECTION RHYTHM & BACKGROUNDS
   ═══════════════════════════════════════════════ */

#hero {
  padding-bottom: 7.5rem;
}

#cta {
  padding-top: 6rem;
  padding-bottom: 7.5rem;
}

#privacy {
  background: var(--surface-strong);
}

#open-source {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(247, 243, 234, 0.7));
}

#product {
  background: rgba(142, 173, 145, 0.05);
}

#comparison {
  background: rgba(255, 255, 255, 0.68);
}

/* ═══════════════════════════════════════════════
   PHASE 4 — MOTION & MICRO-INTERACTIONS
   ═══════════════════════════════════════════════ */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal.revealed {
    opacity: 1;
    transform: none;
  }
}

.btn-primary {
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.025);
  box-shadow: 0 8px 24px rgba(18, 61, 51, 0.28);
}

.btn-outline {
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(16, 35, 31, 0.06);
}

.feature-card {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow:
    0 0 0 1px rgba(18, 61, 51, 0.06),
    0 14px 32px rgba(16, 35, 31, 0.1);
}

.stack-card {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stack-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 8px 20px rgba(16, 35, 31, 0.08);
}

.preview-note {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.preview-note:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 8px 20px rgba(16, 35, 31, 0.08);
}

@media (max-width: 720px) {
  :root {
    --announce-h: 56px;
  }

  .hero-stage {
    padding: 0.8rem 0 0;
  }

  .hero-frame {
    transform: none;
  }

  .hero-layer--back,
  .floating-card {
    display: none;
  }

  .diagram-track {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .diagram-connector {
    min-height: 24px;
  }

  .connector-svg {
    width: 24px;
    height: 24px;
    transform: rotate(90deg);
  }

  .connector-label {
    display: none;
  }

  .announcement-inner {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    line-height: 1.35;
  }
}
