/* MekongTrace LP — Forest expedition theme */

:root {
  --color-bg-deep: #0a1410;
  --color-bg-mid: #12241c;
  --color-surface: rgba(18, 36, 28, 0.72);
  --color-surface-solid: #1a3028;
  --color-text: #e8f2ec;
  --color-text-muted: #9bb5a8;
  --color-accent: #c9a227;
  --color-accent-glow: rgba(201, 162, 39, 0.45);
  --color-moss: #3d6b52;
  --color-fern: #5a9e78;
  --color-mist: rgba(200, 220, 210, 0.08);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --header-h: 4.5rem;
  --radius-lg: 1.25rem;
  --radius-md: 0.75rem;
  --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.45);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg-deep);
  overflow-x: hidden;
}

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

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

/* —— Global parallax atmosphere —— */
.parallax-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  inset: -20%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.parallax-layer--far {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(61, 107, 82, 0.35), transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(90, 158, 120, 0.12), transparent 60%),
    linear-gradient(180deg, #06100c 0%, #0f2219 45%, #152e22 100%);
  opacity: 0.9;
}

.parallax-layer--mid {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400'%3E%3Cpath fill='%231a3528' d='M0 400 L0 280 Q100 200 200 260 T400 220 T600 280 T800 240 L800 400Z'/%3E%3Cpath fill='%23224435' opacity='.7' d='M0 400 L0 320 Q150 260 300 300 T500 270 T800 300 L800 400Z'/%3E%3C/svg%3E");
  background-position: bottom center;
  background-size: 120% auto;
  opacity: 0.55;
}

.parallax-layer--near {
  background-image:
    radial-gradient(circle at 70% 20%, rgba(201, 162, 39, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 15% 60%, rgba(90, 158, 120, 0.08) 0%, transparent 35%);
  opacity: 0.8;
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, rgba(6, 16, 12, 0.92) 0%, rgba(6, 16, 12, 0) 100%);
  backdrop-filter: blur(8px);
  transition: background 0.4s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(6, 16, 12, 0.88);
  border-bottom: 1px solid rgba(155, 181, 168, 0.12);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo__mark {
  display: block;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--color-text);
}

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.15);
  color: var(--color-accent) !important;
  border: 1px solid rgba(201, 162, 39, 0.35);
}

/* —— Placeholders (replace with real images via CSS background-image) —— */
.placeholder-hero,
.placeholder-cta,
.placeholder-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.placeholder-hero {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(165deg, rgba(6, 16, 12, 0.25) 0%, rgba(6, 16, 12, 0.75) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1920' height='1080'%3E%3Cdefs%3E%3ClinearGradient id='sky' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%230d1f17'/%3E%3Cstop offset='100%25' stop-color='%231a3d2e'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect fill='url(%23sky)' width='1920' height='1080'/%3E%3Cpath fill='%23152820' d='M0 700 Q320 500 640 620 T1280 580 T1920 650 L1920 1080 L0 1080Z'/%3E%3Cpath fill='%230f1f18' opacity='.8' d='M0 800 Q400 650 800 720 T1600 680 L1920 720 L1920 1080 L0 1080Z'/%3E%3Ccircle cx='300' cy='200' r='120' fill='%23c9a227' opacity='.08'/%3E%3C/svg%3E") center / cover no-repeat;
  border: 2px dashed rgba(155, 181, 168, 0.25);
}

.placeholder-hero--ready {
  background:
    linear-gradient(165deg, rgba(6, 16, 12, 0.35) 0%, rgba(6, 16, 12, 0.72) 100%),
    url("../images/hero-bg.jpg") center / cover no-repeat;
  border: none;
}

.placeholder-hero--ready::before {
  display: none;
}

.placeholder-label,
.placeholder-hint {
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.placeholder-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.placeholder-hint {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.placeholder-cta {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(6, 16, 12, 0.5) 0%, rgba(6, 16, 12, 0.85) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1920' height='800'%3E%3Crect fill='%2312281e' width='1920' height='800'/%3E%3Cpath fill='%231a3528' d='M0 500 Q480 350 960 420 T1920 380 L1920 800 L0 800Z'/%3E%3C/svg%3E") center / cover;
  border: 2px dashed rgba(155, 181, 168, 0.2);
}

.placeholder-cta--ready {
  background:
    linear-gradient(180deg, rgba(6, 16, 12, 0.45) 0%, rgba(6, 16, 12, 0.88) 100%),
    url("../images/cta-bg.jpg") center / cover no-repeat;
  border: none;
}

.placeholder-card {
  aspect-ratio: 16 / 10;
  min-height: 12rem;
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(26, 48, 40, 0.9), rgba(10, 20, 16, 0.95)),
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(90, 158, 120, 0.04) 0deg 10deg, transparent 10deg 20deg);
  border: 1px dashed rgba(155, 181, 168, 0.3);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 1rem;
}

.placeholder-card--offline span::before { content: "📍 "; }
.placeholder-card--doc span::before { content: "🎬 "; }
.placeholder-card--pip span::before { content: "🗺️ "; }
.placeholder-card--pins span::before { content: "📌 "; }

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, transparent 0%, rgba(6, 16, 12, 0.55) 100%),
    linear-gradient(0deg, var(--color-bg-deep) 0%, transparent 35%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  text-align: center;
}

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(90, 158, 120, 0.2);
  color: var(--color-fern);
  border: 1px solid rgba(90, 158, 120, 0.35);
}

