/* ============================================================
   Near Tours — Reloaded
   Modern dark theme · glassmorphism · sunset gradients
   ============================================================ */

:root {
  --bg: #0a0a14;
  --bg-soft: #10101f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f5fb;
  --muted: #9aa0b4;
  --accent-1: #ff7a59;
  --accent-2: #ff2d78;
  --accent-3: #8b5cf6;
  --grad: linear-gradient(100deg, var(--accent-1) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  --radius: 20px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}
.container.narrow { max-width: 760px; }
.center { text-align: center; }

::selection { background: var(--accent-2); color: #fff; }

/* ---------- Ambient glows ---------- */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.glow--1 { width: 520px; height: 520px; background: var(--accent-1); top: -180px; right: -120px; }
.glow--2 { width: 460px; height: 460px; background: var(--accent-3); top: 45%; left: -200px; }
.glow--3 { width: 420px; height: 420px; background: var(--accent-2); bottom: -160px; right: 8%; opacity: 0.14; }

section, .hero, footer { position: relative; z-index: 1; }

/* ---------- Type helpers ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 56ch;
  margin-top: 1.1rem;
}
.center .section-sub { margin-inline: auto; }

.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section--tint {
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(139, 92, 246, 0.07), transparent),
    var(--bg-soft);
  border-block: 1px solid var(--border);
}

/* ---------- Pills & buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1.6rem;
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px var(--accent-2);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}
.pill--onlight { background: rgba(255, 255, 255, 0.06); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  color: #fff;
  background-image: var(--grad);
  background-size: 160% auto;
  transition: background-position 0.45s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 12px 32px rgba(255, 45, 120, 0.35);
}
.btn:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(255, 45, 120, 0.45);
}
.btn:active { transform: translateY(0); }
.btn--sm { padding: 0.6rem 1.35rem; font-size: 0.9rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.nav.is-scrolled {
  padding: 0.65rem 0;
  background: rgba(10, 10, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.nav__logo span { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.nav__logo--sm { font-size: 1.15rem; }

.nav__links {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}
.nav__links a { position: relative; transition: color 0.25s ease; padding: 0.25rem 0; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { flex-shrink: 0; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: auto;
}
.nav__burger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8.5rem 0 5rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 20, 0.82) 0%, rgba(10, 10, 20, 0.68) 40%, var(--bg) 96%),
    radial-gradient(70% 60% at 20% 40%, rgba(10, 10, 20, 0.55), transparent);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hero__sub {
  color: #c6cadb;
  font-size: 1.2rem;
  max-width: 46ch;
  margin-top: 1.4rem;
}
.hero__note {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Signup form */
.signup {
  position: relative;
  display: flex;
  gap: 0.65rem;
  margin-top: 2rem;
  padding: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 480px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.signup:focus-within {
  border-color: rgba(255, 122, 89, 0.65);
  box-shadow: 0 0 0 4px rgba(255, 45, 120, 0.15);
}
.signup__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0 1.1rem;
}
.signup__input::placeholder { color: var(--muted); }
.signup__btn { white-space: nowrap; padding-block: 0.8rem; }
.signup--compact { max-width: 440px; margin-top: 1.6rem; }
.signup--center { margin-inline: auto; max-width: 480px; margin-top: 2.2rem; }

/* Phone mockups */
.phone {
  position: relative;
  width: min(270px, 72vw);
  border-radius: 42px;
  padding: 11px;
  background: linear-gradient(160deg, #2a2a3d, #12121f);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(0, 0, 0, 0.6);
}
.phone::before {
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2;
}
.phone__img,
.phone img {
  width: 100%;
  aspect-ratio: 720 / 1280;
  height: auto;
  object-fit: cover;
  object-position: top;
  border-radius: 32px;
}

.phone--tilt { transform: rotate(4deg); animation: floaty 6s ease-in-out infinite; }
.phone--tilt-right { transform: rotate(-5deg); animation: floaty 7s ease-in-out infinite reverse; }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}

.hero__phone { position: relative; display: flex; justify-content: center; }
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.05rem;
  border-radius: 16px;
  background: rgba(16, 16, 31, 0.82);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  font-size: 0.82rem;
  line-height: 1.35;
  animation: floaty 6.5s ease-in-out infinite;
}
.float-card strong { display: block; font-weight: 600; }
.float-card span { color: var(--muted); font-size: 0.76rem; }
.float-card svg { width: 26px; height: 26px; stroke: var(--accent-1); flex-shrink: 0; }
.float-card--1 { top: 14%; left: -4%; animation-delay: 0.8s; }
.float-card--2 { bottom: 12%; right: -6%; animation-delay: 1.6s; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}
.scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 9px;
  margin-left: -2px;
  border-radius: 999px;
  background: var(--accent-2);
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Split section (features) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.features { list-style: none; margin-top: 2.4rem; display: grid; gap: 1.6rem; }
.feature { display: flex; gap: 1.15rem; align-items: flex-start; }
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.feature p { color: var(--muted); font-size: 0.98rem; }
.feature__icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background-image: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 45, 120, 0.3);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature__icon--alt {
  background-image: none;
  background: rgba(139, 92, 246, 0.16);
  color: var(--accent-3);
  box-shadow: none;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

/* Phone stack */
.phone-stack {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}
.phone-stack .phone { flex-shrink: 0; }
.phone--back {
  transform: rotate(-7deg) translateX(34%);
  filter: brightness(0.75);
  z-index: 0;
}
.phone--front {
  transform: rotate(3deg) translateY(6%);
  z-index: 1;
  animation: floaty 7s ease-in-out infinite;
}

/* ---------- App showcase ---------- */
.showcase {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(1.2rem, 4vw, 3rem);
  margin-top: 3.5rem;
}
.shot { display: grid; gap: 1.1rem; justify-items: center; }
.shot figcaption {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}
.shot .phone { transition: transform 0.35s ease; }
.shot:hover .phone { transform: translateY(-10px) rotate(0deg); }
.shot--raised .phone { width: min(300px, 78vw); }
.shot--raised figcaption { color: var(--text); font-weight: 600; }

/* ---------- Guides CTA ---------- */
.guides__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2.5rem;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}
.glass-panel {
  background:
    radial-gradient(90% 140% at 85% 15%, rgba(255, 122, 89, 0.16), transparent 60%),
    radial-gradient(70% 110% at 10% 90%, rgba(139, 92, 246, 0.14), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.guides__media { display: flex; justify-content: center; }
.guides__media .phone { width: min(230px, 62vw); }

/* ---------- Testimonials ---------- */
.testimonials { margin-top: 3rem; position: relative; min-height: 240px; }
.testimonial {
  position: absolute;
  inset-inline: 0;
  top: 0;
  display: grid;
  gap: 1.1rem;
  justify-items: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.testimonial.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.testimonial__stars {
  letter-spacing: 0.35em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.15rem;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.testimonial footer { display: grid; gap: 0.15rem; }
.testimonial footer strong { font-size: 0.95rem; }
.testimonial footer span { color: var(--muted); font-size: 0.86rem; }

.testimonial-dots { display: flex; gap: 0.55rem; justify-content: center; margin-top: 2.6rem; }
.dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.3s ease, width 0.3s ease;
}
.dot.is-active { width: 26px; background-image: var(--grad); }

/* ---------- Footer ---------- */
.footer {
  padding: clamp(4.5rem, 9vw, 7rem) 0 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.footer__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.footer__bottom {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
  .hero__copy { display: grid; justify-items: center; }
  .signup { margin-inline: auto; }
  .split { grid-template-columns: 1fr; }
  .split__copy { order: -1; text-align: center; }
  .features { text-align: left; max-width: 560px; margin-inline: auto; }
  .guides__inner { grid-template-columns: 1fr; text-align: center; }
  .guides__copy { display: grid; justify-items: center; }
  .float-card--1 { left: 0; }
  .float-card--2 { right: 0; }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    background: rgba(10, 10, 20, 0.97);
    backdrop-filter: blur(20px);
    font-size: 1.25rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
  }
  .nav.menu-open .nav__links { transform: translateY(0); }
  .nav.menu-open { background: transparent; border-bottom: none; }
  .nav__burger { display: flex; position: relative; z-index: 5; }
  .nav__cta { display: none; }
  .showcase { flex-direction: column; align-items: center; }
  .shot--raised .phone { width: min(280px, 74vw); }
  .phone-stack .phone { width: min(210px, 58vw); }
  .scroll-hint { display: none; }
  .glow { filter: blur(100px); opacity: 0.16; }
}
