/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0e0e12;
  --bg-card: #1a1a22;
  --bg-card-hover: #22222e;
  --text: #e0e0e0;
  --text-dim: #999;
  --accent: #f0c040;
  --accent-hover: #ffd666;
  --border: #2a2a36;
  --radius: 12px;
  --max-w: 960px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

section {
  padding: 80px 0;
}

section:nth-child(even) {
  background: #131318;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* === Hero === */
.hero {
  text-align: center;
  padding: 100px 0 80px;
  background: linear-gradient(180deg, #16161e 0%, var(--bg) 100%);
}

.hero-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.tagline {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #111;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #111;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === Features === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: background 0.2s, border-color 0.2s;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* === Demo === */
.demo-video {
  max-width: 360px;
  max-height: 640px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.demo-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === Download === */
.install-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.install-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.install-card h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--accent);
}

.install-card-highlight {
  border-color: var(--accent);
  background: linear-gradient(135deg, #1a1a22 0%, #22201a 100%);
}

.install-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.btn-download {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 1.05rem;
  padding: 14px 32px;
}

.install-hint {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.install-hint a {
  color: var(--accent);
}

pre {
  background: #111116;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.6;
}

code {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", Menlo, monospace;
}

.note {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-align: center;
}

/* === Keymap === */
.keymap-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}

.keymap-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.keymap-group h3 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.keymap-group p {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

kbd {
  display: inline-block;
  background: #2a2a36;
  border: 1px solid #3a3a48;
  border-radius: 4px;
  padding: 2px 7px;
  font-family: inherit;
  font-size: 0.85rem;
  margin: 1px;
  min-width: 24px;
  text-align: center;
}

/* === Support / Donate === */
.support-desc {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}

.support-card h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.kofi-btn img {
  border-radius: 8px;
  transition: transform 0.15s;
}
.kofi-btn:hover img {
  transform: scale(1.04);
}

.eth-address-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.eth-address {
  font-size: 0.78rem;
  background: #111116;
  padding: 8px 12px;
  border-radius: 6px;
  word-break: break-all;
  max-width: 320px;
}

.copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.copy-btn:hover {
  border-color: var(--accent);
}

.copy-feedback {
  font-size: 0.85rem;
  color: var(--accent);
  min-height: 1.2em;
  margin-bottom: 12px;
}

#eth-qr {
  border-radius: 8px;
  margin: 0 auto;
  display: block;
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer a {
  color: var(--text-dim);
}
.footer a:hover {
  color: var(--accent);
}

.footer-sub {
  font-size: 0.82rem;
  color: #555;
  margin-top: 8px;
}

/* === Responsive === */
@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .tagline { font-size: 1.15rem; }
  h2 { font-size: 1.5rem; }
  section { padding: 56px 0; }
  .hero { padding: 72px 0 56px; }

  .feature-grid,
  .install-steps,
  .keymap-groups,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .eth-address { font-size: 0.7rem; }
}
