/* ==========================================================================
   ORYVO — Design System & Stylesheet
   Website: oryvo.co.in
   Aesthetic: Deep Space Blueprint / Futuristic Minimalism / High-Craft Glow
   ========================================================================== */

/* --- Custom Properties / Design Tokens --- */
:root {
  --bg-primary: #080a11;
  --bg-surface: rgba(13, 18, 30, 0.75);
  --bg-surface-elevated: rgba(18, 26, 44, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.6);
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #526078;
  --text-dim: #334155;

  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-blue-dark: #2563eb;
  --accent-blue-light: #60a5fa;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(96, 165, 250, 0.6);
  --border-card: rgba(255, 255, 255, 0.12);

  --glow-blue: rgba(59, 130, 246, 0.45);
  --glow-cyan: rgba(56, 189, 248, 0.55);

  --font-display: 'Plus Jakarta Sans', 'Inter Display', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Mono', SFMono-Regular, monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Global Reset & Box Sizing --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  selection-background-color: var(--accent-blue);
  selection-color: #ffffff;
}

::selection {
  background: rgba(59, 130, 246, 0.35);
  color: #ffffff;
}

/* --- Canvas Background Layer --- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Subtle Vignette Overlay */
.vignette-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 40%, rgba(5, 7, 12, 0.7) 100%);
}

/* --- Layout Wrapper --- */
.page-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem 2rem;
}

/* --- Top Header / Navigation --- */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Header Left: Audio & Controls */
.header-left, .header-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.header-left {
  justify-content: flex-start;
  gap: 0.75rem;
}

.header-right {
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Header Center: Official Brand Logo */
.header-center {
  flex: 2;
  display: flex;
  justify-content: center;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.25s var(--ease-out-expo), opacity 0.25s ease;
  user-select: none;
}

.brand-badge:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

.logo-symbol {
  width: 28px;
  height: 28px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
}

.logo-symbol svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
}

/* Audio Toggle Button */
.icon-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.icon-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-surface-elevated);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Domain / Status Pill */
.domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  text-decoration: none;
}

.domain-pill:hover {
  color: #ffffff;
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(18, 26, 44, 0.9);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.status-indicator {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGreen 2.5s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.domain-copy-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.domain-pill:hover .domain-copy-hint {
  color: var(--accent-cyan);
}

/* --- Hero Center Section --- */
.hero-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 3rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

/* Ambient Backlight Halo */
.ambient-hero-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(750px, 90vw);
  height: min(350px, 45vh);
  background: radial-gradient(
    ellipse at center,
    rgba(37, 99, 235, 0.18) 0%,
    rgba(56, 189, 248, 0.08) 45%,
    transparent 75%
  );
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

/* Massive Hero Typography */
.hero-title-container {
  perspective: 1000px;
  position: relative;
  user-select: none;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.8rem, 16vw, 11.5rem);
  line-height: 0.95;
  letter-spacing: 0.025em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  display: inline-block;
  text-shadow: 
    0 0 35px rgba(255, 255, 255, 0.15),
    0 0 70px rgba(59, 130, 246, 0.35),
    0 0 120px rgba(37, 99, 235, 0.2);
  transition: transform 0.15s cubic-bezier(0.2, 0, 0.38, 0.9);
  will-change: transform;
}

/* Tagline */
.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.4vw, 0.88rem);
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1.85rem;
  margin-bottom: 1.4rem;
  animation: breatheSubtle 4s ease-in-out infinite;
}

@keyframes breatheSubtle {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* Glowing Accent Horizon Line */
.glowing-horizon {
  position: relative;
  width: min(160px, 40vw);
  height: 2px;
  margin: 0 auto 2.25rem auto;
  border-radius: 9999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-blue-light) 30%,
    var(--accent-cyan) 50%,
    var(--accent-blue-light) 70%,
    transparent 100%
  );
  box-shadow: 
    0 0 14px 2px var(--glow-cyan),
    0 0 28px 4px var(--glow-blue);
  animation: glowPulse 3s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% {
    opacity: 0.75;
    box-shadow: 0 0 10px 1px var(--glow-cyan), 0 0 20px 2px var(--glow-blue);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 18px 3px var(--glow-cyan), 0 0 35px 5px var(--glow-blue);
  }
}

/* --- Subscription Form & CTA --- */
.waitlist-form-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.waitlist-form {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
}

.input-wrapper {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.email-input {
  width: 100%;
  height: 52px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text-primary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s var(--ease-out-expo);
  outline: none;
}

.email-input::placeholder {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.email-input:focus {
  border-color: var(--border-focus);
  background-color: rgba(18, 26, 44, 0.85);
  box-shadow: 
    0 0 0 3px rgba(59, 130, 246, 0.18),
    0 0 24px rgba(59, 130, 246, 0.2);
}

/* Submit Button */
.submit-btn {
  height: 52px;
  min-width: 125px;
  padding: 0 1.45rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.25s var(--ease-out-expo);
  user-select: none;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
}

.submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
  transform: translateY(-1px);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.submit-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* Spinner inside loading button */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form Status Message */
.form-status {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  min-height: 1.25rem;
  transition: all 0.2s ease;
}

.form-status.error {
  color: #f87171;
}

.form-status.info {
  color: var(--accent-cyan);
}

/* --- VIP Access Confirmed Card --- */
.success-card {
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 35px rgba(56, 189, 248, 0.15);
  animation: scaleIn 0.35s var(--ease-spring);
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.success-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1.2rem;
}

.confirmed-email {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 500;
}

.reset-link-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.reset-link-btn:hover {
  color: var(--text-secondary);
}

/* Hidden utility */
.hidden {
  display: none !important;
}


/* --- Footer Bar --- */
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-left {
  flex: 1;
  text-align: left;
}

.copyright-text {
  cursor: default;
  transition: color 0.2s ease;
  user-select: none;
}

.copyright-text:hover {
  color: var(--text-secondary);
}

.footer-center {
  flex: 1;
  text-align: center;
}

.launch-phase-tag {
  display: inline-block;
  color: var(--accent-cyan);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.footer-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 1.25rem;
}

.social-link {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.social-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.social-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

/* --- Toast Container --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.2);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: all 0.3s var(--ease-spring);
  backdrop-filter: blur(14px);
}

.toast.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* --- Admin Waitlist Modal --- */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.admin-box {
  background: #0d121f;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(59, 130, 246, 0.2);
  overflow: hidden;
}

.admin-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.admin-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.admin-close:hover {
  color: #ffffff;
}

.admin-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.admin-subscriber-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.65rem 0.95rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.admin-idx {
  color: var(--accent-cyan);
  font-weight: bold;
  width: 40px;
}

.admin-email {
  flex: 1;
  color: #ffffff;
  word-break: break-all;
}

.admin-time {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.admin-empty {
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: 2.5rem 1rem;
}

.admin-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-btn {
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
  border: none;
}

.admin-btn-primary:hover {
  background: var(--accent-blue-light);
}

.admin-btn-danger {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.admin-btn-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .page-container {
    padding: 1.25rem 1rem;
  }

  .header-left .icon-btn {
    width: 34px;
    height: 34px;
  }

  .domain-pill {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
  }

  .domain-copy-hint {
    display: none;
  }

  .hero-tagline {
    letter-spacing: 0.28em;
  }

  .footer-bar {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-left, .footer-center, .footer-right {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .waitlist-form {
    flex-direction: column;
    gap: 0.75rem;
  }

  .submit-btn {
    width: 100%;
    height: 48px;
  }

  .email-input {
    height: 48px;
  }
}

