/* AstroSynthetix — Techno-Mysticism Design System (Cosmic OS) */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-void: #07070a;
  --surface-ink: #151a21;
  --plasma-teal: #00f5d4;
  --holo-lilac: #b9a7ff;
  --ion-gold: #ffd66b;
  --ember-glow: #ff6a3d;
  --font-ancient: 'Cormorant Garamond', serif;
  --font-tech: 'JetBrains Mono', monospace;
  --glass-blur: 25px;
  --glass-border: rgba(185, 167, 255, 0.2);
  --text-primary: #e8eef4;
  --text-muted: #8b95a3;
  --radius-card: 24px;
  --radius-btn: 12px;
}

* { box-sizing: border-box; }

/* Kinetic cosmic background (starfield + subtle nebula) */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 120% 80% at 50% 20%, rgba(185, 167, 255, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse 80% 120% at 80% 80%, rgba(0, 245, 212, 0.05) 0%, transparent 45%),
              var(--bg-void);
}
.cosmic-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 80px 120px, rgba(0,245,212,0.3), transparent),
    radial-gradient(1px 1px at 160px 80px, rgba(255,255,255,0.35), transparent),
    radial-gradient(1.5px 1.5px at 240px 200px, rgba(185,167,255,0.25), transparent),
    radial-gradient(1px 1px at 320px 50px, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 400px 180px, rgba(0,245,212,0.2), transparent),
    radial-gradient(1px 1px at 90px 250px, rgba(255,255,255,0.25), transparent),
    radial-gradient(1.5px 1.5px at 300px 100px, rgba(185,167,255,0.2), transparent);
  background-size: 420px 280px;
  animation: starfield 90s linear infinite;
  opacity: 0.9;
}
@keyframes starfield {
  from { transform: translate(0, 0); }
  to { transform: translate(-420px, -280px); }
}

body {
  font-family: var(--font-tech);
  font-size: 15px;
  background: var(--bg-void);
  color: var(--text-primary);
  margin: 0;
  min-height: 100vh;
  line-height: 1.6;
}
body.has-cosmic-bg { position: relative; }
body.has-cosmic-bg .cosmic-bg { display: block; }

/* Glassmorphism 2.0 — Cosmic OS */
.glass, .chart-card, .card, header, .cookie-notice, .authority-badge, .card-glass {
  background: rgba(21, 26, 33, 0.65);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}
.card-glass, .authority-badge {
  border-radius: var(--radius-card);
  padding: 1rem 1.25rem;
}
.authority-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.authority-badge strong { color: var(--plasma-teal); font-weight: 500; }

/* Typography */
h1, h2, h3, .headline-ancient {
  font-family: var(--font-ancient);
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--text-primary); margin-top: 0; }
h2 { font-size: 1.75rem; color: var(--holo-lilac); }
h3 { font-size: 1.25rem; color: var(--text-primary); }

.data-tech, .degrees, code, .mono {
  font-family: var(--font-tech);
  color: var(--ion-gold);
}

a {
  color: var(--plasma-teal);
  text-decoration: none;
  transition: color 0.2s, box-shadow 0.2s;
}
a:hover { color: var(--holo-lilac); }

/* Layout */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  border-top: none;
}
header a:first-child {
  font-family: var(--font-ancient);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}
header a:first-child:hover { color: var(--plasma-teal); }
.site-logo {
  height: 40px;
  width: auto;
  display: block;
}
.site-logo:hover { opacity: 0.92; }
nav a { margin-left: 1.5rem; font-size: 0.95rem; }

/* Cards */
.chart-card, .card, .feature-card {
  background: rgba(21, 26, 33, 0.7);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--plasma-teal);
  color: var(--bg-void);
  border-radius: var(--radius-btn);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-tech);
  font-weight: 500;
  transition: box-shadow 0.2s, transform 0.15s;
}
.btn:hover {
  box-shadow: 0 0 24px rgba(0, 245, 212, 0.4);
  transform: translateY(-1px);
}

/* Primary CTA — Plasma Teal glow (OLED luxury) */
.btn-primary, .btn-cta-vibe {
  background: var(--plasma-teal);
  color: var(--bg-void);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.35);
}
.btn-cta-vibe {
  animation: pulse-glow 2.2s ease-in-out infinite;
  font-size: 1.05rem;
  padding: 0.9rem 1.75rem;
}
.btn-cta-vibe:hover {
  animation: none;
  box-shadow: 0 0 32px rgba(0, 245, 212, 0.5);
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 245, 212, 0.35); }
  50% { box-shadow: 0 0 36px rgba(0, 245, 212, 0.55); }
}

