/* ==========================================================================
   OGINBOX V2 - Glass UI, Radiant Glows & Ambient Design System
   ========================================================================== */

:root {
  color-scheme: dark;
  --v2-bg: #09070f;
  --v2-bg-2: #0f0b17;
  --v2-surface: #13101c;
  --v2-surface-2: #181322;
  --v2-surface-3: #1d1728;
  --v2-card: rgba(18, 14, 27, 0.72);
  --v2-card-strong: rgba(20, 16, 29, 0.88);
  --v2-line: rgba(205, 184, 255, 0.12);
  --v2-line-strong: rgba(205, 184, 255, 0.22);
  --v2-white: #f7f4ff;
  --v2-text: #ddd6ec;
  --v2-muted: #9b91af;
  --v2-dim: #726a83;
  --v2-purple: #a97df5;
  --v2-purple-2: #c9adff;
  --v2-purple-3: #7b53da;
  --v2-glow: rgba(168, 120, 246, 0.28);
  --v2-glow-soft: rgba(168, 120, 246, 0.11);
  --v2-mint: #82d9c3;
  --v2-amber: #e7c48e;
  --v2-shadow: 0 24px 85px rgba(0, 0, 0, 0.4);
  --v2-font: 'Outfit', 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background-color: var(--v2-bg);
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(143, 86, 225, 0.18), transparent 35%),
    linear-gradient(180deg, #09070f 0%, #09070f 34%, #0a0711 100%);
  color: var(--v2-text);
  font-family: var(--v2-font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar - Unified Ultra-Thin Glass */
* {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(169, 125, 245, 0.4) rgba(9, 7, 15, 0.6) !important;
}

::-webkit-scrollbar {
  width: 5px !important;
  height: 5px !important;
}

::-webkit-scrollbar-track {
  background: rgba(9, 7, 15, 0.6) !important;
}

::-webkit-scrollbar-thumb {
  background: rgba(169, 125, 245, 0.35) !important;
  border-radius: 9999px !important;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 173, 255, 0.75) !important;
}

::-webkit-scrollbar-corner {
  background: transparent !important;
}

/* Glass Surfaces */
.glass-panel {
  background: linear-gradient(140deg, rgba(35, 27, 48, 0.65), rgba(17, 13, 26, 0.82) 50%, rgba(18, 14, 28, 0.84));
  border: 1px solid var(--v2-line);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.glass-card {
  background: linear-gradient(180deg, rgba(18, 14, 27, 0.74), rgba(14, 11, 22, 0.92));
  border: 1px solid var(--v2-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: var(--v2-line-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(120, 70, 220, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Floating Pill Navigation */
.nav-pill {
  border: 1px solid rgba(227, 210, 255, 0.2);
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(41, 33, 56, 0.72), rgba(21, 17, 31, 0.78) 65%, rgba(31, 24, 44, 0.7));
  backdrop-filter: blur(32px) saturate(142%);
  -webkit-backdrop-filter: blur(32px) saturate(142%);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Gradient Texts */
.gradient-heading {
  background: linear-gradient(180deg, #ffffff 0%, #d5beff 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-purple {
  background: linear-gradient(98deg, #d4b7ff 5%, #9360f5 97%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #caadff, #9b6ef2 58%, #7b4bde 100%);
  color: #130b21;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px rgba(123, 75, 222, 0.25);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(123, 75, 222, 0.35);
  filter: brightness(1.05);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(210, 190, 255, 0.16);
  color: #f0e8ff;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(210, 190, 255, 0.3);
  transform: translateY(-1px);
  color: #fff;
}

/* Radiant Center Beam Effect */
.signal-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.signal-center {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(174, 126, 255, 0.32) 0%, rgba(174, 126, 255, 0.12) 28%, rgba(174, 126, 255, 0.05) 44%, transparent 70%);
  filter: blur(6px);
  animation: centerPulse 4.4s ease-in-out infinite;
}

.signal-core {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d2bcff;
  box-shadow: 0 0 0 10px rgba(169, 125, 245, 0.08), 0 0 36px rgba(169, 125, 245, 0.62);
  animation: coreBlink 3s ease-in-out infinite;
}

/* Ray Network */
.ray-map {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 1400px;
  max-width: none;
  height: 500px;
  transform: translate(-50%, -50%);
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(177, 135, 248, 0.18));
}

.ray-base {
  stroke: url(#ray-purple);
  stroke-width: 1.1;
  opacity: 0.65;
  fill: none;
}

.ray-trace {
  stroke: #e4d4ff;
  stroke-width: 1.45;
  stroke-dasharray: 18 1450;
  stroke-dashoffset: 1470;
  opacity: 0.74;
  fill: none;
  animation: rayTravel 7.5s linear infinite;
}

.ray-trace:nth-of-type(4n) {
  animation-delay: -1.1s;
}

.ray-trace:nth-of-type(4n+2) {
  animation-delay: -3.3s;
}

/* Brand Mark & Glow */
.brand-mark-glow {
  background: linear-gradient(135deg, #cfb0ff 0%, #a171f5 40%, #7148d3 100%);
  box-shadow: 0 10px 30px rgba(136, 79, 226, 0.35);
}

/* Chips & Badges */
.v2-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(205, 184, 255, 0.12);
  font-size: 11px;
  color: #b7aecc;
  transition: all 0.2s ease;
}

.v2-chip:hover {
  border-color: rgba(205, 184, 255, 0.32);
  color: #f0e8ff;
  background: rgba(169, 125, 245, 0.08);
}

/* Keyframe Animations */
@keyframes centerPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

@keyframes coreBlink {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 10px rgba(169, 125, 245, 0.08), 0 0 36px rgba(169, 125, 245, 0.62); }
  50% { transform: translate(-50%, -50%) scale(1.15); box-shadow: 0 0 0 18px rgba(169, 125, 245, 0.04), 0 0 44px rgba(169, 125, 245, 0.75); }
}

@keyframes rayTravel {
  to { stroke-dashoffset: 0; }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Custom Scrollbar - Unified Ultra-Thin Glass */
* {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(169, 125, 245, 0.4) rgba(9, 7, 15, 0.6) !important;
}

::-webkit-scrollbar {
  width: 5px !important;
  height: 5px !important;
}

::-webkit-scrollbar-track {
  background: rgba(9, 7, 15, 0.6) !important;
}

::-webkit-scrollbar-thumb {
  background: rgba(169, 125, 245, 0.35) !important;
  border-radius: 9999px !important;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 173, 255, 0.75) !important;
}

::-webkit-scrollbar-corner {
  background: transparent !important;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 5px !important;
  height: 5px !important;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(9, 7, 15, 0.6) !important;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(169, 125, 245, 0.35) !important;
  border-radius: 9999px !important;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 173, 255, 0.75) !important;
}

/* ==========================================================================
   Unified Topbar Header & Footer Styles (Exact Home Page Match)
   ========================================================================== */
.landing-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  height: 106px;
  position: sticky;
  top: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  z-index: 50;
  pointer-events: none;
}
.topbar .landing-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
  position: relative;
  height: 100%;
  pointer-events: none;
}
.topbar .landing-container > * {
  pointer-events: auto;
}
.topbar .brand {
  justify-self: start;
  white-space: nowrap;
  font-weight: 750;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #f7f4ff;
  text-decoration: none;
}
.topbar .brand img {
  height: 36px;
  width: auto;
  max-height: 36px;
  object-fit: contain;
}
.topbar .nav {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: 3px;
  padding: 7px;
  border: 1px solid rgba(227, 210, 255, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(41, 33, 56, 0.68), rgba(21, 17, 31, 0.73) 65%, rgba(31, 24, 44, 0.66));
  backdrop-filter: blur(32px) saturate(142%);
  -webkit-backdrop-filter: blur(32px) saturate(142%);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(255, 255, 255, 0.018);
  position: relative;
}
.topbar .nav::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.035);
  pointer-events: none;
}
.topbar .nav a {
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 540;
  color: #d5cce6;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.topbar .nav a:hover,
.topbar .nav a:focus-visible {
  background: rgba(187, 148, 255, 0.12);
  color: #fff;
}
.topbar .nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}
.ghost-btn,
.secondary-btn,
.primary-btn {
  border-radius: 12px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.topbar .ghost-btn {
  border-radius: 999px;
  background: transparent;
  color: #d9cfee;
  padding: 10px 14px;
  font-size: 12px;
}
.topbar .ghost-btn:hover {
  color: #fff;
}
.topbar .nav-actions .secondary-btn {
  border-radius: 999px;
  padding: 11px 19px;
  background: linear-gradient(145deg, rgba(182, 147, 248, 0.19), rgba(99, 64, 156, 0.2));
  border-color: rgba(216, 192, 255, 0.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  color: #f0e8ff;
  font-size: 12px;
}
.topbar .nav-actions .secondary-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.menu-toggle,
.mobile-menu {
  display: none;
}

@media (max-width: 1100px) {
  .topbar .landing-container { column-gap: 12px; }
  .topbar .nav a { padding: 10px 11px; font-size: 11px; }
  .topbar .brand { font-size: 18px; }
}

@media (max-width: 860px) {
  .topbar { height: 86px; }
  .topbar .landing-container {
    display: flex;
    justify-content: space-between;
    height: 65px;
    margin-top: 10px;
    padding: 0 13px 0 16px;
    border: 1px solid rgba(226, 207, 255, 0.2);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(34, 26, 47, 0.74), rgba(17, 13, 26, 0.8));
    backdrop-filter: blur(28px) saturate(130%);
    -webkit-backdrop-filter: blur(28px) saturate(130%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    pointer-events: auto;
  }
  .topbar .nav { display: none !important; }
  .topbar .nav-actions .secondary-btn { display: none !important; }
  .menu-toggle {
    display: grid !important;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(216, 192, 255, 0.17);
    border-radius: 13px;
    background: rgba(169, 125, 245, 0.09);
    color: #ebe2ff;
    cursor: pointer;
  }
  .menu-toggle span { font-size: 22px; }
  .mobile-menu:not([hidden]) {
    display: grid !important;
    gap: 5px;
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    padding: 10px;
    border: 1px solid rgba(226, 207, 255, 0.18);
    border-radius: 20px;
    background: rgba(23, 17, 34, 0.96);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
    z-index: 100;
  }
  .mobile-menu a {
    padding: 10px 13px;
    border-radius: 12px;
    color: #e3d9f6;
    font-size: 13px;
    text-decoration: none;
  }
  .mobile-menu a:hover {
    background: rgba(180, 140, 250, 0.1);
    color: #fff;
  }
}

@media (max-width: 600px) {
  .topbar { height: 82px; }
  .topbar .landing-container { width: calc(100% - 24px); border-radius: 19px; }
}

/* Footer (Exact Home Page Match) */
.footer {
  padding: 22px 0 28px;
  color: #7e748f;
  font-size: 11px;
  position: relative;
  z-index: 10;
}
.footer .landing-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 22px;
}
.footer .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.footer .brand img {
  height: 28px;
  width: auto;
  max-height: 28px;
  object-fit: contain;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links a {
  color: #7e748f;
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-links a:hover {
  color: #e8d9ff;
}
.footer-legal {
  margin-top: 20px;
  color: #95899f;
}
.footer-legal span {
  color: #95899f;
}
@media (max-width: 760px) {
  .footer .landing-container {
    justify-content: center;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
    gap: 14px;
  }
}

/* ==========================================================================
   Global Fast Racing Envelope Preloader Component
   ========================================================================== */
#og-preloader {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  background-color: #090811 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  will-change: opacity, visibility;
}

#og-preloader.og-preloader-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#og-preloader-bar-wrap {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 3px !important;
  background-color: rgba(204, 191, 255, 0.08) !important;
  z-index: 2147483647 !important;
  overflow: hidden !important;
}

#og-preloader-bar {
  height: 100% !important;
  width: 20%;
  background: linear-gradient(90deg, #7547e9 0%, #a478ff 50%, #c7adff 100%) !important;
  box-shadow: 0 0 16px rgba(164, 120, 255, 0.85) !important;
  transition: width 0.3s ease-out !important;
}

.og-loader-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 1.5rem !important;
  position: relative !important;
  z-index: 2 !important;
}

.og-envelope-track {
  position: relative !important;
  width: 180px !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.og-speed-lines {
  position: absolute !important;
  top: 50% !important;
  left: -10px !important;
  width: 120px !important;
  height: 40px !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.og-speed-lines .line {
  position: absolute !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent, rgba(164, 120, 255, 0.85), transparent) !important;
  border-radius: 2px !important;
  animation: ogSpeedLine 0.6s linear infinite !important;
}

.og-speed-lines .line-1 { top: 6px !important; width: 60px !important; animation-delay: 0s !important; }
.og-speed-lines .line-2 { top: 20px !important; width: 90px !important; animation-delay: 0.15s !important; }
.og-speed-lines .line-3 { top: 32px !important; width: 70px !important; animation-delay: 0.3s !important; }

@keyframes ogSpeedLine {
  0% { transform: translateX(100px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateX(-80px); opacity: 0; }
}

.og-racing-envelope {
  position: relative !important;
  animation: ogRacingEnvelope 1.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate !important;
  transform-origin: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.og-envelope-glow {
  position: absolute !important;
  inset: -14px !important;
  background: radial-gradient(circle, rgba(164, 120, 255, 0.45) 0%, rgba(117, 71, 233, 0.15) 45%, transparent 70%) !important;
  filter: blur(14px) !important;
  border-radius: 50% !important;
  animation: ogGlowPulse 1.2s ease-in-out infinite alternate !important;
  pointer-events: none !important;
}

.og-envelope-icon {
  position: relative !important;
  z-index: 2 !important;
  background: linear-gradient(145deg, #171325, #0f0c19) !important;
  padding: 10px 14px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(164, 120, 255, 0.3) !important;
  box-shadow: 0 12px 36px rgba(117, 71, 233, 0.35), inset 0 0 14px rgba(164, 120, 255, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.og-thrust-flame {
  position: absolute !important;
  left: -14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 20px !important;
  height: 6px !important;
  background: linear-gradient(90deg, transparent, #7547e9, #c7adff) !important;
  border-radius: 50% !important;
  filter: blur(2px) !important;
  animation: ogThrust 0.2s linear infinite alternate !important;
}

@keyframes ogRacingEnvelope {
  0% {
    transform: translateX(-18px) translateY(0px) rotate(-3deg) skewX(-6deg);
  }
  50% {
    transform: translateX(6px) translateY(-4px) rotate(1deg) skewX(-2deg);
  }
  100% {
    transform: translateX(22px) translateY(1px) rotate(4deg) skewX(-8deg);
  }
}

@keyframes ogGlowPulse {
  0% { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.18); }
}

@keyframes ogThrust {
  0% { width: 14px; opacity: 0.6; }
  100% { width: 26px; opacity: 1; }
}

.og-loader-brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 5px !important;
}

.og-brand-text {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.22em !important;
  background: linear-gradient(90deg, #FFFFFF 0%, #e2d4ff 50%, #a478ff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
}

.og-loader-status {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  color: #9590a9 !important;
  letter-spacing: 0.08em !important;
  animation: ogStatusPulse 1s ease-in-out infinite alternate !important;
  line-height: 1.2 !important;
}

@keyframes ogStatusPulse {
  0% { opacity: 0.45; }
  100% { opacity: 1; }
}


