/* ─────────────────────────────────────────
   PeakOS — Premium CSS
   Deep navy + electric blue + neon green
───────────────────────────────────────── */

/* ── Base ── */
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
::selection { background: rgba(0,163,255,0.2); color: #fff; }

/* ─────────────────────────────────────────
   AMBIENT AURORA BACKGROUND
───────────────────────────────────────── */
.aurora-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  filter: blur(100px);
}
.aurora-1 {
  width: 60vw; height: 50vw;
  background: radial-gradient(circle, rgba(0,163,255,0.09) 0%, transparent 70%);
  top: -18vw; left: -10vw;
  animation: aurora-drift 16s ease-in-out infinite;
}
.aurora-2 {
  width: 50vw; height: 45vw;
  background: radial-gradient(circle, rgba(57,255,20,0.07) 0%, transparent 70%);
  top: -5vw; right: -14vw;
  animation: aurora-drift 20s ease-in-out infinite reverse;
  animation-delay: -8s;
}
.aurora-3 {
  width: 35vw; height: 35vw;
  background: radial-gradient(circle, rgba(0,163,255,0.05) 0%, transparent 70%);
  bottom: -5vw; left: 35%;
  animation: aurora-drift 24s ease-in-out infinite;
  animation-delay: -4s;
}
@keyframes aurora-drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  25%  { transform: translate(4vw,-3vw) scale(1.04); }
  50%  { transform: translate(-3vw,5vw) scale(0.96); }
  75%  { transform: translate(3vw,1vw) scale(1.02); }
}

