/* ── Tokens ─────────────────────────────────────────── */
:root {
  --bg: #140A04;
  --bg-card: #1F1008;
  --bg-raised: #2A160A;
  --border: #3D2010;
  --primary: #E8834A;
  --primary-dim: #C06030;
  --primary-glow: rgba(232, 131, 74, 0.18);
  --accent: #F5C98A;
  --cream: #FAE0C0;
  --text: #F2D0A8;
  --text-muted: #9A6A44;
  --dark: #2A1F14;
  --rust: #C0614A;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 32px rgba(232, 131, 74, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(232, 131, 74, 0.08) 0%, transparent 70%);
}

/* ── Typography ─────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p {
  line-height: 1.7;
  color: var(--text);
}

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

a:hover {
  color: var(--accent);
}

/* ── Nav ────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 10, 4, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(1rem, 5vw, 3rem);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.nav-logo .logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cream);
}

.nav-links a.active {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

/* ── Layout ─────────────────────────────────────────── */
main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 2rem);
}

/* ── Cards ──────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--primary-dim);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 131, 74, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-glow);
  color: var(--accent);
  border-color: var(--accent);
}

.btn-ghost {
  background: var(--bg-raised);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary-dim);
  color: var(--cream);
}

/* ── Badges ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  background: var(--bg-raised);
  color: var(--accent);
  border: 1px solid var(--border);
}

/* ── Divider ────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ── Footer ─────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1rem, 5vw, 3rem);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

footer a {
  color: var(--text-muted);
}

footer a:hover {
  color: var(--primary);
}

/* ── Animations ─────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up          { animation: fadeUp 0.5s ease both; }
.fade-up-1        { animation-delay: 0.05s; }
.fade-up-2        { animation-delay: 0.1s; }
.fade-up-3        { animation-delay: 0.15s; }
.fade-up-4        { animation-delay: 0.2s; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links {
    gap: 1rem;
  }
}
