/* ============================================
   SIMPATEL STUDIOS — DESIGN TOKENS
   Color: Navy #0B2545 / Royal #1E5FA8 / Gold #F2A93B→#FFD56B / Off-white #F7F8FA / Slate #5B6B82
   Type: Sora (display) / Inter (body) / JetBrains Mono (data, stats)
   ============================================ */

:root {
  --navy: #0B2545;
  --navy-soft: #11305E;
  --royal: #1E5FA8;
  --royal-light: #3D7DC9;
  --gold: #F2A93B;
  --gold-light: #FFD56B;
  --bg: #F7F8FA;
  --bg-card: #FFFFFF;
  --slate: #5B6B82;
  --slate-light: #8896A8;
  --line: #E3E7ED;
  --line-strong: #CBD2DC;
  --success: #2E9E6B;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 3px rgba(11,37,69,0.06), 0 1px 2px rgba(11,37,69,0.04);
  --shadow-md: 0 8px 24px rgba(11,37,69,0.08), 0 2px 6px rgba(11,37,69,0.05);
  --shadow-lg: 0 20px 50px rgba(11,37,69,0.14);

  --nav-w: 248px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.mono { font-family: var(--font-mono); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============== LAYOUT SHELL ============== */

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar nav (desktop) ---- */
.sidebar {
  width: var(--nav-w);
  flex-shrink: 0;
  background: var(--navy);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  z-index: 200;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

.sidebar-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.sidebar-brand .brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.sidebar-brand .brand-name span {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
}

.sidebar-nav a i {
  width: 18px;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: color 0.15s ease;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.sidebar-nav a.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.sidebar-nav a.active i {
  color: var(--gold-light);
}

.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.sidebar-foot {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

.sidebar-foot a {
  color: var(--gold-light);
}

/* ---- Mobile top bar ---- */
.topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: var(--navy);
  color: #fff;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 300;
  box-shadow: var(--shadow-md);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.topbar-brand img { width: 28px; height: 28px; object-fit: contain; }

.topbar-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
}

.menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  padding: 8px;
  cursor: pointer;
  line-height: 1;
}

.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: var(--navy);
  z-index: 290;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  box-shadow: var(--shadow-md);
}

.mobile-menu.open { max-height: 480px; }

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 8px 14px 18px;
}

.mobile-menu a {
  padding: 13px 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu a i { width: 18px; color: var(--gold-light); }

/* ---- Main content ---- */
.main {
  margin-left: var(--nav-w);
  flex: 1;
  width: calc(100% - var(--nav-w));
  min-width: 0;
}

.section {
  padding: 88px 56px;
  border-bottom: 1px solid var(--line);
}

.section:last-child { border-bottom: none; }

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--royal);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-lead {
  font-size: 16.5px;
  color: var(--slate);
  max-width: 640px;
  margin-bottom: 0;
}

/* ============== HERO (HOME) ============== */

.hero {
  padding: 96px 56px 40px;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(242,169,59,0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at -5% 10%, rgba(30,95,168,0.10), transparent 60%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
  padding-top: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line-strong);
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-badge .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 11px;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 .accent {
  background: linear-gradient(100deg, var(--royal) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 17px;
  color: var(--slate);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(242,169,59,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--navy);
  background: rgba(11,37,69,0.03);
}

.hero-stats {
  display: flex;
  gap: 28px;
}

.hero-stat .num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

.hero-stat .label {
  font-size: 12px;
  color: var(--slate);
  margin-top: 2px;
}

/* Hero visual: gear-monument motif */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  max-width: 320px;
  animation: float-logo 6s ease-in-out infinite;
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-ring {
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 50%;
  animation: spin-slow 40s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual img, .hero-ring { animation: none; }
}

/* ============== CARDS / GRIDS ============== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.value-card {
  padding: 26px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--royal), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 14px;
  color: var(--slate);
}

/* ============== PROJECTS ============== */

.project-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.project-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.project-mark {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: #fff;
}

.project-mark.mineaddons { background: linear-gradient(145deg, var(--royal), var(--navy)); }
.project-mark.aim { background: linear-gradient(145deg, var(--gold), #D98A1E); }

.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.project-head h3 {
  font-size: 22px;
  font-weight: 700;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.project-tag.live {
  background: rgba(46,158,107,0.12);
  color: var(--success);
}

.project-desc {
  font-size: 14.5px;
  color: var(--slate);
  margin-bottom: 18px;
  max-width: 600px;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.feature-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
}

.project-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
}

.link-primary {
  background: var(--navy);
  color: #fff;
}
.link-primary:hover { background: var(--navy-soft); }

.link-secondary {
  background: transparent;
  border: 1.5px solid var(--line-strong);
  color: var(--navy);
}
.link-secondary:hover { border-color: var(--navy); }

/* ============== DONATION ============== */

.donate-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  margin-top: 40px;
  align-items: start;
}

.donate-card {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.donate-card::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(242,169,59,0.25), transparent 70%);
  top: -100px;
  right: -100px;
}

.donate-card h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 12px;
  position: relative;
}

.donate-card p {
  color: rgba(255,255,255,0.78);
  font-size: 14.5px;
  margin-bottom: 26px;
  max-width: 420px;
  position: relative;
}

.donate-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.donate-method {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.donate-method i {
  width: 20px;
  text-align: center;
  color: var(--gold-light);
  font-size: 16px;
}

.donate-method .copy-email {
  margin-left: auto;
  font-size: 12px;
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.12);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  color: #fff;
  font-weight: 600;
}

.donate-method .copy-email:hover { background: rgba(255,255,255,0.2); }

.donate-note {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.donate-note h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.donate-note h4 i { color: var(--gold); }

.donate-note ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.donate-note li {
  font-size: 13.5px;
  color: var(--slate);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.donate-note li i {
  color: var(--royal);
  margin-top: 3px;
  font-size: 12px;
}

/* ============== DONATOR RANKING (Signature element) ============== */

.podium {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 44px;
  align-items: end;
}

.podium-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 18px 22px;
  text-align: center;
  position: relative;
}

.podium-card.rank-1 { padding-top: 38px; border-color: var(--gold); box-shadow: 0 12px 30px rgba(242,169,59,0.18); }
.podium-card.rank-2 { order: 0; }
.podium-card.rank-3 { order: 2; }
.podium-card.rank-1 { order: 1; }

.gear-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gear-badge svg { width: 100%; height: 100%; }

.gear-badge .rank-num {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}

.podium-card.rank-1 .gear-badge { width: 80px; height: 80px; }
.podium-card.rank-1 .rank-num { font-size: 22px; color: var(--gold); }

.podium-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.podium-amount {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--royal);
  font-weight: 600;
}

.podium-card.rank-1 .podium-amount { color: var(--gold); font-size: 15px; }

.leaderboard {
  margin-top: 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 50px 1fr 140px;
  align-items: center;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.leaderboard-row:last-child { border-bottom: none; }

.leaderboard-row.head {
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  font-weight: 600;
}

.lb-rank {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--slate-light);
}

.lb-amount {
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: right;
  color: var(--navy);
}

.donator-empty-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--slate-light);
}

