/* =========================================================================
   AR NAVIGATION SPECIFIC STYLES
   Futuristic Tech Design System
   Theme Colors: #0F1115 (Base), #D20001 (Muted Red), #2A2A2A (Grey)
   ========================================================================= */

:root {
  --ar-bg: #0F1115;
  --ar-bg-dark: #0a0b0e;
  --ar-red: #D20001;
  --ar-red-dark: #5A0000;
  --ar-grey: #2A2A2A;
  --ar-grey-light: #505050;
  --ar-white: #FFFFFF;
  --ar-text-muted: rgba(255, 255, 255, 0.65);
  
  --ar-glass-bg: rgba(255, 255, 255, 0.02);
  --ar-glass-border: rgba(255, 255, 255, 0.05);
  --ar-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

html { overflow-x: hidden; max-width: 100%; }
body.ar-theme {
  background: var(--ar-bg);
  color: var(--ar-white);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.text-center { text-align: center; }
.text-red { color: var(--ar-red); }
.text-muted { color: var(--ar-text-muted); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mb-1 { margin-bottom: 1rem; }
.rounded { border-radius: 12px; }
.opacity-80 { opacity: 0.8; }
.opacity-70 { opacity: 0.7; }
.grayscale { filter: grayscale(100%) contrast(1.2); }

/* Custom Cursor */
.cursor-glow { display: none; }
@media (min-width: 900px) {
  .cursor-glow {
    display: block; position: fixed; top: 0; left: 0;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(210,0,1,0.12) 0%, rgba(42,42,42,0.1) 40%, rgba(0,0,0,0) 70%);
    border-radius: 50%; pointer-events: none;
    transform: translate(-50%, -50%); z-index: 9999;
    mix-blend-mode: screen;
  }
}

/* Scroll Progress */
.ar-progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--ar-red-dark), var(--ar-red));
  width: 0%; z-index: 10000;
  box-shadow: 0 0 10px rgba(210,0,1,0.5);
}

/* Nav */
.ar-navbar {
  position: fixed; top: 0; width: 100%; padding: 1.5rem 5%; z-index: 1000; transition: all 0.3s ease; border-bottom: 1px solid transparent;
}
.ar-navbar.scrolled {
  background: rgba(15, 17, 21, 0.8); backdrop-filter: blur(15px); border-bottom: 1px solid var(--ar-glass-border); padding: 1rem 5%;
}
.ar-back-link {
  color: var(--ar-white); text-decoration: none; font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 400; display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.3s;
}
.ar-back-link:hover { color: var(--ar-red); }

/* Layout Grid */
.container { width: 90%; max-width: 1000px; margin: 0 auto; }
.ar-section { padding: 6rem 0; position: relative; }
.ar-grid-2 { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.ar-grid-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.ar-grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
@media (min-width: 900px) {
  .ar-grid-2 { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .ar-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .align-center { align-items: center; }
  .ar-section { padding: 8rem 0; }
}

/* Typography */
.ar-section-title { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1rem; font-weight: 400; }
.ar-minor-title { font-size: 1.3rem; margin-bottom: 0.8rem; font-weight: 400; color: #fff;}
.ar-para { font-size: 1.05rem; color: var(--ar-text-muted); line-height: 1.7; margin-bottom: 1.2rem; }
.ar-lead-text { font-size: clamp(1.1rem, 2.5vw, 1.5rem); line-height: 1.6; color: var(--ar-text-muted); font-weight: 300;}

/* Cards */
.ar-glass-card, .ar-insight-box, .ar-persona-card {
  background: var(--ar-glass-bg); border: 1px solid var(--ar-glass-border); padding: 2rem; border-radius: 12px; backdrop-filter: blur(10px); transition: transform 0.4s ease, border-color 0.4s ease;
  box-shadow: var(--ar-card-shadow);
}
.ar-glass-card:hover, .ar-insight-box:hover {
  transform: translateY(-4px); border-color: rgba(210,0,1,0.3);
}

/* Lists */
.ar-list { list-style: none; padding-left: 0; }
.ar-list li { position: relative; padding-left: 1.2rem; margin-bottom: 0.8rem; color: var(--ar-text-muted); font-size: 0.95rem; line-height: 1.5; }
.ar-list li::before { content: '■'; position: absolute; left: 0; top: 2px; color: var(--ar-red); font-size: 0.6rem; }

/* 1. Hero Section */
.ar-hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 80px; }
.ar-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--ar-bg-dark); }
.ar-grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(var(--ar-glass-border) 1px, transparent 1px), linear-gradient(90deg, var(--ar-glass-border) 1px, transparent 1px); background-size: 50px 50px; opacity: 0.3; transform: perspective(500px) rotateX(60deg) scale(2); transform-origin: top; animation: gridMove 20s linear infinite; }
@keyframes gridMove { 0% { background-position: 0 0; } 100% { background-position: 0 50px; } }
.ar-glow-blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.15; }
.top-right { width: 50vw; height: 50vw; background: var(--ar-red); top: -20%; right: -20%; }
.bottom-left { width: 40vw; height: 40vw; background: var(--ar-grey-light); bottom: -10%; left: -10%; }

