@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  --bg:        oklch(0.16 0.04 200);
  --fg:        oklch(0.98 0.02 140);
  --card:      oklch(0.22 0.05 200 / 0.7);
  --muted-fg:  oklch(0.78 0.04 160);
  --primary:   oklch(0.74 0.17 35);
  --accent:    oklch(0.80 0.18 165);
  --stardust:  oklch(0.82 0.17 50);
  --border:    oklch(0.40 0.08 180 / 0.5);
  --radius:    0.875rem;
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui;
  --font-body:    'DM Sans', ui-sans-serif, system-ui;
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse at 20% 10%, oklch(0.40 0.15 180 / 0.5), transparent 55%),
    radial-gradient(ellipse at 80% 90%, oklch(0.55 0.18 145 / 0.35), transparent 55%),
    var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Layout ─────────────────────────────────────────── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Panel card ──────────────────────────────────────── */
.panel {
  background: linear-gradient(180deg,
    oklch(0.22 0.08 280 / 0.6),
    oklch(0.16 0.06 280 / 0.6));
  border: 1px solid oklch(0.45 0.12 280 / 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
}

/* ── Header ──────────────────────────────────────────── */
header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--fg);
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--stardust), oklch(0.65 0.20 30));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 18px;
  height: 18px;
  stroke: oklch(0.18 0.05 35);
  stroke-width: 2.25;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-fg);
  background: oklch(0.28 0.07 195 / 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-shadow: 0 0 24px color-mix(in oklab, var(--stardust) 60%, transparent);
}

.hero h1 span {
  color: var(--stardust);
}

.hero p {
  color: var(--muted-fg);
  max-width: 520px;
  margin: 0.75rem auto 1.5rem;
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  text-decoration: none;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn:hover { opacity: 0.85; transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--stardust), oklch(0.65 0.20 30));
  color: oklch(0.18 0.05 35);
  box-shadow: 0 0 32px -8px var(--stardust);
}

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

.btn-outline:hover {
  background: oklch(0.28 0.07 195 / 0.4);
}

/* ── Topic cards ─────────────────────────────────────── */
.topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.topic-card {
  padding: 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--fg);
  transition: transform 0.15s, box-shadow 0.15s;
}

.topic-card:hover {
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: 0 8px 32px -8px oklch(0 0 0 / 0.4);
}

.topic-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--stardust) 16%, transparent);
  display: grid;
  place-items: center;
  margin-bottom: 0.35rem;
  flex-shrink: 0;
}

.topic-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--stardust);
  stroke-width: 1.75;
}

.topic-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.topic-card p {
  font-size: 0.8rem;
  color: var(--muted-fg);
}

/* ── Section headings ────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-label .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stardust);
  flex-shrink: 0;
}

/* ── FAQ accordion ───────────────────────────────────── */
.faq-section {
  margin-bottom: 2.5rem;
}

.faq-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

details {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: oklch(0.20 0.05 200 / 0.5);
  overflow: hidden;
}

details[open] {
  border-color: oklch(0.55 0.12 180 / 0.6);
}

summary {
  padding: 1rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  transition: color 0.15s;
}

summary::-webkit-details-marker { display: none; }
summary::marker { display: none; }

summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--stardust);
  flex-shrink: 0;
  transition: transform 0.2s;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details[open] summary {
  color: var(--stardust);
  border-bottom: 1px solid var(--border);
}

.faq-body {
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  color: var(--muted-fg);
  line-height: 1.65;
}

.faq-body a {
  color: var(--accent);
}

.faq-body code {
  font-size: 0.85em;
  background: oklch(0.28 0.07 195 / 0.5);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* ── Contact ─────────────────────────────────────────── */
.contact-box {
  padding: 2.25rem;
  text-align: center;
  margin-bottom: 3rem;
}

.contact-box h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-box p {
  color: var(--muted-fg);
  font-size: 0.9rem;
  max-width: 440px;
  margin: 0 auto 1.4rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
  background: oklch(0.28 0.07 195 / 0.4);
  border: 1px solid oklch(0.55 0.12 180 / 0.4);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  transition: background 0.15s;
}

.contact-email svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.contact-email:hover {
  background: oklch(0.32 0.09 195 / 0.5);
  text-decoration: none;
}

.response-note {
  font-size: 0.78rem;
  color: var(--muted-fg);
  margin-top: 0.75rem;
}

/* ── Footer ──────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-fg);
}

footer a {
  color: var(--muted-fg);
  margin: 0 0.5rem;
}

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

.footer-links {
  margin-bottom: 0.5rem;
}

/* ── Stars background ────────────────────────────────── */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--fg);
  opacity: 0;
  animation: twinkle var(--dur, 3s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(1.3); }
}

/* main content sits above stars */
header, main, footer { position: relative; z-index: 1; }

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

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 520px) {
  .topics { grid-template-columns: 1fr 1fr; }
  .contact-box { padding: 1.5rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
