:root {
  --ink: #0b1f3a;
  --abyss: #071426;
  --sea: #0e7fb8;
  --cyanx: #22b8e8;
  --mist: #f4f7fa;
  --pearl: #fafbfc;
  --line: #e2e8f0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
}

.bg-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sea);
}

.kicker::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: currentColor;
}

.kicker--center::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: currentColor;
}

.display-1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.display-2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.display-3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  font-weight: 700;
}

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: #475569;
}

.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.glass-light {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.card-lift {
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.5s var(--ease);
}

.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(11, 31, 58, 0.25);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.4s var(--ease);
}

.btn-primary:hover {
  background: var(--sea);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(14, 127, 184, 0.55);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 31, 58, 0.25);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.4s var(--ease);
}

.btn-ghost:hover {
  border-color: var(--sea);
  color: var(--sea);
  transform: translateY(-2px);
}

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  transition: all 0.4s var(--ease);
}

.btn-light:hover {
  background: var(--cyanx);
  color: var(--abyss);
  transform: translateY(-2px);
}

.link-underline {
  position: relative;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(11, 31, 58, 0.35);
}

.text-outline-light {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
}

.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.9s var(--ease),
    visibility 0.9s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide .slide-img {
  position: absolute;
  inset: 0;
  transform: scale(1.08);
  transition: transform 7s var(--ease);
}

.hero-slide.is-active .slide-img {
  transform: scale(1);
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
}

.hero-dots button {
  width: 2.6rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  position: relative;
  transition: background 0.3s;
}

.hero-dots button.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cyanx);
  animation: dotfill 6s linear forwards;
}

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

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.3s;
}

.accordion-button:hover {
  color: var(--sea);
}

.accordion-button .acc-icon {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.4s var(--ease);
}

.accordion-item.is-open .acc-icon {
  background: var(--ink);
  color: #fff;
  transform: rotate(180deg);
  border-color: var(--ink);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--ease);
}

.accordion-body-inner {
  padding-bottom: 1.5rem;
  color: #475569;
  line-height: 1.75;
}

.accordion--dark .accordion-item {
  border-color: rgba(255, 255, 255, 0.14);
}

.accordion--dark .accordion-button {
  color: #fff;
}

.accordion--dark .accordion-button .acc-icon {
  border-color: rgba(255, 255, 255, 0.25);
}

.accordion--dark .accordion-body-inner {
  color: rgba(255, 255, 255, 0.72);
}

.rail {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

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

.rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.rail > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

.tab-btn {
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.85rem;
  color: #475569;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}

.tab-btn.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: fadeUp 0.6s var(--ease);
}

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

.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 4rem;
  animation: marquee 32s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.counter-value {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.orbit-ring {
  position: absolute;
  border: 1px dashed rgba(14, 127, 184, 0.35);
  border-radius: 50%;
  animation: orbit 26s linear infinite;
}

.orbit-ring.slow {
  animation-duration: 40s;
  animation-direction: reverse;
}

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

.clip-diag {
  clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%);
}

@media (max-width: 768px) {
  .clip-diag {
    clip-path: none;
    border-radius: 1.4rem;
  }
}

.field {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.95rem;
  color: var(--ink);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.field:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 4px rgba(14, 127, 184, 0.14);
}

.field.is-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.field-error {
  display: none;
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

.field.is-error + .field-error,
.field-wrap.is-error .field-error {
  display: block;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.toast {
  position: fixed;
  bottom: 6.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: var(--ink);
  color: #fff;
  padding: 1rem 1.8rem;
  border-radius: 1rem;
  box-shadow: 0 20px 50px -10px rgba(11, 31, 58, 0.5);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.45s var(--ease);
  max-width: min(92vw, 480px);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#cookie-banner {
  position: fixed;
  left: 1.2rem;
  bottom: 1.2rem;
  width: min(430px, calc(100vw - 2.4rem));
  z-index: 99998;
  display: none;
}

#cookie-banner.is-visible {
  display: block;
  animation: fadeUp 0.6s var(--ease);
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem;
  border-radius: 999px;
  background: rgba(7, 20, 38, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px -15px rgba(7, 20, 38, 0.6);
}

.dock button,
.dock a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.dock button:hover,
.dock a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.dock .dock-cta {
  background: var(--cyanx);
  color: var(--abyss);
  font-weight: 800;
}

.dock .dock-cta:hover {
  background: #fff;
  color: var(--abyss);
}

.dock-progress-ring {
  transform: rotate(-90deg);
}

.dock-progress-ring circle {
  transition: stroke-dashoffset 0.15s linear;
}

@media (max-width: 768px) {
  .dock {
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    border-radius: 0;
    padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
    justify-content: space-between;
  }
html,body{overflow-x:hidden;max-width:100%}
  #cookie-banner {
    left: 0.8rem;
    bottom: calc(0.8rem + env(safe-area-inset-bottom));
    width: calc(100vw - 1.6rem);
  }

  body.has-dock footer {
    padding-bottom: 5.5rem;
  }
}

.compare {
  position: relative;
  overflow: hidden;
  border-radius: 1.4rem;
  touch-action: none;
  user-select: none;
}

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

.compare .compare-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--split, 50%));
}

