/* ─── OMEGA Web Design System ─────────────────────────────────────────────── */
/* Matches the Flutter app's AppTheme: glassmorphism, dark/light dynamic mode  */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── Design Tokens (Dark Mode — default) ─────────────────────────────────── */
:root {
  --primary:        #6C63FF;
  --primary-light:  #8B5CF6;
  --accent:         #22d3ee;
  --accent-glow:    rgba(34, 211, 238, 0.25);
  --pink:           #F472B6;

  /* Backgrounds */
  --bg-base:        #0f172a;
  --bg-surface:     #1e293b;
  --bg-elevated:    #263248;

  /* Text */
  --text-primary:   #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  /* Glass */
  --glass-bg:       rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);
  --glass-border:   rgba(255, 255, 255, 0.08);
  --glass-blur:     16px;

  /* Nav */
  --nav-bg:         rgba(15, 23, 42, 0.88);

  /* Shadows */
  --shadow-cta:     0 10px 30px -10px rgba(108, 99, 255, 0.55);
  --shadow-cta-h:   0 20px 40px -10px rgba(108, 99, 255, 0.7);
  --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.35);

  /* Borders */
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-pill:    50px;
  --border-accent:  3px solid var(--accent);
  --border-gold:    3px solid #f59e0b;
}

/* ─── Light Mode Overrides ─────────────────────────────────────────────────── */
@media (prefers-color-scheme: light) {
  :root {
    --bg-base:        #f0f4ff;
    --bg-surface:     #ffffff;
    --bg-elevated:    #e8eeff;

    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #94a3b8;

    --glass-bg:       rgba(255, 255, 255, 0.65);
    --glass-bg-hover: rgba(255, 255, 255, 0.85);
    --glass-border:   rgba(108, 99, 255, 0.15);

    --nav-bg:         rgba(240, 244, 255, 0.92);
    --shadow-card:    0 4px 24px rgba(108, 99, 255, 0.1);
  }
}

/* ─── Base Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-secondary);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ───────────────────────────────────────────────────────────── */
h1 {
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
  line-height: 1.1;
}

h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-left: 0.875rem;
  border-left: var(--border-accent);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p { margin-bottom: 1rem; }

ul { margin: 0.75rem 0 1rem 1.25rem; }
ul li { margin-bottom: 0.5rem; }

strong { color: var(--text-primary); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* ─── Sticky Navigation Bar ────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 2rem;
  background: var(--nav-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s ease;
}

.nav .brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 2px;
  text-decoration: none;
}
.nav .brand:hover { text-decoration: none; color: var(--accent); }

.nav .sep { color: var(--text-muted); }

.nav .nav-page {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.2s;
}
.nav .nav-page:hover { color: var(--text-primary); text-decoration: none; }

/* Language switcher in nav */
.lang-switcher {
  margin-left: auto;
  position: relative;
}

.lang-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s, color 0.2s;
}
.lang-btn:hover { background: var(--glass-bg-hover); color: var(--text-primary); }

.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  min-width: 160px;
  z-index: 200;
}
.lang-switcher:focus-within .lang-dropdown,
.lang-dropdown.open { display: block; }

.lang-option {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-option:hover, .lang-option.active {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

/* ─── Hero Section ─────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(ellipse at 30% 30%, rgba(108, 99, 255, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 70%, rgba(34, 211, 238, 0.08) 0%, transparent 60%),
              var(--bg-base);
  position: relative;
  padding: 2rem 1.5rem 4rem;
}

/* Noise texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* Floating glow orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  animation: orb-float 14s infinite ease-in-out;
  pointer-events: none;
}
.orb-1 {
  width: 400px; height: 400px;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  top: 5%; left: 10%;
  opacity: 0.22;
}
.orb-2 {
  width: 300px; height: 300px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  bottom: 10%; right: 8%;
  opacity: 0.18;
  animation-delay: -6s;
}
.orb-3 {
  width: 200px; height: 200px;
  background: linear-gradient(135deg, var(--pink), var(--primary-light));
  top: 60%; left: 5%;
  opacity: 0.12;
  animation-delay: -3s;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 680px;
}

/* Omega icon */
.omega-icon {
  width: 100px; height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 3.2rem;
  font-weight: 700;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12), rgba(108, 99, 255, 0.08));
  border: 2px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 50px var(--accent-glow), inset 0 0 30px rgba(34, 211, 238, 0.05);
  color: var(--text-primary);
  animation: icon-glow 4s infinite ease-in-out;
}

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  margin-top: 1.25rem;
  line-height: 1.8;
}

/* ─── CTA Button ───────────────────────────────────────────────────────────── */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-cta);
  letter-spacing: 0.4px;
}
.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-cta-h);
  text-decoration: none;
  color: #fff;
}
.cta-button:active { transform: translateY(-1px); }

/* ─── Feature Chips ────────────────────────────────────────────────────────── */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2.5rem;
}

.chip {
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
  border-color: rgba(108, 99, 255, 0.3);
}

/* ─── Stat Cards ───────────────────────────────────────────────────────────── */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
}
.stat-card:hover { background: var(--glass-bg-hover); transform: translateY(-2px); }

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ─── Hero Footer Links ─────────────────────────────────────────────────────── */
.hero-footer {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.82rem;
}
.hero-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-footer a:hover { color: var(--accent); text-decoration: none; }

/* ─── Legal Document Layout ────────────────────────────────────────────────── */
.content {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.doc-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.callout {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.callout-warn {
  border-left: var(--border-gold);
}

/* ─── Page Footer (Legal pages) ────────────────────────────────────────────── */
.page-footer {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
}
.page-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.page-footer a:hover { color: var(--accent); text-decoration: none; }

/* ─── Keyframe Animations ──────────────────────────────────────────────────── */
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.04); }
  66% { transform: translate(-15px, 15px) scale(0.98); }
}

@keyframes icon-glow {
  0%, 100% { box-shadow: 0 0 50px var(--accent-glow), inset 0 0 30px rgba(34, 211, 238, 0.05); }
  50% { box-shadow: 0 0 80px rgba(34, 211, 238, 0.4), inset 0 0 40px rgba(34, 211, 238, 0.1); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fade-up 0.7s ease both;
}
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.35s; }
.fade-up-delay-4 { animation-delay: 0.5s; }

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 1.5rem 1rem 3rem; }
  .nav { padding: 0.75rem 1rem; }
  .content { padding: 2rem 1.25rem 3rem; }
  .doc-title { font-size: 1.6rem; }
  .stat-card { padding: 1rem 1.25rem; }
  .orb-1 { width: 250px; height: 250px; }
  .orb-2 { width: 180px; height: 180px; }
}
