/* ============================================================
   FORGEBURNS.LIFE — MODERN COMING SOON STYLING
   ============================================================ */

:root {
  --bg-primary: #070504;
  --bg-secondary: #0f0a07;
  --card-bg: rgba(20, 14, 10, 0.72);
  --card-border: rgba(255, 115, 36, 0.2);
  --card-glow: rgba(255, 90, 0, 0.12);

  --accent-flame: #ff4d00;
  --accent-amber: #ff8400;
  --accent-gold: #ffbe3b;
  --accent-hot: #fff5ea;

  --text-primary: #f5f0eb;
  --text-secondary: #b3a598;
  --text-muted: #6e6256;

  --font-display: 'Syne', sans-serif;
  --font-main: 'Outfit', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::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-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px 16px;
  background: 
    radial-gradient(circle at 50% 30%, rgba(180, 50, 0, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(120, 30, 0, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(200, 70, 0, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #090605 0%, #050302 100%);
}

/* ============================================================
   CANVAS BACKGROUND (EMBERS)
   ============================================================ */
#emberCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   TOP BAR CONTROLS (LANGUAGE & SOUND)
   ============================================================ */
.top-controls {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(26, 18, 14, 0.75);
  border: 1px solid rgba(255, 120, 40, 0.25);
  border-radius: 9999px;
  padding: 4px 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang-btn {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(255, 150, 0, 0.5);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  margin: 0 2px;
  user-select: none;
}

/* Sound Toggle Button */
.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  background: rgba(26, 18, 14, 0.75);
  border: 1px solid rgba(255, 120, 40, 0.25);
  border-radius: 9999px;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sound-toggle:hover {
  color: var(--accent-gold);
  border-color: rgba(255, 140, 0, 0.6);
  background: rgba(38, 24, 18, 0.85);
  box-shadow: 0 0 20px rgba(255, 90, 0, 0.25);
  transform: translateY(-1px);
}

.sound-toggle.playing {
  color: var(--accent-gold);
  border-color: rgba(255, 160, 20, 0.7);
  box-shadow: 0 0 16px rgba(255, 110, 0, 0.35);
}

.hidden {
  display: none !important;
}

/* ============================================================
   HERO CONTAINER & GLASS CARD
   ============================================================ */
.hero-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 680px;
}

.glass-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  padding: 56px 44px;
  text-align: center;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.7),
    0 0 80px var(--card-glow),
    inset 0 1px 0 rgba(255, 200, 150, 0.15);
  overflow: hidden;
}

/* Subtle glowing accent border on top */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-amber), var(--accent-gold), transparent);
  filter: blur(1px);
}

/* ============================================================
   STATUS BADGE
   ============================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  background: rgba(255, 80, 0, 0.08);
  border: 1px solid rgba(255, 100, 20, 0.28);
  border-radius: 100px;
  margin-bottom: 32px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-amber);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-flame);
  animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 12px var(--accent-amber);
  }
  50% {
    transform: scale(1.35);
    opacity: 0.65;
    box-shadow: 0 0 20px var(--accent-flame);
  }
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

/* ============================================================
   LIVING FLAME & BRAND HERO
   ============================================================ */
.brand-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

/* FLAME ANIMATION */
.flame-wrapper {
  position: relative;
  width: 84px;
  height: 104px;
  margin-bottom: 12px;
}

.flame-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 85, 0, 0.45) 0%, rgba(255, 150, 0, 0.15) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(12px);
  animation: flameGlowPulse 2.8s infinite alternate ease-in-out;
}

@keyframes flameGlowPulse {
  0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.flame-base {
  position: relative;
  width: 100%;
  height: 100%;
  filter: url('#flameDistort');
}

.flame-layer {
  position: absolute;
  bottom: 0;
  left: 50%;
  border-radius: 50% 50% 25% 25% / 60% 60% 35% 35%;
  transform-origin: center bottom;
}

.flame-outer {
  width: 60px;
  height: 84px;
  margin-left: -30px;
  background: linear-gradient(180deg, #ff2200 0%, #ff5e00 60%, rgba(255, 120, 0, 0.8) 100%);
  box-shadow: 0 0 24px #ff3b00;
  animation: flameOuterDance 1.6s infinite ease-in-out alternate;
}

.flame-medium {
  width: 44px;
  height: 64px;
  margin-left: -22px;
  background: linear-gradient(180deg, #ff7b00 0%, #ffa600 70%, #ffc03d 100%);
  box-shadow: 0 0 18px #ff8800;
  animation: flameMedDance 1.2s infinite ease-in-out alternate;
}

.flame-inner {
  width: 28px;
  height: 44px;
  margin-left: -14px;
  background: linear-gradient(180deg, #ffd000 0%, #fff099 80%, #ffffff 100%);
  box-shadow: 0 0 12px #ffc800;
  animation: flameInnerDance 0.9s infinite ease-in-out alternate;
}

.flame-core {
  width: 14px;
  height: 24px;
  margin-left: -7px;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  animation: flameCoreDance 0.6s infinite ease-in-out alternate;
}

@keyframes flameOuterDance {
  0% {
    transform: scale(1) rotate(-2deg);
    border-radius: 50% 50% 25% 25% / 60% 60% 35% 35%;
  }
  50% {
    transform: scale(1.05, 1.08) rotate(3deg) translateY(-2px);
    border-radius: 46% 54% 28% 22% / 62% 58% 38% 32%;
  }
  100% {
    transform: scale(0.96, 1.04) rotate(-3deg);
    border-radius: 54% 46% 22% 28% / 58% 62% 32% 38%;
  }
}

@keyframes flameMedDance {
  0% { transform: scale(0.98) rotate(2deg); }
  50% { transform: scale(1.06, 1.1) rotate(-2deg) translateY(-3px); }
  100% { transform: scale(1.02, 0.96) rotate(1deg); }
}

@keyframes flameInnerDance {
  0% { transform: scale(1) rotate(-1deg); }
  50% { transform: scale(1.08, 1.15) rotate(2deg); }
  100% { transform: scale(0.95, 1.02) rotate(-2deg); }
}

@keyframes flameCoreDance {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.1, 1.25) translateY(-2px); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.85; }
}

/* Rising Sparks from Flame */
.spark {
  position: absolute;
  bottom: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px #ffbe3b;
  opacity: 0;
  pointer-events: none;
}

.spark.s1 {
  width: 4px; height: 4px; left: 45%;
  animation: sparkRise 1.8s infinite 0.2s cubic-bezier(0.2, 0.8, 0.4, 1);
}
.spark.s2 {
  width: 3px; height: 3px; left: 52%;
  animation: sparkRise 2.1s infinite 0.8s cubic-bezier(0.2, 0.8, 0.4, 1);
}
.spark.s3 {
  width: 5px; height: 5px; left: 40%;
  animation: sparkRise 1.6s infinite 1.3s cubic-bezier(0.2, 0.8, 0.4, 1);
}
.spark.s4 {
  width: 3px; height: 3px; left: 58%;
  animation: sparkRise 2.4s infinite 0.5s cubic-bezier(0.2, 0.8, 0.4, 1);
}

@keyframes sparkRise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(calc(sin(1) * 12px), -45px) scale(0.85);
    opacity: 0.8;
  }
  100% {
    transform: translate(calc(sin(2) * 20px), -90px) scale(0.2);
    opacity: 0;
  }
}

