/* ==========================================================================
   Cyber Cosmos Solutions - Minimal Modern 3D Coming Soon Page Styles
   ========================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  /* Blue & Cosmos Palette */
  --bg-deep: #030712;
  --bg-navy: #050d21;
  --bg-surface: rgba(8, 20, 48, 0.55);
  --bg-surface-hover: rgba(14, 34, 82, 0.7);
  --border-subtle: rgba(59, 130, 246, 0.18);
  --border-glow: rgba(56, 189, 248, 0.45);
  
  --primary-blue: #3b82f6;
  --primary-glow: #2563eb;
  --electric-cyan: #38bdf8;
  --cyan-bright: #00f2fe;
  --neon-blue: #60a5fa;
  --dark-accent: #0f172a;
  
  /* Text */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-highlight: #e0f2fe;

  /* Glassmorphism */
  --glass-bg: rgba(6, 16, 40, 0.6);
  --glass-border: 1px solid rgba(56, 189, 248, 0.2);
  --glass-blur: blur(20px);
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(37, 99, 235, 0.15);
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Background 3D Canvas */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: auto;
  cursor: grab;
}

#webgl-canvas:active {
  cursor: grabbing;
}

/* Interactive Confetti Canvas */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  pointer-events: none;
}

/* Ambient Background Glows */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-blob-1 {
  position: absolute;
  top: -15%;
  left: 20%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(3, 7, 18, 0) 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.ambient-blob-2 {
  position: absolute;
  bottom: 5%;
  right: 15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, rgba(3, 7, 18, 0) 70%);
  border-radius: 50%;
  filter: blur(70px);
  animation: floatOrb 14s ease-in-out infinite alternate-reverse;
}

.ambient-blob-3 {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(3, 7, 18, 0) 75%);
  border-radius: 50%;
  filter: blur(90px);
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* Page Layout */
.app-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.2rem 2.5rem;
  pointer-events: none;
}

/* Enable pointer events on interactive UI elements */
.brand-logo,
.header-status,
.waitlist-section,
.waitlist-form,
.btn-submit,
.waitlist-input,
.site-footer,
.footer-links a,
.canvas-hint {
  pointer-events: auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-symbol {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(6, 182, 212, 0.15));
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.brand-logo:hover .logo-symbol {
  transform: rotate(10deg) scale(1.05);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
}

.logo-symbol svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--cyan-bright);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.7));
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, var(--electric-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-accent {
  color: var(--cyan-bright);
  -webkit-text-fill-color: var(--cyan-bright);
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

.brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon-blue);
  font-weight: 600;
}

/* Header Status Pill */
.header-status {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  font-size: 0.85rem;
  color: var(--text-highlight);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 12px var(--cyan-bright);
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan-bright);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ==========================================================================
   Hero Section (Clean, Minimal, Centered)
   ========================================================================== */
main.hero-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 0;
}

.hero-content {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.18), rgba(6, 182, 212, 0.18));
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--electric-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.8rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.hero-badge .sparkle {
  color: var(--cyan-bright);
  animation: spinSlow 6s linear infinite;
}

/* Main Heading */
.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.6rem, 5.8vw, 4.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 15%, #93c5fd 50%, #38bdf8 85%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 35px rgba(56, 189, 248, 0.3));
  display: inline-block;
}

.hero-desc {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* 3D Interaction Tip Pill */
.canvas-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
  background: rgba(15, 23, 42, 0.45);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-top: 1rem;
  border: 1px dashed rgba(59, 130, 246, 0.2);
  transition: var(--transition-smooth);
}

.canvas-hint:hover {
  color: var(--text-muted);
  border-color: rgba(56, 189, 248, 0.4);
}

.canvas-hint svg {
  width: 14px;
  height: 14px;
  stroke: var(--neon-blue);
  animation: tiltPulse 2s ease-in-out infinite;
}

/* ==========================================================================
   Email Waitlist Form (Clean & Sleek)
   ========================================================================== */
.waitlist-section {
  width: 100%;
  max-width: 520px;
  margin-bottom: 1.75rem;
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.waitlist-form {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(10, 25, 60, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(37, 99, 235, 0.2);
  backdrop-filter: blur(20px);
  transition: var(--transition-smooth);
}

.waitlist-form:focus-within {
  border-color: var(--cyan-bright);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 35px rgba(0, 242, 254, 0.35);
  background: rgba(14, 34, 82, 0.8);
}

.input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-blue);
  margin-right: 12px;
}

.input-icon svg {
  width: 20px;
  height: 20px;
}

.waitlist-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  padding: 10px 0;
}

.waitlist-input::placeholder {
  color: var(--text-dim);
}

.btn-submit {
  position: relative;
  background: linear-gradient(135deg, #2563eb, #0284c7 60%, #00f2fe 100%);
  color: #ffffff;
  border: none;
  outline: none;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
}

.btn-submit:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.6);
}

.btn-submit:hover::before {
  left: 100%;
}

.btn-submit:active {
  transform: translateY(0) scale(0.98);
}

.btn-submit svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  transition: transform 0.25s ease;
}

.btn-submit:hover svg {
  transform: translateX(3px);
}

/* Notification Feedback Toast */
.form-notification {
  margin-top: 1rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.form-notification.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.form-notification.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* ==========================================================================
   Clean Footer
   ========================================================================== */
footer.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid rgba(59, 130, 246, 0.12);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--cyan-bright);
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatOrb {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(30px) scale(1.08); }
  100% { transform: translateY(-20px) scale(0.95); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes tiltPulse {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(12deg) scale(1.1); }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 640px) {
  .app-container {
    padding: 1.5rem 1.25rem;
  }

  header.site-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
  }

  .waitlist-form {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 12px;
    gap: 12px;
  }

  .waitlist-input {
    width: 100%;
    text-align: center;
    padding: 6px;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }

  footer.site-footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
