/* iMote landing — built from the iMote design system tokens.
   Source design: "iMote Landing Page" (Desktop 1440 / Mobile 390). */

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

html { scroll-behavior: smooth; }

body {
  background: var(--neutral-900-hex);
  color: var(--neutral-white-hex);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

.page { overflow: hidden; position: relative; }

/* ---------- Buttons (design-system Button, primary variant) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--primary-500-hex);
  color: var(--neutral-900-hex);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  line-height: 100%;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease-out;
}
.btn:hover { background: var(--primary-600-hex); color: var(--neutral-900-hex); text-decoration: none; }
.btn:active { background: var(--primary-700-hex); }
.btn-sm { padding: 8px 12px; line-height: 16px; }
.btn-md { padding: 12px 16px; }
.btn-lg { padding: 16px 20px; }

/* Store button group (App Store + Google Play) */
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Tag (design-system Tag, small) ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--neutral-800-hex);
  box-shadow: inset 0 0 0 1px var(--neutral-600-hex);
  color: var(--tag-text-muted);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  background: rgba(26, 26, 29, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 -1px 0 var(--neutral-800-hex);
}
.nav-logo { width: 92px; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
  color: var(--neutral-200-hex);
  text-decoration: none;
  transition: color 140ms ease-out;
}
.nav-link:hover { color: var(--primary-500-hex); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 80px 80px;
}
.hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: 60px;
  width: 760px;
  height: 760px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(255, 153, 0, 0.22) 0%, rgba(255, 153, 0, 0.06) 45%, rgba(255, 153, 0, 0) 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-title {
  font-weight: 700;
  font-size: 64px;
  line-height: 68px;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.hero-sub {
  max-width: 520px;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--neutral-200-hex);
}
.hero-note {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 12px;
  color: var(--neutral-500-hex);
}
.hero-media {
  position: relative;
  justify-self: center;
  width: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(-24px 40px 60px rgba(0, 0, 0, 0.65));
}

/* ---------- Brand strip ---------- */
.brands { padding: 0 80px 96px; }
.brands-inner { display: flex; flex-direction: column; gap: 40px; }
.brands-label {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral-500-hex);
  text-align: center;
}
.brands-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.brands-row img { height: 28px; width: auto; opacity: 0.72; display: block; }

/* ---------- Sections shared ---------- */
.section { padding: 0 80px 96px; }
.section-tight { padding: 0 80px 40px; }

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

.eyebrow {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-500-hex);
}
.eyebrow-muted { color: var(--neutral-500-hex); letter-spacing: 0.06em; }

.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--neutral-800-hex);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-500-hex);
  flex-shrink: 0;
}

.h2 {
  font-weight: 700;
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -0.01em;
}
.body {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--neutral-200-hex);
}
.body-narrow { max-width: 460px; }

/* ---------- Wi-Fi setup ---------- */
.setup-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.setup-card {
  border-radius: 24px;
  background: var(--neutral-800-hex);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.setup-card-label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral-500-hex);
}
.device-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: var(--neutral-900-hex);
}
.device-icon {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--neutral-800-hex);
  color: var(--neutral-300-hex);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.device-text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.device-name { font-weight: 700; font-size: 14px; line-height: 18px; }
.device-meta {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 12px;
  color: var(--neutral-500-hex);
}

/* ---------- Features ---------- */
.features-media img { display: block; width: 100%; height: auto; object-fit: contain; }
.features-copy { display: flex; flex-direction: column; gap: 32px; }
.features-head { display: flex; flex-direction: column; gap: 12px; }
.features-list { display: flex; flex-direction: column; gap: 4px; }
.feature-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  box-shadow: inset 0 -1px 0 var(--neutral-800-hex);
}
.feature-title { font-weight: 700; font-size: 20px; line-height: 24px; }

/* ---------- Discovery banner ---------- */
.discovery {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: url("../assets/img/discovery-bg.png") center / cover no-repeat;
}
.discovery::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 12, 0.94) 0%, rgba(10, 10, 12, 0.80) 46%, rgba(10, 10, 12, 0.45) 100%);
}
.discovery-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 64px;
  max-width: 620px;
}
.discovery-title {
  font-weight: 700;
  font-size: 40px;
  line-height: 44px;
  letter-spacing: -0.01em;
}
.discovery-sub { font-weight: 400; font-size: 18px; line-height: 1.5; color: var(--neutral-200-hex); }

/* ---------- Proof (mobile only) ---------- */
.proof { display: none; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-value {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 56px;
  line-height: 60px;
  letter-spacing: -0.02em;
  color: var(--primary-500-hex);
}
.stat-label { font-weight: 400; font-size: 16px; line-height: 1.5; color: var(--neutral-200-hex); }

/* ---------- Testimonials ---------- */
.testimonials { display: flex; flex-direction: column; gap: 40px; }
.testimonials-grid { column-count: 3; column-gap: 24px; }
.testimonial {
  break-inside: avoid;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 12px;
  background: var(--neutral-800-hex);
  box-shadow: var(--elevation-1);
}
.testimonial-quote { font-weight: 400; font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.testimonial-name {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 12px;
  color: var(--neutral-500-hex);
}

/* ---------- Final CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 56px;
  border-radius: 24px;
  background: var(--neutral-800-hex);
}
.cta::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 40%;
  width: 600px;
  height: 520px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(255, 153, 0, 0.18) 0%, rgba(255, 153, 0, 0) 70%);
  pointer-events: none;
}
.cta-copy { position: relative; display: flex; flex-direction: column; gap: 12px; }
.cta .btn { position: relative; }

/* ---------- Footer ---------- */
.footer {
  padding: 48px 80px 40px;
  box-shadow: inset 0 1px 0 var(--neutral-800-hex);
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { width: 92px; }
.footer-tagline {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--neutral-500-hex);
  max-width: 260px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral-500-hex);
}
.footer-link {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
  color: var(--neutral-200-hex);
  text-decoration: none;
  transition: color 140ms ease-out;
}
.footer-link:hover { color: var(--primary-500-hex); text-decoration: none; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--neutral-800-hex);
  color: var(--neutral-300-hex);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 140ms ease-out;
}
.social-btn:hover { color: var(--primary-500-hex); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  box-shadow: inset 0 1px 0 var(--neutral-800-hex);
}
.footer-copy {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 12px;
  color: var(--neutral-500-hex);
}

