:root {
  --ink: #0f1c24;
  --slate: #3d4f5c;
  --mist: #f4f7f5;
  --foam: #e7f0eb;
  --pine: #157a64;
  --pine-deep: #0d4f41;
  --sand: #d5e3db;
  --line: rgba(15, 28, 36, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--mist);
}

.font-display {
  font-family: "Syne", system-ui, sans-serif;
}

.hero-plane {
  background:
    radial-gradient(ellipse 70% 55% at 78% 12%, rgba(183, 235, 214, 0.7), transparent 55%),
    radial-gradient(ellipse 45% 40% at 8% 85%, rgba(213, 227, 219, 0.85), transparent 50%),
    linear-gradient(160deg, #f8fbf9 0%, #eef4f1 48%, #e5ede9 100%);
}

.mesh {
  background-image:
    linear-gradient(rgba(15, 28, 36, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 28, 36, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
}

.code-panel {
  background: linear-gradient(150deg, #122029 0%, #0f1c24 52%, #143028 100%);
}

.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--pine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--ink);
}

.feature-tile {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease,
    box-shadow 0.35s ease;
}

.feature-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(21, 122, 100, 0.35);
  box-shadow: 0 24px 48px -28px rgba(15, 28, 36, 0.3);
}

.package-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease,
    box-shadow 0.35s ease;
}

.package-card:hover {
  transform: translateY(-5px);
  border-color: rgba(21, 122, 100, 0.4);
  box-shadow: 0 24px 48px -28px rgba(15, 28, 36, 0.32);
}

.package-card.featured {
  border-color: rgba(21, 122, 100, 0.5);
  background: linear-gradient(180deg, #ffffff 0%, #f1f8f5 100%);
}

.icon-box {
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: rgba(21, 122, 100, 0.1);
  color: var(--pine);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse-line {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.anim-rise {
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-rise-1 {
  animation-delay: 0.1s;
}

.anim-rise-2 {
  animation-delay: 0.2s;
}

.anim-rise-3 {
  animation-delay: 0.3s;
}

.anim-fade {
  animation: fade-in 1s ease both;
}

.cursor-blink {
  animation: pulse-line 1.2s ease-in-out infinite;
}

.page-hero {
  background:
    radial-gradient(ellipse 60% 50% at 90% 0%, rgba(183, 235, 214, 0.45), transparent 55%),
    linear-gradient(180deg, #f7faf8 0%, #ffffff 100%);
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

#mobile-nav:not(.open) {
  display: none;
}

#mobile-nav.open {
  display: block;
}

.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.pay-modal.open {
  display: flex;
}

.pay-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 36, 0.45);
  backdrop-filter: blur(4px);
}

.pay-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 28, 36, 0.08);
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 24px 60px -28px rgba(15, 28, 36, 0.45);
  animation: rise 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pay-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #3d4f5c;
  cursor: pointer;
}
