/* ============================================================
   Tunelapse — tunelapse.com
   Dark night-drive theme drawn from the brand banner artwork.
   Edit here, push to GitHub, Netlify redeploys automatically.
   ============================================================ */

:root {
  --bg: #120a28;
  --bg-raised: #1c1140;
  --bg-card: #221650;
  --ink: #efeafd;
  --muted: #b6a8dd;
  --faint: #8d7fbc;
  --accent: #a78bfa;
  --accent-deep: #7c5ce0;
  --line: rgba(167, 139, 250, 0.18);
  --grad: linear-gradient(135deg, #755cd9, #946bf2);
  --radius: 18px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 10, 40, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Poppins", sans-serif; font-weight: 500;
  font-size: 1.25rem; color: var(--ink); letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #f3e8ff, #c4a8f5 55%, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.45);
  color: #2d1b4e; font-size: 1.05rem; line-height: 1;
}

.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--ink); }

.nav-cta img { height: 36px; }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 900px 480px at 70% -10%, rgba(148, 107, 242, 0.28), transparent 65%),
    radial-gradient(ellipse 700px 420px at 8% 110%, rgba(117, 92, 217, 0.22), transparent 60%),
    linear-gradient(180deg, #1a0f38 0%, var(--bg) 100%);
}

.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 84px 24px 72px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  font-weight: 700;
  background: linear-gradient(115deg, #ffffff 30%, #c9b4f7 75%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 22px;
}

.hero .lede { font-size: 1.22rem; color: var(--muted); max-width: 30em; margin-bottom: 12px; }
.hero .sub { font-size: 1rem; color: var(--faint); margin-bottom: 34px; }

.store-badge img { height: 52px; width: auto; }
.store-badge { display: inline-block; transition: transform 0.18s ease; }
.store-badge:hover { transform: scale(1.04); }

.hero-shot { display: flex; justify-content: center; }
.hero-carousel { width: min(320px, 78vw); }
.carousel-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 414 / 900;
}
.carousel-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transform: rotate(2.5deg) translateY(8px) scale(0.975);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.carousel-slide.is-active {
  z-index: 1; opacity: 1; pointer-events: auto;
  transform: rotate(2.5deg) translateY(0) scale(1);
}
.carousel-slide img {
  width: 100%; height: 100%; object-fit: contain;
  border-radius: 42px;
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.25),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(148, 107, 242, 0.35);
}
.carousel-arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.42);
  background: rgba(18, 10, 40, 0.82); color: var(--ink);
  font: 400 2rem/1 "Inter", sans-serif; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
  transition: background 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}
.carousel-arrow:hover { background: var(--bg-card); border-color: var(--accent); transform: translateY(-50%) scale(1.06); }
.carousel-arrow:focus-visible, .carousel-toggle:focus-visible, .carousel-dots button:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }
.carousel-details { margin-top: 24px; text-align: center; }
.carousel-caption {
  display: flex; justify-content: center; align-items: baseline; gap: 9px;
  color: var(--muted); font-size: 0.82rem; margin-bottom: 9px;
}
.carousel-caption strong { color: var(--ink); font-family: "Poppins", sans-serif; font-weight: 500; }
.carousel-caption span { color: var(--faint); }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 10px; }
.carousel-dots { display: flex; align-items: center; justify-content: center; gap: 2px; }
.carousel-dots button {
  position: relative; width: 20px; height: 24px; border: 0; background: transparent; cursor: pointer;
}
.carousel-dots button::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 7px; height: 7px; border-radius: 999px; background: var(--faint);
  transition: width 0.18s ease, background 0.18s ease;
}
.carousel-dots button[aria-current="true"]::after { width: 18px; background: var(--accent); }
.carousel-toggle {
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px;
  background: rgba(18, 10, 40, 0.7); color: var(--muted);
  font: 500 0.72rem/1 "Inter", sans-serif; cursor: pointer;
}
.carousel-toggle:hover { color: var(--ink); border-color: var(--accent-deep); }

@media (prefers-reduced-motion: reduce) {
  .carousel-slide { transition: none; }
}

/* ---------- Waveform divider ---------- */

.wave-divider { display: block; width: 100%; height: 46px; color: var(--accent-deep); opacity: 0.7; }

/* ---------- Sections ---------- */

.section { padding: 76px 0; }
.section-tint { background: linear-gradient(180deg, var(--bg) 0%, #170d33 50%, var(--bg) 100%); }

.section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  text-align: center; margin-bottom: 14px;
}
.section .section-lede { text-align: center; color: var(--muted); max-width: 42em; margin: 0 auto 52px; }

.eyebrow {
  color: var(--accent); font-family: "Poppins", sans-serif; font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px;
}

.section-founder { background: linear-gradient(135deg, #170d33, #211348); }
.founder-home { display: grid; grid-template-columns: 230px 1fr; gap: 52px; align-items: center; }
.founder-home > img {
  width: 230px; aspect-ratio: 1; object-fit: cover; border-radius: 28px;
  border: 1px solid var(--line); box-shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
}
.founder-home h2 { text-align: left; margin-bottom: 16px; }
.founder-home .blurb { color: var(--muted); max-width: 43em; margin-bottom: 20px; }
.text-link { font-weight: 600; }

/* Steps */

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

.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4); }

.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.1rem;
  color: #fff; margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(117, 92, 217, 0.45);
}

