body.home-page {
  --landing-ink: #07172d;
  --landing-muted: #526579;
  --landing-cyan: #10b7c9;
  background: #fff;
}

/* Hero */
#hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  isolation: isolate;
  padding: 150px 0;
  background: #c9edf9 url("../../assets/testers/hero-bg-wide.webp") center/cover no-repeat;
  color: var(--landing-ink);
}

#hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 18, 28, 0.72) 0%, rgba(2, 25, 36, 0.38) 42%, rgba(1, 14, 22, 0.04) 76%), linear-gradient(180deg, transparent 0%, transparent 50%, rgba(2, 25, 36, 0.48) 72%, rgba(2, 22, 32, 0.82) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(500px, 1fr) minmax(500px, 1.05fr);
  min-height: 520px;
  align-items: center;
  gap: 10px;
}

.hero-content {
  max-width: 640px;
  padding-left: 28px;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--landing-cyan);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content p,
.hero-eyebrow {
  text-shadow: 0 2px 2px rgba(0, 15, 24, 0.92), 0 5px 14px rgba(0, 15, 24, 0.82);
}

.hero-content h1 {
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(3.2rem, 5vw, 4.7rem);
}

.hero-content p {
  max-width: 520px;
  margin-bottom: 28px;
  color: #fff;
  font-size: 1.05rem;
}

