:root {
  --bg: #141e1a;
  --bg-surface: #0f1a14;
  --bg-card: #1a2b22;
  --bg-code: #1a2e1a;
  --border: #1e3328;
  --border-card: #24382c;
  --border-code: #2a4a2a;
  --text: #e0e0e0;
  --text-heading: #f0f0f0;
  --text-muted: #a0b0a8;
  --text-faint: #90a098;
  --text-nav: #aaa;
  --text-footer: #777;
  --accent: #4ade80;
  --accent-hover: #86efac;
  --accent-dark: #22c55e;
  --btn-text: #111;
  --radius: 8px;
  --radius-sm: 6px;
  --max-width: 820px;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }

/* Header */
header { background: var(--bg-surface); padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
header .logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
header .logo img { height: 2rem; }
header .logo h1 { font-size: 1.4rem; color: var(--accent); }
header nav a { margin-left: 1.5rem; font-size: 0.9rem; color: var(--text-nav); }
header nav a:hover { color: var(--accent); }

/* Footer */
footer { text-align: center; padding: 2rem; color: var(--text-footer); font-size: 0.85rem; border-top: 1px solid var(--border); background: var(--bg-surface); }

/* Layout */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 3.5rem 0; }
h2 { font-size: 1.6rem; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; }

/* Hero */
#hero { text-align: center; padding: 5rem 1.5rem; background: var(--bg-surface); border-bottom: 1px solid var(--border); }
#hero h2 { font-size: 2.2rem; margin-bottom: 0.75rem; color: var(--text-heading); }
#hero p { color: var(--text-muted); max-width: 580px; margin: 0 auto 1.5rem; font-size: 1.05rem; }
.btn { display: inline-block; background: var(--accent); color: var(--btn-text); padding: 0.65rem 1.5rem; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; }
.btn:hover { background: var(--accent-dark); color: var(--btn-text); }

/* Feature cards */
.feature { margin-bottom: 2.5rem; padding: 1.5rem; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border-card); }
.feature h3 { margin-bottom: 0.3rem; color: var(--text-heading); }
.feature p { color: var(--text-muted); }
.feature img { margin-top: 0.75rem; border-radius: var(--radius-sm); }

/* Principles grid */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.5rem; }
.principles > div { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius); padding: 1.25rem; }
.principles h3 { margin-bottom: 0.25rem; color: var(--text-heading); }
.principles p { color: var(--text-muted); font-size: 0.9rem; }

/* Interfaces grid */
.interfaces { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.interfaces > div { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius); padding: 1.25rem; }
.interfaces img { border-radius: var(--radius-sm); margin-bottom: 0.5rem; }
.interfaces p { color: var(--text-muted); font-size: 0.9rem; }

/* Note */
#note { text-align: center; color: var(--text-faint); }
#note strong { color: #ccc; }

/* Download */
#download { text-align: center; background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
#download h2 { color: var(--text-heading); }
#download pre { background: var(--bg-code); color: var(--accent); display: inline-block; padding: 0.75rem 1.5rem; border-radius: var(--radius-sm); border: 1px solid var(--border-code); font-size: 0.95rem; }