.step h3 { font-size: 1.18rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* CarPlay band */

.carplay-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
}
.carplay-grid h2 { text-align: left; }
.carplay-grid .blurb { color: var(--muted); margin-bottom: 26px; }

.carplay-shot img {
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 60px rgba(148, 107, 242, 0.2);
}

.checks { list-style: none; }
.checks li {
  padding-left: 34px; position: relative; margin-bottom: 14px;
  color: var(--ink); font-weight: 500;
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--grad);
}
.checks li::after {
  content: ""; position: absolute; left: 6px; top: 8px;
  width: 8px; height: 5px;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
}

/* Reviews */

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

.review-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  overflow: hidden;
}
.review-card::before {
  content: "\201C";
  position: absolute; top: -18px; right: 14px;
  font-family: Georgia, serif; font-size: 7rem; line-height: 1;
  color: var(--accent-deep); opacity: 0.22; pointer-events: none;
}

.stars {
  display: inline-flex; gap: 3px; margin-bottom: 14px;
  color: #f5c15c; font-size: 1rem; letter-spacing: 2px;
  filter: drop-shadow(0 0 6px rgba(245, 193, 92, 0.35));
}

.review-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.review-card blockquote { color: var(--muted); font-size: 0.98rem; }
.review-card cite {
  display: block; margin-top: 16px; font-style: normal;
  color: var(--faint); font-size: 0.88rem;
}
.review-card cite strong { color: var(--accent); font-weight: 600; }
.rating-summary {
  display: flex; align-items: baseline; justify-content: center; gap: 7px; flex-wrap: wrap;
  margin: -8px 0 30px; color: var(--muted); font-size: 1.05rem;
}
.rating-summary > span { color: #f5c15c; filter: drop-shadow(0 0 6px rgba(245, 193, 92, 0.35)); }
.rating-summary strong { color: var(--ink); font-family: "Poppins", sans-serif; font-size: 1.2rem; }
.rating-summary small { color: var(--faint); font-size: 0.82rem; margin-left: 4px; }

/* CTA band */

.cta-band { text-align: center; padding: 84px 24px; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 32px; }

/* ---------- Inner pages ---------- */

.page-head { padding: 64px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 14px; }
.page-head .lede { color: var(--muted); font-size: 1.12rem; max-width: 40em; }
.page-body { padding: 40px 0 84px; }

/* Founder page */

.founder-hero {
  overflow: hidden;
  background: radial-gradient(ellipse 760px 460px at 78% 15%, rgba(148, 107, 242, 0.3), transparent 66%),
    linear-gradient(180deg, #1a0f38 0%, var(--bg) 100%);
}
.founder-hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: center;
  padding-top: 78px; padding-bottom: 78px;
}
.founder-hero h1 { font-size: clamp(2.35rem, 5vw, 3.7rem); margin-bottom: 20px; }
.founder-hero .lede { color: var(--muted); font-size: 1.2rem; max-width: 34em; margin-bottom: 34px; }
.founder-portrait { display: flex; justify-content: center; }
.founder-portrait img {
  width: min(340px, 78vw); aspect-ratio: 1; object-fit: cover; border-radius: 42px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 85px rgba(148, 107, 242, 0.28);
}
.about-story-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 60px; align-items: start; }
.about-story h2, .founder-product h2, .connect-section h2 { text-align: left; }
.about-story p:not(.eyebrow) { color: var(--muted); margin-bottom: 18px; }
.about-app-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; gap: 20px; align-items: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}
.about-app-icon { width: 92px; height: 92px; border-radius: 22px; }
.about-app-card h3 { margin-bottom: 5px; }
.about-app-card p { font-size: 0.94rem; margin-bottom: 8px !important; }
.about-app-card a { font-size: 0.92rem; font-weight: 600; }
.founder-product { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 58px; align-items: center; }
.founder-product-copy > p:not(.eyebrow) { color: var(--muted); margin-bottom: 24px; }
.founder-screens { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 22px; align-items: center; }
.founder-screens img {
  border: 1px solid var(--line); box-shadow: 0 20px 55px rgba(0, 0, 0, 0.44);
}
.founder-screens img:first-child { border-radius: 28px; }
.founder-screens img:last-child { border-radius: 18px; }
.connect-section h2 { margin-bottom: 30px; }
.profile-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.profile-links a {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; transition: transform 0.18s ease, border-color 0.18s ease;
}
.profile-links a:hover { transform: translateY(-3px); border-color: var(--accent-deep); text-decoration: none; }
.profile-links strong { color: var(--ink); font-family: "Poppins", sans-serif; }
.profile-links span { color: var(--faint); font-size: 0.9rem; margin-top: 4px; }

