/* ════════════════════════════════════════════
   SAYMARINE — Premium Maritime Design
   Full-viewport panels · Cinematic imagery
   Ken Burns · Parallax · Glassmorphism
   ════════════════════════════════════════════ */

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

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-100: #f5f5f7;
  --gray-200: #e5e5e7;
  --gray-400: #86868b;
  --gray-500: #6e6e73;
  --gray-700: #333336;
  --gray-800: #1d1d1f;
  --gray-900: #0a0a0c;

  /* Accent — gradient range */
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.15);

  /* SAYMARINE Logo — consistent across all pages */
  --logo-say: #ffffff;
  --logo-marine: #7a8a9e;
  --logo-font-size: 27px;

  --container: 1180px;
  --nav-h: 72px;

  /* Spacing scale — fluid */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: clamp(48px, 6vw, 80px);
  --space-2xl: clamp(72px, 10vw, 140px);
  --space-3xl: clamp(96px, 12vw, 180px);

  /* Section padding — generous whitespace like Apple */
  --section-pad: clamp(80px, 12vw, 160px);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Fluid typography scale */
  --text-hero: clamp(1.8rem, 4vw, 3.8rem);
  --text-display: clamp(1.6rem, 3.5vw, 3.6rem);
  --text-h2: clamp(1.5rem, 2.8vw, 2.8rem);
  --text-h3: clamp(1.05rem, 1.3vw, 1.2rem);
  --text-body: clamp(0.92rem, 1vw, 1.05rem);
  --text-body-lg: clamp(0.95rem, 1.1vw, 1.12rem);
  --text-small: clamp(0.82rem, 0.9vw, 0.9rem);
  --text-label: clamp(10px, 0.8vw, 12px);
}

html {
  scroll-behavior: smooth;
  -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 {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

.safe-area-cover {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: env(safe-area-inset-top, 0px);
  background: #000;
  z-index: 10000;
  pointer-events: none;
  /* Force GPU compositing for smooth scroll performance */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

/* Gradient fade below the safe area cover for seamless blending */
.safe-area-cover::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(180deg, #000 0%, transparent 100%);
  pointer-events: none;
}

@supports not (height: env(safe-area-inset-top)) {
  .safe-area-cover {
    display: none;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}

::selection {
  background: rgba(59, 130, 246, 0.3);
}

/* Accessibility: focus-visible for keyboard nav */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.lang-option:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

#main-content:focus {
  outline: none;
}

/* Skip to content — visible on focus */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--white);
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ══════════════════════════════════════
   FILM GRAIN OVERLAY — subtle, Starlink-clean
   ══════════════════════════════════════ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.012;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* Body scroll lock when mobile menu open */
body.menu-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: none;
  -webkit-overflow-scrolling: none;
}

/* ══════════════════════════════════════
   SCROLL PROGRESS — Tech company style
   ══════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.6));
  z-index: 10001;
  transition: width 0.08s ease-out;
}

/* ══════════════════════════════════════
   LOGO
   ══════════════════════════════════════ */
.logo-say {
  font-family: 'Martel Sans', sans-serif;
  font-weight: 600;
  color: var(--logo-say);
  letter-spacing: 0.22em;
}

.logo-marine {
  font-family: 'Martel Sans', sans-serif;
  font-weight: 400;
  color: var(--logo-marine);
  letter-spacing: 0.22em;
}

/* Ancwhis — Mobil (SaymarineApp) ile bire bir aynı. Orbitron bold, 0.05em, white. */
.ancwhis-logo,
.ancwhis-logo-reg,
.ancwhis-nav {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: capitalize;
  color: var(--white);
}

.ancwhis-logo-reg sup {
  font-family: inherit;
  font-size: 0.4em;
  margin-left: 0.15em;
  vertical-align: super;
}

.ancwhis-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

/* Ken Burns — slow cinematic zoom + pan */
@keyframes kenBurns {
  0% {
    transform: scale(1.0) translate(0, 0);
  }

  50% {
    transform: scale(1.12) translate(-1%, -1%);
  }

  100% {
    transform: scale(1.05) translate(0.5%, 0.5%);
  }
}

/* Shimmer line */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Gradient line grow */
@keyframes lineGrow {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: 80px;
    opacity: 1;
  }
}

