/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #050505;
  --dark: #0c0c0f;
  --card: #111116;
  --border: #1e1e26;
  --gray: #8a8a9a;
  --light: #e0e0e8;
  --white: #f5f5f7;
  --purple: #7C3AED;
  --purple-glow: #9B5DE5;
  --purple-dim: #5B21B6;
  --purple-subtle: rgba(124, 58, 237, 0.08);
  --purple-border: rgba(124, 58, 237, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--purple-glow);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--white);
}

/* ── Skip Nav (Accessibility) ───────────────────────────── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--purple);
  color: var(--white);
  border-radius: 0 0 8px 8px;
  z-index: 200;
  font-size: 0.85rem;
  transition: top 0.2s;
}
.skip-nav:focus {
  top: 0;
}

/* ── Animated Background ────────────────────────────────── */
.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-glow::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
  animation: drift 20s ease-in-out infinite;
}
.bg-glow::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(91, 33, 182, 0.04) 0%, transparent 70%);
  animation: drift 25s ease-in-out infinite reverse;
}

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

/* ── Layout ─────────────────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
}

section {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Navigation ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 5, 5, 0.7);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--purple);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
}

/* Sigil container — title sits centered inside this */
.oracle-sigil {
  position: relative;
  width: min(500px, 80vw);
  height: min(500px, 80vw);
  pointer-events: none;
  flex-shrink: 0;
}

.oracle-sigil svg {
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

/* Title overlaid in the center of the sigil */
.hero-title-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  pointer-events: auto;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  white-space: nowrap;
}

.hero h1 .ampersand {
  color: var(--purple);
  font-style: italic;
}

/* Badge + tagline below the sigil */
.hero-below {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--purple-border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--purple-glow);
  background: var(--purple-subtle);
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto 32px;
  font-weight: 400;
  line-height: 1.5;
}

.hero-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  margin: 0 auto;
}

/* Multi-layer rotation matching the Bibliomancy app */
.sigil-outer {
  transform-origin: 200px 200px;
  animation: sigil-cw 20s linear infinite;
}
.sigil-middle {
  transform-origin: 200px 200px;
  animation: sigil-ccw 12s linear infinite;
}
.sigil-inner {
  transform-origin: 200px 200px;
  animation: sigil-cw 8s linear infinite;
}
.sigil-seed {
  transform-origin: 200px 200px;
  animation: sigil-cw 16s linear infinite;
}
.sigil-particles-inner {
  transform-origin: 200px 200px;
  animation: sigil-cw 5s linear infinite;
}
.sigil-particles-outer {
  transform-origin: 200px 200px;
  animation: sigil-ccw 7s linear infinite;
}

@keyframes sigil-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes sigil-ccw {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* ── Section Headers ────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Name Meaning ───────────────────────────────────────── */
.name-meaning {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}

.meaning-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  transition: border-color 0.3s;
}

.meaning-card:hover {
  border-color: var(--purple-border);
}

.meaning-card h3 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.meaning-word {
  font-size: 0.85rem;
  color: var(--purple-glow);
  font-style: italic;
  margin-bottom: 16px;
}

.meaning-card p:last-child {
  color: var(--light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.meaning-card em {
  color: var(--purple-glow);
  font-style: italic;
}

.meaning-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.meaning-divider span {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--purple);
  font-style: italic;
}

/* ── Founder / About Us ─────────────────────────────────── */
.founder-section {
  margin-bottom: 80px;
}

.founder-section .section-header {
  margin-bottom: 40px;
}

.founder-content {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
}

.founder-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.founder-content p {
  color: var(--light);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.founder-content p:last-child {
  margin-bottom: 0;
}

.founder-content em {
  color: var(--purple-glow);
  font-style: italic;
}

/* ── Values ─────────────────────────────────────────────── */
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.value-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px;
  transition: border-color 0.3s;
}

.value-item:hover {
  border-color: var(--purple-border);
}

.value-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}

