/* ArcanaFlow — High-tech mystical theme */
:root {
  --void: #0d0b1e;
  --deep: #0d0b1e;
  --surface: #14112a;
  --card: #1a1830;
  --electric: #1a5eff;
  --electric-glow: rgba(26,94,255,0.4);
  --gold: #d4af37;
  --gold-light: #f0d070;
  --gold-glow: rgba(212,175,55,0.35);
  --arcane: #7c3aed;
  --arcane-glow: rgba(124,58,237,0.4);
  --text: #e8e6f0;
  --muted: #8b8ab0;
  --error: #ff6b6b;
  --success: #4ade80;
  --border: rgba(26,94,255,0.15);
}

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

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.grain {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(26,94,255,0.08) 0%, transparent 60%),
              url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 999;
}

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(13,11,30,0.92);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 0 24px rgba(26,94,255,0.08);
}
.site-header nav { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--electric); text-decoration: none; text-shadow: 0 0 20px var(--electric-glow); }
.logo span { color: var(--gold); text-shadow: 0 0 12px var(--gold-glow); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 0.9rem; transition: color 0.2s, text-shadow 0.2s; }
.nav-links a:hover { color: var(--electric); text-shadow: 0 0 8px var(--electric-glow); }
.nav-cta {
  background: var(--electric); color: #fff !important;
  padding: 0.5rem 1.25rem; border-radius: 8px;
  font-weight: 600; transition: box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 0 16px var(--electric-glow);
}
.nav-cta:hover { box-shadow: 0 0 28px var(--electric-glow); opacity: 0.9; }

/* Main content */
.main-content { padding-top: 80px; }

/* Hero */
.hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(26,94,255,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 50% -20%, rgba(212,175,55,0.06) 0%, transparent 50%),
    var(--void);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://pub-629428d185ca4960a0a73c850d32294b.r2.dev/generated-images/company_9324/5e2d28d5-36ba-4a7b-ae67-07729f71e26b.jpg') center/cover no-repeat;
  opacity: 0.18;
  mask-image: radial-gradient(ellipse at 50% 80%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 80%, #000 20%, transparent 70%);
}
.hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1rem; line-height: 1.1; }
.hero h1 .gold { color: var(--electric); text-shadow: 0 0 30px var(--electric-glow); }
.hero h1 .violet { color: var(--gold); text-shadow: 0 0 20px var(--gold-glow); }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin: 0 auto 2.5rem; }
.hero .hero-actions { display: flex; gap: 1rem; justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: 10px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none; cursor: pointer;
  border: none; transition: all 0.2s;
}
.btn-primary { background: var(--electric); color: #fff; box-shadow: 0 0 14px var(--electric-glow); }
.btn-primary:hover { box-shadow: 0 0 30px var(--electric-glow), 0 0 60px rgba(26,94,255,0.15); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--electric); border: 1px solid var(--electric); box-shadow: 0 0 10px rgba(26,94,255,0.2); }
.btn-secondary:hover { box-shadow: 0 0 20px var(--electric-glow); background: rgba(26,94,255,0.08); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--electric); color: var(--electric); }

/* Section */
.section { padding: 4rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 700; margin-bottom: 0.75rem; }
.section-header p { color: var(--muted); max-width: 480px; margin: 0 auto; }

/* Cards grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--card); border-radius: 16px;
  border: 1px solid var(--border);
  padding: 2rem; transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
  box-shadow: 0 0 20px rgba(26,94,255,0.05);
}
.card:hover { border-color: rgba(26,94,255,0.4); box-shadow: 0 0 30px rgba(26,94,255,0.15), 0 4px 20px rgba(0,0,0,0.3); transform: translateY(-3px); }
.card .card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.card h3 { font-family: 'Syne', sans-serif; font-size: 1.25rem; margin-bottom: 0.5rem; }
.card .price { font-size: 1.75rem; font-weight: 700; color: var(--gold); margin: 0.5rem 0; }
.card .price span { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.card .card-footer { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.card .duration { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; }
.card .specialties { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.tag { background: rgba(124,58,237,0.15); color: var(--arcane); padding: 0.25rem 0.65rem; border-radius: 20px; font-size: 0.75rem; }

/* Reader cards */
.reader-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.reader-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 1rem; border: 2px solid var(--electric); box-shadow: 0 0 16px var(--electric-glow); }

