/* ==========================================================================
   Intubase — Minimal Coming Soon Stylesheet
   Ultra-clean design with subtle ambient glow, interactive canvas & progress bar
   ========================================================================== */

:root {
  /* Brand Palette: Emerald, Amber, Coral, Midnight Slate */
  --color-primary: #10b981;
  --color-primary-hover: #059669;
  --color-primary-glow: rgba(16, 185, 129, 0.25);
  --color-accent-amber: #f59e0b;
  --color-accent-coral: #ef4444;

  /* Light Theme (Default) */
  --bg-main: #f8fafc;
  --bg-surface: rgba(255, 255, 255, 0.8);
  --border-subtle: rgba(226, 232, 240, 0.8);
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --progress-track-bg: rgba(15, 23, 42, 0.07);
  --logo-filter: none;
  --grid-color: rgba(15, 23, 42, 0.035);
  --spotlight-color: rgba(16, 185, 129, 0.06);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06);

  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-main: #080c14;
  --bg-surface: rgba(15, 23, 42, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --input-bg: rgba(15, 23, 42, 0.85);
  --input-border: rgba(255, 255, 255, 0.12);
  --progress-track-bg: rgba(255, 255, 255, 0.08);
  --grid-color: rgba(255, 255, 255, 0.025);
  --spotlight-color: rgba(16, 185, 129, 0.09);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);

  --logo-filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.15));
}

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

html,
body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* ==========================================================================
   Background Ambient Animations
   ========================================================================== */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.38;
  will-change: transform, opacity;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

[data-theme="dark"] .glow-orb {
  opacity: 0.28;
  filter: blur(115px);
}

.orb-emerald {
  top: -8%;
  right: 18%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.5) 0%, rgba(16, 185, 129, 0) 70%);
  animation-duration: 22s;
}

.orb-amber {
  bottom: 8%;
  left: 12%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.38) 0%, rgba(245, 158, 11, 0) 70%);
  animation-duration: 26s;
  animation-delay: -6s;
}

.orb-indigo {
  top: 45%;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0) 70%);
  animation-duration: 30s;
  animation-delay: -12s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(35px, 25px) scale(1.06);
  }

  100% {
    transform: translate(-25px, -20px) scale(0.96);
  }
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  background-image: radial-gradient(var(--grid-color) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 85%);
}

#cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle 500px at var(--mouse-x, 50vw) var(--mouse-y, 40vh),
      var(--spotlight-color),
      transparent 70%);
}

/* ==========================================================================
   Page Layout
   ========================================================================== */
.page-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.75rem 2rem;
}

/* Header */
.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 0 2rem;
  width: 100%;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  transition: transform var(--transition-fast);
}

.logo-wrapper:hover {
  transform: translateY(-1px);
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: var(--logo-filter);
  transition: filter var(--transition-smooth);
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
}

.content-card {
  max-width: 620px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.headline {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6.5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #059669 45%, #f59e0b 85%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.subheadline {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 2rem;
}

/* ==========================================================================
   Static Progress Bar (~85%, No Numbers)
   ========================================================================== */
.progress-wrapper {
  width: 100%;
  max-width: 380px;
  margin-bottom: 2.25rem;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: var(--progress-track-bg);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  width: 85%;
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #10b981 0%, #059669 50%, #f59e0b 85%, #f97316 100%);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: progressShimmer 3s ease-in-out infinite;
}

@keyframes progressShimmer {
  0% {
    left: -100%;
  }

  50%,
  100% {
    left: 100%;
  }
}

/* ==========================================================================
   Waitlist / Notify Form
   ========================================================================== */
.waitlist-card {
  width: 100%;
  max-width: 440px;
}

.waitlist-form {
  position: relative;
  width: 100%;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 0.3rem 0.35rem 0.3rem 0.95rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.input-group:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow), var(--shadow-md);
}

.email-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-main);
  padding: 0.55rem 0.2rem;
  min-width: 0;
}

.email-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1.2rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(16, 185, 129, 0.4);
}

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

.btn-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.submit-btn.loading .btn-text {
  display: none;
}

.submit-btn.loading .btn-spinner {
  display: block;
}

.form-feedback {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 500;
  min-height: 1.2rem;
  display: none;
}

.form-feedback.success {
  display: block !important;
  color: #10b981;
}

.form-feedback.error {
  display: block !important;
  color: #ef4444;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0 0.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
  width: 100%;
}

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

  .brand-logo {
    height: 32px;
  }

  [data-theme="dark"] .brand-logo {
    height: 24px;
  }

  .input-group {
    flex-direction: column;
    padding: 0.45rem;
    gap: 0.45rem;
  }

  .email-input {
    width: 100%;
    text-align: center;
  }

  .submit-btn {
    width: 100%;
    padding: 0.65rem;
  }

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