@font-face {
  font-family: 'SYN';
  src: url('https://cdn.synthenis.com/fonts/syn.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --accent: #3e91ff;
  --bg: #0a0a0a;
  --bg-2: #111111;
  --surface: rgba(18, 18, 18, 0.6);
  --surface-solid: #121212;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text-1: #ffffff;
  --text-2: rgba(255, 255, 255, 0.6);
  --text-3: rgba(255, 255, 255, 0.35);
  --icon-filter: brightness(0) invert(1);
  --nav-bg: rgba(10, 10, 10, 0.85);
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-focus-bg: rgba(255, 255, 255, 0.09);
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --accent: #0072de;
  --bg: #f2f2f2;
  --bg-2: #e8e8e8;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-solid: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.16);
  --text-1: #0a0a0a;
  --text-2: rgba(0, 0, 0, 0.55);
  --text-3: rgba(0, 0, 0, 0.35);
  --icon-filter: brightness(0);
  --nav-bg: rgba(242, 242, 242, 0.85);
  --input-bg: rgba(0, 0, 0, 0.05);
  --input-focus-bg: rgba(0, 0, 0, 0.08);
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'SYN', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background-color: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  line-height: 1.6;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
  padding-top: 72px;
}

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

img, svg {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.icon {
  width: 20px;
  height: 20px;
  filter: var(--icon-filter);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  flex-shrink: 0;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

.page-wrap {
  padding: 0 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}



.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 40px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'SYN', -apple-system, sans-serif;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s var(--ease), transform 0.15s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-primary .icon {
  filter: brightness(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'SYN', -apple-system, sans-serif;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.15s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

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

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
}

.btn-secondary:active {
  transform: scale(0.95);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}

.btn-accent:hover {
  opacity: 0.9;
  background: var(--accent);
}

[data-theme="light"] .btn-accent:hover {
  background: var(--accent);
}

.card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: border-color 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}

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

.card-p {
  padding: 24px;
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:active {
  transform: scale(0.98);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap .icon {
  position: absolute;
  left: 16px;
  pointer-events: none;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'SYN', -apple-system, sans-serif;
  color: var(--text-1);
  outline: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
  -webkit-appearance: none;
  resize: vertical;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  background: var(--input-focus-bg);
  border-color: var(--accent);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-3);
}

.input-with-icon input {
  padding-left: 44px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 500;
  user-select: none;
}

.badge-operational {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.badge-degraded {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.badge-partial_outage {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

.badge-major_outage {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.badge-maintenance {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-operational { background: #22c55e; }
.dot-degraded { background: #f59e0b; animation: pulse-dot 2s infinite; }
.dot-partial_outage { background: #f97316; animation: pulse-dot 2s infinite; }
.dot-major_outage { background: #ef4444; animation: pulse-dot 1.5s infinite; }
.dot-maintenance { background: #8b5cf6; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast-container {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #333333;
  border-radius: 20px;
  padding: 12px 14px 12px 16px;
  min-width: 220px;
  max-width: 360px;
  pointer-events: all;
  animation: toast-in 0.3s var(--ease);
  user-select: none;
}

.toast-msg {
  flex: 1;
  font-size: 13px;
  color: #ffffff;
  user-select: text;
}

.toast-close {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
  cursor: pointer;
  opacity: 0.6;
  flex-shrink: 0;
  pointer-events: all;
}

@keyframes toast-in {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
  user-select: none;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
  user-select: none;
}

.section-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
  max-width: 560px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

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

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }

.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }

.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-muted { color: var(--text-2); }
.text-accent { color: var(--accent); }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(62, 145, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="light"] .icon-box {
  background: rgba(0, 114, 222, 0.08);
}

footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 26px;
  filter: var(--icon-filter);
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 220px;
}

.footer-heading {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 16px;
  user-select: none;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--text-1);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--text-3);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-legal a {
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.2s var(--ease);
}

.footer-legal a:hover {
  color: var(--text-2);
}

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  position: relative;
  transition: width 0.6s var(--ease);
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.page-header {
  padding: 56px 0 40px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  user-select: none;
}

.breadcrumb span {
  font-size: 13px;
  color: var(--text-3);
}

.breadcrumb a {
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.2s var(--ease);
}

.breadcrumb a:hover {
  color: var(--text-1);
}

.prose h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}

.prose h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
}

.prose p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.prose ul, .prose ol {
  padding-left: 20px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--accent);
  transition: opacity 0.2s var(--ease);
}

.prose a:hover {
  opacity: 0.8;
}

.service-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-logo {
  height: 36px;
  filter: var(--icon-filter);
  width: auto;
  align-self: flex-start;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.contact-item:hover {
  border-color: var(--border-hover);
  background: var(--input-bg);
}

.contact-item:active {
  transform: scale(0.98);
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(62, 145, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="light"] .contact-icon {
  background: rgba(0, 114, 222, 0.08);
}

.textarea-field {
  min-height: 120px;
  padding: 14px 16px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 8px;
  display: block;
  user-select: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-overview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(20px);
}

.status-overview-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.status-row:last-child {
  border-bottom: none;
}

.about-value {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
}

.about-value-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(62, 145, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

[data-theme="light"] .about-value-icon {
  background: rgba(0, 114, 222, 0.08);
}

@media (max-width: 768px) {
  .nav-links, .nav-controls {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 32px;
  }
  .section {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 64px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero {
    padding: 48px 0 40px;
  }
}

/* ───────────────────────────────────────────
   SCROLL-ENTRANCE ANIMATIONS
─────────────────────────────────────────── */
.anim-ready {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1),
              transform 0.55s cubic-bezier(0.4,0,0.2,1);
  will-change: opacity, transform;
}

.anim-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Hero elements get a slightly more dramatic entrance */
.hero-title.anim-ready  { transform: translateY(30px); }
.hero-sub.anim-ready    { transition-delay: 0.08s; }
.hero-actions.anim-ready { transition-delay: 0.16s; }

/* ───────────────────────────────────────────
   LOTTIE SVG THEMING
─────────────────────────────────────────── */
.moca-lottie-svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Nav lottie container */
#nav-lottie {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

/* Footer lottie */
#footer-lottie {
  width: 36px;
  height: 36px;
}

/* Hero lottie — large centred logo */
#hero-lottie {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
}

/* ───────────────────────────────────────────
   PAGE-TRANSITION FADE
─────────────────────────────────────────── */
body {
  animation: page-fade-in 0.35s cubic-bezier(0.4,0,0.2,1);
}

@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ───────────────────────────────────────────
   NAV ACTIVE INDICATOR
─────────────────────────────────────────── */
.nav-link.active {
  color: var(--text-1);
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}

/* ───────────────────────────────────────────
   CARD HOVER LIFT
─────────────────────────────────────────── */
.card {
  transition: border-color 0.2s var(--ease),
              transform 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  transform: translateY(-2px);
}

[data-theme="light"] .card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.card-interactive:hover {
  transform: translateY(-3px);
}

.card-interactive:active {
  transform: scale(0.98) translateY(0);
  box-shadow: none;
}

/* ───────────────────────────────────────────
   CONTACT ITEM HOVER
─────────────────────────────────────────── */
.contact-item {
  transition: border-color 0.2s var(--ease),
              background 0.2s var(--ease),
              transform 0.2s var(--ease);
}

.contact-item:hover {
  transform: translateX(4px);
}

/* ───────────────────────────────────────────
   HERO LOTTIE ENTRANCE
─────────────────────────────────────────── */
#hero-lottie {
  opacity: 0;
  animation: hero-lottie-in 0.7s 0.1s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes hero-lottie-in {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

/* ───────────────────────────────────────────
   SHIMMER ON HERO SLOGAN
─────────────────────────────────────────── */
.hero-title [data-i18n="home.titleAccent"],
.hero-title [data-i18n="home.title"] {
  display: inline;
}

/* ───────────────────────────────────────────
   REDUCED MOTION
─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .anim-ready,
  .anim-visible,
  #hero-lottie,
  body {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ───────────────────────────────────────────
   HERO LOTTIE WRAP + GLOW
─────────────────────────────────────────── */
.hero-lottie-wrap {
  position: relative;
  margin: 0 auto 32px;
  width: 180px;
  height: 180px;
}

.hero-lottie-glow {
  position: absolute;
  inset: -24px;
  background: radial-gradient(ellipse at center,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 75%);
  border-radius: 50%;
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}

[data-theme="light"] .hero-lottie-glow {
  background: radial-gradient(ellipse at center,
    rgba(0, 0, 0, 0.06) 0%,
    rgba(0, 0, 0, 0.02) 50%,
    transparent 75%);
}

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

/* ───────────────────────────────────────────
   DATA-ANIM STAGGERED SYSTEM
─────────────────────────────────────────── */
[data-anim="up"] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

[data-anim="fade"] {
  opacity: 0;
  transition: opacity 0.65s var(--ease);
}

[data-anim="scale"] {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

[data-anim="up"].anim-visible,
[data-anim="fade"].anim-visible,
[data-anim="scale"].anim-visible {
  opacity: 1;
  transform: none;
}

[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }

/* ───────────────────────────────────────────
   NAV LOGO AREA
─────────────────────────────────────────── */
.nav-logo {
  display: flex;
  align-items: center;
}

#nav-lottie svg,
#footer-lottie svg {
  overflow: visible;
}

/* ═══════════════════════════════════════════════
   ADA MENÜ (ISLAND NAV)
═══════════════════════════════════════════════ */

#main-nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-island {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--nav-island-bg);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--nav-island-border);
  border-radius: 99px;
  padding: 6px 6px 6px 12px;
  pointer-events: all;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 1px 0 rgba(255,255,255,0.06) inset;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  max-width: calc(100vw - 48px);
}

:root {
  --nav-island-bg: rgba(14, 14, 14, 0.72);
  --nav-island-border: rgba(255,255,255,0.1);
}

[data-theme="light"] {
  --nav-island-bg: rgba(255, 255, 255, 0.78);
  --nav-island-border: rgba(0,0,0,0.09);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 4px;
}

.nav-logo-img {
  height: 24px;
  width: auto;
  filter: var(--icon-filter);
  display: block;
}

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

.nav-link {
  padding: 7px 13px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
  user-select: none;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text-1);
  background: rgba(255,255,255,0.07);
}

[data-theme="light"] .nav-link:hover {
  background: rgba(0,0,0,0.05);
}

.nav-link.active {
  color: var(--text-1);
  background: rgba(255,255,255,0.1);
}

[data-theme="light"] .nav-link.active {
  background: rgba(0,0,0,0.06);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

.btn-float {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.15s var(--ease);
  flex-shrink: 0;
}

.btn-float:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-hover);
}

[data-theme="light"] .btn-float:hover {
  background: rgba(0,0,0,0.06);
}

.btn-float:active { transform: scale(0.93); }

.lang-btn {
  width: auto;
  border-radius: 99px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'SYN', -apple-system, sans-serif;
  color: var(--text-2);
  letter-spacing: 0.04em;
}

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

.nav-hamburger {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.18s var(--ease), transform 0.15s var(--ease);
  flex-shrink: 0;
}

.nav-hamburger:active { transform: scale(0.93); }

/* ── Mobile drawer ── */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 97;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.mobile-drawer-backdrop.open {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 16px;
  left: 24px;
  right: 24px;
  z-index: 98;
  background: var(--nav-island-bg);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--nav-island-border);
  border-radius: 24px;
  padding: 12px;
  transform: translateY(-12px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.mobile-drawer.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-drawer .nav-link {
  padding: 11px 16px;
  border-radius: 14px;
  font-size: 15px;
}

.mobile-drawer-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px 4px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}

/* body top padding to account for floating nav */
body {
  padding-top: 80px;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-controls { display: none; }
  .nav-hamburger { display: flex; }
  .nav-island { padding: 6px 6px 6px 12px; }
}

/* ═══════════════════════════════════════════════
   BACKGROUND ORBS (index only)
═══════════════════════════════════════════════ */

.orbs-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}

[data-theme="light"] .orb { opacity: 0.3; }

.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #A4AEC7 0%, transparent 70%);
  top: -120px; left: -80px;
  animation: orb-drift-1 18s ease-in-out infinite;
}
.orb-2 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, #3B5771 0%, transparent 70%);
  top: -60px; right: 10%;
  animation: orb-drift-2 22s ease-in-out infinite;
}
.orb-3 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #3B5771 0%, transparent 70%);
  bottom: 20%; left: 15%;
  animation: orb-drift-3 20s ease-in-out infinite;
}
.orb-4 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #A4AEC7 0%, transparent 70%);
  bottom: 10%; right: -60px;
  animation: orb-drift-4 24s ease-in-out infinite;
}

@keyframes orb-drift-1 {
  0%,100% { transform: translate(0px, 0px); }
  25%      { transform: translate(80px, 60px); }
  50%      { transform: translate(40px, 100px); }
  75%      { transform: translate(-30px, 50px); }
}
@keyframes orb-drift-2 {
  0%,100% { transform: translate(0px, 0px); }
  25%      { transform: translate(-70px, 80px); }
  50%      { transform: translate(-100px, 30px); }
  75%      { transform: translate(-40px, 90px); }
}
@keyframes orb-drift-3 {
  0%,100% { transform: translate(0px, 0px); }
  33%      { transform: translate(90px, -60px); }
  66%      { transform: translate(-50px, -90px); }
}
@keyframes orb-drift-4 {
  0%,100% { transform: translate(0px, 0px); }
  30%      { transform: translate(-80px, -50px); }
  60%      { transform: translate(-110px, 40px); }
  80%      { transform: translate(-60px, -20px); }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
}
