/* ============================================================
   Sovereign Glassmorphism — Trifecta Engine
   Dark obsidian · Frosted glass · Grain texture · Cyan/Emerald
   ============================================================ */

:root {
  --bg-deep: #06090f;
  --bg-surface: rgba(12, 18, 30, 0.65);
  --bg-surface-solid: #0c121e;
  --border-glass: rgba(255, 255, 255, 0.07);
  --border-glass-hover: rgba(255, 255, 255, 0.14);
  --text-primary: #edf2f7;
  --text-secondary: #8b98ab;
  --text-muted: #4f5d73;
  --accent-cyan: #22d3ee;
  --accent-emerald: #34d399;
  --accent-gold: #f59e0b;
  --glass-blur: 16px;
  --glass-border: 1px solid var(--border-glass);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Film Grain Overlay --- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
  mix-blend-mode: overlay;
}

/* --- Ambient background --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 15%, rgba(34, 211, 238, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 75%, rgba(52, 211, 153, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(245, 158, 11, 0.02) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   CONSENT BANNER (Law 25 / PIPEDA)
   ============================================================ */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(6, 9, 15, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-glass);
  padding: 24px;
  transform: translateY(0);
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}

.consent-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.consent-inner {
  max-width: 900px;
  margin: 0 auto;
}

.consent-text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.consent-text p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 4px;
}

.consent-link {
  background: none;
  border: none;
  color: var(--accent-emerald);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

.consent-law25 {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  margin-top: 4px;
}

.consent-law25 a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.consent-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  flex: 1;
  min-width: 240px;
}

.consent-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid var(--text-muted);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  position: relative;
  margin-top: 1px;
  transition: border-color 0.2s, background 0.2s;
}

.consent-checkbox input[type="checkbox"]:checked {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

.consent-checkbox input[type="checkbox"]:checked::after {
  content: '\2713';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bg-deep);
  font-size: 12px;
  font-weight: 700;
}

.consent-btn {
  padding: 10px 28px;
  background: var(--accent-emerald);
  color: var(--bg-deep);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

.consent-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.consent-btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.consent-decline {
  padding: 10px 20px;
  background: none;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.consent-decline:hover {
  color: var(--text-secondary);
  border-color: var(--border-glass-hover);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.35s, padding 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(6, 9, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  border-bottom-color: var(--border-glass);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-diamond {
  font-size: 20px;
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.4));
  transition: filter 0.3s;
}

.nav-logo:hover .logo-diamond {
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.6));
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--text-primary); }

.nav-cta {
  padding: 8px 22px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: rgba(34, 211, 238, 0.18);
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-1px);
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.lang-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.lang-btn:hover {
  color: var(--text-secondary);
}

.lang-btn.active {
  color: var(--accent-cyan);
  border-color: rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.08);
}

.lang-sep {
  color: var(--text-muted);
  font-size: 12px;
  opacity: 0.4;
  user-select: none;
}

.lang-toggle-mobile {
  padding-top: 8px;
  border-top: 1px solid var(--border-glass);
  margin-top: 4px;
}

/* Mobile toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px 32px 24px;
  background: rgba(6, 9, 15, 0.95);
  border-bottom: 1px solid var(--border-glass);
}

.nav-mobile.active { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
  /* Don't clip hero text (italic / gradient glyphs); clip orbs only */
  overflow-x: hidden;
}

.hero-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, transparent 70%);
  bottom: -5%;
  right: -5%;
  animation-delay: -7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  top: 40%;
  right: 20%;
  animation-delay: -14s;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.15);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
  animation: fadeUp 0.8s var(--ease-out) both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-line {
  display: block;
  animation: fadeUp 0.8s var(--ease-out) both;
}

.hero-line:nth-child(1) { animation-delay: 0.1s; }
.hero-line:nth-child(2) { animation-delay: 0.2s; }
.hero-line:nth-child(3) { animation-delay: 0.3s; }

.hero-line-accent {
  /* Extra vertical room: italic + background-clip:text often clip ascenders/dots */
  padding: 0.18em 0;
  line-height: 1.35;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
  animation: fadeUp 0.8s var(--ease-out) 0.4s both;
}

