/* ============================================
   THALASSAR - Complete Website Styles
   Version: 2.0 | Designed for longevity
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (THEMING)
   ============================================ */
:root {
  /* Colors - Light Theme */
  --color-primary: #667eea;
  --color-primary-dark: #5a67d8;
  --color-primary-light: #a3bffa;
  --color-secondary: #764ba2;
  --color-accent: #06d6a0;
  
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-elevated: #ffffff;
  --color-surface: #ffffff;
  
  --color-text: #1e293b;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;
  --color-text-inverse: #ffffff;
  
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6b5b95 100%);
  --gradient-dark: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  --gradient-surface: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  
  /* Borders */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-loader: 400;
}

/* Dark Theme */
[data-theme="dark"] {
  --color-bg: #0f172a;
  --color-bg-alt: #1e293b;
  --color-bg-elevated: #1e293b;
  --color-surface: #1e293b;
  
  --color-text: #f1f5f9;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #64748b;
  
  --color-border: #334155;
  --color-border-light: #1e293b;
  
  --gradient-surface: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* Ensure all SVGs respect their container */
svg {
  overflow: visible;
  flex-shrink: 0;
}

svg:not([width]):not([height]) {
  width: 1em;
  height: 1em;
}

ul, ol {
  list-style: none;
}

/* Selection */
::selection {
  background: var(--color-primary);
  color: white;
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-md);
  z-index: var(--z-loader);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
}

/* ============================================
   LOADER
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loader);
  transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  color: var(--color-primary);
}

.loader-svg {
  width: 100%;
  height: 100%;
}

.loader-circle {
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  animation: loader-spin 1.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes loader-spin {
  0% {
    stroke-dashoffset: 283;
    transform: rotate(0deg);
  }
  50% {
    stroke-dashoffset: 70;
    transform: rotate(180deg);
  }
  100% {
    stroke-dashoffset: 283;
    transform: rotate(360deg);
  }
}

.loader-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--gradient-dark);
  color: white;
  padding: var(--space-sm) 0;
  font-size: 0.8125rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.top-bar-left {
  display: flex;
  align-items: center;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 12px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.top-bar-date {
  opacity: 0.85;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: white;
  transition: var(--transition-fast);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.theme-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  max-width: 18px;
  display: block;
  transition: var(--transition-fast);
}

.theme-icon.moon {
  display: none;
}

[data-theme="dark"] .theme-icon.sun {
  display: none;
}

[data-theme="dark"] .theme-icon.moon {
  display: block;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: var(--z-sticky);
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: opacity var(--transition-fast);
}

.logo:hover {
  opacity: 0.8;
}

.logo-mark {
  width: 40px;
  height: 40px;
  min-width: 40px;
  max-width: 40px;
  color: var(--color-primary);
  transition: transform var(--transition-normal);
}

.logo-mark svg {
  width: 40px;
  height: 40px;
  display: block;
}

.logo:hover .logo-mark {
  transform: rotate(10deg) scale(1.05);
}

.logo-text {
  font-size: 1.375rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  position: relative;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

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

.nav-link.active::after {
  width: 20px;
}

.header-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 0.1s;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.menu-toggle:hover {
  background: var(--color-bg-alt);
}

.menu-line {
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: var(--transition-fast);
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  z-index: calc(var(--z-sticky) - 1);
  transition: var(--transition-normal);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-4xl) 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

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

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(118, 75, 162, 0.3);
  bottom: 10%;
  left: -5%;
  animation-delay: -5s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(102, 126, 234, 0.3);
  top: 40%;
  right: 20%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(30px, 10px) scale(1.02); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero-main {
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-xl);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

.title-line:nth-child(1) { animation-delay: 0.3s; }
.title-line:nth-child(2) { animation-delay: 0.5s; }
.title-line:nth-child(3) { animation-delay: 0.7s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: var(--space-md);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hero-description {
  font-size: 1.0625rem;
  line-height: 1.8;
  opacity: 0.85;
  margin-bottom: var(--space-xl);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
}

.btn svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  max-width: 18px;
  display: block;
  transition: transform var(--transition-fast);
}

.btn-primary {
  background: white;
  color: var(--color-secondary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

/* Hero Cards */
.hero-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.stat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: var(--transition-normal);
}

[data-theme="dark"] .stat-card {
  background: rgba(30, 41, 59, 0.95);
}

.stat-card:hover {
  transform: translateX(10px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.stat-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.stat-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
}

.stat-decoration {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.05;
}

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-3xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: white;
  opacity: 0.8;
  transition: var(--transition-fast);
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-text {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
}

.scroll-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: white;
  border-radius: 50%;
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0%, 100% { top: 0; opacity: 1; }
  80% { top: 100%; opacity: 0; }
}

/* Hero Wave */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
  fill: var(--color-bg);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--space-4xl) 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header-left {
  text-align: left;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.section-line {
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin: 0 auto;
}

.section-line-left {
  margin: 0;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  line-height: 1.4;
}

.about-text p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.about-notice {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.notice-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  min-width: 24px;
  max-width: 24px;
  color: var(--color-primary);
}

.notice-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.notice-content strong {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.notice-content p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Info Panel */
.info-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.panel-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  font-size: 1.25rem;
}

.panel-header h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
}

