:root{
  --bg:#FFFFFF;
  --text:#1E2331;
  --muted: rgba(30,35,49,.72);
  --border: rgba(30,35,49,.10);
  --footer: rgba(197,202,233,.50);

  --surface:#FFFFFF;                 /* cards, frames, inputs, download area */
  --headerBg: rgba(255,255,255,.85); /* sticky header background */

  --container: 1120px;
  --r: 16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img{ max-width:100%; display:block; }

/* Prevent horizontal overflow + improve long-word wrapping */
html, body {
  width: 100%;
  overflow-x: hidden;
}
h1, h2, p, a, li {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 520px){
  .container{ padding: 0 16px; }
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  background: var(--headerBg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  flex: 0 0 auto;
}

.logo{
  height: 34px;
  width: auto;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-primary{
  background: #3F51B5;
  color: #fff;
  border-color: #3F51B5;
}
.btn-primary:hover{ filter: brightness(.95); }

.btn:focus-visible{
  outline: 3px solid rgba(30,35,49,.25);
  outline-offset: 3px;
}

/* Mobile header: prevent edge-hugging + allow CTA to fit */
@media (max-width: 520px){
  .header-inner{
    padding: 12px 0;
    gap: 12px;
  }

  .header-cta{
    flex: 1 1 auto;
    display:flex;
    justify-content:flex-end;
    min-width: 0;
  }

  .header-cta .btn{
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    white-space: nowrap;
    width: auto;
    max-width: 100%;
  }
}

/* Hero */
.hero{ padding: 64px 0 40px; }

.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
}

.hero h1{
  font-size: clamp(28px, 3.3vw, 40px);
  line-height: 1.15;
  margin: 0 0 18px;
}

.hero-actions{ margin: 18px 0 24px; }

.store-badge img{
  height: 42px;
  width:auto;
}

.hero-visual{
  border: none;
  background: transparent;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
}

.hero-visual img{
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(30,35,49,.10);
}

/* Feature pills */
.feature-pills{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pill{
  display:flex;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.pill-icon{
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 2px;
}

.pill-title{ font-weight: 700; font-size: 14px; }
.pill-sub{ color: var(--muted); font-size: 13px; }

/* Sections */
.section{ padding: 90px 0; }

.section-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-text{ max-width: 560px; }

.section-text h2{
  margin: 0 0 12px;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}

.section-text p{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.section-media{
  justify-self: end;
  width: 100%;
  max-width: 620px;
  display: flex;
  justify-content: flex-end;
}

.media-frame{
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(30,35,49,.10);
  display: grid;
  place-items: center;
}

.media-frame img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.eyebrow{
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 14px;
  color: #E53935;
}

/* Download CTA */
.download{
  margin-top: 56px;
  padding: 80px 0;
  background: var(--surface);
}

.download-inner{
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.app-icon{
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(30,35,49,.16);
  object-fit: cover;
  margin: 0;
}

.download-title{
  margin: 6px 0 0;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.2px;
}

.download-badge{
  display: inline-flex;
  margin-top: 2px;
}

.download-badge img{
  height: 38px;
  width: auto;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.12));
  transition: transform .12s ease, filter .12s ease;
}

.download-badge:hover img{
  transform: translateY(-1px);
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.14));
}

.download-meta{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.download-meta a{
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.download-social{
  display: flex;
  gap: 14px;
  margin-top: 26px;
  align-items: center;
  justify-content: center;
}

/* Footer */
.site-footer{
  background: var(--footer);
  padding: 28px 0;
  margin-top: 40px;
}

.footer-inner{
  display:grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 18px;
  align-items:start;
}

.footer-brand{ font-weight:700; margin-bottom: 10px; }

.footer-social{
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-link{
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.social-link img{
  width: 18px;
  height: 18px;
  display: block;
  opacity: .9;
}

.social-link:hover img{ opacity: 1; }

.social-link:focus-visible{
  outline: 3px solid rgba(30,35,49,.25);
  outline-offset: 3px;
}

.footer-links{ display:flex; flex-direction:column; }

.footer-links a,
.footer-social a{
  color: var(--text);
  text-decoration:none;
  display:inline-block;
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-links a:focus-visible{
  outline: 3px solid rgba(30,35,49,.25);
  outline-offset: 3px;
}

.footer-copyright{
  grid-column: 1 / -1;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

/* Section divider */
.section-divider{
  height: 1px;
  background: rgba(30,35,49,.10);
  max-width: var(--container);
  margin: 24px auto 0;
}

/* Reveal items */
.reveal-item{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
  will-change: opacity, transform;
}

.reveal-item.is-visible{
  opacity: 1;
  transform: translateY(0);
}

.section .section-media.reveal-item{ transition-delay: .10s; }

@media (prefers-reduced-motion: reduce){
  .reveal-item{
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ order: 2; }

  .section{ padding: 70px 0; }
  .section-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-media{
    justify-self: start;
    max-width: 100%;
    justify-content: flex-start;
  }

  .footer-inner{ grid-template-columns: 1fr; }
}

@media (max-width: 520px){
  .feature-pills{ grid-template-columns: 1fr; }
  .hero{ padding-top: 44px; }

  .download{ padding: 64px 0; }
  .download-badge img{ height: 36px; }
  .download-inner{ gap: 16px; }
}

/* Header fallback if blur unsupported */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header{ background: rgba(255,255,255,.97); }
}

/* Legal pages */
.legal{ padding: 64px 0 80px; }
.legal-inner{ max-width: 820px; }

.legal h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}

.legal-updated{
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.legal p{
  margin: 0 0 14px;
  color: var(--text);
}

.legal a{
  color: #1a73e8;
  text-decoration: underline;
  font-weight: 600;
}

.legal a:hover{ color: #1558b0; }

.legal-divider{
  border: 0;
  border-top: 1px solid var(--border);
  margin: 26px 0;
}

.legal-section h2{
  margin: 22px 0 10px;
  font-size: 18px;
  line-height: 1.3;
}

.legal-section ul{ margin: 0 0 14px 18px; }
.legal-section li{ margin: 6px 0; }

/* Contact form */
.contact-form{
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.form-row{
  display: grid;
  gap: 6px;
}

.form-row label{
  font-weight: 600;
  font-size: 14px;
}

.form-row input,
.form-row textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
  background: var(--surface);
  color: var(--text);
}

.form-row textarea{
  resize: vertical;
  min-height: 140px;
}

.form-row input:focus-visible,
.form-row textarea:focus-visible{
  outline: 3px solid rgba(30,35,49,.25);
  outline-offset: 2px;
}

.form-note,
.form-status{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Feature section alternating bands */
.features .section:nth-child(odd){
  background: rgba(63,81,181,.10);
}
.features .section:nth-child(even){
  background: var(--surface);
}
.features .section{
  border-top: 1px solid rgba(30,35,49,.10);
}

/* ---------- Dark Mode (auto) ---------- */
@media (prefers-color-scheme: dark){
  :root{
    --bg:#0B0F1A;
    --text:#E9ECF5;
    --muted: rgba(233,236,245,.72);
    --border: rgba(233,236,245,.12);
    --footer: rgba(30,35,49,.55);

    --surface: rgba(255,255,255,.04);
    --headerBg: rgba(11,15,26,.72);
  }

  body{ background: var(--bg); color: var(--text); }

  .btn{ border-color: var(--border); }

  .btn:focus-visible,
  .footer-links a:focus-visible,
  .social-link:focus-visible{
    outline: 3px solid rgba(233,236,245,.25);
  }

  .hero-visual img,
  .section-media img,
  .media-frame,
  .app-icon{
    box-shadow: 0 14px 40px rgba(0,0,0,.45);
  }

  .features .section:nth-child(odd){
    background: rgba(63,81,181,.14);
  }
  .features .section:nth-child(even){
    background: transparent;
  }

  .section-divider{
    background: rgba(233,236,245,.12);
  }

    /* Make social SVG icons bright on dark background */
  .social-link img{
    filter: invert(1) brightness(1.1);
    opacity: .95;
  }
  .social-link:hover img{
    opacity: 1;
  }

  /* Header fallback if blur unsupported */
  @supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-header{ background: rgba(11,15,26,.92); }
  }
}