/* ═══════════════════════════════════════════════════════════════
   MEOK WORLD shared stylesheet — all 17 pages
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #08060c;
  --bg-2: #0d0a14;
  --surface: #120e1c;
  --surface-2: #1a1428;
  --gold: #c9a84c;
  --gold-bright: #d4a853;
  --gold-dim: #8a7035;
  --gold-glow: rgba(201, 168, 76, 0.3);
  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.3);
  --blue: #60a5fa;
  --purple: #a78bfa;
  --red: #ef4444;
  --cyan: #22d3ee;
  --text: #f0ede6;
  --text-dim: rgba(240, 237, 230, 0.6);
  --text-dim-2: rgba(240, 237, 230, 0.35);
  --border: rgba(201, 168, 76, 0.15);
  --border-dim: rgba(240, 237, 230, 0.08);
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 15px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body { background: radial-gradient(ellipse at 20% 0%, rgba(201, 168, 76, 0.08), transparent 60%), radial-gradient(ellipse at 80% 100%, rgba(96, 165, 250, 0.05), transparent 60%), var(--bg); min-height: 100vh; }
a { color: var(--gold-bright); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }
button { font-family: var(--font-sans); cursor: pointer; }

/* TOPBAR */
.topbar { position: sticky; top: 0; z-index: 100; background: rgba(8, 6, 12, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-dim); }
.topbar-inner { max-width: 1400px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo { font-family: var(--font-mono); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; color: var(--text); }
.logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green-glow); animation: pulse 2s ease-in-out infinite; }
.logo .accent { color: var(--gold); }
.topbar nav { display: flex; align-items: center; gap: 4px; }
.topbar nav a { color: var(--text-dim); font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 8px; transition: var(--transition); }
.topbar nav a:hover { color: var(--text); background: var(--border-dim); }
.topbar nav a.active { color: var(--gold); background: rgba(201, 168, 76, 0.1); }
.topbar .cta { display: flex; align-items: center; gap: 8px; }
.topbar .cta a { font-family: var(--font-mono); font-size: 12px; font-weight: 600; padding: 10px 16px; border-radius: 100px; }
.topbar .cta .login { color: var(--text-dim); border: 1px solid var(--border-dim); }
.topbar .cta .login:hover { color: var(--text); border-color: var(--border); }
.topbar .cta .start { background: var(--gold); color: var(--bg); border: 1px solid var(--gold); }
.topbar .cta .start:hover { background: var(--gold-bright); color: var(--bg); }
@media (max-width: 800px) { .topbar nav { display: none; } .topbar-inner { padding: 12px 16px; } }

/* PAGE WRAPPER */
.page { max-width: 1400px; margin: 0 auto; padding: 60px 32px 100px; min-height: 60vh; }
@media (max-width: 800px) { .page { padding: 32px 16px 60px; } }

/* HERO + SECTIONS */
.hero { padding: 40px 0 60px; }
.hero-tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.15em; padding: 4px 12px; background: rgba(201, 168, 76, 0.1); border: 1px solid var(--border); border-radius: 100px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; margin-bottom: 20px; }
.hero h1 .accent { color: var(--gold); background: linear-gradient(135deg, var(--gold-bright), #e6c46a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 18px; color: var(--text-dim); max-width: 700px; margin-bottom: 32px; }
.section { padding: 60px 0; }
.section-tag { font-family: var(--font-mono); font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 12px; }
.section h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 12px; }
.section p.lead { color: var(--text-dim); font-size: 16px; margin-bottom: 32px; max-width: 700px; }

/* GRIDS */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 500px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* CARDS */
.card { background: var(--surface); border: 1px solid var(--border-dim); border-radius: var(--radius); padding: 20px; transition: var(--transition); }
.card:hover { border-color: var(--gold); transform: translateY(-2px); background: var(--bg-2); }
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.card .icon { font-size: 28px; margin-bottom: 12px; display: block; }
.card.featured { border-color: var(--gold); background: linear-gradient(135deg, var(--surface), rgba(201, 168, 76, 0.05)); }

/* STATS */
.stat-card { padding: 20px; background: var(--surface); border: 1px solid var(--border-dim); border-radius: var(--radius); }
.stat-card .num { font-family: var(--font-mono); font-size: 32px; font-weight: 600; color: var(--gold); margin-bottom: 4px; }
.stat-card .label { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 14px; font-weight: 600; padding: 14px 24px; border-radius: 100px; border: 1px solid; cursor: pointer; transition: var(--transition); background: transparent; }
.btn-primary { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-1px); }
.btn-secondary { color: var(--text); border-color: var(--border); background: var(--bg-2); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* TEMPLES */
.temple-card { background: var(--surface); border: 1px solid var(--border-dim); border-radius: var(--radius); padding: 20px; transition: var(--transition); position: relative; overflow: hidden; }
.temple-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; opacity: 0.6; }
.temple-card.eu::before { background: var(--blue); }
.temple-card.us::before { background: var(--purple); }
.temple-card.apac::before { background: var(--cyan); }
.temple-card.global::before { background: var(--gold); }
.temple-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.temple-card .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.temple-card .flag { font-size: 28px; }
.temple-card .code { font-family: var(--font-mono); font-size: 10px; color: var(--gold); background: rgba(201, 168, 76, 0.1); padding: 3px 8px; border-radius: 100px; border: 1px solid var(--border); }
.temple-card .reg-count { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); margin-bottom: 12px; }
.temple-card .regs { display: flex; flex-wrap: wrap; gap: 4px; }
.temple-card .reg { font-family: var(--font-mono); font-size: 10px; background: var(--bg-2); border: 1px solid var(--border-dim); padding: 2px 8px; border-radius: 100px; color: var(--text-dim); }