.compare .compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 5;
}

.compare .compare-handle::after {
  content: "\f337";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

input[type="range"].hr-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--sea) var(--fill, 50%),
    var(--line) var(--fill, 50%)
  );
  outline: none;
}

input[type="range"].hr-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--sea);
  box-shadow: 0 4px 14px rgba(14, 127, 184, 0.4);
  cursor: pointer;
}

input[type="range"].hr-range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--sea);
  box-shadow: 0 4px 14px rgba(14, 127, 184, 0.4);
  cursor: pointer;
}

.pulse-dot {
  position: relative;
}

.pulse-dot::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.25;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.float-slow {
  animation: floaty 7s ease-in-out infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.grain {
  position: relative;
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.09) 1px,
    transparent 1px
  );
  background-size: 4px 4px;
}

.grid-lines {
  background-image:
    linear-gradient(rgba(11, 31, 58, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 58, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.timeline-line .timeline-fill {
  width: 100%;
  height: 0%;
  background: var(--sea);
  transition: height 0.3s linear;
}

.quiz-step {
  display: none;
}

.quiz-step.is-active {
  display: block;
  animation: fadeUp 0.5s var(--ease);
}

.quiz-option {
  transition: all 0.3s var(--ease);
}

.quiz-option.is-selected {
  border-color: var(--sea);
  background: rgba(14, 127, 184, 0.06);
  box-shadow: 0 0 0 4px rgba(14, 127, 184, 0.12);
}

.nav-link {
  position: relative;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.4rem 0;
  white-space: nowrap;
  transition: color 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--sea);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

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

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header {
  transition: all 0.4s var(--ease);
}

.site-header.is-scrolled .header-main {
  box-shadow: 0 10px 40px -12px rgba(11, 31, 58, 0.18);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: var(--abyss);
  color: #fff;
  padding: 6rem 2rem 3rem;
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease);
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: translateY(0);
}

.mobile-menu a {
  color: #fff;
}

.countdown-cell {
  min-width: 4.6rem;
  padding: 1rem 0.8rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  text-align: center;
}

.countdown-cell .cd-value {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.check-item i {
  color: var(--sea);
}

.x-item i {
  color: #94a3b8;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.is-active {
  display: block;
  animation: fadeUp 0.6s var(--ease);
}

.t-nav {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all 0.3s var(--ease);
}

.t-nav:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.filter-chip {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  transition: all 0.3s;
}

.filter-chip.is-active {
  background: var(--sea);
  color: #fff;
  border-color: var(--sea);
}

.filterable.is-hidden {
  display: none;
}

.page-content section[id] {
  scroll-margin-top: 110px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