.hero-title {
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-title .line { display: block; }
.hero-title .bold { font-weight: 800; }
.hero-title .highlight {
  color: var(--primary);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-actions .btn-secondary {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(3, 28, 39, 0.35);
  color: #fff;
  backdrop-filter: blur(8px);
}

.hero-visual {
  position: relative;
  display: flex;
  min-height: 560px;
  align-self: stretch;
  align-items: center;
  justify-content: center;
}

.hero-phone {
  position: absolute;
  width: min(58%, 430px);
  height: auto;
  filter: drop-shadow(0 30px 27px rgba(0, 25, 38, 0.35));
}

.hero-phone--left {
  z-index: 2;
  bottom: -44px;
  left: 12%;
  transform: rotate(-1deg);
}

.hero-phone--right {
  z-index: 1;
  right: 0;
  bottom: -42px;
  transform: rotate(4deg);
}

.hero-waves {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 125px;
  pointer-events: none;
}

.hero-waves svg,
.section-waves svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-wave--back { fill: rgba(181, 218, 230, 0.72); }
.hero-wave--mid { fill: rgba(231, 245, 249, 0.92); }
.hero-wave--front { fill: #fff; }

/* Shared homepage section headings */
.section-heading {
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), 0 8px 20px rgba(0, 0, 0, 0.28);
  text-transform: uppercase;
}

.section-heading h2 { margin-bottom: 16px; }

.section-heading p {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.text-accent { color: var(--primary); }

/* Feature carousel */
#features.feature-gallery {
  position: relative;
  overflow: hidden;
  padding: 76px 0 150px;
  background: #fff;
  color: var(--landing-ink);
  scroll-margin-top: 105px;
}

#preview,
#why,
#cta { scroll-margin-top: 105px; }

.feature-gallery .section-heading { margin-bottom: 34px; }
.feature-gallery .section-heading h2 { color: var(--landing-ink); }
.feature-gallery .section-heading p { color: var(--landing-muted); }
.feature-gallery .section-eyebrow { text-shadow: none; }
.feature-carousel { position: relative; }

.feature-carousel__controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 4px auto 0;
}

.feature-arrow {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #d4e3e8;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 20px rgba(7, 70, 87, 0.12);
  color: #058da8;
  font-size: 1.25rem;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.feature-arrow:hover,
.feature-arrow:focus-visible {
  background: var(--landing-cyan);
  color: #fff;
  outline: none;
  transform: translateY(-2px);
}

.feature-arrow:disabled {
  cursor: default;
  opacity: 0.35;
  transform: none;
}

.feature-rail {
  display: flex;
  gap: 18px;
  margin-inline: calc((100vw - min(100vw, var(--container-width))) / -2);
  padding: 10px max(24px, calc((100vw - var(--container-width)) / 2 + 24px)) 34px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.feature-rail::-webkit-scrollbar { display: none; }

.feature-card {
  position: relative;
  display: flex;
  min-height: 445px;
  flex: 0 0 230px;
  flex-direction: column;
  align-items: center;
  padding: 0 15px 18px;
  border-radius: 26px;
  color: var(--landing-ink);
  scroll-snap-align: start;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.feature-card:hover,
.feature-card:focus-visible {
  box-shadow: 0 18px 40px rgba(12, 70, 88, 0.12);
  outline: none;
  transform: translateY(-5px);
}

.feature-phone {
  position: relative;
  display: block;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.feature-phone::after {
  content: "";
  position: absolute;
  inset: 36% -8px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.94) 55%, #fff 72%);
  pointer-events: none;
}

.feature-phone img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 13px rgba(8, 49, 63, 0.2));
}

.feature-number {
  position: relative;
  z-index: 2;
  display: grid;
  width: 70px;
  height: 70px;
  margin: -126px auto 8px;
  place-items: center;
  border: 8px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #20d0e3, #079eb8);
  box-shadow: 0 9px 24px rgba(7, 143, 168, 0.24);
  color: #fff;
  font: 800 1rem var(--font-heading);
}

.feature-card strong {
  position: absolute;
  z-index: 4;
  top: 304px;
  right: 12px;
  left: 12px;
  color: var(--landing-ink);
  font: 700 1.03rem var(--font-heading);
}

.feature-card > span:last-child {
  position: absolute;
  z-index: 4;
  top: 335px;
  right: 12px;
  left: 12px;
  max-width: 205px;
  margin: 0 auto;
  color: var(--landing-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.section-waves {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 105px;
  pointer-events: none;
}

.section-waves--dark .section-wave--back { fill: #c5e1ea; }
.section-waves--dark .section-wave--front { fill: #061c28; }
.section-waves--light .section-wave--back { fill: #174959; }
.section-waves--light .section-wave--front { fill: #fff; }

/* Why Tranzlate */
.section-why {
  position: relative;
  padding: 110px 0 170px;
  background: linear-gradient(145deg, #061c28, #073746);
  color: #fff;
}

.section-why .section-heading h2 { color: #fff; }
.section-why .section-heading p { color: rgba(255, 255, 255, 0.76); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 52px;
}

.why-card {
  position: relative;
  overflow: hidden;
  padding: 28px 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.why-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(38, 212, 255, 0), rgba(38, 212, 255, 0.55), rgba(38, 212, 255, 0));
}

.why-card:hover {
  border-color: rgba(38, 212, 255, 0.24);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  transform: translateY(-4px);
}

.why-card-icon {
  display: inline-flex;
  min-width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 0 14px;
  border: 1px solid rgba(38, 212, 255, 0.22);
  border-radius: 999px;
  background: rgba(38, 212, 255, 0.1);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.why-card h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.15;
}

.why-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 1.72;
}

/* Coming soon and waitlist */
.section-download {
  position: relative;
  padding: 100px 20px;
  background: #fff;
  color: var(--landing-ink);
  text-align: center;
}

.download-inner {
  max-width: 800px;
  margin: 0 auto;
}

.download-title {
  color: var(--landing-ink);
  font-weight: 700;
  line-height: 1.1;
  text-shadow: none;
  white-space: nowrap;
}

.brand-name {
  color: var(--primary);
  font-weight: 100;
}

.travel-word {
  color: var(--landing-ink);
  font-weight: 700;
}

.accent-v {
  color: var(--primary);
  font-weight: 700;
}

.download-subtext {
  margin-top: 16px;
  margin-bottom: 36px;
  color: var(--landing-muted);
  line-height: 1.6;
}

.section-download .section-eyebrow,
.section-download .brand-name,
.section-download .travel-word,
.section-download .accent-v { text-shadow: none; }

.store-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
}

.store-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.store-btn {
  display: flex;
  width: 155px;
  height: 48px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}

.store-btn img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.store-btn img[src*="google"] { transform: scale(1); }
.store-btn img[src*="app"] { transform: scale(1.05); }
.store-btn:hover { transform: scale(1.05); }
.store-btn.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.store-btn.disabled:hover { transform: none; }

.store-status {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.store-status.live { color: var(--primary); }
.store-status.coming { color: #6b7b8d; }

.waitlist { margin-top: 40px; }

.waitlist-beta-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-underline-offset: 3px;
}

.waitlist-beta-link:hover { text-decoration: underline; }
.waitlist-beta-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 2px; }

.waitlist p {
  margin-bottom: 16px;
  color: var(--landing-muted);
}

.waitlist-form {
  display: flex;
  max-width: 420px;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
}

.waitlist-form input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid #d7e1e6;
  border-radius: 14px;
  outline: none;
  background: #f8fbfc;
  color: var(--landing-ink);
}

.waitlist-form input::placeholder { color: #8795a3; }

.platform-options {
  display: flex;
  width: 100%;
  gap: 10px;
}

.platform-options label {
  flex: 1;
  cursor: pointer;
}

.platform-options input { display: none; }

.platform-options span {
  display: block;
  overflow: hidden;
  padding: 12px 0;
  border: 1px solid #d7e1e6;
  border-radius: 999px;
  background: #f8fbfc;
  color: #536577;
  text-align: center;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.platform-options input:checked + span {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.platform-options span:hover { border-color: rgba(16, 183, 201, 0.5); }

.form-message {
  margin-top: 10px;
  font-size: 0.9rem;
}

.form-message.success { color: var(--primary); }
.form-message.error { color: #ff6b6b; }

/* Homepage journey footer variant */
.home-page .site-footer {
  position: relative;
  min-height: 430px;
  margin-top: 0;
  isolation: isolate;
  padding: 170px 0 20px;
  background: transparent url("../../assets/testers/journey-bg-wide.webp") center bottom/cover no-repeat;
  color: #fff;
}

.home-page .site-footer::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 35% 0 0;
  background: linear-gradient(180deg, rgba(0, 22, 31, 0), rgba(0, 19, 28, 0.32) 48%, rgba(0, 13, 21, 0.86) 100%);
  pointer-events: none;
}

.home-page .footer-divider { display: none; }

.home-page .footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 1150px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 20px 24px;
  text-align: center;
  transform: translateY(34px);
}

.home-page .footer-brand { align-items: center; }

.home-page .footer-logo {
  width: min(390px, 68vw);
  height: auto;
  filter: drop-shadow(0 4px 5px rgba(0, 18, 27, 0.85));
}

.home-page .footer-links-section {
  width: 100%;
  padding: 0;
  border: 0;
}

.home-page .footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.home-page .footer-links a {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.home-page .footer-links a:not(:last-child)::after {
  content: "|";
  margin: 0 13px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 400;
}

.home-page .footer-bottom {
  position: relative;
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.18);
}

.home-page .footer-bottom p { color: rgba(255, 255, 255, 0.82); }

.home-page .footer-links-section,
.home-page .footer-bottom { text-shadow: 0 2px 3px rgba(0, 18, 27, 0.95), 0 5px 14px rgba(0, 18, 27, 0.85); }

/* Feature overlay */
body.modal-open { overflow: hidden; }
.feature-modal[hidden] { display: none; }

.feature-modal {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.feature-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 20, 29, 0.82);
  backdrop-filter: blur(10px);
}

.feature-modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(280px, 430px);
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  align-items: center;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background: linear-gradient(145deg, #fff, #eef9fb);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.feature-modal__close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #071b31;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
}

.feature-modal__visual {
  display: flex;
  min-height: 610px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #dff7fb, #fff);
}

.feature-modal__visual img {
  width: min(100%, 360px);
  max-height: 570px;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 20px 18px rgba(3, 62, 77, 0.23));
}

.feature-modal__copy { padding: 45px; }
.feature-modal__copy .section-eyebrow { text-shadow: none; }
.feature-modal__copy h2 { color: var(--landing-ink); }
.feature-modal__copy p {
  color: var(--landing-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

@media (max-width: 1000px) {
  #hero {
    min-height: 1050px;
    padding-top: 115px;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
  }

  .hero-visual {
    order: 1;
    width: min(720px, 100%);
    min-height: 490px;
    margin: auto;
  }

  .hero-content {
    order: 2;
    max-width: 620px;
    margin: 0;
    padding: 0 12px;
  }

  .hero-content p { margin-inline: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-phone { width: min(53%, 370px); }
  .hero-phone--left {
    bottom: -25px;
    left: 9%;
  }
  .hero-phone--right {
    right: 8%;
    bottom: -22px;
  }
  .home-page .footer-inner { max-width: 850px; }
}

@media (max-width: 900px) {
  .section-why { padding-top: 84px; }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 36px;
  }
  .why-card {
    padding: 24px 20px;
    border-radius: 20px;
  }
}

@media (max-width: 700px) {
  #hero {
    min-height: 1040px;
    padding: 100px 0 125px;
    background-position: 56% center;
  }

  #hero::before { background: linear-gradient(180deg, rgba(1, 22, 32, 0.12) 0%, rgba(1, 20, 30, 0.03) 34%, rgba(2, 24, 34, 0.86) 62%, rgba(1, 19, 28, 0.98) 100%); }
  .hero-inner { gap: 0; }
  .hero-visual {
    width: 100%;
    min-height: 430px;
  }
  .hero-content { padding: 0 5px 70px; }
  .hero-content h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .hero-content p { font-size: 0.94rem; }
  .hero-phone { width: 62%; }
  .hero-phone--left {
    bottom: -12px;
    left: -2%;
  }
  .hero-phone--right {
    right: -3%;
    bottom: -10px;
  }
  .hero-waves { height: 85px; }

  #features.feature-gallery { padding: 60px 0 125px; }
  .feature-carousel__controls { margin-top: 0; }
  .feature-card {
    min-height: 405px;
    flex-basis: 190px;
  }
  .feature-phone { height: 300px; }
  .feature-number { margin-top: -118px; }
  .feature-card strong { top: 260px; }
  .feature-card > span:last-child { top: 291px; }
  .section-waves { height: 78px; }
  .section-why { padding-bottom: 135px; }

  .feature-modal { padding: 12px; }
  .feature-modal__panel {
    display: block;
    border-radius: 22px;
  }
  .feature-modal__visual { min-height: 465px; }
  .feature-modal__visual img {
    width: 290px;
    max-height: 435px;
    margin: 0;
  }
  .feature-modal__copy {
    padding: 28px 24px 32px;
    text-align: center;
  }

  .home-page .site-footer {
    min-height: 480px;
    padding: 175px 0 18px;
    background-position: center bottom;
  }
  .home-page .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 18px;
    text-align: center;
    transform: translateY(26px);
  }
  .home-page .footer-brand {
    width: 100%;
    align-items: center;
  }
  .home-page .footer-logo {
    width: min(300px, 78vw);
    max-width: none;
  }
  .home-page .footer-links-section {
    width: 100%;
    min-width: 0;
  }
  .home-page .footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
  }
  .home-page .footer-links a { font-size: 0.86rem; }
  .home-page .footer-links a:not(:last-child)::after { margin: 0 8px; }
}

@media (max-width: 640px) {
  .why-card h3 { font-size: 1.2rem; }
  .why-card p {
    font-size: 0.96rem;
    line-height: 1.65;
  }
}

@media (max-width: 600px) {
  .download-title {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.08;
    white-space: normal;
  }
  .store-buttons { flex-direction: column; }
  .store-btn {
    width: 155px;
    height: 64px;
  }
  .waitlist-form {
    width: 100%;
    gap: 12px;
  }
  .waitlist-form input,
  .waitlist-form select,
  .waitlist-form button {
    width: 100%;
    min-width: 0;
  }
}