.hero-sub em {
  color: var(--text-primary);
  font-style: normal;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
  animation: fadeUp 0.8s var(--ease-out) 0.5s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  background: linear-gradient(135deg, var(--accent-cyan), #06b6d4);
  color: var(--bg-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-md);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.3s;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.3);
}

.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  padding: 14px 28px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-glass-hover);
  transform: translateY(-1px);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  animation: fadeUp 0.8s var(--ease-out) 0.6s both;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(180deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-glass);
}

/* Vessel wireframe animation */
.hero-vessel {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  max-width: 480px;
  aspect-ratio: 1;
  opacity: 0.15;
  pointer-events: none;
}

.vessel-wireframe {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vessel-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent-cyan);
  animation: vesselSpin 20s linear infinite;
}

.vessel-ring-1 {
  width: 80%;
  height: 80%;
  opacity: 0.6;
  animation-duration: 25s;
}

.vessel-ring-2 {
  width: 60%;
  height: 60%;
  border-color: var(--accent-emerald);
  opacity: 0.4;
  animation-duration: 18s;
  animation-direction: reverse;
}

.vessel-ring-3 {
  width: 40%;
  height: 40%;
  opacity: 0.3;
  animation-duration: 22s;
}

.vessel-core {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.5);
}

.vessel-pulse {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid var(--accent-cyan);
  border-radius: 50%;
  animation: vesselPulse 2.5s ease-out infinite;
}

@keyframes vesselSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes vesselPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(6); opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-emerald);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.section-title.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out) 0.1s, transform 0.7s var(--ease-out) 0.1s;
}

.section-sub.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FEATURES — The 3D Mirror
   ============================================================ */
.features {
  position: relative;
  padding: 120px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--bg-surface);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), border-color 0.3s;
}

.feature-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:nth-child(2).in-view { transition-delay: 0.1s; }
.feature-card:nth-child(3).in-view { transition-delay: 0.2s; }
.feature-card:nth-child(4).in-view { transition-delay: 0.3s; }

.feature-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-3px);
}

.feature-card-large {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Mirror demo visual */
.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.mirror-demo {
  position: relative;
  width: 160px;
  height: 260px;
}

.body-outline {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 80px 80px 20px 20px;
  background: rgba(34, 211, 238, 0.03);
}

.muscle-group {
  position: absolute;
  border-radius: 50%;
  animation: musclePulse 3s ease-in-out infinite;
}

.mg-chest {
  width: 60px;
  height: 35px;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.5) 0%, transparent 70%);
  animation-delay: 0s;
}

.mg-arms {
  width: 25px;
  height: 50px;
  top: 30%;
  left: 8%;
  background: radial-gradient(ellipse, rgba(52, 211, 153, 0.5) 0%, transparent 70%);
  animation-delay: 0.8s;
}

.mg-core {
  width: 50px;
  height: 40px;
  top: 48%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.4) 0%, transparent 70%);
  animation-delay: 1.5s;
}

.mg-legs {
  width: 40px;
  height: 60px;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.3) 0%, transparent 70%);
  animation-delay: 2.2s;
}

@keyframes musclePulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.mirror-scan-line {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  animation: scanLine 4s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes scanLine {
  0% { top: 5%; }
  50% { top: 90%; }
  100% { top: 5%; }
}

.feature-text h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 12px;
}

.feature-text p {
  font-size: 15px;
}

/* ============================================================
   PILLARS — Three Engines
   ============================================================ */
.pillars {
  padding: 100px 0 120px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar-card {
  background: var(--bg-surface);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: 36px 28px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), border-color 0.3s;
}

.pillar-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.pillar-card:nth-child(2).in-view { transition-delay: 0.15s; }
.pillar-card:nth-child(3).in-view { transition-delay: 0.3s; }

.pillar-card:hover {
  border-color: var(--border-glass-hover);
}

.pillar-number {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pillar-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.pillar-fill {
  height: 100%;
  width: 0;
  background: var(--color);
  border-radius: 4px;
  transition: width 1.2s var(--ease-out) 0.4s;
}

.pillar-card.in-view .pillar-fill {
  width: var(--fill);
}

/* ============================================================
   PRIVACY & COMPLIANCE
   ============================================================ */
.privacy-compliance {
  padding: 100px 0 120px;
  position: relative;
}

.privacy-compliance::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.compliance-card {
  background: var(--bg-surface);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: 28px 24px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), border-color 0.3s;
}