/* FAQ */

.faq { display: grid; gap: 18px; max-width: 780px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px;
}
.faq-item h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--accent); }
.faq-item p { color: var(--muted); }

/* Privacy */

.policy { max-width: 760px; }
.policy h2 { font-size: 1.6rem; margin: 54px 0 6px; }
.policy h3 { font-size: 1.12rem; margin: 30px 0 8px; color: var(--accent); }
.policy p, .policy li { color: var(--muted); margin-bottom: 12px; }
.policy ul { padding-left: 22px; margin-bottom: 14px; }
.policy .updated { font-size: 0.9rem; color: var(--faint); margin-bottom: 20px; }
.policy hr { border: none; border-top: 1px solid var(--line); margin: 60px 0 0; }

/* Press */

.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.press-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.press-card img { border-radius: 14px; max-height: 180px; width: auto; }
.press-card h3 { font-size: 1.05rem; }
.press-card .meta { color: var(--faint); font-size: 0.85rem; }
.press-card-preview { display: block; border-radius: 14px; }
.press-card-preview img { display: block; transition: transform 0.16s ease, box-shadow 0.16s ease; }
.press-card-preview:hover img { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(117, 92, 217, 0.3); }
.press-card-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.press-card-actions .btn { padding: 10px 18px; font-size: 0.9rem; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 600; font-size: 0.97rem;
  box-shadow: 0 8px 24px rgba(117, 92, 217, 0.4);
  transition: transform 0.16s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent-deep); box-shadow: none;
}

.fact-table { max-width: 760px; margin-top: 8px; }
.fact-table dt {
  font-weight: 600; color: var(--accent); font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 20px;
}
.fact-table dd { color: var(--muted); }

.founder { display: flex; gap: 32px; align-items: center; margin-top: 12px; }
.founder img { width: 190px; border-radius: var(--radius); border: 1px solid var(--line); }
.founder p { color: var(--muted); }

/* ---------- Footer ---------- */

.feature-strip {
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 44px 0;
}
.feature-strip .wrap {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.feature-strip span {
  font-family: "Poppins", sans-serif; font-weight: 500; color: var(--muted);
  display: flex; align-items: center; gap: 10px; font-size: 0.98rem;
}
.feature-strip span::before { content: "♪"; color: var(--accent); }

.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.footer-brand { flex: 1 1 240px; }
.footer-brand img { width: 220px; border-radius: 14px; margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; min-width: 130px; }
.footer-col a { color: var(--muted); font-size: 0.95rem; }
.footer-col a:hover { color: var(--ink); text-decoration: none; }
.footer-col .col-title {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--faint); font-weight: 600; margin-bottom: 4px;
}
.social { display: flex; gap: 14px; margin-top: 10px; }
.social a { color: var(--muted); }
.social a:hover { color: var(--ink); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.copyright {
  width: 100%; border-top: 1px solid var(--line);
  margin-top: 34px; padding-top: 22px;
  color: var(--faint); font-size: 0.85rem;
}

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 24px 48px; text-align: center; }
  .hero .lede, .hero .sub { margin-left: auto; margin-right: auto; }
  .hero-shot { order: -1; }
  .hero-carousel { width: min(260px, 68vw); }
  .carousel-arrow { width: 38px; height: 38px; }
  .carousel-prev { left: -18px; }
  .carousel-next { right: -18px; }
  .steps { grid-template-columns: 1fr; }
  .carplay-grid { grid-template-columns: 1fr; gap: 32px; }
  .carplay-grid h2 { text-align: center; }
  .press-grid { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .founder { flex-direction: column; text-align: center; }
  .founder-home { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .founder-home > img { margin: 0 auto; width: 190px; }
  .founder-home h2 { text-align: center; }
  .founder-hero-grid { grid-template-columns: 1fr; padding-top: 54px; padding-bottom: 58px; text-align: center; }
  .founder-portrait { order: -1; }
  .founder-portrait img { width: min(260px, 68vw); border-radius: 32px; }
  .founder-hero .lede { margin-left: auto; margin-right: auto; }
  .about-story-grid, .founder-product { grid-template-columns: 1fr; gap: 38px; }
  .about-story h2, .founder-product h2, .connect-section h2 { text-align: center; }
  .about-story .eyebrow, .founder-product .eyebrow, .connect-section .eyebrow { text-align: center; }
  .profile-links { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; }
  .nav-links .nav-plain { display: none; }
  .feature-strip .wrap { flex-direction: column; align-items: center; }
}
