:root {
  /* Van Gogh's Starry Night palette */
  --night-deep: #0a1128;
  --night-mid: #10285c;
  --night-glow: #1c4a8f;
  --swirl: #3f77b0;
  --star: #f6f0c8;
  --moon: #fdf4a4;
  --accent: #f0c93a;
  --accent-soft: #ffe38a;
  --cypress: #0d1f16;
  --text: #f2f0e4;
  --text-dim: #b9c4dd;
  --card-bg: rgba(10, 20, 48, 0.6);
  --card-border: rgba(240, 201, 58, 0.28);
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--night-deep);
  overflow-x: hidden;
}

#stars-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(ellipse at 50% -10%, var(--night-glow) 0%, var(--night-mid) 45%, var(--night-deep) 100%);
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(5, 7, 15, 0.45);
  border-bottom: 1px solid rgba(244, 201, 93, 0.12);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: "Snell Roundhand", "Brush Script MT", cursive;
  font-size: 1.6rem;
  color: var(--accent-soft);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--star);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 8, 20, 0.97);
    border-bottom: 1px solid rgba(244, 201, 93, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 300px; }
  .nav-links li { border-top: 1px solid rgba(255,255,255,0.06); }
  .nav-links a { display: block; padding: 16px 24px; }
}

/* Hero */
.hero {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.hero-kicker {
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 18px;
  opacity: 0.85;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin: 0 0 18px;
  background: linear-gradient(180deg, var(--star), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.hero p {
  max-width: 560px;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent-soft);
  font-size: 0.92rem;
  letter-spacing: 0.4px;
  transition: all 0.25s ease;
}

.btn:hover {
  background: var(--accent);
  color: #1a1200;
}

.btn.ghost {
  border-color: rgba(255,255,255,0.25);
  color: var(--text-dim);
}
.btn.ghost:hover {
  border-color: var(--accent-soft);
  color: var(--accent-soft);
  background: transparent;
}

/* Cards grid on home */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 20px 0 100px;
}

@media (max-width: 820px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 28px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.feature-card .emoji { font-size: 1.8rem; margin-bottom: 10px; display: block; }
.feature-card h3 { margin: 0 0 8px; font-family: Georgia, serif; color: var(--accent-soft); }
.feature-card p { margin: 0 0 16px; color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; }

/* Generic page wrapper */
.page {
  padding: 60px 0 100px;
}

.page-header {
  text-align: center;
  margin-bottom: 50px;
}

.page-header h1 {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--accent-soft);
  margin: 0 0 12px;
}

.page-header p {
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto;
}

footer.site-footer {
  text-align: center;
  padding: 30px 20px 50px;
  color: var(--text-dim);
  font-size: 0.8rem;
  opacity: 0.6;
}
