:root {
  --bg-primary: #060911;
  --bg-secondary: #0B101D;
  --bg-card: rgba(16, 24, 40, 0.7);
  --bg-card-hover: rgba(22, 33, 56, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(30, 107, 255, 0.4);
  
  /* Brand colors from mobile app */
  --brand-blue: #1E6BFF;
  --brand-blue-hover: #1557db;
  --brand-blue-glow: rgba(30, 107, 255, 0.45);
  --brand-cyan: #00D2FF;
  --brand-cyan-glow: rgba(0, 210, 255, 0.35);
  --brand-green: #10B981;
  --brand-amber: #F59E0B;
  --brand-red: #EF4444;
  
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Ambient glow background effects */
.ambient-glow-1 {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 550px;
  background: radial-gradient(circle, rgba(30, 107, 255, 0.22) 0%, rgba(0, 210, 255, 0.08) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-2 {
  position: absolute;
  top: 1400px;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 107, 255, 0.15) 0%, rgba(0, 210, 255, 0.05) 50%, transparent 75%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-3 {
  position: absolute;
  top: 2800px;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.12) 0%, rgba(30, 107, 255, 0.06) 50%, transparent 75%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

/* Glassmorphic card styling */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px -10px rgba(30, 107, 255, 0.25);
}

/* Brand Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1E6BFF 0%, #1052D9 100%);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px var(--brand-blue-glow);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30, 107, 255, 0.6);
  background: linear-gradient(135deg, #2a75ff 0%, #155beb 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Glowing Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(30, 107, 255, 0.12);
  border: 1px solid rgba(30, 107, 255, 0.35);
  color: #60A5FA;
}

.badge-pill.cyan {
  background: rgba(0, 210, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.35);
  color: #38BDF8;
}

/* Hero Scanner Animation */
@keyframes laserSweep {
  0% {
    top: 5%;
    opacity: 0.2;
  }
  50% {
    top: 90%;
    opacity: 0.9;
  }
  100% {
    top: 5%;
    opacity: 0.2;
  }
}

.laser-scanner-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #00D2FF 50%, transparent 100%);
  box-shadow: 0 0 15px #00D2FF, 0 0 30px #1E6BFF;
  animation: laserSweep 3.5s ease-in-out infinite;
  z-index: 10;
  pointer-events: none;
}

/* Pulsing Spine Animation */
@keyframes spinePulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(30, 107, 255, 0.9));
  }
}

.glowing-spine {
  animation: spinePulse 3s infinite ease-in-out;
}

/* Reticle brackets for scanning */
.reticle-bracket {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: #38BDF8;
  border-style: solid;
  pointer-events: none;
}
.reticle-tl {
  top: 16px;
  left: 16px;
  border-width: 3px 0 0 3px;
  border-top-left-radius: 8px;
}
.reticle-tr {
  top: 16px;
  right: 16px;
  border-width: 3px 3px 0 0;
  border-top-right-radius: 8px;
}
.reticle-bl {
  bottom: 16px;
  left: 16px;
  border-width: 0 0 3px 3px;
  border-bottom-left-radius: 8px;
}
.reticle-br {
  bottom: 16px;
  right: 16px;
  border-width: 0 3px 3px 0;
  border-bottom-right-radius: 8px;
}

/* Floating HUD telemetry badges */
.hud-chip {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  animation: floatSlow 4s ease-in-out infinite alternate;
}

@keyframes floatSlow {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.hud-chip.chip-2 {
  animation-delay: -2s;
}

/* High Fidelity Phone Mockup */
.iphone-frame {
  width: 330px;
  height: 670px;
  background: #03060B;
  border-radius: 48px;
  padding: 10px;
  box-shadow: 
    0 0 0 4px #1E293B,
    0 0 0 8px #0F172A,
    0 30px 80px -15px rgba(30, 107, 255, 0.35),
    0 20px 40px -10px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background: #090D16;
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.iphone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  background: #000000;
  border-radius: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

.island-camera {
  width: 10px;
  height: 10px;
  background: #0F172A;
  border: 2px solid #1E293B;
  border-radius: 50%;
}

/* Phone bottom home indicator */
.iphone-home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  z-index: 40;
}

/* Score Dial Gauge */
.score-circle-svg {
  transform: rotate(-90deg);
}

.score-circle-bg {
  stroke: rgba(255, 255, 255, 0.08);
}

.score-circle-progress {
  stroke-dasharray: 283;
  stroke-dashoffset: 85;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-in-out;
}

/* Slider Comparison Container */
.comparison-container {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: #0A0F1D;
  user-select: none;
}

.comparison-image-before,
.comparison-image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-image-after {
  overflow: hidden;
  width: 50%;
  border-right: 2px solid #00D2FF;
  box-shadow: 2px 0 20px rgba(0, 210, 255, 0.4);
}

.comparison-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1E6BFF;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 20px rgba(30, 107, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  z-index: 30;
}

/* Interactive Tabs */
.tab-btn {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.tab-btn.active {
  color: #FFFFFF;
  background: #1E6BFF;
  border-color: #3B82F6;
  box-shadow: 0 4px 15px rgba(30, 107, 255, 0.4);
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #060911;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Mobile responsive adjustments */
@media (max-width: 1024px) {
  .ambient-glow-1 {
    width: 100%;
    height: 350px;
  }
}

@media (max-width: 768px) {
  .iphone-frame {
    width: 290px;
    height: 590px;
  }
  .hud-chip {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
}
