/* ==========================================================================
   fahdin.id Modern Coming Soon & Interactive Cat Playground Theme
   ========================================================================== */

:root {
  --bg-color: #0c0e12;
  --bg-surface: #14171f;
  --bg-surface-elevated: #1b202c;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.16);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary: #ef4444;
  --primary-hover: #dc2626;
  --primary-glow: rgba(239, 68, 68, 0.25);
  --accent: #38bdf8;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(239, 68, 68, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.04) 0%, transparent 50%);
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 36px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--primary);
  animation: pulseDot 2.5s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.nav-btn {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-btn.active {
  color: #0f172a;
  background: #38bdf8;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.35);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.badge-dev {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-sound {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sound:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-color-hover);
  color: var(--text-main);
}

.btn-sound.active {
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.3);
}

/* ==========================================================================
   Hero & Interactive Canvas Section
   ========================================================================== */
.hero-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 24px 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
  flex: 1;
}

.interactive-container {
  width: 100%;
  height: 280px;
  position: relative;
  margin-bottom: 20px;
}

#bugCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.canvas-hint {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(20, 23, 31, 0.7);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  pointer-events: none;
}

.hero-content {
  max-width: 640px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ==========================================================================
   Waitlist Form
   ========================================================================== */
.waitlist-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-form {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 6px;
  box-shadow: var(--shadow-lg), 0 0 25px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-form:focus-within {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: var(--shadow-lg), 0 0 25px var(--primary-glow);
}

.email-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 20px;
  color: var(--text-main);
  font-size: 0.95rem;
}

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

.submit-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  font-size: 0.85rem;
  margin-top: 12px;
  min-height: 20px;
}

.form-status.success { color: #10b981; }
.form-status.error { color: #f43f5e; }
.form-status.info { color: #38bdf8; }

.waitlist-meta {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.waitlist-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

/* ==========================================================================
   FureverDock Style Desktop Pet Cat Canvas (Transparent & Interactive)
   ========================================================================== */
.cat-companion-canvas {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 60;
}

.cat-companion-controls {
  position: fixed;
  bottom: 14px;
  right: 20px;
  z-index: 70;
  pointer-events: none;
}

.cat-control-pill {
  background: rgba(20, 23, 31, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  pointer-events: auto;
}

.cat-control-pill:hover {
  color: var(--text-main);
  border-color: rgba(56, 189, 248, 0.4);
}

/* Confetti */
.confetti-piece {
  position: fixed;
  top: -10px;
  width: 8px;
  height: 14px;
  z-index: 999;
  border-radius: 2px;
  animation: fallConfetti ease-in forwards;
}

@keyframes fallConfetti {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 768px) {
  .site-nav {
    padding: 16px 20px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .interactive-container {
    height: 240px;
  }
  .waitlist-form {
    flex-direction: column;
    border-radius: var(--radius-lg);
    gap: 8px;
  }
  .submit-btn {
    justify-content: center;
    width: 100%;
  }
  .cat-control-pill {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
}