.panel-desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.panel-divider {
  height: 1px;
  background: var(--color-border);
  margin-bottom: var(--space-lg);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.info-item:last-child {
  border-bottom: none;
}

.info-item dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

.info-item dd {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ============================================
   PRINCIPLES SECTION
   ============================================ */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.principle-card {
  position: relative;
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: var(--transition-normal);
  overflow: hidden;
}

.principle-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.principle-number {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-border);
  line-height: 1;
  transition: var(--transition-normal);
}

.principle-card:hover .principle-number {
  color: var(--color-primary);
  opacity: 0.2;
}

.principle-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.principle-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.principle-card p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================
   SCOPE SECTION
   ============================================ */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.scope-card {
  height: 100%;
  perspective: 1000px;
}

.scope-card-inner {
  height: 100%;
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.scope-card:hover .scope-card-inner {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--color-primary);
  border-color: var(--color-primary);
}

.scope-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-surface);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  transition: var(--transition-normal);
}

.scope-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

.scope-card:hover .scope-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.scope-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.scope-card p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  flex: 1;
}

.scope-footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
}

.scope-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(102, 126, 234, 0.1);
  border-radius: var(--radius-sm);
}

.scope-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
}

.scope-disclaimer svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  min-width: 24px;
  max-width: 24px;
  color: var(--color-text-muted);
  display: block;
}

.scope-disclaimer p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.scope-disclaimer strong {
  color: var(--color-text);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-item:hover {
  border-color: var(--color-primary);
}

.faq-item[open] {
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  transition: var(--transition-fast);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  min-width: 24px;
  max-width: 24px;
  color: var(--color-text-muted);
  transition: transform var(--transition-normal);
}

.faq-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer {
  padding: 0 var(--space-xl) var(--space-lg);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-answer p {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.section-dark {
  position: relative;
  color: white;
  overflow: hidden;
}

.section-dark-bg {
  position: absolute;
  inset: 0;
}

.dark-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-dark);
}

.dark-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.dark-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: rgba(102, 126, 234, 0.2);
  top: -20%;
  right: -10%;
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(118, 75, 162, 0.15);
  bottom: -20%;
  left: -10%;
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.section-dark .section-tag {
  color: var(--color-primary-light);
}

.section-dark .section-title {
  color: white;
}

.section-dark .section-line {
  background: linear-gradient(90deg, var(--color-primary-light) 0%, rgba(255,255,255,0.5) 100%);
}

.contact-description {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.contact-email-link {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-lg);
  transition: var(--transition-normal);
}

.contact-email-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(8px);
}

.email-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.email-icon svg {
  width: 24px;
  height: 24px;
  min-width: 24px;
  max-width: 24px;
  color: white;
  display: block;
}

.email-content {
  flex: 1;
}

.email-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-bottom: 2px;
}

.email-address {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
}

.email-arrow {
  width: 24px;
  height: 24px;
  min-width: 24px;
  max-width: 24px;
  opacity: 0.6;
  transition: var(--transition-fast);
}

.email-arrow svg {
  width: 24px;
  height: 24px;
  display: block;
}

.contact-email-link:hover .email-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.contact-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* Contact Card */
.contact-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.contact-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.contact-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-checklist li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
}

.contact-checklist svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  max-width: 20px;
  color: #4ade80;
  flex-shrink: 0;
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) 0 0;
}

[data-theme="dark"] .footer {
  background: #0a0f1a;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--color-border);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  color: var(--color-text);
  transition: opacity var(--transition-fast);
}

.footer-logo:hover {
  opacity: 0.8;
}

.footer-logo .logo-mark {
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
}

.footer-logo .logo-mark svg {
  width: 36px;
  height: 36px;
}

.footer-logo span {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 320px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.footer-col h5 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.footer-col a,
.footer-col span {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  padding: var(--space-xs) 0;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer-dot {
  opacity: 0.5;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-normal);
  z-index: var(--z-dropdown);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), 0 0 50px rgba(102, 126, 234, 0.4);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  min-width: 24px;
  max-width: 24px;
  display: block;
}

/* ============================================
   ANIMATIONS
   ============================================ */
[data-animate] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-up"] {
  transform: translateY(40px);
}

[data-animate="fade-right"] {
  transform: translateX(-40px);
}

[data-animate="fade-left"] {
  transform: translateX(40px);
}

[data-animate="zoom-in"] {
  transform: scale(0.9);
}