/* Subtle glow pulse */
@keyframes glowPulse {

  0%,
  100% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.05), 0 2px 40px rgba(0, 0, 0, 0.4);
  }

  50% {
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.08), 0 2px 60px rgba(0, 0, 0, 0.5);
  }
}

/* Scroll arrow bounce */
@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(4px);
  }
}

/* Gradient shift — ambient tech feel */
@keyframes gradientShift {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.7;
  }
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

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

/* Section entrance */
@keyframes sectionEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

/* Shine sweep on hover */
@keyframes shineSweep {
  to {
    left: 100%;
  }
}

/* Hero fade-in cascade — dramatic entrance */
.fade-in {
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in.d1 {
  animation-delay: 0.2s;
}

.fade-in.d2 {
  animation-delay: 0.5s;
}

.fade-in.d3 {
  animation-delay: 0.8s;
}

.fade-in.d4 {
  animation-delay: 1.1s;
}

/* Scroll reveal — enhanced with dramatic entrance */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.d1 {
  transition-delay: 0.1s;
}

.reveal.d2 {
  transition-delay: 0.2s;
}

.reveal.d3 {
  transition-delay: 0.3s;
}

.reveal.d4 {
  transition-delay: 0.4s;
}

.reveal.d5 {
  transition-delay: 0.5s;
}

/* Staggered card reveals */
.stack-card,
.trust-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s ease-out,
    border-color 0.4s ease-out,
    box-shadow 0.4s ease-out;
}

.stack-card.card-visible,
.trust-card.card-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Word-by-word reveal */
.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: calc(var(--word-i) * 0.04s);
}

.word-reveal-active .word-reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Statement — scroll-driven (JS controls opacity/scale) */
.statement-text {
  will-change: transform, opacity;
}

/* Stats — scroll-driven entrance */
.stat {
  will-change: transform, opacity;
}

/* ── Nav sliding indicator ── */
.nav-indicator {
  position: absolute;
  bottom: -2px;
  height: 28px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.25s;
  opacity: 0;
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
}

/* ── 3D tilt card shine ── */
.stack-card::after,
.trust-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    300px circle at var(--shine-x, 50%) var(--shine-y, 50%),
    rgba(255, 255, 255, 0.06) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.stack-card:hover::after,
.trust-card:hover::after {
  opacity: 1;
}

/* ── Enhanced button hover effects ── */
.hero-cta-primary {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.hero-cta-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.hero-cta-primary:hover::before {
  transform: translateX(100%);
}

/* ── Form field focus glow ── */
.support-field input:focus,
.support-field select:focus,
.support-field textarea:focus {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08), 0 0 20px -4px rgba(59, 130, 246, 0.15);
}

/* ── Animated link underlines ── */
.footer-col a {
  position: relative;
}

.footer-col a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-col a:hover::after {
  width: 100%;
}

/* ══════════════════════════════════════
   FAZ 5: COLOR DEPTH & VISUAL POLISH
   ══════════════════════════════════════ */

/* ── Ambient glow on sections ── */
.panel-stack::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.panel-trust::before {
  content: '';
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Section transition gradients ── */
.panel-stack::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--gray-900));
  pointer-events: none;
  z-index: 1;
}

/* ── Enhanced card gradient borders on hover ── */
.stack-card:hover {
  border-image: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(59,130,246,0.2), rgba(255,255,255,0.08)) 1;
  border-image-slice: 1;
}

/* Reset border-image for border-radius compatibility */
.stack-card:hover,
.trust-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* ── Gradient accent on labels ── */
.label::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

/* ── Enhanced scroll progress bar ── */
.scroll-progress {
  background: linear-gradient(90deg, var(--accent), var(--accent-light), rgba(255, 255, 255, 0.7));
  height: 2px;
}

/* Hero headline stays solid white for text-shadow readability over video */

/* ── Enhanced coming-soon badge ── */
.coming-soon-badge {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(59,130,246,0.06));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ── Smooth section background transitions via layered dark gradients ── */
.panel-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, var(--gray-900), var(--black));
  pointer-events: none;
}

/* ── Contact section top glow ── */
.panel-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Dark mode layers — subtle gray tones instead of pure black ── */
.panel-stack,
.panel-trust,
.panel-contact {
  background: #080809;
}