/* BRAND TITLE */
.brand-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 4px;
  line-height: 1.05;
  text-transform: lowercase;
}

.brand-forge {
  color: #ece8e3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.brand-burns {
  background: linear-gradient(135deg, #ff5e1a 10%, #ff9500 60%, #ffd000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 90, 0, 0.55));
}

.domain-tag {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 6px;
  text-transform: lowercase;
}

/* ============================================================
   COPYWRITING SECTION
   ============================================================ */
.copy-section {
  margin-bottom: 36px;
}

.main-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.sub-tagline {
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.7;
  word-break: keep-all;
  margin-bottom: 10px;
}

.sub-tagline strong {
  color: var(--accent-gold);
  font-weight: 600;
}

.wait-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
  letter-spacing: -0.01em;
}

/* ============================================================
   INTERACTIVE NOTIFY FORM
   ============================================================ */
.notify-form {
  margin-bottom: 34px;
}

.input-group {
  display: flex;
  align-items: center;
  background: rgba(14, 10, 8, 0.85);
  border: 1px solid rgba(255, 120, 40, 0.25);
  border-radius: 16px;
  padding: 6px 6px 6px 18px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.input-group:focus-within {
  border-color: rgba(255, 140, 0, 0.7);
  box-shadow: 
    0 0 20px rgba(255, 90, 0, 0.25),
    inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
}

.input-group input::placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff5500 0%, #e03800 100%);
  color: #fff;
  border: none;
  outline: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 60, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.action-btn:hover {
  background: linear-gradient(135deg, #ff6a1a 0%, #f04400 100%);
  box-shadow: 0 6px 24px rgba(255, 90, 0, 0.6);
  transform: translateY(-1px);
}

.action-btn:active {
  transform: translateY(1px);
}

.form-feedback {
  min-height: 22px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.form-feedback.success {
  color: var(--accent-gold);
  font-weight: 500;
}

.form-feedback.error {
  color: #ff6b6b;
}

/* ============================================================
   PROGRESS METER (FORGE HEAT)
   ============================================================ */
.progress-container {
  background: rgba(16, 11, 8, 0.5);
  border: 1px solid rgba(255, 100, 20, 0.12);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 28px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.progress-label {
  color: var(--text-muted);
  font-weight: 500;
}

.progress-val {
  color: var(--accent-gold);
  font-family: monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  width: 87%;
  height: 100%;
  background: linear-gradient(90deg, #ff4000, #ff8c00, #ffda47);
  border-radius: 999px;
  position: relative;
  box-shadow: 0 0 12px rgba(255, 120, 0, 0.7);
  animation: heatPulse 2s infinite ease-in-out alternate;
}

@keyframes heatPulse {
  0% { opacity: 0.85; filter: brightness(1); }
  100% { opacity: 1; filter: brightness(1.2); }
}

.progress-status {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  letter-spacing: 0.05em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 640px) {
  .glass-card {
    padding: 38px 22px;
    border-radius: 24px;
  }

  .top-controls {
    top: 14px;
    right: 14px;
    gap: 8px;
  }

  .sound-toggle {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .sound-toggle svg {
    width: 15px;
    height: 15px;
  }

  .lang-switch {
    padding: 3px 8px;
  }

  .lang-btn {
    font-size: 0.75rem;
    padding: 2px 4px;
  }

  .brand-hero {
    margin-bottom: 24px;
  }

  .flame-wrapper {
    width: 68px;
    height: 84px;
  }

  .flame-outer { width: 48px; height: 68px; margin-left: -24px; }
  .flame-medium { width: 34px; height: 50px; margin-left: -17px; }
  .flame-inner { width: 22px; height: 34px; margin-left: -11px; }
  .flame-core { width: 10px; height: 18px; margin-left: -5px; }

  .input-group {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background: rgba(14, 10, 8, 0.95);
  }

  .input-group input {
    width: 100%;
    padding: 8px;
    text-align: center;
  }

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