/* VAGUS Launch — global styles (brand azure palette) */
:root {
  --bg-base: #05060B;
  --bg-deep: #02030A;
  --bg-elevated: #0B0F1E;
  --bg-glass: rgba(255, 255, 255, 0.035);
  --border-glass: rgba(108, 140, 255, 0.18);
  --border-soft: rgba(255, 255, 255, 0.06);
  --accent-primary: #6C8CFF;
  --accent-secondary: #00E0FF;
  --accent-tertiary: #FF8B5D;
  --accent-warm: #FFB547;
  --accent-success: #2BD9A4;
  --text-primary: #F5F7FF;
  --text-secondary: #9AA3C7;
  --text-tertiary: #5E6A93;
  --grad-violet: linear-gradient(135deg, #6C8CFF 0%, #3F63E0 100%);
  --grad-electric: linear-gradient(135deg, #6C8CFF 0%, #00E0FF 100%);
  --grad-aurora: linear-gradient(135deg, #6C8CFF 0%, #FF8B5D 50%, #FFB547 100%);
  --shadow-violet: 0 20px 80px -20px rgba(108, 140, 255, 0.45);
  --shadow-deep: 0 40px 120px -30px rgba(0, 0, 0, 0.8);
  --font-display: "Manrope", "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-latin: "Manrope", "IBM Plex Sans", system-ui, sans-serif;
}

/* (Arabic / RTL styles intentionally removed — site is English-only.) */

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

html, body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(108, 140, 255, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(0, 224, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 20% 80%, rgba(255, 139, 93, 0.05) 0%, transparent 60%),
    var(--bg-base);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

img { max-width: 100%; display: block; }

/* Typography */
.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-wrap: balance;
}

.h-section {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 12px var(--accent-secondary);
}

.text-grad-electric {
  background: var(--grad-electric);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-grad-aurora {
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-mono { font-family: var(--font-mono); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }

/* Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  position: relative;
  padding: 140px 0;
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
}

/* Glass surfaces */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
}

.glass-violet {
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.08), rgba(108, 140, 255, 0.02));
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-violet);
  color: white;
  box-shadow: 0 8px 32px rgba(108, 140, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(108, 140, 255, 0.55), inset 0 1px 0 rgba(255,255,255,0.2); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.15); }

/* Animated grid background */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 140, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 140, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  animation: orb-float 18s ease-in-out infinite;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 20px) scale(0.95); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 560ms; }

/* Phone frame */
.phone-frame {
  position: relative;
  width: 320px;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(140deg, #1a1d2e 0%, #0a0c14 60%);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.08),
    0 60px 120px -40px rgba(108, 140, 255, 0.5),
    0 30px 80px -20px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-base);
  border-radius: 32px;
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background: #000;
  border-radius: 999px;
  z-index: 10;
}

/* Marquee */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Pulse */
@keyframes pulse-soft {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(108, 140, 255, 0.4), 0 0 60px rgba(108, 140, 255, 0.2); }
  50% { box-shadow: 0 0 40px rgba(108, 140, 255, 0.6), 0 0 100px rgba(108, 140, 255, 0.35); }
}

/* Spinning ring */
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* Tilt card */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}

/* Scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(108, 140, 255, 0.3); border-radius: 6px; border: 3px solid var(--bg-deep); }
::-webkit-scrollbar-thumb:hover { background: rgba(108, 140, 255, 0.5); }

/* Selection */
::selection { background: rgba(108, 140, 255, 0.4); color: white; }

/* Floating dust particles container */
.dust-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   LEGAL PAGES (privacy.html / terms.html — static, no React)
   ============================================================ */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 11, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.legal-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 17px;
  background: linear-gradient(90deg, #F5F7FF 0%, #9AA3C7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }

.legal {
  max-width: 820px;
  padding-top: 64px;
  padding-bottom: 96px;
}
.legal-head { margin-bottom: 40px; }
.legal-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(34px, 6vw, 56px);
  margin: 14px 0 8px;
}
.legal-head .updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-tertiary);
}

.prose { color: var(--text-secondary); font-size: 16px; line-height: 1.75; }
.prose h2 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}
.prose h3 {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  margin: 22px 0 8px;
}
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.prose strong { color: var(--text-primary); }
.prose a { color: var(--accent-primary); text-decoration: underline; text-underline-offset: 3px; }

.legal-note {
  margin-top: 40px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 181, 71, 0.08);
  border: 1px solid rgba(255, 181, 71, 0.25);
  color: #FFD89B;
  font-size: 13.5px;
  line-height: 1.6;
}

.legal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
}
.legal-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
}
.legal-footer a { color: var(--text-secondary); }
.legal-footer a:hover { color: var(--text-primary); }
