@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --color-base: #1a2332;
  --color-surface: #212d3f;
  --color-accent: #d4943a;
  --color-accent-light: #e8b36a;
  --color-text: #e8e4df;
  --color-text-muted: #9ca8b8;
  --color-border: rgba(255,255,255,0.08);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --radius: 16px;
  --max-w: 960px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-light); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* ─── NAV ─── */
nav {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-bear { font-size: 1.8rem; }
nav ul { list-style: none; display: flex; gap: 2rem; }
nav ul a { color: var(--color-text-muted); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em; }
nav ul a:hover { color: var(--color-text); }

/* ─── HERO ─── */
.hero {
  padding: 8rem 0 6rem;
  text-align: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212,148,58,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  position: relative;
}
.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
}
.hero p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

/* ─── FEATURES ─── */
.features {
  padding: 5rem 0;
  border-top: 1px solid var(--color-border);
}
.features h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 3rem;
  text-align: center;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: rgba(212,148,58,0.3);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 300;
}

/* ─── BUILT FOR ─── */
.built-for {
  padding: 5rem 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.built-for h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.built-for p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
  font-size: 1.05rem;
}

/* ─── FOOTER ─── */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
footer ul { list-style: none; display: flex; gap: 1.5rem; }
footer a { color: var(--color-text-muted); }
footer a:hover { color: var(--color-accent); }

/* ─── LEGAL PAGES ─── */
.legal {
  padding: 4rem 0;
  max-width: 720px;
  margin: 0 auto;
}
.legal h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}
.legal .updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-accent-light);
}
.legal p, .legal ul {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-weight: 300;
}
.legal ul {
  padding-left: 1.5rem;
}
.legal li {
  margin-bottom: 0.4rem;
}
.legal strong {
  color: var(--color-text);
  font-weight: 500;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 { animation: fadeUp 0.8s ease-out; }
.hero p { animation: fadeUp 0.8s ease-out 0.15s both; }
.feature-card:nth-child(1) { animation: fadeUp 0.6s ease-out 0.3s both; }
.feature-card:nth-child(2) { animation: fadeUp 0.6s ease-out 0.45s both; }
.feature-card:nth-child(3) { animation: fadeUp 0.6s ease-out 0.6s both; }

@media (max-width: 640px) {
  .hero { padding: 5rem 0 3rem; }
  nav ul { gap: 1rem; }
  footer .container { flex-direction: column; text-align: center; }
}
