/* ============================================================
   ICE LOGIX: Browser Landing Gate Styles
   Aesthetic Glassmorphism Presentation for External Visitors
   ============================================================ */

#browserLandingGate {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background: #030712;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(6, 182, 212, 0.25), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 120%, rgba(14, 165, 233, 0.15), transparent 70%),
    linear-gradient(180deg, #030712 0%, #080e1e 50%, #030712 100%);
  color: #f8fafc;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;
  z-index: 9999;
}

/* Visibility toggling via class */
body.is-browser-gate #app {
  display: none !important;
}

body.is-browser-gate #iceSplash {
  display: none !important;
}

body.is-browser-gate #browserLandingGate {
  display: flex !important;
}

/* Ambient animated glow background */
.gate-ambient-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  border-radius: 50%;
  animation: gatePulseGlow 6s ease-in-out infinite alternate;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

@keyframes gatePulseGlow {
  0% { transform: translateX(-50%) scale(0.9); opacity: 0.6; }
  100% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

/* Main Glassmorphism Container */
.gate-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: rgba(13, 20, 36, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 28px;
  padding: 36px 28px;
  box-sizing: border-box;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(6, 182, 212, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

/* Logo & Badge */
.gate-logo-wrapper {
  position: relative;
  width: 92px;
  height: 92px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-logo-glow {
  position: absolute;
  inset: -6px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(59, 130, 246, 0.4));
  border-radius: 24px;
  filter: blur(14px);
  opacity: 0.75;
}

.gate-logo-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}

.gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.gate-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee;
  animation: gateDotBlink 2s infinite ease-in-out;
}

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

/* Typography */
.gate-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0 0 8px 0;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gate-subtitle {
  font-size: 14px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0 0 24px 0;
  font-weight: 500;
  padding: 0 8px;
}

/* Features Grid */
.gate-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-bottom: 26px;
}

.gate-feature-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  transition: all 0.2s ease;
}

.gate-feature-item:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.3);
}

.gate-feature-icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* Primary CTA Button (Telegram Launch) */
.gate-cta-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #0284c7 35%, #06b6d4 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  padding: 15px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 12px 28px rgba(2, 132, 199, 0.45),
    0 0 20px rgba(6, 182, 212, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.gate-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 16px 36px rgba(2, 132, 199, 0.55),
    0 0 30px rgba(6, 182, 212, 0.45);
}

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

.gate-tg-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.gate-subtext {
  font-size: 12px;
  color: #64748b;
  margin: 12px 0 0 0;
  font-weight: 500;
}

/* Desktop QR Code Section */
.gate-qr-section {
  display: none;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 640px) {
  .gate-qr-section {
    display: flex;
  }
}

.gate-qr-frame {
  padding: 10px;
  background: #080d1a;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 10px;
}

.gate-qr-img {
  width: 160px;
  height: 160px;
  display: block;
  border-radius: 8px;
}

.gate-qr-caption {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 12px;
}

.gate-desktop-link {
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.gate-desktop-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* Footer & Trust Status */
.gate-footer {
  margin-top: 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.gate-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.gate-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.gate-copyright {
  font-size: 11px;
  color: #64748b;
  margin: 0;
}

.gate-dev-link {
  font-size: 10px;
  color: #475569;
  text-decoration: none;
  margin-top: 8px;
  display: inline-block;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.gate-dev-link:hover {
  opacity: 1;
  color: #94a3b8;
}