/* ── Enhanced support card icon ── */
.support-card-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Smooth fade between dark sections ── */
.panel-ancwhis::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #080809);
  pointer-events: none;
  z-index: 1;
}

/* ══════════════════════════════════════
   NAVBAR — Glassmorphism
   ══════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  transition: background 0.6s ease-out, backdrop-filter 0.6s ease-out, box-shadow 0.6s ease-out;
}

#navbar.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
}

.nav-logo {
  text-decoration: none;
  font-size: var(--logo-font-size);
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9), 0 2px 24px rgba(0, 0, 0, 0.7);
  transition: opacity 0.3s;
  flex-shrink: 0;
}

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

.nav-links {
  display: none;
  gap: 40px;
  align-items: center;
  line-height: 1;
  margin-left: auto;
  position: relative;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.3s ease-out, transform 0.3s ease-out;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8), 0 2px 24px rgba(0, 0, 0, 0.6);
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.3s ease-out;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--white);
  font-weight: 500;
}

.nav-links a.ancwhis-nav {
  color: var(--white);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: capitalize;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* Mobile toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle.open span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

/* ── Language Switcher — Apple/Tesla-style dropdown ── */
.lang-switch-wrap {
  position: relative;
  margin-left: 24px;
  flex-shrink: 0;
  z-index: 1002;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
  padding: 6px 4px;
  cursor: pointer;
  transition: color 0.3s ease-out;
  line-height: 1;
}

.lang-switch:hover,
.lang-switch-wrap.open .lang-switch {
  color: #fff;
}

.lang-globe {
  opacity: 0.55;
  flex-shrink: 0;
  transition: opacity 0.3s ease-out;
}

.lang-switch:hover .lang-globe,
.lang-switch-wrap.open .lang-globe {
  opacity: 1;
}

.lang-chevron {
  opacity: 0.4;
  transition: transform 0.25s ease-out, opacity 0.25s;
  margin-left: -1px;
}

.lang-switch:hover .lang-chevron,
.lang-switch-wrap.open .lang-chevron {
  opacity: 0.8;
}

.lang-switch-wrap.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-current {
  font-family: 'Inter', sans-serif;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: -8px;
  min-width: 150px;
  max-height: 70vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(28, 28, 30, 0.96);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 0.5px rgba(255, 255, 255, 0.06);
  list-style: none;
  margin: 0;
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0.18s;
  pointer-events: none;
}

.lang-dropdown::-webkit-scrollbar {
  width: 3px;
}

.lang-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.lang-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.lang-switch-wrap.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s ease-out;
  white-space: nowrap;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-option:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.lang-option.active {
  color: #fff;
  font-weight: 500;
}

.lang-option.active::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.lang-option-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile menu — slide-down panel below navbar */
.nav-links.open {
  display: flex !important;
  flex-direction: column;
  position: fixed !important;
  top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  max-width: none !important;
  background: rgba(5, 5, 8, 0.98);
  backdrop-filter: blur(48px) saturate(180%);
  -webkit-backdrop-filter: blur(48px) saturate(180%);
  align-items: stretch;
  gap: 0;
  z-index: 999;
  padding: 8px 0 calc(env(safe-area-inset-bottom, 0px) + 16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: menuSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}

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

/* Backdrop overlay behind menu for dismissal */
.nav-links.open::before {
  content: '';
  position: fixed;
  top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
  animation: fadeIn 0.3s ease-out;
}

.nav-links.open a {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 18px 28px;
  transition: color 0.2s, background 0.2s;
  text-shadow: none;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  max-width: none;
  border-radius: 0;
  line-height: 1;
  opacity: 0;
  animation: menuItemSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nav-links.open a:nth-child(1) { animation-delay: 0.03s; }
.nav-links.open a:nth-child(2) { animation-delay: 0.06s; }
.nav-links.open a:nth-child(3) { animation-delay: 0.09s; }
.nav-links.open a:nth-child(4) { animation-delay: 0.12s; }
.nav-links.open a:nth-child(5) { animation-delay: 0.15s; }

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

.nav-links.open a:last-child {
  border-bottom: none;
}

.nav-links.open a:hover,
.nav-links.open a:active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  transform: none;
}

.nav-links.open a.active {
  color: #fff;
}

.nav-links.open a.ancwhis-nav {
  color: var(--white);
  text-transform: capitalize;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-links.open a::after {
  display: none;
}

/* ══════════════════════════════════════
   PANELS — Full Viewport Sections
   ══════════════════════════════════════ */
.panel {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  scroll-margin-top: var(--nav-h);
}

/* Background image panels */
.panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.panel-bg-img,
.panel-bg-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.15) 30%,
      rgba(0, 0, 0, 0.1) 50%,
      rgba(0, 0, 0, 0.6) 100%);
}

