@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
  /* Aligned with the NanaiNest app palette (FantasyTheme.Codex).
     Purple = iconic accent (matches app icon corona).
     Brass kept as tertiary warm highlight so the warmth from the old palette
     doesn't fully disappear. */
  --bg: #060818;              /* Codex.inkDeep */
  --bg-soft: #0A0E27;         /* Codex.ink */
  --text: #F5E6D3;            /* Codex.ivory */
  --dim: #a89c8a;             /* desaturated ivory for body copy */
  --accent: #BF85FF;          /* FantasyTheme.accentAlt — the icon purple */
  --accent-strong: #9D5CE8;   /* hover state */
  --accent-dim: rgba(191, 133, 255, 0.15);
  --cyan: #5CD1FA;            /* FantasyTheme.accent — secondary highlight */
  --brass: #C9A961;           /* Codex.brass — tertiary warm accent */
  --aubergine: #4C2659;       /* Codex.aubergine — deep purple */
  --rule: rgba(191, 133, 255, 0.10);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- grain overlay (CSS only, no SVG) --- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.04;
  background: repeating-conic-gradient(#F5E6D3 0% 25%, transparent 0% 50%) 0 0 / 3px 3px;
  mix-blend-mode: overlay;
}

a { color: inherit; }

/* --- layout --- */
.page {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

/* --- ambient background --- */
.ambient-shell { position: relative; }

.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(100px);
  opacity: 0.16;
  animation: float 22s ease-in-out infinite;
}
.orb-one {
  width: 520px; height: 520px;
  top: -140px; left: -120px;
  background: radial-gradient(circle, #BF85FF 0%, transparent 70%);
}
.orb-two {
  width: 420px; height: 420px;
  top: 45%; right: -180px;
  background: radial-gradient(circle, #5CD1FA 0%, transparent 70%);
  animation-delay: -8s;
  opacity: 0.10;
}
.orb-three {
  width: 380px; height: 380px;
  bottom: -100px; left: 28%;
  background: radial-gradient(circle, #4C2659 0%, transparent 70%);
  animation-delay: -15s;
  opacity: 0.22;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -30px); }
  66% { transform: translate(-15px, 20px); }
}

/* --- topbar --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 0 1rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--dim);
  transition: color 0.3s;
}
.brand:hover { color: var(--text); }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dim);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--text); }

/* --- hero --- */
.hero {
  padding: 8rem 0 5rem;
  border-bottom: 1px solid var(--rule);
}
.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 14ch;
}
.lede {
  max-width: 48ch;
  margin-top: 2rem;
  font-size: 1.05rem;
  color: var(--dim);
  line-height: 1.8;
}

/* --- buttons --- */
.button-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.button {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
}
.button.primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 0 1px rgba(191, 133, 255, 0.0), 0 10px 30px -10px rgba(191, 133, 255, 0.55);
}
.button.primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(191, 133, 255, 0.35), 0 16px 40px -10px rgba(191, 133, 255, 0.75);
}
.button.secondary {
  border: 1px solid rgba(191, 133, 255, 0.18);
  color: var(--dim);
}
.button.secondary:hover {
  border-color: rgba(191, 133, 255, 0.40);
  color: var(--text);
}

/* --- feature sections --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

.feature-grid .card {
  padding: 3rem 0;
  border-bottom: 1px solid var(--rule);
}

.feature-grid .card:last-child {
  border-bottom: none;
}

/* two-column support grid */
.support-grid {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.support-grid .card {
  border-bottom: none;
  padding: 3rem 0;
}

/* --- cards (reset from old style) --- */
.card {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.card p, .card li {
  color: var(--dim);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* --- detail lists --- */
.detail-list {
  list-style: none;
  margin-top: 1.5rem;
}
.detail-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.detail-list li:first-child {
  border-top: none;
  padding-top: 0;
}
.detail-list span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.detail-list strong,
.detail-list a {
  color: var(--text);
  font-weight: 400;
  text-decoration: none;
}
.detail-list a:hover {
  color: var(--accent);
}

.compact li { padding: 0.7rem 0; }

/* --- FAQ --- */
.faq-item + .faq-item { margin-top: 1.5rem; }

/* --- info strip --- */
.info-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 0;
  margin-top: 1rem;
  border-top: 1px solid var(--rule);
}

/* --- notice (support page dev warning — removed but keeping style just in case) --- */
.notice {
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(191, 133, 255, 0.25);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.9rem;
  background: var(--accent-dim);
}

/* --- meta / small --- */
.meta-line {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--dim);
}
.small-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--dim);
}

code {
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  font-family: "SF Mono", Menlo, monospace;
  font-size: 0.88em;
}

/* --- footer --- */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--dim);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--text); }

/* --- responsive --- */
@media (max-width: 700px) {
  .page { padding: 0 1.25rem 4rem; }
  .hero { padding: 5rem 0 3rem; }
  .support-grid { grid-template-columns: 1fr; gap: 0; }
  .support-grid .card { border-bottom: 1px solid var(--rule); }
  .info-strip { flex-direction: column; align-items: flex-start; }
  .topbar { padding: 1.5rem 0 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .button { transition: none; }
}
