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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: var(--vvh);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

img[loading="lazy"] {
  background: rgba(148, 163, 184, 0.06);
}

.img-fade {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.img-fade.is-loaded {
  opacity: 1;
}

a { color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.section {
  padding: var(--section-y) 0;
  position: relative;
}

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

.section-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cobalt-light);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.2vw, 2.65rem);
  font-weight: 700;
  letter-spacing: var(--heading-tracking);
  line-height: var(--heading-line-height);
  margin-bottom: 1rem;
  text-wrap: balance;
}

h1, h2, .page-hero h1, .home-hero h1, .lp-hero h1, .lp-section-title, .cta-band h2 {
  font-family: var(--font-display);
  line-height: var(--heading-line-height);
  letter-spacing: var(--heading-tracking);
  text-wrap: balance;
}

.section-sub {
  color: var(--slate);
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  max-width: 560px;
  line-height: 1.72;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.section-head {
  margin-bottom: 0.5rem;
}

.section-head.center {
  text-align: center;
}

.section-head.center .section-sub {
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--touch);
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s, opacity 0.2s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:focus-visible {
  outline: 2px solid var(--cobalt-light);
  outline-offset: 3px;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  animation: btnSpin 0.7s linear infinite;
}

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

.btn.is-success {
  background: var(--emerald) !important;
  border-color: transparent !important;
  color: #04140f !important;
}

.btn-primary {
  background: var(--cobalt);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.35);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--cobalt-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.5);
  }
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-strong);
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    border-color: var(--slate);
    background: rgba(255, 255, 255, 0.04);
  }
}

.btn-ghost {
  background: rgba(37, 99, 235, 0.1);
  color: var(--cobalt-light);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover {
    background: rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
  }
}

.btn-sm {
  min-height: max(44px, calc(var(--touch) - 4px));
  padding: 0.65rem 1.05rem;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

.actions-row,
.section-actions,
.product-actions,
.port-actions,
.world-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 600px) {
  .btn {
    white-space: normal;
    text-align: center;
  }

  .actions-row > .btn,
  .section-actions > .btn,
  .cta-band .btn,
  .home-hero .btn,
  .lp-hero-actions .btn {
    width: 100%;
  }

  .product-actions,
  .port-actions {
    gap: 0.65rem;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.page-transition {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

.wa-float {
  position: fixed;
  bottom: var(--float-offset);
  right: var(--float-right);
  z-index: var(--z-float);
  width: var(--touch);
  height: var(--touch);
  min-width: var(--touch);
  min-height: var(--touch);
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
}

@media (hover: hover) and (pointer: fine) {
  .wa-float:hover { transform: scale(1.08); }
}

.wa-float.is-dragging {
  cursor: grabbing;
  transform: scale(1.04);
  transition: none;
  box-shadow: 0 12px 34px rgba(37, 211, 102, 0.58);
}
.wa-float svg { width: 28px; height: 28px; }

html.floating-control-dragging {
  user-select: none;
  cursor: grabbing;
}

.snap-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  scroll-padding-inline: var(--gutter);
}

.snap-rail::-webkit-scrollbar { display: none; }

.snap-rail > * {
  flex: 0 0 min(86vw, 360px);
  scroll-snap-align: center;
}

.chip-rail {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.chip-rail::-webkit-scrollbar { display: none; }

.chip-rail > * {
  flex: 0 0 auto;
}

.skeleton {
  background: linear-gradient(90deg, rgba(148,163,184,0.08), rgba(148,163,184,0.16), rgba(148,163,184,0.08));
  background-size: 200% 100%;
  animation: skeletonShimmer 1.2s ease-in-out infinite;
  border-radius: 10px;
}

@keyframes skeletonShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 768px) {
  .section { padding: clamp(3.25rem, 10vw, 4.5rem) 0; }
  .wa-float {
    bottom: calc(0.85rem + var(--safe-bottom));
    right: calc(0.85rem + var(--safe-right));
  }
}

@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;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