/* Reticles */
.ar-target-reticle { position: absolute; width: 100px; height: 100px; border: 1px solid rgba(210,0,1,0.2); pointer-events: none; animation: reticlePulse 4s infinite alternate; }
.ar-target-reticle::before, .ar-target-reticle::after { content:''; position: absolute; }
.reticle-1 { top: 20%; left: 20%; border-radius: 50%; }
.reticle-1::before { width: 4px; height: 4px; background: var(--ar-red); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.reticle-2 { bottom: 30%; right: 15%; border: none; border-top: 2px solid rgba(210,0,1,0.3); border-left: 2px solid rgba(210,0,1,0.3); width: 40px; height: 40px; animation-delay: 1s;}
@keyframes reticlePulse { 0% { transform: scale(0.9); opacity: 0.3; } 100% { transform: scale(1.1); opacity: 0.8; } }

.ar-hero-inner { position: relative; z-index: 1; }
.ar-hero-subtitle { color: var(--ar-grey-light); font-family: monospace; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 2rem; font-size: 0.9rem;}
.ar-hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; margin-bottom: 1.5rem; text-transform: uppercase; font-weight: 600; letter-spacing: -1px; }
.ar-hero-lead { color: var(--ar-red); font-size: 1.2rem; font-weight: 300; }

.ar-scroll-indicator { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); text-align: center; color: var(--ar-grey-light); font-family: monospace; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; }
.mouse { width: 1px; height: 40px; background: var(--ar-glass-border); margin: 0 auto 10px; position: relative; overflow: hidden; }
.mouse::after { content: ''; position: absolute; width: 100%; height: 50%; background: var(--ar-red); top: 0; left: 0; animation: scanLine 2s infinite; }
@keyframes scanLine { 0% { top: -50%; } 100% { top: 100%; } }

/* 2. Overview */
.ar-image-block { position: relative; }
.ar-img { width: 100%; height: auto; display: block; filter: contrast(1.1) saturate(0.8); }
.ar-floating-card { position: absolute; bottom: 1.5rem; right: -1.5rem; background: rgba(15,17,21,0.9); border: 1px solid var(--ar-grey); padding: 0.8rem 1.5rem; border-radius: 30px; font-family: monospace; font-size: 0.8rem; display: flex; align-items: center; gap: 0.5rem; backdrop-filter: blur(5px);}
.ar-dot-indicator.pulse { width: 8px; height: 8px; background: var(--ar-red); border-radius: 50%; box-shadow: 0 0 10px var(--ar-red); animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
@media (max-width: 899px) { .ar-floating-card { right: 1rem; } }

/* 3. Problem */
.ar-highlight-box { border-left: 2px solid var(--ar-red); padding-left: 2rem; }

/* 4. Badges */
.ar-flex-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.ar-badge { padding: 0.6rem 1.5rem; border: 1px solid var(--ar-grey); background: var(--ar-glass-bg); border-radius: 30px; font-size: 0.9rem; color: var(--ar-text-muted); }

/* 5. Process */
.ar-process-flow { display: flex; justify-content: space-between; position: relative; overflow-x: auto; padding-bottom: 2rem; max-width: 800px; margin: 2rem auto 0; }
.ar-process-line { position: absolute; top: 10px; left: 0; width: 100%; height: 1px; background: var(--ar-grey); z-index: 0; }
.ar-process-line-fill { width: 0%; height: 100%; background: var(--ar-red); box-shadow: 0 0 10px var(--ar-red); }
.ar-process-step { position: relative; z-index: 1; text-align: center; min-width: 100px; }
.ar-step-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--ar-bg); border: 2px solid var(--ar-grey); margin: 0 auto 1rem; transition: all 0.4s; }
.ar-process-step.active .ar-step-dot { border-color: var(--ar-red); background: var(--ar-red); box-shadow: 0 0 15px rgba(210,0,1,0.4); }
.ar-process-step h4 { color: var(--ar-white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.2rem;}
.ar-process-step span { color: var(--ar-text-muted); font-size: 0.75rem; font-family: monospace; }

/* 7. Insights */
.insight-icon { font-size: 2rem; margin-bottom: 1rem; filter: grayscale(1); opacity: 0.7;}

/* 8. Persona */
.persona-header { display: flex; align-items: center; gap: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ar-glass-border); margin-bottom: 1.5rem; }
.persona-avatar { width: 60px; height: 60px; background: var(--ar-grey); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; font-family: 'Outfit'; font-weight: 500; color: var(--ar-text-muted); }
.persona-title h3 { margin-bottom: 0.2rem; }
.persona-title span { font-size: 0.85rem; color: var(--ar-text-muted); font-family: monospace; }