[data-animate].animated {
  opacity: 1;
  transform: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .hero-cards {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .stat-card {
    flex: 1;
    min-width: 200px;
  }
  
  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .principles-grid,
  .scope-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  :root {
    --space-4xl: 64px;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4xl) var(--space-lg) var(--space-lg);
    background: var(--color-bg);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    z-index: var(--z-modal);
  }
  
  .nav.active {
    transform: translateX(0);
  }
  
  .nav-link {
    padding: var(--space-md);
    font-size: 1rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero {
    min-height: auto;
    padding: var(--space-3xl) 0 var(--space-4xl);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-cards {
    flex-direction: column;
  }
  
  .stat-card {
    min-width: 100%;
  }
  
  .hero-scroll {
    display: none;
  }
  
  .principles-grid,
  .scope-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  
  .footer-meta {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .top-bar-right {
    display: none;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .footer-nav {
    grid-template-columns: 1fr;
  }
  
  .back-to-top {
    bottom: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .top-bar,
  .header,
  .hero-bg,
  .hero-scroll,
  .hero-wave,
  .back-to-top,
  .theme-toggle,
  .footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    color: black;
    background: white;
  }
  
  .section {
    padding: 20pt 0;
    page-break-inside: avoid;
  }
  
  a {
    text-decoration: underline;
  }
}


/* ============================================
   NOSCRIPT BANNER
   ============================================ */
.noscript-banner{
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-lg);
  text-align:center;
  font-size: 0.875rem;
}


/* ============================================
   ONLINE / OFFLINE STATUS
   ============================================ */
.status-dot.offline{
  background:#f87171;
  box-shadow:0 0 12px #f87171;
}
.status-text.offline{opacity:0.9;}



/* ============================================
   PATCH: Tone down hero decoration + avoid oversized marks
   ============================================ */
.hero-pattern { opacity: 0.22 !important; }
.hero-orbs { opacity: 0.35 !important; }
.orb { opacity: 0.35 !important; filter: blur(80px) !important; }

/* If any SVG ever ends up absolutely positioned, keep it from taking over the viewport */
svg, img { max-width: 100%; height: auto; }

/* Prevent accidental oversized decorative elements from causing horizontal scroll */
body { overflow-x: hidden; }

.logo-mark svg{width:40px !important;height:40px !important;}



/* --- Cookie banner --- */
.cookie-banner{
  position:fixed;
  left:0; right:0;
  bottom:0;
  padding:14px;
  z-index:9999;
  background:rgba(8,10,14,.82);
  backdrop-filter: blur(10px);
  border-top:1px solid rgba(255,255,255,.08);
}
.cookie-inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.cookie-text{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:.92rem;
  color:rgba(255,255,255,.86);
}
.cookie-text a{ color:rgba(255,255,255,.92); text-decoration:underline; }
.cookie-actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* Buttons (used by banner + policy page) */
.btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.10);
  color:#fff;
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
}
.btn:hover{ background:rgba(255,255,255,.14); }
.btn:active{ transform: translateY(1px); }
.btn-ghost{ background:transparent; }
.btn-sm{ padding:8px 12px; border-radius:10px; font-size:.9rem; }

/* Simple pages (cookie policy + thank you) */
.simple-header{
  max-width:900px;
  margin:0 auto;
  padding:64px 20px 24px;
}
.simple-main{
  max-width:900px;
  margin:0 auto;
  padding:0 20px 72px;
}
.simple-section{
  padding:24px 0;
  border-top:1px solid rgba(255,255,255,.10);
}
.simple-list{ list-style:none; padding-left:0; }
.simple-list li::before{ content:"— "; opacity:.7; }
.simple-footer{
  max-width:900px;
  margin:0 auto;
  padding:28px 20px 48px;
  border-top:1px solid rgba(255,255,255,.10);
}
.back-link{ color:rgba(255,255,255,.82); text-decoration:none; }
.back-link:hover{ text-decoration:underline; }
.muted{ color:rgba(255,255,255,.68); }
.small{ font-size:.9rem; }

.cookie-controls{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }

/* Contact form */
.contact-form{
  margin-top:18px;
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
.contact-form label{ display:block; margin-top:12px; }
.contact-form label span{ display:block; font-size:.85rem; opacity:.75; margin-bottom:6px; }
.contact-form input,
.contact-form textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.25);
  color:#fff;
  outline:none;
}
.contact-form input:focus,
.contact-form textarea:focus{
  border-color:rgba(255,255,255,.28);
}
.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width:680px){
  .form-grid{ grid-template-columns: 1fr; }
  .cookie-inner{ flex-direction:column; align-items:flex-start; }
}
.form-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top:14px;
}
.contact-submit{
  appearance:none;
  border:none;
  padding:12px 16px;
  border-radius:14px;
  font-weight:700;
  cursor:pointer;
}
.form-note{ margin-top:10px; }

/* Honeypot hidden field */
.hp{ position:absolute !important; left:-9999px !important; width:1px; height:1px; opacity:0; }



/* --- Contact form field fixes (override theme inputs) --- */
.contact-form input,
.contact-form textarea{
  display:block !important;
  box-sizing:border-box !important;
  width:100% !important;
  max-width:100% !important;
  min-height:44px;
  padding:12px 12px !important;
  border-radius:12px !important;
  border:1px solid rgba(255,255,255,.14) !important;
  background:rgba(0,0,0,.28) !important;
  color:#fff !important;
  font:inherit !important;
  line-height:1.4 !important;
}
.contact-form textarea{ min-height:140px; resize:vertical; }
.contact-form label{ width:100%; }
.contact-form .form-grid > label{ margin-top:0; }
.contact-form .form-grid{ align-items:end; }