/* COUNCIL */
.council-card { background: var(--surface); border: 1px solid var(--border-dim); border-radius: var(--radius); padding: 16px; text-align: center; transition: var(--transition); }
.council-card.veto { border-color: var(--red); background: linear-gradient(135deg, var(--surface), rgba(239, 68, 68, 0.05)); }
.council-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.council-card .emoji { font-size: 36px; margin-bottom: 8px; }
.council-card .name { font-family: var(--font-mono); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.council-card .arch { font-size: 11px; color: var(--text-dim); margin-bottom: 4px; }
.council-card .motto { font-style: italic; font-size: 11px; color: var(--text-dim-2); margin-top: 6px; }
.council-card .veto-badge { display: inline-block; margin-top: 6px; padding: 2px 8px; background: var(--red); color: var(--bg); font-family: var(--font-mono); font-size: 9px; font-weight: 700; border-radius: 100px; }

/* FLOW DIAGRAM */
.flow-graph { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); font-size: 12px; }
.flow-node { padding: 12px 16px; background: var(--bg-2); border-left: 3px solid var(--gold); border-radius: 4px; }
.flow-node.actuator { border-left-color: var(--cyan); }
.flow-node.decision { border-left-color: var(--purple); }
.flow-node.evidence { border-left-color: var(--green); }
.flow-node .id { color: var(--text-dim); font-size: 10px; }
.flow-node .label { color: var(--text); font-weight: 500; }
.flow-arrow { color: var(--text-dim-2); text-align: center; font-size: 14px; padding: 2px 0; }

/* TIMELINE */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item::before { content: ''; position: absolute; left: -27px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold-glow); }
.timeline-item .date { font-family: var(--font-mono); font-size: 11px; color: var(--gold); margin-bottom: 4px; }
.timeline-item h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.timeline-item p { color: var(--text-dim); font-size: 14px; }

/* PRICING */
.price-card { background: var(--surface); border: 1px solid var(--border-dim); border-radius: var(--radius-lg); padding: 32px; position: relative; }
.price-card.featured { border-color: var(--gold); background: linear-gradient(135deg, var(--surface), rgba(201, 168, 76, 0.05)); transform: scale(1.02); }
.price-card .tier { font-family: var(--font-mono); font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; }
.price-card .price { font-size: 48px; font-weight: 600; margin: 12px 0 4px; }
.price-card .price span { font-size: 16px; color: var(--text-dim); }
.price-card ul { list-style: none; margin: 24px 0; }
.price-card ul li { padding: 8px 0; border-bottom: 1px solid var(--border-dim); color: var(--text-dim); font-size: 14px; }
.price-card ul li::before { content: '✓ '; color: var(--green); font-weight: 600; }

/* BLOG */
.blog-card { background: var(--surface); border: 1px solid var(--border-dim); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.blog-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.blog-card .cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--surface-2), var(--bg-2)); display: flex; align-items: center; justify-content: center; font-size: 64px; }
.blog-card .body { padding: 20px; }
.blog-card .meta { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim-2); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.blog-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.blog-card p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }

/* CTA */
.cta-box { background: linear-gradient(135deg, var(--surface) 0%, var(--bg-2) 100%); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 60px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top: -50%; right: -10%; width: 60%; height: 200%; background: radial-gradient(ellipse, var(--gold-glow), transparent 60%); opacity: 0.4; pointer-events: none; }
.cta-box h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 500; margin-bottom: 16px; position: relative; }
.cta-box p { color: var(--text-dim); font-size: 16px; margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; position: relative; }
.cta-box .ctas { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* CODE BLOCK */
.code { background: var(--bg); border: 1px solid var(--border-dim); border-radius: var(--radius); padding: 16px; font-family: var(--font-mono); font-size: 13px; color: var(--text); overflow-x: auto; }
.code .comment { color: var(--text-dim-2); }
.code .keyword { color: var(--purple); }
.code .string { color: var(--green); }
.code .func { color: var(--blue); }

/* FOOTER */
.footer { border-top: 1px solid var(--border-dim); padding: 40px 32px 24px; margin-top: 60px; }
.footer-inner { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand p { font-size: 12px; color: var(--text-dim); line-height: 1.6; margin-top: 12px; max-width: 320px; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { color: var(--text-dim); font-size: 13px; }
.footer ul a:hover { color: var(--text); }
.footer-bottom { max-width: 1400px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--border-dim); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--text-dim-2); font-family: var(--font-mono); }
.footer-bottom .legal { display: flex; gap: 16px; }
.footer-bottom .legal a { color: var(--text-dim-2); }
.footer-bottom .legal a:hover { color: var(--text-dim); }

/* STATUS BAR */
.status-bar { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(8, 6, 12, 0.9); backdrop-filter: blur(20px); border-top: 1px solid var(--border-dim); z-index: 50; font-family: var(--font-mono); font-size: 10px; }
.status-bar-inner { max-width: 1400px; margin: 0 auto; padding: 6px 32px; display: flex; gap: 24px; overflow-x: auto; }
.status-item { display: flex; align-items: center; gap: 6px; color: var(--text-dim); white-space: nowrap; }
.status-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 4px var(--green-glow); }
.status-item .v { color: var(--gold); font-weight: 600; }

/* ANIMATIONS */
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.5; } }