/* Solutions overlay — overall darkening + strong vignette */
.panel-overlay.dark {
  background:
    /* Overall darkening layer */
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.55) 25%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.6) 75%,
      rgba(0, 0, 0, 0.85) 100%),
    /* Strong vignette — pronounced edge darkening */
    radial-gradient(ellipse 65% 55% at 50% 50%,
      transparent 20%,
      rgba(0, 0, 0, 0.65) 100%);
}

.panel-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--container);
  padding: 0 32px;
}

.panel-content.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ── Labels ── */
.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-md);
  position: relative;
  padding-left: 24px;
}

.label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.3));
  opacity: 0.9;
}

/* ── Muted text ── */
.muted {
  color: rgba(255, 255, 255, 0.28);
}

/* ══════════════════════════════════════
   PANEL: HERO — Cinematic Full Viewport
   ══════════════════════════════════════ */
.panel-hero {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

/* Ken Burns on hero image & video */
.panel-hero .panel-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.panel-hero .panel-bg-img,
.panel-hero .panel-bg-vid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Hero overlay — overall darkening + strong vignette */
.panel-hero .panel-overlay {
  background:
    /* Overall darkening layer */
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.55) 20%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.6) 80%,
      rgba(0, 0, 0, 0.85) 100%),
    /* Strong vignette — pronounced edge darkening */
    radial-gradient(ellipse 65% 55% at 50% 50%,
      transparent 20%,
      rgba(0, 0, 0, 0.65) 100%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 0;
  position: relative;
}

/* Semi-transparent dark background — for text readability */
.hero-text-bg {
  position: absolute;
  inset: -60px -40px -60px;
  background: radial-gradient(ellipse 90% 70% at 50% 50%, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Hero headline — large, confident, Apple-style */
.hero-headline {
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 820px;
  margin-bottom: clamp(16px, 2vw, 28px);
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 4px 32px rgba(0, 0, 0, 0.7), 0 0 60px rgba(0, 0, 0, 0.5);
}

.hero-subline {
  font-size: var(--text-body-lg);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: clamp(32px, 4vw, 48px);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9), 0 2px 16px rgba(0, 0, 0, 0.7);
  font-weight: 300;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta-primary {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
}

.hero-cta-primary:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero-cta-primary svg {
  transition: transform 0.3s;
}

.hero-cta-primary:hover svg {
  transform: translateX(3px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  animation: scrollBounce 3s ease-in-out infinite;
}

.hero-scroll-text {
  opacity: 0.7;
}

.hero-scroll-hint svg {
  opacity: 0.5;
}

/* ══════════════════════════════════════
   PANEL: STATEMENT
   ══════════════════════════════════════ */
.panel-statement {
  background: var(--black);
  min-height: 80vh;
  padding: var(--section-pad) 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.panel-statement::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.statement-text {
  font-size: var(--text-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 900px;
}

/* ══════════════════════════════════════
   PANEL: SPLIT (Image + Text)
   ══════════════════════════════════════ */
.panel-split {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--gray-900);
}

@media (min-width: 1024px) {
  .panel-split {
    flex-direction: row;
  }
}

.split-image {
  flex: 1;
  min-height: 50vh;
  overflow: hidden;
  position: relative;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease-out;
}

.split-image {
  position: relative;
}

.split-image::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(10, 10, 12, 0.4));
  pointer-events: none;
}

@media (min-width: 1024px) {
  .split-image::after {
    width: 200px;
    background: linear-gradient(90deg, transparent, rgba(10, 10, 12, 0.6));
  }
}

.split-image:hover img {
  transform: scale(1.015);
}

@media (min-width: 1024px) {
  .split-image {
    min-height: 100vh;
    position: sticky;
    top: 0;
  }
}

.split-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vw, 120px) clamp(24px, 5vw, 80px);
}