.value-item p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── App Showcase ────────────────────────────────────────── */
.app-showcase {
  margin-bottom: 80px;
}

.app-showcase-header {
  text-align: center;
  margin-bottom: 40px;
}

.app-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  background: var(--purple-subtle);
  color: var(--purple-glow);
  border: 1px solid var(--purple-border);
}

.app-showcase-header h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.app-showcase-header .app-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  font-style: italic;
  margin-bottom: 16px;
}

.app-showcase-header .app-desc {
  color: var(--light);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Horizontal Slider ──────────────────────────────────── */
.app-slider-wrap {
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.app-slider {
  overflow: hidden;
}

.app-slider-track {
  display: flex;
  gap: 24px;
  animation: slider-scroll 60s linear infinite;
  width: max-content;
}

.app-slider-track img {
  height: 420px;
  width: auto;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 16px 48px rgba(0,0,0,0.4),
    0 0 30px rgba(124, 58, 237, 0.06);
}

@keyframes slider-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.app-slider-wrap:hover .app-slider-track {
  animation-play-state: paused;
}

/* ── Single Screenshot (Lore Night) ─────────────────────── */
.app-showcase-single {
  margin-bottom: 0;
}

.app-single-screenshot {
  text-align: center;
}

.app-single-screenshot img {
  height: 420px;
  width: auto;
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 16px 48px rgba(0,0,0,0.4),
    0 0 30px rgba(124, 58, 237, 0.06);
}

/* ── Contact Block ───────────────────────────────────────── */
.contact-block {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-reach {
  color: var(--light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-email {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--purple-glow);
  letter-spacing: -0.01em;
  transition: color 0.2s;
  margin-bottom: 48px;
}

.contact-email:hover {
  color: var(--white);
}

.at-sign {
  color: var(--gray);
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
}

.contact-detail {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px;
  transition: border-color 0.3s;
}

.contact-detail:hover {
  border-color: var(--purple-border);
}

.contact-detail h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.contact-detail p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-legal-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-legal-links a {
  font-size: 0.95rem;
  color: var(--purple-glow);
  transition: color 0.2s;
}

.contact-legal-links a:hover {
  color: var(--white);
}

/* ── Security Section ───────────────────────────────────── */
.security-content {
  max-width: 1100px;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.security-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px;
  transition: border-color 0.3s;
}

.security-item:hover {
  border-color: var(--purple-border);
}

.security-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}

.security-item p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.security-disclosure {
  background: var(--card);
  border: 1px solid var(--purple-border);
  border-radius: 16px;
  padding: 32px 36px;
}

.security-disclosure h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--white);
}

.security-disclosure p {
  color: var(--light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--purple);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gray);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--purple-glow);
}

.footer-copy {
  color: var(--gray);
  font-size: 0.8rem;
}

/* ── Privacy / Legal Pages ──────────────────────────────── */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.legal-page .back-link {
  display: inline-block;
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 40px;
  transition: color 0.2s;
}

.legal-page .back-link:hover {
  color: var(--purple-glow);
}

.legal-page h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-page .updated {
  display: block;
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.legal-page h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--white);
}

.legal-page p {
  color: var(--light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-page ul {
  color: var(--light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
  padding-left: 24px;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page strong {
  color: var(--white);
}

.legal-page a {
  color: var(--purple-glow);
}

.legal-page em {
  color: var(--gray);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  nav {
    padding: 16px 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  section {
    padding: 60px 20px;
  }

  .name-meaning {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .meaning-divider {
    justify-content: center;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .app-slider-track img,
  .app-single-screenshot img {
    height: 340px;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-email {
    font-size: 1.2rem;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .founder-content {
    padding: 32px 28px;
  }

  .footer-links {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .nav-logo {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .app-slider-track img,
  .app-single-screenshot img {
    height: 280px;
  }

  .oracle-sigil {
    width: 280px;
    height: 280px;
  }

  .hero-below {
    margin-top: 20px;
  }
}