.badge--outline {
  background: transparent;
  color: var(--color-text-muted);
  border-color: rgba(155, 181, 168, 0.35);
}

.hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

.hero__title .accent {
  color: var(--color-accent);
  font-style: italic;
}

.hero__lead {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--color-text-muted);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  animation: float-y 2.5s ease-in-out infinite;
}

@keyframes float-y {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent), #e0b84a);
  color: #1a1408;
  box-shadow: 0 8px 28px var(--color-accent-glow);
}

.btn--primary:hover {
  box-shadow: 0 12px 36px var(--color-accent-glow);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  border: 1px solid rgba(155, 181, 168, 0.35);
  backdrop-filter: blur(8px);
}

/* —— Sections —— */
.section-inner {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-fern);
}

.section-eyebrow--light {
  color: var(--color-accent);
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
}

.section-desc {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* —— Features —— */
.features {
  position: relative;
  padding: 6rem 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(18, 36, 28, 0.4) 20%, rgba(18, 36, 28, 0.6) 80%, transparent 100%);
}

.features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155, 181, 168, 0.2), transparent);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-items: center;
}

@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
  }
}

@media (min-width: 1100px) {
  .features__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid rgba(155, 181, 168, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(90, 158, 120, 0.35);
}

.feature-card__icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.25rem 1rem 0.75rem;
}

.feature-card__icons--wide {
  gap: 0.5rem;
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(10, 20, 16, 0.85);
  border: 1px solid rgba(90, 158, 120, 0.35);
  color: var(--color-fern);
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out), border-color 0.25s, color 0.25s;
}

.feature-card__icon i {
  display: block;
  line-height: 1;
  font-size: inherit;
  color: inherit;
}

.feature-card__icon--main {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.2rem;
  color: var(--color-accent);
  border-color: rgba(201, 162, 39, 0.55);
  background: linear-gradient(145deg, rgba(61, 107, 82, 0.45), rgba(10, 20, 16, 0.9));
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.2);
}

.feature-card:hover .feature-card__icon--main {
  transform: scale(1.06);
}

.feature-card:hover .feature-card__icon:not(.feature-card__icon--main) {
  border-color: rgba(90, 158, 120, 0.55);
}

.feature-card__visual {
  display: flex;
  justify-content: center;
  padding: 0 1rem 0;
}

.feature-shot-frame {
  position: relative;
  width: min(100%, 13.5rem);
  aspect-ratio: 471 / 1024;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(180deg, #0d1a14 0%, #06100c 100%);
  border: 1px solid rgba(155, 181, 168, 0.2);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.feature-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  border-radius: calc(1rem - 1px);
}

.feature-card__body {
  padding: 1.25rem 1.5rem 1.75rem;
  flex: 1;
}

.feature-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.feature-card__body p {
  text-align: center;
}

.feature-card__body .feature-tags {
  justify-content: center;
}

.feature-card p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-text-muted);
}

.feature-tags i {
  color: var(--color-fern);
  font-size: 0.65rem;
}

/* —— CTA —— */
.cta {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(201, 162, 39, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, var(--color-bg-deep) 0%, rgba(6, 16, 12, 0.7) 30%, rgba(6, 16, 12, 0.9) 100%);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
}

.cta__desc {
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.btn--cta {
  min-width: min(100%, 18rem);
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

.btn--cta-a {
  background: linear-gradient(135deg, var(--color-accent), #e8c55a);
  color: #1a1408;
  box-shadow: 0 10px 40px var(--color-accent-glow);
}

.btn--cta-b {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  border: 2px solid rgba(201, 162, 39, 0.5);
  backdrop-filter: blur(10px);
}

.btn--cta-b:hover {
  background: rgba(201, 162, 39, 0.12);
  border-color: var(--color-accent);
}

.cta__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.cta__note i {
  margin-right: 0.35rem;
  color: var(--color-fern);
}

/* —— Footer —— */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(155, 181, 168, 0.1);
  background: rgba(6, 16, 12, 0.95);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.site-footer__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(155, 181, 168, 0.55);
}

/* —— Scroll animations —— */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in[data-delay="1"] { transition-delay: 0.1s; }
.fade-in[data-delay="2"] { transition-delay: 0.2s; }
.fade-in[data-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .parallax-layer,
  .hero__scroll-hint {
    animation: none;
    transform: none;
  }
}

.hide-mobile {
  display: none;
}

@media (min-width: 640px) {
  .hide-mobile {
    display: inline;
  }
}

@media (max-width: 639px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }
}