.split-text h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.split-text p {
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 520px;
}

/* ══════════════════════════════════════
   PANEL: STATS BAR
   ══════════════════════════════════════ */
.panel-stats {
  min-height: auto;
  padding: var(--space-2xl) 0;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-inner {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: center;
  }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-md);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
}

.stat:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.02);
}

.stat-number {
  font-size: clamp(1.3rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #7a8a9e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.3);
}

.stat-divider {
  display: none;
}

@media (min-width: 768px) {
  .stat-divider {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  }
}

/* ══════════════════════════════════════
   PANEL: PRODUCT (Ancwhis)
   ══════════════════════════════════════ */
.panel-product {
  min-height: 100vh;
  padding: var(--section-pad) 0;
}

.panel-product .panel-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.panel-product .panel-bg-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.product-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Product title — large cinematic */
.product-title {
  font-size: var(--text-h2);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 780px;
  margin-bottom: clamp(16px, 2vw, 28px);
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 4px 32px rgba(0, 0, 0, 0.7), 0 0 60px rgba(0, 0, 0, 0.5);
}

/* Product desc */
.product-desc {
  font-size: var(--text-body-lg);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: clamp(32px, 4vw, 48px);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9), 0 2px 16px rgba(0, 0, 0, 0.7);
  font-weight: 300;
}

.solutions-cta {
  margin-top: 8px;
}

/* Button outline */
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 16px 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.3s ease-out, transform 0.3s ease-out, box-shadow 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s ease-out;
  border-radius: inherit;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.btn-outline:hover::before {
  opacity: 1;
}

/* ══════════════════════════════════════
   PANEL: TECHNOLOGY STACK
   ══════════════════════════════════════ */
.panel-stack {
  min-height: auto;
  padding: var(--section-pad) 0;
  background: var(--gray-900);
  display: block;
  align-items: unset;
  justify-content: unset;
}

.stack-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.stack-inner h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: clamp(36px, 5vw, 64px);
}

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

@media (min-width: 640px) {
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stack-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stack-card {
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.4s ease-out, border-color 0.4s ease-out, box-shadow 0.4s ease-out, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px -4px rgba(0, 0, 0, 0.15);
}

.stack-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.stack-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
}

.stack-card:hover::before {
  opacity: 1;
}

.sc-num {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  margin-bottom: 24px;
  letter-spacing: 0.1em;
  font-family: 'Orbitron', sans-serif;
}

.stack-card h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  margin-bottom: 14px;
}

.stack-card p {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.7;
}

/* ══════════════════════════════════════
   PANEL: ANCWHIS DEVICE
   ══════════════════════════════════════ */
.panel-ancwhis {
  min-height: auto;
  padding: var(--section-pad) 0;
  background: var(--black);
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.panel-ancwhis::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%,
      rgba(40, 40, 55, 1) 0%,
      rgba(0, 0, 0, 0) 70%);
  opacity: 0;
  animation: ancwhisHeartbeat 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ancwhisHeartbeat {

  0%,
  100% {
    opacity: 0;
  }

  35% {
    opacity: 0.7;
  }

  45% {
    opacity: 0.3;
  }

  55% {
    opacity: 0.6;
  }

  70% {
    opacity: 0;
  }
}

.ancwhis-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.ancwhis-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 600;
  margin-bottom: clamp(8px, 1.5vw, 16px);
}

.ancwhis-tagline {
  font-size: var(--text-body-lg);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  margin-bottom: clamp(16px, 2vw, 28px);
}

.ancwhis-desc {
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto clamp(32px, 4vw, 48px);
}

/* Coming Soon Badge */
.ancwhis-coming-soon {
  margin: 32px 0 40px;
}

.coming-soon-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.85);
  padding: 12px 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  animation: comingSoonPulse 3s ease-in-out infinite;
}

@keyframes comingSoonPulse {

  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }

  50% {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px -5px rgba(255, 255, 255, 0.1);
  }
}

/* ══════════════════════════════════════
   PANEL: TRUST / CORPORATE — Raymarine/Garmin style
   ══════════════════════════════════════ */
