/* ============================================================
   Astralora — Website Stylesheet
   Dark celestial theme. No framework.
   ============================================================ */

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

:root {
  --bg:          #0D1B2A;
  --surface:     #1A2744;
  --surface2:    #162038;
  --gold:        #C9A86C;
  --gold-soft:   #D4B88A;
  --gold-dim:    rgba(201,168,108,0.25);
  --text:        #F0EDE6;
  --text-sec:    #9AA5B4;
  --text-tert:   #5A6A7A;
  --border:      rgba(201,168,108,0.18);
  --radius:      14px;
  --radius-lg:   22px;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --section-pad: clamp(64px, 8vw, 120px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-soft); }

img { display: block; max-width: 100%; }

/* ── Stars background ─────────────────────────────────────── */
.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1px 1px at 10% 12%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 22% 45%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 8%,  rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 47% 30%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 58% 68%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 15%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 82% 55%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 91% 38%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 78%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 64% 88%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 5%  55%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 78% 82%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 43% 62%, rgba(255,255,255,0.5) 0%, transparent 100%);
  animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: 0.6; }
  50%  { opacity: 1.0; }
  100% { opacity: 0.7; }
}

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  position: relative;
  z-index: 1;
}

section { padding: var(--section-pad) 0; position: relative; }

.section-label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 600;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.anim-fade-up   { opacity: 0; }
.anim-fade-up.visible {
  animation: fadeInUp 0.7s cubic-bezier(.22,.68,0,1.2) forwards;
}

.anim-delay-1 { animation-delay: 0.15s !important; }
.anim-delay-2 { animation-delay: 0.30s !important; }
.anim-delay-3 { animation-delay: 0.45s !important; }
.anim-delay-4 { animation-delay: 0.60s !important; }

/* ── Navigation ───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}

nav.scrolled {
  background: rgba(13,27,42,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 22px; }

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

.nav-links a {
  color: var(--text-sec);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--gold);
  color: #0D1B2A !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--gold-soft) !important; transform: translateY(-1px); }

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,108,0.07) 0%, transparent 70%);
}

.hero-wordmark {
  height: clamp(28px, 4vw, 40px);
  margin: 0 auto 36px;
  animation: fadeInUp 0.9s cubic-bezier(.22,.68,0,1.2) forwards;
}

.hero-tagline {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text) 0%, var(--gold-soft) 60%, var(--text) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.9s 0.2s cubic-bezier(.22,.68,0,1.2) both,
             shimmer 6s 1.5s linear infinite;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-sec);
  max-width: 560px;
  margin: 0 auto 48px;
  animation: fadeInUp 0.9s 0.4s cubic-bezier(.22,.68,0,1.2) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px 6px 10px;
  font-size: 13px;
  color: var(--gold-soft);
  margin-bottom: 24px;
  animation: fadeInUp 0.9s 0.1s cubic-bezier(.22,.68,0,1.2) both;
}

.hero-badge span { font-size: 18px; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #0D1B2A;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  animation: fadeInUp 0.9s 0.6s cubic-bezier(.22,.68,0,1.2) both;
  box-shadow: 0 4px 32px rgba(201,168,108,0.25);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 48px rgba(201,168,108,0.35);
  background: var(--gold-soft);
  color: #0D1B2A;
}

.hero-cta svg { width: 20px; height: 20px; fill: #0D1B2A; }

.hero-scroll {
  margin-top: 64px;
  animation: fadeIn 1s 1.2s both;
  color: var(--text-tert);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: float 2s ease-in-out infinite;
}

/* ── Features ─────────────────────────────────────────────── */
#features { background: var(--surface2); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  border-color: rgba(201,168,108,0.4);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--gold-dim);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-desc {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.65;
}

/* ── Dual sky section ─────────────────────────────────────── */
#dual-sky {
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(201,168,108,0.05) 0%, transparent 70%);
}

.dual-sky-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}

.dual-sky-text h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.dual-sky-text p {
  color: var(--text-sec);
  font-size: 16px;
  margin-bottom: 16px;
}