.donator-empty-note i { color: var(--gold); }

/* ============== CONTACT ============== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  margin-top: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--royal);
  flex-shrink: 0;
  font-size: 15px;
}

.contact-item h4 {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 3px;
}

.contact-item p, .contact-item a {
  font-size: 13.5px;
  color: var(--slate);
}

.contact-item a:hover { color: var(--royal); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--navy);
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--bg);
  color: var(--navy);
  transition: border-color 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--royal);
  outline: none;
}

.form-row textarea { resize: vertical; min-height: 110px; }

.form-submit {
  width: 100%;
  justify-content: center;
}

/* ============== FOOTER ============== */

.footer {
  padding: 40px 56px;
  text-align: center;
  font-size: 13px;
  color: var(--slate-light);
}

.footer .legal-note {
  margin-top: 8px;
  font-size: 11.5px;
}

/* ============== RESPONSIVE ============== */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 240px; margin: 0 auto; }
  .donate-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .project-mark { max-width: 140px; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .sidebar { display: none; }
  .topbar { display: flex; }
  .main { margin-left: 0; width: 100%; }
  .section { padding: 56px 22px; }
  .hero { padding: 100px 22px 56px; }
  body { padding-top: 64px; }
  .value-grid { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .podium-card.rank-1, .podium-card.rank-2, .podium-card.rank-3 { order: 0; }
  .leaderboard-row { grid-template-columns: 40px 1fr 100px; padding: 13px 16px; font-size: 13px; }
  .hero-stats { gap: 18px; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
