/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0d0d0d;
  --bg-card:    #141414;
  --bg-mid:     #111111;
  --border:     #222222;
  --border-dim: #1c1c1c;
  --amber:      #FFB300;
  --amber-dim:  #CC8800;
  --amber-glow: rgba(255,179,0,.15);
  --text:       #CCCCCC;
  --text-dim:   #777777;
  --text-muted: #444444;
  --white:      #EEEEEE;
  --green:      #4CAF50;
  --font:       'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--white); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity .15s, box-shadow .15s;
  text-decoration: none;
}
.btn:hover { opacity: .85; text-decoration: none; }

.btn-primary {
  background: var(--amber);
  color: #000;
  border-color: var(--amber);
}
.btn-primary:hover {
  box-shadow: 0 0 20px rgba(255,179,0,.35);
}

.btn-ghost {
  background: transparent;
  color: var(--amber);
  border-color: var(--amber-dim);
}
.btn-ghost:hover {
  border-color: var(--amber);
  box-shadow: 0 0 12px rgba(255,179,0,.15);
}

.btn-sponsor {
  background: #238636;
  color: #fff;
  border-color: #2ea043;
  font-size: 15px;
  padding: 14px 36px;
}
.btn-sponsor:hover { box-shadow: 0 0 24px rgba(46,160,67,.35); opacity: .9; }

.btn-large {
  font-size: 14px;
  padding: 16px 36px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dl-meta {
  font-size: 10px;
  font-weight: 400;
  opacity: .65;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(20px, 5vw, 80px);
  height: 56px;
  background: rgba(13,13,13,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 17px;
  color: var(--amber);
  letter-spacing: .15em;
  margin-right: auto;
}

.logo-sema {
  font-weight: 700;
}

.logo-buzz {
  font-weight: 300;
}

nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .15s;
}
nav a:hover { color: var(--white); text-decoration: none; }

.nav-donate {
  color: var(--amber) !important;
  border: 1px solid var(--amber-dim);
  padding: 5px 14px;
  border-radius: 4px;
}
.nav-donate:hover { border-color: var(--amber); background: var(--amber-glow); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 80px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(255,179,0,.07) 0%, transparent 70%);
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  border-radius: 2px;
  padding: 4px 12px;
  margin-bottom: 28px;
}

.hero h1 { margin-bottom: 20px; }

.hero-sub {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--text-dim);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 56px;
}

/* ── App mock ─────────────────────────────────────────────────────────────── */
.app-mock {
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(255,179,0,.07);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  height: 280px;
}

/* Title bar */
.app-titlebar {
  background: #141414;
  border-bottom: 1px solid var(--border);
  height: 44px;
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}
.app-brand {
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-size: 14px;
  letter-spacing: .15em;
}
.app-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 6px;
  flex: 1;
}
.app-menu span {
  padding: 0 8px;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-muted);
  cursor: default;
}
.app-profile {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
}
.app-profile-name {
  font-size: 11px;
  color: var(--amber);
  letter-spacing: .08em;
}
.app-winbtns {
  display: flex;
  align-items: center;
}
.app-winbtns span {
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--amber);
  cursor: default;
  opacity: .6;
}
.app-winbtns .app-close { opacity: .5; }
.app-divider-v {
  width: 1px;
  background: var(--border);
  margin: 10px 0;
}

/* Status dot */
.app-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.app-status-dot.online { background: #4caf50; }

/* Two panes */
.app-panes {
  display: flex;
  flex: 1;
  min-height: 0;
}
.app-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.app-pane-divider {
  width: 1px;
  background: var(--border);
}
.app-pane-header {
  background: #141414;
  border-bottom: 1px solid var(--border);
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  flex-shrink: 0;
}
.app-pane-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
}
.app-pane-body {
  padding: 14px 16px;
  flex: 1;
  overflow: hidden;
}
.app-msg {
  font-size: 12px;
  line-height: 2;
  white-space: pre-wrap;
  min-height: 1.6em;
}
.app-msg-gap { height: 10px; }
.app-msg-placeholder { opacity: 0; }
.app-msg-peer { color: var(--amber-dim); font-weight: 600; }
.app-msg-sep  { color: var(--text-muted); }
.app-input-typed { font-size: 12px; color: var(--white); }

/* Colours */
.amber-text  { color: var(--amber); }
.white-text  { color: var(--white); }
.green-text  { color: var(--green); }
.muted-text  { color: var(--text-muted); }
.italic-text { font-style: italic; }

/* Blinking cursor */
.app-cursor {
  display: inline-block;
  width: 1px;
  height: 1em;
  background: var(--amber);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: blink .7s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Input row */
.app-input-row {
  border-top: 1px solid var(--border);
  background: #0d0d0d;
  padding: 10px 16px;
}
.app-input-box {
  border: 1px solid var(--border);
  border-radius: 3px;
  height: 28px;
  padding: 0 8px;
  display: flex;
  align-items: center;
}
.app-input-caret {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--amber);
  opacity: .7;
  animation: blink .7s step-end infinite;
}

