/* ── Vanspot Landing Page ─────────────────────────────────────────────────── */

:root {
  --color-primary: #001511;
  --color-primary-container: #0b2b26;
  --color-secondary: #416900;
  --color-cta: #b0f754;
  --color-cta-dim: #95da39;
  --color-terracotta: #d66b44;
  --color-sand: #f5fbf8;
  --color-surface: #eff5f3;
  --color-on-surface: #171d1c;
  --color-muted: #414846;
  --color-outline: #c1c8c5;
  --color-inverse: #ecf2f0;

  --font: "Work Sans", system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 21, 17, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 21, 17, 0.1);
  --shadow-lg: 0 24px 64px rgba(0, 21, 17, 0.14);
  --shadow-phone: 0 32px 80px rgba(0, 21, 17, 0.22);

  --nav-height: 72px;
  --container: 1120px;
  --gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
}

@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 {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-on-surface);
  background: var(--color-sand);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* ── Typography ───────────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--color-cta);
  border-radius: 1px;
}

h1,
h2,
h3 {
  color: var(--color-primary);
  line-height: 1.15;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-muted);
  max-width: 52ch;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn--primary {
  background: var(--color-cta);
  color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(176, 247, 84, 0.35);
}

.btn--primary:hover {
  background: var(--color-cta-dim);
  box-shadow: 0 6px 24px rgba(176, 247, 84, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-outline);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  background: rgba(0, 21, 17, 0.04);
}

.btn--inverse {
  background: var(--color-cta);
  color: var(--color-primary);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 13px;
}

/* ── Pills / badges ───────────────────────────────────────────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1px solid var(--color-outline);
}

.pill--accent {
  background: rgba(214, 107, 68, 0.12);
  color: var(--color-terracotta);
  border-color: rgba(214, 107, 68, 0.25);
}

.pill--mint {
  background: rgba(176, 247, 84, 0.2);
  color: var(--color-secondary);
  border-color: rgba(176, 247, 84, 0.4);
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav--scrolled {
  background: rgba(245, 251, 248, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav__wordmark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-primary);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: gradientDrift 12s ease-in-out infinite alternate;
}

.hero__gradient--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(176, 247, 84, 0.35), transparent 70%);
}

.hero__gradient--2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -150px;
  background: radial-gradient(circle, rgba(214, 107, 68, 0.2), transparent 70%);
  animation-delay: -6s;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 21, 17, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 21, 17, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

@keyframes gradientDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.08); }
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ── Phone frame ──────────────────────────────────────────────────────────── */

.phone {
  position: relative;
  width: 260px;
  aspect-ratio: 9 / 19.5;
  background: var(--color-primary);
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-phone);
  transform-style: preserve-3d;
}

.phone--float {
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

.phone--tilt-left {
  transform: rotate(-6deg);
}

.phone--tilt-right {
  transform: rotate(6deg);
}

.phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: var(--color-primary);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--color-surface);
  position: relative;
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(
    160deg,
    var(--color-primary-container) 0%,
    #1a4a42 50%,
    var(--color-primary) 100%
  );
  color: var(--color-inverse);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 24px;
}

.phone__placeholder-icon {
  width: 48px;
  height: 48px;
  opacity: 0.6;
}

.phone__placeholder-label {
  opacity: 0.8;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */

.section {
  padding: 96px 0;
}

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

.section__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 64px;
}

/* ── Problem / Solution cards ───────────────────────────────────────────────── */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: white;
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(176, 247, 84, 0.15);
  border-radius: var(--radius-sm);
  font-size: 24px;
}

.card__problem {
  font-size: 13px;
  color: var(--color-terracotta);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card__solution {
  color: var(--color-muted);
  font-size: 15px;
}

/* ── Feature showcase ───────────────────────────────────────────────────────── */

.features {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature--reverse .feature__content {
  order: 2;
}

.feature--reverse .feature__visual {
  order: 1;
}

.feature__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.feature__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--color-muted);
}

.feature__list li::before {
  content: "✓";
  color: var(--color-secondary);
  font-weight: 700;
  flex-shrink: 0;
}

.feature__visual {
  display: flex;
  justify-content: center;
}

/* ── Phone gallery ──────────────────────────────────────────────────────────── */

.phone-gallery {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  perspective: 1200px;
  padding: 40px 0;
  min-height: 480px;
}

.phone-gallery__item {
  transition: transform 0.4s ease;
  flex-shrink: 0;
  margin-left: -28px;
}

.phone-gallery__item:first-child {
  margin-left: 0;
}

.phone-gallery__item:nth-child(1) {
  transform: rotate(-14deg) translateY(24px);
  z-index: 1;
}

.phone-gallery__item:nth-child(2) {
  transform: rotate(-7deg) translateY(8px);
  z-index: 2;
}

.phone-gallery__item:nth-child(3) {
  transform: translateY(-12px);
  z-index: 4;
}

.phone-gallery__item:nth-child(4) {
  transform: rotate(7deg) translateY(8px);
  z-index: 3;
}

.phone-gallery__item:nth-child(5) {
  transform: rotate(14deg) translateY(24px);
  z-index: 1;
}

.phone-gallery .phone {
  width: 180px;
}

/* ── Metrics ──────────────────────────────────────────────────────────────── */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.metric {
  text-align: center;
  padding: 40px 24px;
  background: white;
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-md);
}

.metric__value {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.metric__label {
  font-size: 14px;
  color: var(--color-muted);
}

/* ── CTA band ───────────────────────────────────────────────────────────────── */

.cta-band {
  background: var(--color-primary);
  color: var(--color-inverse);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 100%, rgba(176, 247, 84, 0.12), transparent),
    radial-gradient(ellipse 50% 60% at 80% 0%, rgba(214, 107, 68, 0.1), transparent);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-band h2 {
  color: var(--color-inverse);
}

.cta-band .lead {
  color: rgba(236, 242, 240, 0.75);
}

.cta-band__note {
  font-size: 13px;
  color: rgba(236, 242, 240, 0.5);
  margin-top: 8px;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */

.footer {
  padding: 48px 0;
  border-top: 1px solid var(--color-outline);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer__tagline {
  font-size: 14px;
  color: var(--color-muted);
}

.footer__links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--color-muted);
}

.footer__links a:hover {
  color: var(--color-primary);
}

/* ── Scroll reveal ──────────────────────────────────────────────────────────── */

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

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero__content,
  .feature,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .feature--reverse .feature__content,
  .feature--reverse .feature__visual {
    order: unset;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .phone-gallery {
    flex-wrap: wrap;
    gap: 16px;
    min-height: auto;
  }

  .phone-gallery__item {
    transform: none !important;
    margin-left: 0;
  }

  .phone-gallery .phone {
    width: 160px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 64px 0;
  }

  .cards-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .nav__wordmark {
    display: none;
  }

  .phone {
    width: 220px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