/* 10. Steps Flow */
.ar-steps-container { display: flex; flex-direction: column; max-width: 600px; margin: 0 auto; gap: 1.5rem; }
.ar-step-item { display: flex; gap: 1.5rem; align-items: center; background: var(--ar-glass-bg); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--ar-glass-border); }
.step-num { font-size: 2rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--ar-grey-light); font-family: monospace; }
.step-content h4 { color: var(--ar-red); margin-bottom: 0.3rem; }
.step-content p { color: var(--ar-text-muted); font-size: 0.9rem; margin: 0; }
.ar-step-conn { width: 2px; height: 20px; background: var(--ar-glass-border); margin: 0 auto; }

/* 12. UI Screens */
.ar-screen-mockup { position: relative; }
.mockup-frame { background: #000; border: 4px solid var(--ar-grey); border-radius: 30px; height: 450px; overflow: hidden; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.8); }
.ar-camera-bg { position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1541829070764-84a7d30dd3f3?q=80&w=400&auto=format&fit=crop') center/cover; filter: contrast(1.2); }
.ar-camera-bg.blur { filter: contrast(1.2) blur(3px); }
.ar-camera-bg.dark { filter: contrast(1.2) brightness(0.4); }

.ar-hud-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; font-family: monospace; }
.hud-top { background: rgba(0,0,0,0.5); backdrop-filter: blur(5px); padding: 0.5rem 1rem; border-radius: 20px; color: #aaa; font-size: 0.8rem; border: 1px solid rgba(255,255,255,0.1); width: max-content;}
.hud-bottom { background: rgba(0,0,0,0.8); padding: 1rem; border-radius: 16px; border: 1px solid var(--ar-glass-border); }
.hud-bottom.glass { background: rgba(210,0,1,0.15); border-color: rgba(210,0,1,0.3); backdrop-filter: blur(10px); color: var(--ar-white); text-align: center; font-size: 1.1rem; }
.hud-bottom strong { display: block; font-size: 1.1rem; color: #fff; font-family: 'Outfit'; }
.hud-bottom span { color: var(--ar-red); font-size: 0.8rem; }

.hud-center { flex: 1; display: flex; justify-content: center; align-items: center; position: relative;}
.ar-path-line { width: 8px; height: 150px; background: linear-gradient(to top, rgba(210,0,1,0.8), transparent); transform: perspective(200px) rotateX(45deg); filter: drop-shadow(0 0 10px var(--ar-red)); }
.hud-center-marker { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.marker-pin { width: 1.5rem; height: 1.5rem; background: var(--ar-red); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 0 15px var(--ar-red); }
.marker-label { background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.75rem; border: 1px solid var(--ar-red); color: white; white-space: nowrap;}
.arrival-icon { font-size: 3rem; color: var(--ar-red); font-family: sans-serif; text-shadow: 0 0 20px var(--ar-red); }

/* 13. Diagram */
.ar-flow-diagram { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; font-family: monospace; font-size: 0.85rem;}
.flow-pill { border: 1px solid var(--ar-grey-light); padding: 0.8rem 2rem; border-radius: 30px; background: rgba(0,0,0,0.5); }
.flow-pill.red { border-color: var(--ar-red); background: rgba(210,0,1,0.1); color: var(--ar-white); box-shadow: 0 0 15px rgba(210,0,1,0.2); }
.flow-arr { color: var(--ar-grey-light); font-size: 1.2rem; }

/* Footer */
.ar-footer { margin-top: 4rem; padding: 3rem 0; border-top: 1px solid var(--ar-glass-border); color: var(--ar-grey-light); font-size: 0.8rem; font-family: monospace; }

/* GSAP Init states */
.fade-up { opacity: 0; transform: translateY(30px); }