/* ── Trust bar ────────────────────────────────────────────────────────────── */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 0;
  padding: 18px clamp(20px, 5vw, 80px);
  border-bottom: 1px solid var(--border-dim);
  background: var(--bg-mid);
  font-size: 12px;
  color: var(--text-dim);
}
.trust-bar .sep { color: var(--text-muted); padding: 0 16px; }

/* ── Features ─────────────────────────────────────────────────────────────── */
.features {
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 80px);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.features h2 { margin-bottom: 56px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 24px;
  transition: border-color .2s, box-shadow .2s;
}
.feature-card:hover {
  border-color: var(--amber-dim);
  box-shadow: 0 0 20px rgba(255,179,0,.06);
}

.feature-icon { font-size: 24px; margin-bottom: 14px; }
.feature-card h3 { color: var(--amber); margin-bottom: 10px; }
.feature-card p  { font-size: 13px; color: var(--text-dim); line-height: 1.75; }

/* ── How it works ─────────────────────────────────────────────────────────── */
.how {
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 80px);
  border-bottom: 1px solid var(--border);
  background: var(--bg-mid);
  text-align: center;
}

.how h2 { margin-bottom: 56px; }

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: left;
  padding: 0 20px;
}

.step-num {
  font-size: 40px;
  font-weight: 700;
  color: var(--amber);
  opacity: .25;
  line-height: 1;
  margin-bottom: 14px;
}

.step h3 { color: var(--white); margin-bottom: 10px; font-size: 14px; }
.step p  { font-size: 13px; color: var(--text-dim); }
.step strong { color: var(--amber); font-weight: 600; }

.step-arrow {
  font-size: 24px;
  color: var(--text-muted);
  align-self: center;
  padding: 0 4px;
  padding-bottom: 20px;
}
@media (max-width: 640px) {
  .step-arrow { display: none; }
  .step { max-width: 100%; padding: 0 0 28px; }
}

/* ── Relay ────────────────────────────────────────────────────────────────── */
.relay {
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 80px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255,179,0,.04) 0%, transparent 70%);
}

.relay-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.relay-inner h2 { margin-bottom: 24px; }
.relay-inner p  { color: var(--text-dim); font-size: 14px; margin-bottom: 16px; }

.relay-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 36px 0 24px;
}

.relay-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.relay-meta code {
  color: var(--amber);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 8px;
  font-family: var(--font);
}

.relay-hosting {
  margin-top: 40px;
  text-align: left;
}

.relay-hosting-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 16px !important;
}

.relay-hosting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.relay-hosting-option {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.relay-hosting-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.relay-hosting-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
}

.relay-hosting-option a {
  font-size: 12px;
  color: var(--amber-dim);
  text-decoration: none;
  margin-top: 4px;
}
.relay-hosting-option a:hover { color: var(--amber); }

@media (max-width: 640px) {
  .relay-hosting-grid { grid-template-columns: 1fr; }
}

/* ── Download ─────────────────────────────────────────────────────────────── */
.download {
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 80px);
  border-bottom: 1px solid var(--border);
  text-align: center;
  background: var(--bg-mid);
}

.download h2 { margin-bottom: 14px; }
.download-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 36px; }
.download-note { margin-top: 20px; font-size: 12px; color: var(--text-muted); }
.download-note a { color: var(--amber-dim); }

/* ── Story ───────────────────────────────────────────────────────────────── */
.story {
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 80px);
  border-bottom: 1px solid var(--border);
  background: var(--bg-mid);
}

.story-inner {
  max-width: 680px;
  margin: 0 auto;
}

.story-inner h2 { margin-bottom: 32px; }
.story-inner p  { color: var(--text-dim); font-size: 15px; line-height: 1.75; margin-bottom: 18px; }
.story-sig { font-size: 13px !important; color: var(--text-muted) !important; margin-top: 32px; }

/* ── Donate ───────────────────────────────────────────────────────────────── */
.donate {
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 80px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255,221,0,.04) 0%, transparent 70%);
}

.donate-inner {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.donate-inner h2 { margin-bottom: 18px; }
.donate-inner p  { color: var(--text-dim); font-size: 14px; margin-bottom: 36px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  padding: 40px clamp(20px, 5vw, 80px);
  border-top: 1px solid var(--border-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-logo {
  font-size: 17px;
  color: var(--amber);
  letter-spacing: .15em;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-dim);
}
.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
}

.footer-tribute {
  font-size: 11px;
  color: var(--text-muted);
  opacity: .55;
  font-style: italic;
  margin-top: -6px;
}
