/* ============================================================
   THEME 6 — SLATE EDITORIAL — Minimal Light & Refined
   Usage : <link rel="stylesheet" href="theme-slate.css">
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Instrument+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --g: #1e40af;
  --g2: #3b82f6;
  --g3: #dbeafe;
  --bg: #f8f9fa;
  --bg2: #f1f3f5;
  --bg3: #e9ecef;
  --surface: rgba(0,0,0,0.02);
  --border: rgba(30,64,175,0.1);
  --border2: rgba(30,64,175,0.2);
  --text: #111827;
  --muted: rgba(17,24,39,0.5);
  --font-display: 'Playfair Display', serif;
  --font-secondary: 'Instrument Sans', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-weight: 300; line-height: 1.7; overflow-x: hidden; cursor: none; }
a { text-decoration: none; }

#cursor { position: fixed; width: 8px; height: 8px; background: var(--g); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); transition: transform 0.12s, background 0.2s; }
#cursor-ring { position: fixed; width: 32px; height: 32px; border: 1.5px solid rgba(30,64,175,0.35); border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%,-50%); transition: all 0.2s cubic-bezier(0.23,1,0.32,1); }
body:has(a:hover) #cursor { transform: translate(-50%,-50%) scale(2.2); background: var(--g2); }
body:has(a:hover) #cursor-ring { width: 48px; height: 48px; border-color: rgba(59,130,246,0.5); }

#progress { position: fixed; top: 0; left: 0; height: 2px; z-index: 200; background: var(--g); width: 0%; transition: width 0.1s linear; }

section { position: relative; z-index: 1; }

.nav-logo, .sb-logo { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; color: var(--text); letter-spacing: -0.02em; }
.nav-logo span, .sb-logo span { color: var(--g); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-family: var(--font-mono); position: relative; transition: color 0.25s; padding-bottom: 2px; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--g); transition: width 0.3s; border-radius: 1px; }
.nav-links a.active, .nav-links a:hover { color: var(--g); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }

#hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 2rem 2rem 3rem; overflow: hidden; background: #fff; border-bottom: 1px solid var(--border); }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.12; }
.hero-orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #bfdbfe, transparent 70%); top: -20%; left: -10%; animation: float1 14s ease-in-out infinite; }
.hero-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, #ddd6fe, transparent 70%); bottom: 0; right: -5%; animation: float2 18s ease-in-out infinite; }
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,20px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,-15px)} }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(30,64,175,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(30,64,175,0.04) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent); }
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--g3); border: 1px solid var(--border2); padding: 6px 14px; border-radius: 3px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--g); margin-bottom: 2rem; animation: fadeInDown 0.8s both; }
.badge-dot { width: 6px; height: 6px; background: var(--g2); border-radius: 50%; animation: pulse-dot 2.5s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }

h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.8rem, 7.5vw, 7rem); line-height: 0.95; letter-spacing: -0.04em; margin-bottom: 1.5rem; color: var(--text); animation: fadeInUp 0.9s 0.2s both; }
.h1-accent { color: var(--g); display: block; font-style: italic; }
.hero-sub { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--muted); max-width: 520px; margin-bottom: 2.5rem; animation: fadeInUp 0.9s 0.35s both; font-weight: 300; line-height: 1.75; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeInUp 0.9s 0.5s both; }

.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--g); color: #fff; border: none; padding: 14px 28px; border-radius: 3px; font-family: var(--font-secondary); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.02em; cursor: none; transition: transform 0.2s, box-shadow 0.2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30,64,175,0.25); }
.btn-ghost { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--text); border: 1.5px solid rgba(17,24,39,0.2); padding: 14px 28px; border-radius: 3px; font-family: var(--font-secondary); font-weight: 600; font-size: 0.88rem; cursor: none; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.btn-ghost:hover { background: var(--bg2); border-color: var(--g); color: var(--g); transform: translateY(-2px); }

.hero-metrics { display: flex; gap: 3rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); animation: fadeInUp 0.9s 0.65s both; flex-wrap: wrap; }
.metric-item { display: flex; flex-direction: column; gap: 4px; }
.metric-val { font-family: var(--font-display); font-size: 2.2rem; font-weight: 900; color: var(--g); line-height: 1; font-style: italic; }
.metric-label { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-mono); }

.section-inner { max-width: 1100px; margin: 0 auto; padding: 6rem 2rem; }
.section-tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--g); opacity: 0.8; margin-bottom: 0.75rem; }
.section-tag::before { content: '— '; }
h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 1.25rem; color: var(--text); }
.section-lead { font-size: 1.05rem; color: var(--muted); max-width: 600px; margin-bottom: 3rem; line-height: 1.8; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.23,1,0.32,1), transform 0.8s cubic-bezier(0.23,1,0.32,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; } .reveal-delay-2 { transition-delay: 0.2s; } .reveal-delay-3 { transition-delay: 0.3s; }

#dream { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dream-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.dream-text p { color: var(--muted); margin-bottom: 1.2rem; line-height: 1.9; }
.dream-text strong { color: var(--g); font-weight: 600; }
.dream-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.dream-stat { background: #fff; padding: 1.5rem; transition: background 0.3s; }
.dream-stat:hover { background: var(--bg3); }
.dream-stat .val { font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: var(--g); line-height: 1; margin-bottom: 6px; font-style: italic; }
.dream-stat .lbl { font-size: 0.72rem; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.04em; }

#features { background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.feature-card { background: #fff; padding: 2rem; position: relative; overflow: hidden; transition: background 0.3s; }
.feature-card::before { display: none; }
.feature-card:hover { background: var(--bg2); }
.feature-card:hover .feature-icon { background: var(--g3); border-color: var(--border2); }
.feature-num { font-family: var(--font-mono); font-size: 0.62rem; color: rgba(30,64,175,0.3); letter-spacing: 0.12em; margin-bottom: 1rem; }
.feature-icon { width: 40px; height: 40px; background: var(--bg2); border: 1px solid var(--border); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--g); margin-bottom: 1.2rem; transition: background 0.3s; }
.feature-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; color: var(--text); }
.feature-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.75; }
.feature-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 1rem; }
.tag { font-family: var(--font-mono); font-size: 0.62rem; background: var(--g3); border: 1px solid var(--border2); color: var(--g); padding: 3px 8px; border-radius: 2px; }

#tech { background: var(--bg2); border-top: 1px solid var(--border); }
.tech-table-wrapper { overflow-x: auto; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
thead { background: var(--g3); }
thead th { padding: 1rem 1.25rem; text-align: left; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--g); font-weight: 500; border-bottom: 1px solid var(--border); }
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.2s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg2); }
tbody td { padding: 1rem 1.25rem; color: var(--muted); }
tbody td:first-child { color: var(--text); font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500; }

#partners { background: var(--bg); }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.partner-card { background: #fff; padding: 1.75rem 2rem; display: flex; align-items: center; gap: 1.25rem; transition: background 0.3s; }
.partner-card:hover { background: var(--bg2); }
.partner-avatar { width: 48px; height: 48px; flex-shrink: 0; background: var(--g3); border: 1px solid var(--border2); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; font-size: 1rem; color: var(--g); }
.partner-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 3px; color: var(--text); }
.partner-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin-bottom: 6px; }
.partner-country { font-family: var(--font-mono); font-size: 0.68rem; color: var(--g); opacity: 0.7; }

.ticker-wrap { overflow: hidden; padding: 1rem 0; background: var(--g3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ticker-track { display: flex; gap: 4rem; white-space: nowrap; animation: ticker 28s linear infinite; }
.ticker-item { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(30,64,175,0.5); display: inline-flex; align-items: center; gap: 1rem; }
.ticker-item::before { content: '·'; font-size: 1em; color: var(--g2); }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

footer { background: var(--text); border-top: 1px solid rgba(255,255,255,0.08); padding: 3rem 2rem; text-align: center; }
.footer-logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; color: #fff; margin-bottom: 0.75rem; font-style: italic; }
footer p { color: rgba(255,255,255,0.45); font-size: 0.85rem; }
footer a { color: var(--g2); }
.footer-divider { width: 60px; height: 1px; background: rgba(255,255,255,0.15); margin: 1.5rem auto; }
.s-divider { height: 1px; background: var(--border); }

.sb-btn { background: transparent; border: 1.5px solid rgba(30,64,175,0.2); color: var(--g); width: 36px; height: 36px; border-radius: 3px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; flex-shrink: 0; }
.sb-btn:hover { background: var(--g3); }
.sb-btn svg { width: 16px; height: 16px; stroke: var(--g); fill: none; stroke-width: 2; stroke-linecap: round; }
.sb-overlay { position: fixed; inset: 0; background: rgba(17,24,39,0.45); z-index: 998; opacity: 0; pointer-events: none; transition: opacity .3s; }
.sb-overlay.open { opacity: 1; pointer-events: all; }
.sb-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 280px; background: #fff; border-right: 1px solid var(--border); z-index: 999; transform: translateX(-100%); transition: transform .32s cubic-bezier(0.23,1,0.32,1); display: flex; flex-direction: column; box-shadow: 4px 0 24px rgba(17,24,39,0.1); }
.sb-drawer.open { transform: translateX(0); }
.sb-header { display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; height: 64px; border-bottom: 1px solid var(--border); }
.sb-close { background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 1.2rem; padding: 4px; transition: color .2s; }
.sb-close:hover { color: var(--text); }
.sb-body { flex: 1; overflow-y: auto; padding: 0.5rem 0; }
.sb-link { display: flex; align-items: center; gap: 12px; padding: 0.75rem 1.25rem; color: var(--muted); text-decoration: none; font-family: var(--font-body); font-size: 0.875rem; transition: background .2s, color .2s; position: relative; cursor: pointer; }
.sb-link:hover, .sb-link.active { background: var(--g3); color: var(--g); }
.sb-link.active::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 2px; background: var(--g); border-radius: 0 2px 2px 0; }
.sb-link.danger { color: rgba(220,38,38,0.6); }
.sb-link.danger:hover { background: rgba(254,226,226,0.8); color: #dc2626; }
.sb-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; flex-shrink: 0; }
.sb-badge { margin-left: auto; background: var(--g3); color: var(--g); font-family: var(--font-mono); font-size: 0.62rem; padding: 2px 7px; border-radius: 20px; }
.sb-sep { height: 1px; background: var(--border); margin: 0.5rem 1.25rem; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 0.75rem 1.25rem; background: var(--bg2); border-bottom: 1px solid var(--border); }
.sb-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--g3); border: 1.5px solid var(--border2); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: var(--g); font-family: var(--font-mono); flex-shrink: 0; }
.sb-username { font-size: 0.825rem; color: var(--text); font-weight: 500; }
.sb-username small { display: block; font-size: 0.7rem; color: var(--muted); font-weight: 300; }
.sb-footer { padding: 0.75rem 0; border-top: 1px solid var(--border); }

@keyframes fadeInDown { from{opacity:0;transform:translateY(-20px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

@media (max-width: 768px) {
  .dream-layout { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  #cursor, #cursor-ring { display: none; }
  body { cursor: auto; }
}
@media (max-width: 480px) {
  #hero { padding: 8rem 2rem 4rem; }
  .section-inner { padding: 6rem 1.2rem; }
  .hero-ctas .btn-ghost { display: none; }
}
