/* Modern Glassmorphic Dark Design System for Ruleare */
:root {
  --bg-primary: #07090e;
  --bg-card: rgba(16, 20, 31, 0.72);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.25);
  --cyan-glow: #00f0ff;
  --purple-glow: #b026ff;
  --pink-glow: #ff007a;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-sans: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Ambient glow background */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  top: -100px;
  left: 10%;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
  bottom: -150px;
  right: 5%;
  animation-duration: 22s;
  animation-delay: -5s;
}

.glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--pink-glow) 0%, transparent 70%);
  top: 40%;
  left: 60%;
  animation-duration: 25s;
  animation-delay: -10s;
  opacity: 0.2;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Header */
header {
  position: relative;
  z-index: 10;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.6));
}

.brand-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-parent {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--cyan-glow);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid var(--border-card);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite;
}

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

/* Main Container */
main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.hero-card {
  max-width: 760px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8),
              0 0 40px -15px rgba(0, 240, 255, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
}

.hero-logo-large {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(0, 240, 255, 0.7));
  animation: logoHover 4s ease-in-out infinite alternate;
}

@keyframes logoHover {
  0% { transform: translateY(0); filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.5)); }
  100% { transform: translateY(-8px); filter: drop-shadow(0 0 32px rgba(176, 38, 255, 0.75)); }
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--cyan-glow);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

h1 .gradient-text {
  background: linear-gradient(135deg, #00f0ff 0%, #b026ff 50%, #ff007a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

/* Countdown Grid */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.countdown-box:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.3);
}

.countdown-value {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 0.35rem;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.countdown-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 600;
}

/* Sub-brand highlight */
.subbrand-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 240, 255, 0.04) 100%);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 18px;
  padding: 1.4rem 1.8rem;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
}

.subbrand-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.subbrand-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(176, 38, 255, 0.15);
  border: 1px solid rgba(176, 38, 255, 0.3);
  color: #d8b4fe;
}

.subbrand-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.subbrand-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #00f0ff 0%, #0088ff 100%);
  color: #050b14;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.3);
}

.subbrand-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 240, 255, 0.5);
  filter: brightness(1.1);
}

/* Notify / Contact Box */
.notify-form {
  display: flex;
  gap: 0.6rem;
  max-width: 440px;
  margin: 0 auto;
}

.notify-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.8rem 1.1rem;
  font-size: 0.9rem;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notify-input:focus {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

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

.notify-btn {
  background: #ffffff;
  color: #07090e;
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notify-btn:hover {
  background: var(--cyan-glow);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.feedback-msg {
  font-size: 0.82rem;
  margin-top: 0.6rem;
  display: none;
}

.feedback-msg.success {
  display: block;
  color: #34d399;
}

.feedback-msg.error {
  display: block;
  color: #f87171;
}

/* Footer */
footer {
  position: relative;
  z-index: 10;
  padding: 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--cyan-glow);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .hero-card {
    padding: 2.5rem 1.5rem;
  }
  .countdown-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
  .countdown-value {
    font-size: 1.5rem;
  }
  .subbrand-card {
    flex-direction: column;
    text-align: center;
  }
  .subbrand-info h3 {
    justify-content: center;
  }
  .notify-form {
    flex-direction: column;
  }
}