/* ─────────────────────────────────────────
   DOTS GRID
───────────────────────────────────────── */
.dot-grid {
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ─────────────────────────────────────────
   NAVBAR
───────────────────────────────────────── */
#navbar {
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
  background: rgba(2,8,23,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 8px 32px rgba(0,0,0,0.5);
}
#mobile-menu {
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-menu.open { max-height: 360px; opacity: 1; }

/* ─────────────────────────────────────────
   TYPOGRAPHY UTILITIES
───────────────────────────────────────── */
.section-label {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.67rem;
  font-weight: 600;
  color: #00A3FF;
  display: block;
}

/* Blue → green gradient text */
.gradient-text {
  background: linear-gradient(135deg, #00A3FF 0%, #39FF14 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Blue-only gradient text for headings */
.blue-text {
  background: linear-gradient(135deg, #60C8FF 0%, #00A3FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────────────────────────────────
   HEADING ACCENT LINE
───────────────────────────────────────── */
.heading-line {
  display: inline-block;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, #00A3FF, #39FF14);
  border-radius: 2px;
  margin-bottom: 0.875rem;
}

/* ─────────────────────────────────────────
   GRADIENT DIVIDER
───────────────────────────────────────── */
.gradient-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0,163,255,0.3) 30%,
    rgba(57,255,20,0.2) 65%,
    transparent 100%
  );
}

/* ─────────────────────────────────────────
   PULSING BADGE DOT
───────────────────────────────────────── */
.pulse-dot { position: relative; }
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #00A3FF;
  opacity: 0;
  animation: pulse-ring 2.6s ease-out infinite;
}
@keyframes pulse-ring {
  0%  { transform: scale(0.8); opacity: 0.55; }
  70% { transform: scale(2.4); opacity: 0; }
  100%{ opacity: 0; }
}

/* ─────────────────────────────────────────
   HERO DASHBOARD VISUAL
───────────────────────────────────────── */
.hero-visual {
  background: linear-gradient(150deg, #050D1F 0%, #060F1A 60%, #03070F 100%);
  border: 1px solid rgba(0,163,255,0.18);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(0,163,255,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 15%, rgba(57,255,20,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-float {
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* Mini metric bars inside dashboard */
.metric-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.metric-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* ─────────────────────────────────────────
   GLASSMORPHISM CARDS
───────────────────────────────────────── */
.glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.07);
}

/* ─────────────────────────────────────────
   SYSTEM CARDS — left accent border
───────────────────────────────────────── */
.system-card {
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid rgba(255,255,255,0.06);
}
.system-card::before {
  content: '';
  position: absolute;
  left: 0; top: 12%; bottom: 12%;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #00A3FF, #39FF14);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.system-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,163,255,0.22);
  box-shadow: 0 12px 40px rgba(0,163,255,0.08), 0 4px 16px rgba(0,0,0,0.4);
}
.system-card:hover::before { opacity: 1; }

/* ─────────────────────────────────────────
   GRADIENT BORDER CARDS (on hover)
───────────────────────────────────────── */
.grad-border {
  position: relative;
  isolation: isolate;
}
.grad-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(0,163,255,0.3) 0%,
    rgba(57,255,20,0.15) 50%,
    rgba(255,255,255,0.04) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.grad-border:hover::before { opacity: 1; }

/* ─────────────────────────────────────────
   CARD LIFT HOVER
───────────────────────────────────────── */
.card-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid rgba(255,255,255,0.06);
}
.card-lift:hover {
  transform: translateY(-4px);
  border-color: rgba(0,163,255,0.25);
  box-shadow: 0 12px 40px rgba(0,163,255,0.08), 0 4px 16px rgba(0,0,0,0.4);
}

/* ─────────────────────────────────────────
   SHIMMER SWEEP ON HOVER
───────────────────────────────────────── */
.shimmer-card {
  position: relative;
  overflow: hidden;
}
.shimmer-card::after {
  content: '';
  position: absolute;
  top: -50%; left: -80%;
  width: 50%; height: 200%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  transform: skewX(-15deg);
  pointer-events: none;
}
.shimmer-card:hover::after {
  animation: shimmer-sweep 0.55s ease forwards;
}
@keyframes shimmer-sweep {
  from { left: -80%; }
  to   { left: 130%; }
}

/* ─────────────────────────────────────────
   STAGGER DELAYS
───────────────────────────────────────── */
.stagger-1 { transition-delay: 0.05s !important; }
.stagger-2 { transition-delay: 0.12s !important; }
.stagger-3 { transition-delay: 0.19s !important; }
.stagger-4 { transition-delay: 0.26s !important; }
.stagger-5 { transition-delay: 0.33s !important; }
.stagger-6 { transition-delay: 0.40s !important; }
.stagger-7 { transition-delay: 0.47s !important; }
.stagger-8 { transition-delay: 0.54s !important; }

/* ─────────────────────────────────────────
   FADE-IN ON SCROLL
───────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────
   GLOW UTILITIES
───────────────────────────────────────── */
.blue-glow {
  box-shadow: 0 0 20px rgba(0,163,255,0.45), 0 0 40px rgba(0,163,255,0.15);
}
.neon-glow {
  box-shadow: 0 0 18px rgba(57,255,20,0.45), 0 0 36px rgba(57,255,20,0.15);
}
.text-blue-glow {
  text-shadow: 0 0 16px rgba(0,163,255,0.6), 0 0 32px rgba(0,163,255,0.25);
}

/* ─────────────────────────────────────────
   STATS BAR
───────────────────────────────────────── */
.stat-item { position: relative; }
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,0.07);
}
.stat-number { font-variant-numeric: tabular-nums; }

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn-blue {
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}
.btn-blue:hover {
  box-shadow: 0 0 28px rgba(0,163,255,0.5), 0 4px 16px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}
.btn-blue:active { transform: translateY(0); }

.btn-neon {
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}
.btn-neon:hover {
  box-shadow: 0 0 28px rgba(57,255,20,0.45), 0 4px 16px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}
.btn-neon:active { transform: translateY(0); }

.btn-ghost {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-ghost:hover {
  background-color: rgba(0,163,255,0.08);
  border-color: rgba(0,163,255,0.4);
  color: #60C8FF;
}

/* Pulsing glow on hero CTA */
@keyframes cta-pulse-blue {
  0%, 100% { box-shadow: 0 0 20px rgba(0,163,255,0.4), 0 0 40px rgba(0,163,255,0.1); }
  50%       { box-shadow: 0 0 32px rgba(0,163,255,0.65), 0 0 64px rgba(0,163,255,0.2); }
}
.btn-pulse { animation: cta-pulse-blue 3.5s ease-in-out infinite; }

/* ─────────────────────────────────────────
   INPUTS — email fields
───────────────────────────────────────── */
.email-input-field {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.email-input-field:focus {
  outline: none;
  border-color: rgba(0,163,255,0.5);
  box-shadow: 0 0 0 3px rgba(0,163,255,0.12), 0 0 20px rgba(0,163,255,0.06);
}
.email-input-field.error {
  border-color: rgba(239,68,68,0.6);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

/* ─────────────────────────────────────────
   SUCCESS MESSAGES
───────────────────────────────────────── */
.success-msg {
  animation: success-enter 0.45s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes success-enter {
  from { opacity: 0; transform: scale(0.9) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─────────────────────────────────────────
   ICON WRAPPERS — glow on parent hover
───────────────────────────────────────── */
.icon-wrap {
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.system-card:hover .icon-wrap,
.card-lift:hover .icon-wrap {
  background-color: rgba(0,163,255,0.12);
  box-shadow: 0 0 14px rgba(0,163,255,0.25);
}

/* ─────────────────────────────────────────
   TOOL CARD NUMBER
───────────────────────────────────────── */
.tool-num {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.15);
  transition: color 0.2s ease;
}
.shimmer-card:hover .tool-num { color: rgba(0,163,255,0.5); }

/* ─────────────────────────────────────────
   FREE GUIDE SECTION BG
───────────────────────────────────────── */
.guide-section-bg {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,163,255,0.07) 0%, transparent 65%),
    #020817;
}

/* ─────────────────────────────────────────
   NEWSLETTER SECTION BG
───────────────────────────────────────── */
.newsletter-bg {
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(57,255,20,0.05) 0%, transparent 65%),
    linear-gradient(180deg, #020817 0%, #030C1A 100%);
}

/* ─────────────────────────────────────────
   GUIDE BULLET LIST
───────────────────────────────────────── */
.guide-bullet {
  transition: transform 0.2s ease, color 0.2s ease;
}
.guide-bullet:hover { transform: translateX(4px); color: #e2e8f0; }

/* ─────────────────────────────────────────
   PEAKOS WORDMARK
───────────────────────────────────────── */
.peakos-wordmark {
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-stretch: normal;
  /* Ensure crisp sub-pixel rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Logo P mark — neon variant (for use on dark sections) */
.peakos-logo-neon path { stroke: #39FF14; }

/* Hover: subtle brightness lift on the full logo */
.peakos-logo:hover svg path {
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.4));
  transition: filter 0.2s ease;
}

/* ─────────────────────────────────────────
   SCROLL INDICATOR ANIMATION
───────────────────────────────────────── */
@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%       { transform: translateY(6px); opacity: 1; }
}
.scroll-hint { animation: scroll-hint 2s ease-in-out infinite; }
