/* =========================================================
   42CODE.NET COMMUNITY — COMING SOON (STANDALONE STYLESHEET)
   Obsidian Dark / Glassmorphism / Cyberpunk Ambient Aesthetic
   ========================================================= */

/* --- CSS Variables & Design Tokens --- */
:root {
  --bg-base: #060709;
  --bg-surface-1: #0c0e12;
  --bg-surface-2: #12151b;
  --bg-surface-glass: rgba(13, 16, 22, 0.78);
  --bg-card-hover: rgba(22, 27, 38, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(99, 102, 241, 0.4);

  --primary-accent: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --purple-accent: #a855f7;
  --cyan-accent: #06b6d4;
  --emerald-accent: #10b981;
  --amber-accent: #f59e0b;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-white: #ffffff;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-glow: 0 0 50px rgba(99, 102, 241, 0.25);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Ambient Background & Lights --- */
.ambient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  opacity: 0.8;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  will-change: transform;
}

.glow-orb-1 {
  width: 580px;
  height: 580px;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, rgba(168, 85, 247, 0.2) 60%, transparent 80%);
  animation: floatOrb1 18s ease-in-out infinite alternate;
}

.glow-orb-2 {
  width: 480px;
  height: 480px;
  top: 35%;
  left: 10%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, transparent 70%);
  animation: floatOrb2 22s ease-in-out infinite alternate;
}

.glow-orb-3 {
  width: 520px;
  height: 520px;
  bottom: 10%;
  right: 5%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
  animation: floatOrb3 20s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-45%, 40px) scale(1.08); }
  100% { transform: translate(-55%, -30px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, -40px); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50px, 30px); }
}

/* --- Page Layout Wrapper --- */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Top Navigation --- */
.top-nav {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(6, 7, 9, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 20px;
  background-color: var(--border-medium);
}

.community-tag {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #a5b4fc 0%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-store:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-lang:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border-color: rgba(99, 102, 241, 0.4);
}

/* --- Main Container --- */
.main-container {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  display: flex;
  flex-direction: column;
  gap: 90px;
}

/* --- Hero Section --- */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding-top: 20px;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
  margin-bottom: 24px;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #10b981;
  opacity: 0.75;
  animation: pingRing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingRing {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.badge-text {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #a5b4fc;
  text-transform: uppercase;
}

/* Hero Title */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, #a5b4fc 50%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Hero Description */
.hero-description {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 40px;
}

/* --- Countdown Timer --- */
.countdown-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.countdown-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 16px 14px;
  background: rgba(15, 18, 26, 0.85);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: 
    0 16px 36px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.countdown-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.5);
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text-white);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.countdown-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
}

.countdown-sep {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 18px;
  user-select: none;
}

/* --- Early Access / Notify Box --- */
.notify-box {
  width: 100%;
  max-width: 580px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: rgba(14, 18, 25, 0.75);
  border: 1px solid var(--border-medium);
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(99, 102, 241, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notify-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sparkle-icon {
  font-size: 16px;
}

.notify-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.notify-form {
  display: flex;
  gap: 10px;
  width: 100%;
}

.input-wrap {
  position: relative;
  flex: 1;
}

.mail-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.email-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 46px;
  border-radius: var(--radius-sm);
  background: rgba(5, 7, 10, 0.8);
  border: 1px solid var(--border-medium);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

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

.email-input:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.input-wrap:focus-within .mail-icon {
  color: var(--primary-accent);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
  transition: all 0.2s ease;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.55);
  filter: brightness(1.1);
}

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

.btn-submit.loading {
  opacity: 0.7;
  pointer-events: none;
}

.notify-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.form-feedback {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

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

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

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

/* --- Features Section --- */
.features-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-badge {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary-accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 12px;
}

.section-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  width: 100%;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: rgba(13, 16, 23, 0.7);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  transform: translateY(-6px);
  background: rgba(18, 22, 32, 0.85);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 
    0 24px 48px -12px rgba(0, 0, 0, 0.8),
    0 0 35px rgba(99, 102, 241, 0.15);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover .card-glow {
  opacity: 1;
}

.feature-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.icon-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.icon-blue {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.icon-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.icon-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
}

.feature-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
}

.feature-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.feature-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Discord & Social Hub Banner --- */
.discord-banner {
  width: 100%;
}

.banner-glass {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.14) 0%, rgba(13, 16, 24, 0.8) 60%, rgba(99, 102, 241, 0.1) 100%);
  border: 1px solid rgba(88, 101, 242, 0.3);
  box-shadow: 
    0 24px 60px -15px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(88, 101, 242, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 48px 40px;
  overflow: hidden;
}

.banner-glass::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.discord-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(88, 101, 242, 0.2);
  border: 1px solid rgba(88, 101, 242, 0.4);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #c7d2fe;
  margin-bottom: 16px;
}

.online-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #23a55a;
  box-shadow: 0 0 8px #23a55a;
}

.banner-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.25;
  margin-bottom: 12px;
}

.banner-desc {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.banner-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  background: #5865F2;
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
  transition: all 0.2s ease;
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(88, 101, 242, 0.55);
}

.btn-store-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-store-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.25);
}

/* --- Bottom Footer --- */
.bottom-footer {
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 7, 9, 0.8);
  padding: 32px 0;
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 24px;
  width: auto;
  opacity: 0.8;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer-dot {
  color: var(--border-medium);
  user-select: none;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .top-nav {
    height: 64px;
  }

  .main-container {
    padding: 40px 16px 80px;
    gap: 60px;
  }

  .countdown-wrapper {
    gap: 8px;
  }

  .countdown-card {
    min-width: 70px;
    padding: 12px 10px;
  }

  .countdown-number {
    font-size: 1.8rem;
  }

  .countdown-label {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .countdown-sep {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .notify-box {
    padding: 22px 18px;
  }

  .notify-form {
    flex-direction: column;
  }

  .btn-submit {
    width: 100%;
  }

  .banner-glass {
    padding: 32px 24px;
  }

  .banner-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-discord, .btn-store-ghost {
    width: 100%;
    justify-content: center;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    height: 26px;
  }

  .community-tag {
    font-size: 11px;
  }

  .btn-store span {
    display: none;
  }

  .btn-store {
    padding: 8px 10px;
  }

  .countdown-card {
    min-width: 60px;
    padding: 10px 8px;
  }

  .countdown-number {
    font-size: 1.5rem;
  }
}
