/* ═══════════════════════════════════════════════════════
   KODA — Design System v2  (BoltBot-inspired clean style)
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Base */
  --bg:       #0a0a0f;
  --bg2:      #0f0f1a;
  --bg3:      #141422;
  --surface:  #16162a;
  --surface2: #1c1c35;
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.12);

  /* Text */
  --text:     #f0f0ff;
  --text2:    rgba(240,240,255,0.55);
  --text3:    rgba(240,240,255,0.3);

  /* Brand accents */
  --indigo:   #6366f1;
  --violet:   #8b5cf6;
  --purple:   #a78bfa;
  --pink:     #ec4899;
  --cyan:     #22d3ee;
  --teal:     #2dd4bf;
  --green:    #4ade80;
  --amber:    #fbbf24;
  --rose:     #fb7185;

  /* Gradient */
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --grad-text: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 40%, #f9a8d4 100%);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 15px;
  font-weight: 400; line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── BACKGROUND GRID ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(99,102,241,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* gradient orbs */
.orb {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(120px); opacity: 0.5;
}
.orb1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, transparent 70%); top: -200px; left: -100px; }
.orb2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 70%); bottom: 0; right: -100px; }
.orb3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(236,72,153,0.15) 0%, transparent 70%); top: 50%; left: 40%; transform: translate(-50%,-50%); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 60px;
  background: rgba(10,10,15,0.8); backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem;
  color: var(--text); text-decoration: none; letter-spacing: -0.02em;
}
.nav-logo-img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.nav-center {
  display: flex; align-items: center; gap: 0.15rem;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-link {
  font-size: 0.85rem; font-weight: 500; color: var(--text2);
  text-decoration: none; padding: 0.5rem 0.85rem;
  border-radius: 8px; transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-right { display: flex; align-items: center; gap: 0.6rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1.2rem; border-radius: 999px;
  font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; text-decoration: none; border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 0 0 0 rgba(99,102,241,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.4);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border2);
  color: var(--text2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--text); transform: translateY(-1px); }
.btn-discord {
  background: #5865F2; color: #fff; border: none;
}
.btn-discord:hover { background: #4752c4; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(88,101,242,0.35); }
.btn-disabled {
  background: rgba(255,255,255,0.05); color: var(--text3);
  border: 1px solid var(--border); cursor: not-allowed;
}

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 0.4rem;
}
.nav-hamburger span { display: block; width: 20px; height: 2px; background: var(--text2); border-radius: 2px; transition: all 0.2s; }
.nav-mobile {
  position: fixed; top: 60px; left: 0; right: 0; z-index: 490;
  background: rgba(10,10,15,0.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column;
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.nav-mobile.open { max-height: 260px; }
.nav-mobile-link {
  font-size: 0.92rem; font-weight: 500; color: var(--text2);
  text-decoration: none; padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.nav-mobile-link:hover { color: var(--text); }

/* ── SHARED LAYOUT ── */
.page-wrap { position: relative; z-index: 1; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
hr.divider { border: none; border-top: 1px solid var(--border); }

/* ── SHARED TYPOGRAPHY ── */
.overline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text3);
  margin-bottom: 1rem;
}
.overline-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--indigo); }

h1, h2, h3 { font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 0.6rem;
}
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); letter-spacing: -0.03em; margin-bottom: 0.6rem; }
.section-sub { font-size: 0.95rem; color: var(--text2); line-height: 1.7; max-width: 460px; }

/* ── CARDS ── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.badge-indigo { background: rgba(99,102,241,0.12); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.2); }
.badge-violet { background: rgba(139,92,246,0.12); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.2); }
.badge-green  { background: rgba(74,222,128,0.1);  color: #86efac; border: 1px solid rgba(74,222,128,0.2); }
.badge-cyan   { background: rgba(34,211,238,0.1);  color: #67e8f9; border: 1px solid rgba(34,211,238,0.2); }
.badge-amber  { background: rgba(251,191,36,0.1);  color: #fde68a; border: 1px solid rgba(251,191,36,0.2); }
.badge-pink   { background: rgba(236,72,153,0.1);  color: #f9a8d4; border: 1px solid rgba(236,72,153,0.2); }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border); padding: 2rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.95rem; color: var(--text2); text-decoration: none;
}
.footer-logo img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }
.footer-links { display: flex; align-items: center; gap: 1.5rem; }
.footer-link { font-size: 0.8rem; color: var(--text3); text-decoration: none; transition: color 0.15s; }
.footer-link:hover { color: var(--text); }
.footer-copy { font-size: 0.75rem; color: var(--text3); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 8rem 2rem 4rem; text-align: center;
  position: relative; z-index: 1;
}
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
  border-radius: 999px; padding: 0.35rem 1rem;
  font-size: 0.72rem; font-weight: 600; color: #a5b4fc;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.5s 0.1s forwards;
}
.page-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.04em; line-height: 1.05;
  margin-bottom: 1.1rem;
  opacity: 0; animation: fadeUp 0.6s 0.2s forwards;
}
.page-hero-sub {
  font-size: 1.05rem; color: var(--text2); max-width: 500px; margin: 0 auto;
  line-height: 1.7;
  opacity: 0; animation: fadeUp 0.5s 0.35s forwards;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes shimmer { 0%,100%{background-position:0% 50%}50%{background-position:100% 50%} }

.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ── UNAVAIL NOTE ── */
.unavail-row {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 0.78rem; color: var(--text3); margin-top: 1.5rem;
}
.unavail-dot {
  width: 6px; height: 6px; background: var(--rose); border-radius: 50%;
  box-shadow: 0 0 6px var(--rose); animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translateY(0);}50%{transform:translateY(-3px);} }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-center { display: none; }
  .nav-right .btn-ghost { display: none; }
  .nav-hamburger { display: flex; }
  footer { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .footer-links { justify-content: center; }
}