/* ---------- Country selector ---------- */
.country { position: relative; width: 107px; }
.country-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 107px;
  height: 40px;
  padding: 8px 8px 8px 12px;
  border: none;
  border-radius: 12px;
  background: var(--neutral-900-hex);
  box-shadow: inset 0 0 0 1px var(--neutral-800-hex);
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: var(--neutral-white-hex);
}
.country-toggle:hover { background: var(--neutral-800-hex); }
.country-toggle .flag { font-size: 14px; line-height: 1; }
.country-toggle .name { flex: 1; text-align: left; }
.country-toggle .chevron { color: var(--neutral-300-hex); display: inline-flex; transition: transform 140ms ease-out; }
.country.open .country-toggle { background: var(--neutral-800-hex); box-shadow: inset 0 0 0 1px var(--primary-400-hex); }
.country.open .chevron { transform: rotate(180deg); }
.country-list {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  flex-direction: column;
  border-radius: 12px;
  background: var(--neutral-900-hex);
  box-shadow: inset 0 0 0 1px var(--neutral-800-hex), var(--elevation-2);
  overflow: hidden;
  z-index: 30;
}
.country.open .country-list { display: flex; }
.country-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: var(--neutral-white-hex);
  text-align: left;
}
.country-option:hover { background: var(--neutral-800-hex); }

/* ---------- Mobile (390 design) ---------- */
@media (max-width: 767px) {
  .nav { padding: 0 20px; }
  .nav-logo { width: 76px; }
  .nav-links .nav-link { display: none; }

  .hero { padding: 48px 20px 56px; }
  .hero::before {
    top: -120px;
    right: -120px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.22) 0%, rgba(255, 153, 0, 0) 70%);
  }
  .hero-grid { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-copy { gap: 20px; }
  .hero-title { font-size: 36px; line-height: 40px; }
  .hero-sub { font-size: 16px; }
  .hero-note { display: none; }
  .btn-group { flex-direction: column; align-items: flex-start; }
  .hero-media { width: 100%; margin-top: 8px; }
  .hero-media img { width: 300px; filter: drop-shadow(-16px 28px 44px rgba(0, 0, 0, 0.65)); }

  .brands { padding: 0 20px 56px; }
  .brands-inner { gap: 24px; }
  .brands-label { font-size: 12px; line-height: 18px; }
  .brands-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    gap: 24px 16px;
  }
  .brands-row img { width: 100%; height: 20px; object-fit: contain; }

  .section { padding: 0 20px 56px; }
  .section-tight { padding: 0 20px 56px; }

  .split { display: flex; flex-direction: column; gap: 24px; align-items: stretch; }
  .h2 { font-size: 28px; line-height: 32px; }

  .setup-card { border-radius: 16px; padding: 20px; gap: 10px; }
  .setup-card-label { display: none; }
  .device-row { gap: 12px; padding: 14px; }
  .device-icon { width: 36px; height: 36px; }
  .device-text { gap: 2px; }
  .device-row .tag { display: none; }

  .features-copy { gap: 24px; }
  .features-media { order: 2; }
  .features-head { order: 0; }
  .features-list { order: 2; gap: 4px; }
  .feature-row { gap: 16px; padding: 16px 0; }
  .feature-title { font-size: 17px; line-height: 22px; }

  .discovery { min-height: 440px; align-items: flex-end; }
  .discovery::before {
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.45) 0%, rgba(10, 10, 12, 0.86) 52%, rgba(10, 10, 12, 0.96) 100%);
  }
  .discovery-copy { gap: 16px; padding: 28px 24px 32px; }
  .discovery-title { font-size: 30px; line-height: 34px; }
  .discovery-sub { font-size: 16px; }

  .proof {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px 56px;
  }
  .proof-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    background: var(--neutral-800-hex);
  }
  .proof-icon { color: var(--primary-500-hex); flex-shrink: 0; display: inline-flex; }
  .proof-text { font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--neutral-200-hex); }

  .stats-grid { display: flex; flex-direction: column; gap: 32px; }
  .stat { gap: 4px; }
  .stat-value { font-size: 40px; line-height: 44px; gap: 10px; }
  .stat-label { font-size: 15px; }

  .testimonials { gap: 20px; }
  .testimonials-grid { column-count: 1; }
  .testimonial { gap: 12px; padding: 20px; margin-bottom: 0; }
  .testimonial-quote { font-size: 15px; }

  .cta { flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px 24px; }
  .cta::before { top: -160px; left: auto; right: -80px; width: 360px; height: 340px; }

  .footer { padding: 32px 20px; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand img { width: 76px; }
  .footer-col { gap: 10px; }
  .footer-col-follow { grid-column: 1 / -1; }
  .social-btn { width: 44px; height: 44px; }
  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
    padding-top: 0;
    box-shadow: none;
  }
  .footer-copy { padding-top: 16px; box-shadow: inset 0 1px 0 var(--neutral-800-hex); width: 100%; }
}