.panel-trust {
  min-height: auto;
  padding: var(--section-pad) 0;
  background: var(--gray-900);
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.trust-inner h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: clamp(36px, 5vw, 64px);
}

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

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-card {
  padding: 36px 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  transition: transform 0.4s ease-out,
    background 0.4s ease-out, border-color 0.4s ease-out, box-shadow 0.4s ease-out;
  box-shadow: 0 2px 12px -4px rgba(0, 0, 0, 0.15);
}

.trust-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
}

.tc-num {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.1em;
  font-family: 'Orbitron', sans-serif;
  display: block;
  margin-bottom: 16px;
}

.trust-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.trust-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

/* ══════════════════════════════════════
   PANEL: CONTACT & SUPPORT
   ══════════════════════════════════════ */
.panel-contact {
  min-height: auto;
  padding: var(--section-pad) 0;
  background: var(--gray-900);
}

.contact-support-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.support-header {
  margin-bottom: 64px;
}

.support-header h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: clamp(12px, 2vw, 20px);
}

.support-header p {
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  max-width: 520px;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
}

.support-grid::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  opacity: 0.6;
}

@media (min-width: 1024px) {
  .support-grid {
    grid-template-columns: 340px 1fr;
    gap: 64px;
    align-items: start;
  }
}

/* Support cards (contact info) */
.support-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.support-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: background 0.3s ease-out, border-color 0.3s ease-out;
  box-shadow: 0 2px 16px -4px rgba(0, 0, 0, 0.15);
}

.support-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.support-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.support-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.support-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
}

.support-card a,
.support-card .contact-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.25s;
}

.support-card a:hover {
  opacity: 0.7;
}

/* Support form */
.support-form-wrap {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 4px 24px -8px rgba(0, 0, 0, 0.2);
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.support-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .support-form-row {
    grid-template-columns: 1fr;
  }
}

.support-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.support-field input,
.support-field select,
.support-field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.25s, background 0.25s;
}

.support-field input::placeholder,
.support-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.support-field input:focus,
.support-field select:focus,
.support-field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
}

.support-field input.is-invalid,
.support-field select.is-invalid,
.support-field textarea.is-invalid {
  border-color: rgba(239, 68, 68, 0.8);
  background: rgba(68, 10, 10, 0.25);
}

.support-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.support-field textarea {
  resize: vertical;
  min-height: 120px;
}

.support-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  min-width: 160px;
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.3s ease-out,
    background 0.3s ease-out, box-shadow 0.3s ease-out, opacity 0.3s ease-out;
  align-self: flex-start;
  position: relative;
}

.support-submit .btn-icon {
  flex-shrink: 0;
}

.support-submit .btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.support-submit.loading .btn-text,
.support-submit.loading .btn-icon {
  opacity: 0;
  pointer-events: none;
  width: 0;
  overflow: hidden;
}

.support-submit.loading .btn-spinner {
  display: block;
  position: absolute;
}

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

.support-submit:hover:not(:disabled) {
  background: var(--gray-100);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.4);
}

.support-submit:active:not(:disabled) {
  transform: translateY(0);
}

.support-submit:disabled {
  opacity: 0.85;
  cursor: not-allowed;
  transform: none;
}

.support-feedback {
  font-size: 0.9rem;
  margin-top: 4px;
  min-height: 1.4em;
}

.support-feedback.success {
  color: #22c55e;
}

.support-feedback.error {
  color: #ef4444;
}

/* ══════════════════════════════════════
   LEGAL PAGES
   ══════════════════════════════════════ */
.legal-body #navbar {
  background: #000;
}

.legal-body .nav-links {
  display: flex;
  margin-left: auto;
  gap: 20px;
}

.legal-page {
  padding: calc(120px + env(safe-area-inset-top, 0px)) 32px 80px;
  max-width: 720px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.legal-page .updated {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
}

.legal-page .legal-summary-disclaimer {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 64ch;
  margin-bottom: 18px;
}

.legal-page .legal-localized-notice {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 0 0 48px;
}

.legal-page .legal-localized-notice:empty,
.legal-page .legal-localized-notice[hidden] {
  display: none;
}

.legal-page .legal-localized-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  margin-bottom: 8px;
}

