/* ═══════════════════════════════════════════════════════════════════════════
   OpenEarth Dark — openearth.network theme
   Derived from VakeWorks slide theme (vake-marp-theme.css) and OpenEarth
   Messenger brand palette. Cyan (Process) primary accent.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  /* Backgrounds — space & earth */
  --oe-bg-space:       #0A1628;
  --oe-bg-surface:     #111820;
  --oe-bg-card:        #1C1916;
  --oe-bg-card-hover:  #252018;

  /* Ocean & earth */
  --oe-ocean:          #3A85B5;
  --oe-ocean-dark:     #10405E;
  --oe-earth:          #3D2E1E;
  --oe-sand:           #C4A882;

  /* 5 Transparency Pledge colours */
  --oe-ecological:     #00e000;
  --oe-income:         #e0a000;
  --oe-produce:        #e040c0;
  --oe-process:        #00c0a0;
  --oe-profits:        #0080e0;

  /* Text */
  --oe-text:           #c8c8c8;
  --oe-text-muted:     #888888;
  --oe-text-bright:    #e8e8e8;

  /* Functional */
  --oe-link:           #00c0a0;
  --oe-link-hover:     #3A85B5;
  --oe-border:         #2a2a2a;
  --oe-code-bg:        #1a1a1a;

  /* Primary accent (cyan for openearth.network) */
  --oe-primary:        var(--oe-process);
  --oe-accent:         var(--oe-income);

  /* Typography */
  --oe-font-body:      'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --oe-font-mono:      'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --oe-font-heading:   'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Layout */
  --oe-max-width:      1200px;
  --oe-radius:         8px;
}

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

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

body {
  font-family: var(--oe-font-body);
  color: var(--oe-text);
  background: var(--oe-bg-space);
  line-height: 1.6;
}

a {
  color: var(--oe-link);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--oe-link-hover); }

img { max-width: 100%; height: auto; }

/* ── Container ──────────────────────────────────────────────────────────── */
.container {
  max-width: var(--oe-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── 5-Colour Accent Bar ────────────────────────────────────────────────── */
.accent-bar {
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--oe-ecological) 0%,  var(--oe-ecological) 20%,
    var(--oe-income)     20%, var(--oe-income)     40%,
    var(--oe-produce)    40%, var(--oe-produce)    60%,
    var(--oe-process)    60%, var(--oe-process)    80%,
    var(--oe-profits)    80%, var(--oe-profits)    100%
  );
  width: 100%;
}

/* ── Nav ────────────────────────────────────────────────────────────────── */
nav {
  background: var(--oe-bg-surface);
  border-bottom: 1px solid var(--oe-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--oe-text-bright);
}

nav .logo img { height: 32px; width: 32px; }

nav .nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

nav .nav-links a {
  color: var(--oe-text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
nav .nav-links a:hover { color: var(--oe-primary); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 5rem 2rem 4rem;
}

.hero-logo {
  max-width: 280px;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 40px rgba(58, 133, 181, 0.3));
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--oe-text-bright);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero h1 span { color: var(--oe-primary); }

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--oe-text-muted);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.hero .cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--oe-radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--oe-primary);
  color: #0A1628;
}
.btn-primary:hover {
  background: var(--oe-ocean);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--oe-primary);
  border: 1.5px solid var(--oe-primary);
}
.btn-secondary:hover {
  background: var(--oe-primary);
  color: #0A1628;
}

/* ── Section ────────────────────────────────────────────────────────────── */
section {
  padding: 4rem 0;
}

section h2 {
  font-size: 1.8rem;
  color: var(--oe-primary);
  margin-bottom: 0.5rem;
}

section h2 + p {
  color: var(--oe-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* ── Card Grid ──────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--oe-bg-card);
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
  border-top: 3px solid var(--oe-border);
}

.card:hover {
  border-color: var(--oe-primary);
  transform: translateY(-2px);
}

.card[data-accent="process"]    { border-top-color: var(--oe-process); }
.card[data-accent="ecological"] { border-top-color: var(--oe-ecological); }
.card[data-accent="profits"]    { border-top-color: var(--oe-profits); }
.card[data-accent="income"]     { border-top-color: var(--oe-income); }
.card[data-accent="produce"]    { border-top-color: var(--oe-produce); }

.card h3 {
  font-size: 1.1rem;
  color: var(--oe-text-bright);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--oe-text-muted);
  line-height: 1.5;
}

/* ── Architecture Diagram (simplified) ──────────────────────────────────── */
.arch-diagram {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  flex-wrap: wrap;
}

.arch-box {
  background: var(--oe-bg-card);
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-radius);
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 180px;
}

.arch-box h4 { color: var(--oe-text-bright); margin-bottom: 0.25rem; }
.arch-box p  { font-size: 0.8rem; color: var(--oe-text-muted); }
.arch-arrow  { color: var(--oe-primary); font-size: 1.5rem; }

.arch-box.bridge   { border-color: var(--oe-ocean-dark); }
.arch-box.matrix   { border-color: var(--oe-process); }
.arch-box.messenger { border-color: var(--oe-income); }

/* ── Get Started ────────────────────────────────────────────────────────── */
.get-started-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.get-started-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.get-started-item .step {
  background: var(--oe-primary);
  color: var(--oe-bg-space);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.get-started-item h4 { color: var(--oe-text-bright); margin-bottom: 0.25rem; }
.get-started-item p  { font-size: 0.9rem; color: var(--oe-text-muted); }

code {
  font-family: var(--oe-font-mono);
  background: var(--oe-code-bg);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--oe-income);
}

pre {
  background: var(--oe-code-bg);
  border-left: 3px solid var(--oe-accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--oe-radius) var(--oe-radius) 0;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 1rem 0;
}

pre code {
  background: none;
  padding: 0;
  color: var(--oe-text);
}

/* ── Supported By ───────────────────────────────────────────────────────── */
.supported-by {
  background: var(--oe-bg-surface);
  border-top: 1px solid var(--oe-border);
  border-bottom: 1px solid var(--oe-border);
}

.supported-by .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  text-align: center;
}

.supported-by img { height: 40px; opacity: 0.7; }
.supported-by p   { color: var(--oe-text-muted); font-size: 0.95rem; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  background: var(--oe-bg-surface);
  padding: 2.5rem 0;
  border-top: 1px solid var(--oe-border);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

footer .footer-col h4 {
  color: var(--oe-text-bright);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

footer .footer-col a, footer .footer-col p {
  font-size: 0.85rem;
  color: var(--oe-text-muted);
  display: block;
  margin-bottom: 0.4rem;
}

footer .footer-bottom {
  width: 100%;
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--oe-border);
  font-size: 0.8rem;
  color: var(--oe-text-muted);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero .subtitle { font-size: 1rem; }
  .card-grid { grid-template-columns: 1fr; }
  nav .nav-links { gap: 1rem; }
  footer .container { flex-direction: column; }
}
