:root {
  --bg-canvas: #0b0d11;
  --bg-surface: #13161d;
  --bg-card: #181c25;
  --bg-control: #1e232f;
  --bg-crimson-wash: rgba(128, 22, 40, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #f3f5f8;
  --text-secondary: #b4bccb;
  --text-muted: #7c879b;
  --accent-gold: #f5c451;
  --accent-gold-hover: #ffd36b;
  --accent-green: #2ecc71;
  --accent-cyan: #38bdf8;
  --ink-on-gold: #0e0e12;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --max-w: 1220px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.55;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.12em 0.38em;
  border-radius: 4px;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 13, 17, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  border-radius: 7px;
  display: block;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.brand-accent {
  color: var(--accent-gold);
}

.version-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 3px 8px;
  border-radius: 999px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

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

.btn-sm {
  font-size: 13px;
  padding: 8px 14px;
}

.btn-lg {
  font-size: 15px;
  padding: 13px 22px;
}

.btn-block {
  width: 100%;
  max-width: 100%;
  font-size: 14.5px;
  padding: 13px 16px;
  white-space: normal;
  text-align: center;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--ink-on-gold);
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
}

.btn-meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.78;
  padding-left: 6px;
  border-left: 1px solid rgba(14, 14, 18, 0.22);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-control);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-glow {
  position: absolute;
  inset: -160px auto auto 50%;
  transform: translateX(-50%);
  width: 980px;
  height: 440px;
  background: radial-gradient(ellipse at center, var(--bg-crimson-wash) 0%, rgba(245, 196, 81, 0.06) 42%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 44px;
}

.hero-copy,
.hero-media,
.feature-text,
.feature-media {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-green);
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.28);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.1vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.hero-sub {
  margin: 0 0 26px;
  font-size: 16.5px;
  color: var(--text-secondary);
  max-width: 52ch;
}

.hero-sub strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.trust-sep {
  opacity: 0.45;
}

.hash-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 11.5px;
  cursor: pointer;
}

.hash-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.hash-btn code {
  background: transparent;
  padding: 0;
  color: var(--text-primary);
}

.hash-action {
  color: var(--accent-gold);
  font-weight: 600;
}

/* App Screenshot Frame */
.app-frame {
  margin: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.52);
  cursor: zoom-in;
  transition: transform 180ms ease, border-color 180ms ease;
}

.app-frame:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 196, 81, 0.42);
}

.frame-chrome {
  height: 32px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #101319;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-muted);
}

.chrome-dots {
  display: inline-flex;
  gap: 5px;
}

.chrome-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: block;
}

.chrome-title {
  font-weight: 600;
  color: var(--text-secondary);
}

.chrome-tag {
  font-size: 10.5px;
  color: var(--text-muted);
}

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

/* Pillar Strip */
.pillar-strip {
  padding: 26px 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.pillar-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-control);
}

.pillar-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
  padding-top: 2px;
}

.pillar-card h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.pillar-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* Feature Rows */
.feature-section {
  padding: 40px 0 80px;
}

.anchor-offset {
  position: relative;
  top: -76px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 44px;
  padding: 52px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.feature-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feature-row-reverse .feature-text {
  order: 2;
}

.feature-row-reverse .feature-media {
  order: 1;
}

.section-tag {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.tag-green {
  color: var(--accent-green);
  background: rgba(46, 204, 113, 0.11);
  border: 1px solid rgba(46, 204, 113, 0.28);
}

.tag-cyan {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.11);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.tag-gold {
  color: var(--accent-gold);
  background: rgba(245, 196, 81, 0.11);
  border: 1px solid rgba(245, 196, 81, 0.28);
}

.feature-text h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.8vw, 33px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.feature-lead {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 15.5px;
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14.5px;
}

.feature-list strong {
  color: var(--text-primary);
}

/* Download Card */
.download-section {
  padding: 24px 0 84px;
}

.download-card {
  background: linear-gradient(135deg, rgba(128, 22, 40, 0.16) 0%, var(--bg-surface) 55%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: center;
}

.download-left,
.download-right,
.quickstart-steps li > div {
  min-width: 0;
}

.release-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 22px;
  min-width: 0;
}

.download-left h2 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.download-desc {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 15px;
}

.quickstart-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.quickstart-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-control);
  border: 1px solid var(--border-strong);
  color: var(--accent-gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.release-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.release-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.28);
  padding: 3px 9px;
  border-radius: 4px;
}

.release-platform {
  font-size: 12.5px;
  color: var(--text-muted);
}

.release-specs {
  margin: 16px 0 14px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

.spec-row strong {
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
}

.release-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0;
  background: #090a0e;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}

.footer-disclaimer {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  max-width: 68ch;
}

.footer-links {
  display: inline-flex;
  gap: 14px;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
}

.footer-link-btn:hover {
  color: var(--accent-gold);
}

/* Modals */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 10, 0.84);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 1080px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72);
}

.modal-lightbox {
  padding: 14px;
}

.modal-lightbox img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.lightbox-caption {
  margin: 10px 4px 2px;
  font-size: 13px;
  color: var(--text-secondary);
}

.modal-text {
  max-width: 560px;
  padding: 22px 24px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.modal-body p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-text .modal-close {
  position: static;
}

@media (max-width: 960px) {
  .hero-grid,
  .feature-row,
  .download-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-row-reverse .feature-text,
  .feature-row-reverse .feature-media {
    order: initial;
  }

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

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }

  .version-pill,
  .chrome-tag {
    display: none;
  }

  .hero {
    padding: 36px 0 44px;
  }

  .btn-lg {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .download-card {
    padding: 18px;
    gap: 22px;
  }

  .release-box {
    padding: 16px;
  }
}