.legal-page .legal-localized-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.legal-page .legal-localized-notice p,
.legal-page .legal-localized-notice li {
  color: rgba(255, 255, 255, 0.76);
}

.legal-page .legal-localized-notice ul {
  margin: 0 0 16px 20px;
}

.legal-page .legal-localized-contact {
  margin-bottom: 0;
}

.legal-page h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 40px 0 16px;
  color: var(--white);
}

.legal-page h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 24px 0 12px;
  color: rgba(255, 255, 255, 0.85);
}

.legal-page p,
.legal-page li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-page ul {
  margin: 0 0 16px 24px;
}

.legal-page a {
  color: var(--accent);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-page .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.legal-page .back:hover {
  color: var(--white);
}

.legal-page .toc {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px 28px;
  margin: 0 0 48px;
}

.legal-page .toc ol {
  margin: 0;
  padding-left: 20px;
}

.legal-page .toc li {
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.5);
}

.legal-page .toc a {
  color: rgba(255, 255, 255, 0.5);
}

.legal-page .toc a:hover {
  color: var(--white);
}

.legal-page .contact-box,
.legal-page .warning,
.legal-page .notice {
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

.legal-page .contact-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-page .warning {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.legal-page .notice {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
}

@media screen and (max-width: 767px) {
  .legal-body .nav-links {
    gap: 16px;
  }

  .legal-page {
    padding: calc(80px + env(safe-area-inset-top, 0px)) 20px 60px;
  }
}

.contact-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.25);
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
}

.contact-value.link {
  text-decoration: none;
  color: var(--white);
  transition: opacity 0.25s;
}

.contact-value.link:hover {
  opacity: 0.6;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
#footer {
  padding: 56px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--black);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: start;
    justify-content: space-between;
  }
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
}

@media (min-width: 640px) {
  .footer-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

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

.footer-col a.ancwhis-logo {
  color: var(--white);
}

.footer-logo {
  font-size: var(--logo-font-size) !important;
}

.footer-dev-info {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-dev-info .footer-col-title {
  display: block;
  margin-bottom: 12px;
}

.footer-dev-info p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
}

.footer-dev-info a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.25s;
}

.footer-dev-info a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
}