.compliance-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.compliance-card:nth-child(2).in-view { transition-delay: 0.08s; }
.compliance-card:nth-child(3).in-view { transition-delay: 0.16s; }
.compliance-card:nth-child(4).in-view { transition-delay: 0.24s; }
.compliance-card:nth-child(5).in-view { transition-delay: 0.32s; }
.compliance-card:nth-child(6).in-view { transition-delay: 0.4s; }

.compliance-card:hover {
  border-color: var(--border-glass-hover);
}

.compliance-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.1);
  border-radius: 10px;
  margin-bottom: 16px;
}

.compliance-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.compliance-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.compliance-card a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: rgba(6, 9, 15, 0.8);
  border-top: 1px solid var(--border-glass);
  padding: 0;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 32px 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo .logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-links-group {
  display: flex;
  gap: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-link-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color 0.2s;
}

.footer-link-btn:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-compliance {
  font-size: 11px !important;
  color: var(--text-muted);
}

/* ============================================================
   LEGAL MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-surface-solid);
  border: var(--glass-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s var(--ease-out);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border-glass);
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.modal-effective {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.modal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.modal-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-section p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.65;
}

.modal-section p:last-child { margin-bottom: 0; }

.modal-section ul {
  list-style: disc;
  padding-left: 20px;
  margin: 8px 0;
}

.modal-section li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

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

.modal-section a {
  color: var(--accent-emerald);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-footer {
  padding: 16px 28px 20px;
  border-top: 1px solid var(--border-glass);
  text-align: right;
}

.modal-full-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.modal-full-link:hover { opacity: 0.7; }

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ============================================================
   LEGAL SUB-PAGES (privacy, terms, eula, support)
   ============================================================ */
.page-header {
  margin-bottom: 32px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--text-secondary); }

.page-header h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.page-header .effective {
  font-size: 13px;
  color: var(--text-muted);
}

/* Glass sections for sub-pages */
.container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.glass-section {
  background: var(--bg-surface);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: 24px;
  margin-bottom: 16px;
}

.glass-section h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.glass-section p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.glass-section p:last-child { margin-bottom: 0; }

.glass-section ul {
  list-style: disc;
  padding-left: 20px;
  margin: 8px 0;
}

.glass-section li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.glass-section strong { color: var(--text-primary); font-weight: 600; }

.glass-section a {
  color: var(--accent-emerald);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.glass-section a:hover { opacity: 0.8; }

/* Support card */
.support-card {
  text-align: center;
  padding: 48px 24px;
}

.support-card .support-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.support-card h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.support-card p {
  max-width: 400px;
  margin: 0 auto 24px;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: rgba(80, 200, 120, 0.12);
  border: 1px solid rgba(80, 200, 120, 0.3);
  border-radius: var(--radius-sm);
  color: var(--accent-emerald);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, border-color 0.2s;
}

.support-btn:hover {
  background: rgba(80, 200, 120, 0.18);
  border-color: rgba(80, 200, 120, 0.5);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card-large {
    grid-template-columns: 1fr;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .compliance-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links-group {
    gap: 40px;
    flex-wrap: wrap;
  }

  .hero-vessel { display: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }

  .hero { padding: 100px 20px 60px; min-height: 90vh; }
  .hero-title { font-size: clamp(36px, 10vw, 56px); }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-stats { gap: 20px; }
  .stat-num { font-size: 28px; }

  .features,
  .pillars,
  .privacy-compliance { padding: 80px 0; }

  .section-container { padding: 0 20px; }

  .compliance-grid { grid-template-columns: 1fr; }

  .footer-links-group { gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .consent-actions { flex-direction: column; align-items: stretch; }

  .modal { border-radius: var(--radius-lg); }
  .modal-overlay { padding: 16px; }

  .container { padding: 32px 16px 72px; }
}

@media (max-width: 480px) {
  .hero-sub { font-size: 15px; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}