.btn-secondary {
  background: transparent;
  color: var(--holo-lilac);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover { border-color: var(--holo-lilac); box-shadow: 0 0 20px rgba(185, 167, 255, 0.25); }
.btn-ember { background: var(--ember-glow); color: #fff; }

/* Features list */
.features-list { list-style: none; padding: 0; margin: 0; }
.features-list li {
  padding: 1rem 1.5rem;
  margin-bottom: 0.75rem;
  background: rgba(21, 26, 33, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  font-family: var(--font-tech);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.features-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--plasma-teal);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--plasma-teal);
  flex-shrink: 0;
}
.features-list .data-highlight { color: var(--ion-gold); font-family: var(--font-tech); }

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0 4rem;
}
.hero h1 { margin-bottom: 0.5rem; }
.hero .tagline {
  font-family: var(--font-ancient);
  font-size: 1.35rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.hero .cta { margin-top: 1.5rem; }
.hero .cta .btn { margin: 0 0.5rem 0.5rem 0; }
.hero .hero-hook { font-size: clamp(1.1rem, 2.5vw, 1.4rem); color: var(--text-primary); max-width: 28em; margin: 0 auto 1.5rem; line-height: 1.5; }
.hero .waitlist-ticker { font-size: 0.9rem; color: var(--text-muted); margin-top: 1.5rem; }
.hero .waitlist-ticker .count { color: var(--plasma-teal); font-weight: 500; }

/* YouTube carousel */
.yt-carousel-wrap { margin: 3rem 0; overflow: hidden; }
.yt-carousel { display: flex; gap: 1rem; overflow-x: auto; padding: 1rem 0; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.yt-carousel::-webkit-scrollbar { height: 6px; }
.yt-carousel::-webkit-scrollbar-track { background: var(--surface-ink); border-radius: 3px; }
.yt-carousel::-webkit-scrollbar-thumb { background: var(--holo-lilac); border-radius: 3px; }
.yt-card { flex: 0 0 280px; scroll-snap-align: start; border-radius: var(--radius-btn); overflow: hidden; background: rgba(21, 26, 33, 0.8); border: 1px solid var(--glass-border); }
.yt-card a { display: block; color: inherit; }
.yt-card a:hover { color: var(--plasma-teal); }
.yt-card img { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; }
.yt-card .yt-label { padding: 0.6rem 0.75rem; font-size: 0.85rem; color: var(--text-muted); }
.yt-channel-cta { text-align: center; margin-top: 1rem; }
.yt-channel-cta a { color: var(--plasma-teal); font-weight: 500; }

/* Sample chart (interactive) */
.sample-chart-wrap { margin: 2.5rem auto; max-width: 320px; }
.sample-chart-svg { width: 100%; height: auto; }
.sample-chart-svg .planet-dot { cursor: pointer; transition: filter 0.2s; }
.sample-chart-svg .planet-dot:hover { filter: drop-shadow(0 0 8px var(--plasma-teal)); }
.chart-tooltip { position: absolute; background: rgba(21, 26, 33, 0.95); border: 1px solid var(--glass-border); border-radius: 12px; padding: 0.75rem 1rem; font-size: 0.85rem; max-width: 260px; pointer-events: none; z-index: 10; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.chart-tooltip strong { color: var(--plasma-teal); }
.soulmap-preview { position: relative; border-radius: var(--radius-card); overflow: hidden; background: var(--surface-ink); min-height: 200px; display: flex; align-items: center; justify-content: center; }
.soulmap-preview .blur-overlay { filter: blur(12px); opacity: 0.7; pointer-events: none; }
.soulmap-preview .preview-label { position: absolute; z-index: 1; color: var(--text-muted); font-size: 0.9rem; text-align: center; padding: 1rem; }
.soulmap-preview .rag-badge { position: absolute; z-index: 1; bottom: 1rem; left: 50%; transform: translateX(-50%); background: rgba(0,245,212,0.15); color: var(--plasma-teal); padding: 0.4rem 0.8rem; border-radius: 8px; font-size: 0.8rem; }

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 3rem;
}
footer a { margin: 0 0.5rem; }

/* Utility */
.error { color: var(--ember-glow); }
.warning { color: var(--ember-glow); }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--glass-border); padding: 0.75rem; text-align: left; }
th { color: var(--holo-lilac); font-family: var(--font-tech); }

/* Forms */
input[type="email"], input[type="password"], input[type="text"],
input[type="date"], input[type="number"], input[type="datetime-local"],
textarea {
  background: rgba(21, 26, 33, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-family: var(--font-tech);
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="email"], input[type="password"], input[type="text"], textarea {
  max-width: 320px;
}
input::placeholder, textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--plasma-teal);
  box-shadow: 0 0 0 2px rgba(0, 245, 212, 0.25);
}
label { display: block; margin-bottom: 0.35rem; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
form p { margin-bottom: 1.25rem; }

/* Vibe form: modern layout */
.vibe-form .form-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin-bottom: 1.25rem; }
.vibe-form .form-group { flex: 1; min-width: 0; }
.vibe-form .form-group--time .time-fields { display: flex; align-items: center; gap: 0.5rem; }
.vibe-form .form-group--time input { width: 4.5rem; max-width: none; text-align: center; }
.vibe-form .form-group--time .time-sep { color: var(--text-muted); font-size: 1.1rem; user-select: none; }
.vibe-form .form-group label { margin-bottom: 0.35rem; }
.vibe-form input[type="date"],
.vibe-form input[type="number"],
.vibe-form input[type="text"] { max-width: none; }
.vibe-form .btn { margin-top: 0.5rem; min-height: 48px; padding: 0.85rem 1.75rem; font-size: 1rem; }

/* Cookie notice */
.cookie-notice {
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  border-bottom: none;
}