.footer-note {
  margin-top: 8px;
  font-size: 10px !important;
  color: rgba(255, 255, 255, 0.12) !important;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   SECTION DIVIDERS — subtle gradient
   ══════════════════════════════════════ */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

/* ══════════════════════════════════════
   MOBILE OPTIMIZATIONS
   ══════════════════════════════════════ */

/* ── Small screens (phones) ── */
@media screen and (max-width: 767px) {
  :root {
    --nav-h: 56px !important;
    --logo-font-size: 20px !important;
  }

  /* Navbar — fully opaque on mobile for notch coverage */
  #navbar {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  }

  #navbar.scrolled {
    background: #000 !important;
  }

  .nav-inner {
    padding: 0 16px !important;
  }

  .lang-switch-wrap {
    margin-left: auto !important;
    margin-right: 12px !important;
    position: relative;
  }

  .lang-dropdown {
    right: 0;
    left: auto;
    min-width: 160px;
    max-height: 60vh;
  }

  /* General panels */
  .panel {
    min-height: auto !important;
    overflow-x: hidden !important;
  }

  .panel-content {
    padding: 0 24px !important;
  }

  /* Hero */
  .panel-hero {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
  }

  .hero-headline {
    line-height: 1.15 !important;
    padding: 0 4px !important;
  }

  .hero-subline {
    padding: 0 4px !important;
    max-width: 100% !important;
  }

  .hero-cta {
    font-size: 13px !important;
    padding: 14px 28px !important;
  }

  .hero-scroll-hint {
    bottom: 24px !important;
  }

  .hero-text-bg {
    inset: -30px -16px -30px !important;
  }

  /* Statement */
  .panel-statement {
    min-height: 50vh !important;
  }

  .statement-text {
    padding: 0 4px !important;
  }

  /* Mission — Split panel */
  .panel-split {
    min-height: auto !important;
    flex-direction: column !important;
  }

  .split-image {
    min-height: 35vh !important;
    max-height: 40vh !important;
  }

  .split-text {
    padding: 36px 20px !important;
  }

  .split-text h2,
  .split-text p {
    /* fluid typography handles sizing */
  }

  /* Stats */
  .panel-stats {
    min-height: auto !important;
    padding: 40px 0 !important;
  }

  .stats-inner {
    padding: 0 20px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }

  .stat-divider {
    display: none !important;
  }

  .stat {
    text-align: center !important;
  }

  .stat-label {
    font-size: 10px !important;
  }

  /* Solutions / Product */
  .panel-product {
    min-height: auto !important;
    padding: 64px 0 !important;
  }

  .product-title,
  .product-desc {
    /* fluid typography handles sizing */
  }

  /* Technology — Stack cards (Full-stack ownership) */
  .panel-stack {
    padding: 56px 0 !important;
  }

  .stack-inner {
    padding: 0 20px !important;
  }

  .stack-inner h2 {
    /* fluid typography handles sizing */
  }

  .stack-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .stack-card {
    padding: 28px 24px !important;
  }

  .stack-card:hover {
    transform: none !important;
  }

  /* Mobile cards — still visible but no tilt */
  .stack-card.card-visible,
  .trust-card.card-visible {
    opacity: 1;
    transform: translateY(0) !important;
  }

  .sc-num {
    margin-bottom: 12px !important;
  }

  .stack-card h3 {
    font-size: 1rem !important;
    margin-bottom: 8px !important;
  }

  .stack-card p {
    font-size: 0.85rem !important;
  }

  /* Ancwhis */
  .panel-ancwhis {
    min-height: auto !important;
    padding: 56px 0 !important;
  }

  .ancwhis-inner {
    padding: 0 20px !important;
  }

  .ancwhis-title,
  .ancwhis-tagline,
  .ancwhis-desc {
    /* fluid typography handles sizing */
  }

  .btn-outline {
    font-size: 13px !important;
    padding: 14px 24px !important;
  }

  /* Trust — Why Saymarine */
  .panel-trust {
    min-height: auto !important;
    padding: 56px 0 !important;
  }

  .trust-inner {
    padding: 0 20px !important;
  }

  .trust-inner h2 {
    /* fluid typography handles sizing */
  }

  .trust-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .trust-card {
    padding: 28px 24px !important;
  }

  .trust-card:hover {
    transform: none !important;
  }

  .tc-num {
    font-size: 10px !important;
  }

  .trust-card h3 {
    font-size: 0.95rem !important;
  }

  .trust-card p {
    font-size: 0.83rem !important;
  }

  /* Contact & Support */
  .panel-contact {
    min-height: auto !important;
    padding: 56px 0 !important;
  }

  .contact-support-inner {
    padding: 0 20px !important;
  }

  .support-header {
    margin-bottom: 32px !important;
  }

  .support-header h2,
  .support-header p {
    /* fluid typography handles sizing */
  }

  .support-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .support-side {
    gap: 12px !important;
  }

  .support-card {
    padding: 20px 16px !important;
  }

  .support-card h3 {
    font-size: 0.95rem !important;
  }

  .support-form-wrap {
    padding: 24px 16px !important;
  }

  .support-form-row {
    grid-template-columns: 1fr !important;
  }

  .support-field input,
  .support-field select,
  .support-field textarea {
    padding: 12px 14px !important;
    font-size: 14px !important;
  }

  .support-submit {
    width: 100% !important;
    padding: 14px !important;
  }

  /* Footer */
  #footer {
    padding: 36px 0 28px !important;
  }

  .footer-inner {
    padding: 0 20px !important;
    gap: 28px !important;
    margin-bottom: 28px !important;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px 24px !important;
  }

  .footer-logo {
    font-size: 20px !important;
  }

  .footer-dev-info {
    padding: 20px 20px 16px !important;
  }

  .footer-dev-info p {
    font-size: 12px !important;
  }

  .footer-bottom {
    padding: 16px 20px 0 !important;
  }

  .footer-note {
    font-size: 9px !important;
  }

  /* Back to top button */
  .back-to-top {
    bottom: 16px !important;
    right: 16px !important;
    width: 40px !important;
    height: 40px !important;
  }

  /* Global overflow prevention */
  body {
    overflow-x: hidden !important;
  }
}