.dual-sky-systems {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sky-system {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color 0.3s;
}

.sky-system:hover { border-color: rgba(201,168,108,0.4); }

.sky-system-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }

.sky-system h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.sky-system p { font-size: 14px; color: var(--text-sec); }

/* ── Phone mockups ────────────────────────────────────────── */
.phones-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.phone-mockup {
  width: 220px;
  background: var(--surface);
  border-radius: 36px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  animation: float 5s ease-in-out infinite;
}

.phone-mockup:nth-child(2) {
  animation-delay: -2.5s;
  margin-top: 40px;
}

.phone-mockup .phone-notch {
  width: 90px;
  height: 22px;
  background: var(--bg);
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mockup .phone-notch::after {
  content: '';
  width: 50px;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.phone-screen {
  padding: 16px;
  min-height: 380px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface2) 100%);
}

/* Screenshot placeholders */
.phone-screenshot {
  width: 100%;
  background: var(--surface);
  border-radius: 12px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--border);
}

.phone-screenshot .mock-label {
  font-size: 11px;
  color: var(--text-tert);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.phone-screenshot .mock-icon { font-size: 32px; opacity: 0.5; }

/* ── Daily reading preview ────────────────────────────────── */
#daily-preview { background: var(--surface2); }

.reading-preview-card {
  max-width: 640px;
  margin: 48px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

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

.reading-sign-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.reading-sign-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.reading-sign-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.reading-text {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.8;
  font-style: italic;
}

.reading-text strong {
  color: var(--text);
  font-style: normal;
}

.reading-cta {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #0D1B2A;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s;
}

.reading-cta:hover {
  transform: translateY(-1px);
  background: var(--gold-soft);
  color: #0D1B2A;
}

/* ── Pricing ──────────────────────────────────────────────── */
#pricing {
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,108,0.06) 0%, transparent 70%);
}

#pricing h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

#pricing .sub-text {
  color: var(--text-sec);
  font-size: 17px;
  margin-bottom: 48px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
  gap: 24px;
  justify-content: center;
  margin-bottom: 36px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: left;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.pricing-card.featured {
  border-color: rgba(201,168,108,0.5);
  box-shadow: 0 0 0 1px rgba(201,168,108,0.2);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #0D1B2A;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 4px;
}

.pricing-price span { font-size: 18px; font-weight: 400; color: var(--text-sec); }

.pricing-period {
  font-size: 13px;
  color: var(--text-tert);
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-sec);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing-features li::before {
  content: '✦';
  color: var(--gold);
  font-size: 10px;
  margin-top: 4px;
  flex-shrink: 0;
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 100px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}

.pricing-btn.primary {
  background: var(--gold);
  color: #0D1B2A;
}
.pricing-btn.primary:hover { background: var(--gold-soft); transform: translateY(-1px); color: #0D1B2A; }

.pricing-btn.outline {
  border: 1px solid var(--border);
  color: var(--text-sec);
}
.pricing-btn.outline:hover { border-color: var(--gold); color: var(--gold); }

.pricing-note {
  font-size: 13px;
  color: var(--text-tert);
}

/* ── Section headings (shared) ────────────────────────────── */
.section-heading {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-sec);
  max-width: 560px;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--surface2);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.footer-logo { height: 32px; }

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

.footer-links a {
  font-size: 14px;
  color: var(--text-sec);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 13px;
  color: var(--text-tert);
}

/* ── Inner pages (privacy, tos) ───────────────────────────── */
.inner-hero {
  padding: 140px 0 64px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 64px;
}

.inner-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.inner-hero p {
  color: var(--text-sec);
  font-size: 16px;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: var(--section-pad);
}

.prose h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 48px 0 12px;
  color: var(--gold-soft);
}

.prose h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text);
}

.prose p, .prose li {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.8;
  margin-bottom: 14px;
}

.prose ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.prose a { color: var(--gold); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .dual-sky-inner { grid-template-columns: 1fr; }
  .phones-wrap { gap: 16px; }
  .phone-mockup { width: 160px; }
  .pricing-grid { grid-template-columns: 1fr; }
}
