/* Verdigris Chronicle — landing palette from VDTheme.swift */

:root {
  --bg-deep: #1a0a2e;
  --bg-mid: #2e0854;
  --bg-card: #3d1a6e;
  --bg-violet: #4b0082;
  --gold-bright: #ffd700;
  --gold-warm: #ffcc00;
  --amber-glow: #ffb347;
  --neon-pink: #ff00ff;
  --neon-magenta: #d81b60;
  --pink-glow: #e91e8c;
  --orange-bright: #ff6b35;
  --orange-deep: #e85d04;
  --verdigris: #3daa8c;
  --verdigris-dim: #2d7a6a;
  --text-primary: #fff8e7;
  --text-secondary: #c4b5d8;
  --radius: 18px;
  --radius-sm: 14px;
  --max-width: 1120px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Background atmosphere ── */

.bokeh-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bokeh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: drift 18s ease-in-out infinite alternate;
}

.bokeh-orb--gold {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--gold-bright) 0%, transparent 70%);
  top: -60px;
  right: 10%;
}

.bokeh-orb--pink {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--neon-pink) 0%, transparent 70%);
  bottom: 20%;
  left: -40px;
  animation-delay: -6s;
}

.bokeh-orb--verdigris {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--verdigris) 0%, transparent 70%);
  top: 45%;
  right: -30px;
  animation-delay: -12s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(24px, -18px) scale(1.08); }
}

.gear-deco {
  position: fixed;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.gear-deco--tl {
  top: 120px;
  left: -40px;
  width: 180px;
  height: 180px;
  border: 3px solid var(--gold-bright);
  border-radius: 50%;
}

.gear-deco--br {
  bottom: 80px;
  right: -60px;
  width: 240px;
  height: 240px;
  border: 2px solid var(--verdigris);
  border-radius: 50%;
}

/* ── Layout ── */

.page-wrap {
  position: relative;
  z-index: 1;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

section {
  padding-block: 5rem;
}

.section-label {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--verdigris);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-warm), var(--amber-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-lead {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 640px;
}

/* ── Nav ── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(26, 10, 46, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.wordmark {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 24px rgba(61, 170, 140, 0.4);
}

.wordmark span {
  color: var(--verdigris);
  -webkit-text-fill-color: var(--verdigris);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-size: 1.2rem;
}

/* ── Hero ── */

.hero {
  padding-block: 5rem 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--verdigris);
  border: 1px solid rgba(61, 170, 140, 0.45);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero h1 .accent {
  display: block;
  background: linear-gradient(135deg, var(--gold-bright), var(--orange-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 620px;
  margin-inline: auto 1.75rem;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.75rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--bg-deep);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-warm), var(--orange-bright));
  box-shadow: 0 4px 24px rgba(255, 215, 0, 0.25), 0 0 40px rgba(233, 30, 140, 0.15);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(255, 215, 0, 0.35), 0 0 48px rgba(233, 30, 140, 0.25);
}

.btn-ghost {
  color: var(--text-primary);
  background: transparent;
  border: 1.5px solid rgba(255, 215, 0, 0.45);
}

.btn-ghost:hover {
  border-color: var(--gold-bright);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

/* ── Stat pills ── */

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.stat-pill {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(61, 26, 110, 0.9), rgba(75, 0, 130, 0.7));
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: var(--text-primary);
}

.stat-pill strong {
  color: var(--gold-bright);
}

/* ── Feature cards ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: linear-gradient(145deg, var(--bg-card), rgba(75, 0, 130, 0.75));
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1.5px solid transparent;
  border-image: linear-gradient(180deg, var(--gold-bright), var(--orange-bright)) 1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 215, 0, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(255, 0, 255, 0.08);
}

.feature-num {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--neon-pink);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 12px rgba(255, 0, 255, 0.5);
}

.feature-card h3 {
  font-family: "Cinzel", serif;
  font-size: 1.2rem;
  color: var(--gold-bright);
  margin-bottom: 0.65rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── About ── */

.about-block {
  background: linear-gradient(180deg, rgba(46, 8, 84, 0.5), transparent);
  border-block: 1px solid rgba(255, 215, 0, 0.08);
}

.about-text {
  color: var(--text-secondary);
  max-width: 720px;
}

.about-text p + p {
  margin-top: 1rem;
}

.about-text em {
  color: var(--verdigris);
  font-style: normal;
}

/* ── Privacy ── */

.privacy-card {
  background: linear-gradient(145deg, var(--bg-card), rgba(75, 0, 130, 0.6));
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid rgba(255, 215, 0, 0.18);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  margin-top: 2rem;
}

.privacy-effective {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.9rem;
  color: var(--amber-glow);
  margin-bottom: 1.5rem;
}

.privacy-card h3 {
  font-family: "Cinzel", serif;
  font-size: 1.15rem;
  color: var(--gold-bright);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.privacy-card h3:first-of-type {
  margin-top: 0;
}

.privacy-card p,
.privacy-card li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.privacy-card ul {
  margin: 0.5rem 0 0 1.25rem;
}

.privacy-card li + li {
  margin-top: 0.35rem;
}

/* ── Contact ── */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-card {
  background: linear-gradient(145deg, var(--bg-card), rgba(75, 0, 130, 0.65));
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  border: 1px solid rgba(61, 170, 140, 0.25);
}

.contact-card .label {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verdigris);
  margin-bottom: 0.4rem;
}

.contact-card a {
  color: var(--gold-bright);
  text-decoration: none;
  word-break: break-all;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-note {
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ── Footer ── */

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  text-align: center;
}

.footer-legal {
  color: var(--text-secondary);
  font-size: 0.85rem;
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.6;
}

.footer-copy {
  margin-top: 1rem;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(196, 181, 216, 0.6);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(26, 10, 46, 0.97);
    border-bottom: 1px solid rgba(255, 215, 0, 0.12);
    padding: 1rem 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 1.25rem;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .privacy-card {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bokeh-orb { animation: none; }
  .btn:hover, .feature-card:hover { transform: none; }
}