/* Reading detail */
.reading-hero { padding: 4rem 2rem; text-align: center; }
.reading-hero h1 { font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.reading-hero .price { font-size: 2rem; color: var(--gold); font-weight: 700; margin: 1rem 0; }
.reading-hero .description { color: var(--muted); max-width: 520px; margin: 0 auto 2rem; }

/* Booking form */
.booking-container { max-width: 640px; margin: 0 auto; padding: 2rem; }
.form-section { background: var(--card); border-radius: 16px; padding: 2rem; border: 1px solid var(--border); margin-bottom: 1.5rem; box-shadow: 0 0 16px rgba(26,94,255,0.07); }
.form-section h3 { font-family: 'Syne', sans-serif; margin-bottom: 1.5rem; color: var(--gold); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-size: 0.85rem; color: var(--muted); }
.form-group input, .form-group select {
  width: 100%; padding: 0.75rem 1rem; border-radius: 8px;
  background: var(--surface); border: 1px solid rgba(255,255,255,0.08);
  color: var(--text); font-size: 0.95rem; font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--electric); }
.form-group select option { background: var(--surface); }

.time-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.time-slot {
  padding: 0.5rem; text-align: center; border-radius: 8px;
  background: var(--surface); border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer; font-size: 0.85rem; transition: all 0.15s;
}
.time-slot:hover { border-color: var(--electric); color: var(--electric); }
.time-slot.selected { background: var(--electric); color: white; border-color: var(--electric); box-shadow: 0 0 12px var(--electric-glow); }
.time-slot input { display: none; }

.submit-btn { width: 100%; padding: 1rem; background: var(--electric); color: #fff; font-size: 1rem; font-weight: 700; border: none; border-radius: 10px; cursor: pointer; transition: box-shadow 0.2s, opacity 0.2s; box-shadow: 0 0 16px var(--electric-glow); }
.submit-btn:hover { box-shadow: 0 0 28px var(--electric-glow); opacity: 0.9; }

.booking-summary { background: rgba(26,94,255,0.05); border: 1px solid rgba(26,94,255,0.2); border-radius: 12px; padding: 1.25rem; margin-bottom: 1.5rem; }
.booking-summary h4 { color: var(--gold); margin-bottom: 0.5rem; }
.booking-summary p { font-size: 0.9rem; color: var(--muted); }
.booking-summary .total { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-top: 0.5rem; }

/* Confirmation */
.confirmation-page { max-width: 600px; margin: 0 auto; padding: 4rem 2rem; text-align: center; }
.confirmation-icon { font-size: 4rem; margin-bottom: 1.5rem; }
.confirmation-page h1 { font-family: 'Syne', sans-serif; font-size: 2rem; margin-bottom: 0.75rem; }
.confirmation-page .booking-id { font-size: 0.85rem; color: var(--muted); margin-bottom: 2rem; }
.booking-details { background: var(--card); border-radius: 16px; padding: 2rem; text-align: left; border: 1px solid var(--border); margin-bottom: 2rem; }
.booking-details h3 { color: var(--gold); margin-bottom: 1.25rem; font-family: 'Syne', sans-serif; }
.detail-row { display: flex; justify-content: space-between; padding: 0.65rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }
.detail-row:last-child { border-bottom: none; }
.detail-row .label { color: var(--muted); }
.detail-row .value { font-weight: 600; }

/* 404 */
.not-found { text-align: center; padding: 8rem 2rem; }
.not-found h1 { font-size: 4rem; color: var(--gold); margin-bottom: 1rem; }

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

/* Page title bar */
.page-hero { padding: 4rem 2rem 2rem; text-align: center; }
.page-hero h1 { font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 800; }
.page-hero p { color: var(--muted); margin-top: 0.75rem; }

/* Back link */
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); text-decoration: none; font-size: 0.9rem; margin-bottom: 2rem; transition: color 0.2s; }
.back-link:hover { color: var(--electric); }

/* Responsive */
@media (max-width: 600px) {
  .hero { padding: 3rem 1.5rem 2rem; }
  .hero-actions { flex-direction: column; }
  .cards-grid { grid-template-columns: 1fr; }
  .time-slots { grid-template-columns: repeat(3, 1fr); }
}
