:root {
  --bg: #07191f;
  --bg-soft: #0d2730;
  --card: #102f39;
  --card-2: #0c232b;
  --text: #f3fbfd;
  --muted: #b8d4dc;
  --accent: #38bdf8;
  --accent-2: #54d6a4;
  --line: rgba(255,255,255,.12);
  --shadow: 0 24px 80px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #12404d 0, var(--bg) 36%, #041014 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
.site-header {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 10;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 54px);
  background: rgba(7,25,31,.94);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 10px; align-items: center; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  width: 42px;
  height: 42px;
  min-width: 42px;
  max-width: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07191f;
  font-weight: 900;
  line-height: 1;
  font-size: 16px;
  box-shadow: 0 10px 28px rgba(84,214,164,.22);
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-weight: 650;
}
.nav a:hover { color: var(--text); }
.nav-cta { color: var(--text) !important; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 86px clamp(22px, 6vw, 92px) 58px; }
.hero h1, .section h2, .privacy-band h2, .cta-section h2 { margin: 0; line-height: .98; letter-spacing: -.06em; }
.hero h1 { font-size: clamp(48px, 7vw, 92px); max-width: 850px; }
.hero-text { color: var(--muted); font-size: clamp(18px, 2vw, 23px); max-width: 670px; line-height: 1.55; }
.eyebrow { margin: 0 0 14px; color: var(--accent-2); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 800; border: 1px solid var(--line); }
.button.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #05202a; border: 0; }
.button.secondary { background: rgba(255,255,255,.06); color: var(--text); }
.phone-card { border-radius: 36px; padding: 10px; background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.04)); box-shadow: var(--shadow); border: 1px solid var(--line); }
.phone-card img { display: block; width: 100%; border-radius: 28px; background: #0a2027; }
.hero-phone { max-width: 390px; justify-self: center; transform: rotate(2deg); }
.trust-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 0 22px 58px; color: var(--muted); }
.trust-strip span { border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; background: rgba(255,255,255,.04); }
.section { padding: 78px clamp(22px, 6vw, 92px); }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section h2, .privacy-band h2, .cta-section h2 { font-size: clamp(36px, 5vw, 62px); }
.section-heading p, .split-copy p, .privacy-band p, .cta-section p { color: var(--muted); line-height: 1.65; font-size: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feature-card { background: rgba(16,47,57,.72); border: 1px solid var(--line); border-radius: 28px; padding: 28px; }
.feature-card.large { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 310px; gap: 28px; align-items: center; }
.feature-card h3 { margin: 0 0 12px; font-size: 28px; letter-spacing: -.035em; }
.feature-card p, .feature-card li { color: var(--muted); line-height: 1.65; }
.feature-kicker { color: var(--accent) !important; font-weight: 900; margin-top: 0; }
.small-phone { max-width: 310px; }
.split { display: grid; grid-template-columns: 1fr 360px; align-items: center; gap: 48px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill-list span { padding: 10px 14px; background: rgba(84,214,164,.12); color: #d9fff1; border: 1px solid rgba(84,214,164,.28); border-radius: 999px; font-weight: 700; }
.privacy-band { margin: 40px clamp(22px, 6vw, 92px); padding: 46px; border-radius: 34px; background: linear-gradient(135deg, rgba(56,189,248,.18), rgba(84,214,164,.13)); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr .9fr; gap: 32px; }
.privacy-points { display: grid; gap: 14px; }
.privacy-points div { padding: 18px; border-radius: 20px; background: rgba(3,15,19,.36); border: 1px solid var(--line); }
.privacy-points strong, .privacy-points span { display: block; }
.privacy-points span { color: var(--muted); margin-top: 6px; }
.screenshot-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cta-section { margin: 40px clamp(22px, 6vw, 92px) 80px; text-align: center; padding: 68px 24px; border-radius: 38px; background: var(--card-2); border: 1px solid var(--line); }
.cta-section p { max-width: 620px; margin: 18px auto 28px; }
.tiny-note { font-size: 12px !important; margin-top: 12px !important; opacity: .75; }
.footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px clamp(22px, 6vw, 92px); border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 900px) {
  .nav { display: none; }
  .hero, .feature-card.large, .split, .privacy-band { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  .feature-grid, .screenshot-row { grid-template-columns: 1fr; }
  .hero-phone, .small-phone { max-width: 340px; margin: 0 auto; }
}


/* Integrated logo + asset polish */
.brand-logo {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  display: block;
  object-fit: contain;
}
.image-feature {
  overflow: hidden;
}
.image-feature img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: top;
  border-radius: 22px;
  margin-top: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 45px rgba(0,0,0,.22);
}


/* Header fix: keep navigation from covering content */
section[id] {
  scroll-margin-top: 24px;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .brand-logo {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  display: block;
  object-fit: contain;
}
}

/* Screenshot clarity */
.phone-card img,
.image-feature img,
.screenshot-row img {
  display: block;
  background: #082027;
}


/* Hard header safety fix */
.site-header img {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  object-fit: contain !important;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

main {
  display: block;
}


/* Real app-store screenshot integration */
.expanded-screenshots {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  align-items: start;
}

.expanded-screenshots .phone-card {
  padding: 8px;
  border-radius: 28px;
}

.expanded-screenshots .phone-card img {
  border-radius: 22px;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .expanded-screenshots {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 620px) {
  .expanded-screenshots {
    grid-template-columns: 1fr;
  }
}


/* Privacy section screenshot */
.privacy-band {
  align-items: center;
}
.privacy-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 28px;
  background: rgba(3,15,19,.28);
  border: 1px solid var(--line);
  min-height: 100%;
}
.privacy-shot img {
  width: 100%;
  height: auto;
  max-height: 920px;
  object-fit: contain;
  border-radius: 24px;
  display: block;
}


/* Resize Privacy-first section to match other sections */
.privacy-band {
  margin: 40px clamp(22px, 6vw, 92px);
  padding: 34px;
  gap: 28px;
}

.privacy-band h2 {
  font-size: clamp(32px, 4.2vw, 52px);
}

.privacy-band p {
  font-size: 17px;
}

.privacy-points {
  margin-top: 22px;
  gap: 12px;
}

.privacy-points div {
  padding: 15px 16px;
}

.privacy-shot {
  padding: 8px;
  border-radius: 24px;
}

.privacy-shot img {
  max-height: 620px;
  border-radius: 20px;
}

@media (max-width: 900px) {
  .privacy-shot img {
    max-height: 720px;
  }
}


/* Final smaller privacy section + cache-busted image */
.privacy-band {
  margin: 34px clamp(22px, 6vw, 92px) !important;
  padding: 28px !important;
  gap: 22px !important;
  grid-template-columns: 1.05fr .72fr !important;
}

.privacy-band h2 {
  font-size: clamp(30px, 3.7vw, 46px) !important;
  letter-spacing: -.05em;
}

.privacy-band p {
  font-size: 16px !important;
  line-height: 1.55 !important;
}

.privacy-points {
  margin-top: 18px !important;
  gap: 10px !important;
}

.privacy-points div {
  padding: 13px 14px !important;
  border-radius: 17px !important;
}

.privacy-points span {
  margin-top: 4px !important;
}

.privacy-shot {
  padding: 6px !important;
  border-radius: 22px !important;
  max-width: 390px !important;
  justify-self: center !important;
}

.privacy-shot img {
  width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: contain !important;
  border-radius: 18px !important;
}

@media (max-width: 900px) {
  .privacy-band {
    grid-template-columns: 1fr !important;
  }

  .privacy-shot {
    max-width: 360px !important;
  }

  .privacy-shot img {
    max-height: 560px !important;
  }
}


/* Slightly larger privacy section to better match surrounding sections */
.privacy-band {
  margin: 38px clamp(22px, 6vw, 92px) !important;
  padding: 32px !important;
  gap: 26px !important;
  grid-template-columns: 1.05fr .82fr !important;
}

.privacy-band h2 {
  font-size: clamp(32px, 4vw, 50px) !important;
}

.privacy-band p {
  font-size: 17px !important;
  line-height: 1.6 !important;
}

.privacy-points {
  margin-top: 20px !important;
  gap: 11px !important;
}

.privacy-points div {
  padding: 15px 16px !important;
}

.privacy-shot {
  max-width: 430px !important;
  padding: 7px !important;
}

.privacy-shot img {
  max-height: 585px !important;
}

@media (max-width: 900px) {
  .privacy-band {
    grid-template-columns: 1fr !important;
  }

  .privacy-shot {
    max-width: 390px !important;
  }

  .privacy-shot img {
    max-height: 620px !important;
  }
}


/* Make feature section screenshots fully fit inside their cards */
.image-feature {
  display: flex;
  flex-direction: column;
}

.image-feature img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: top center !important;
  border-radius: 22px;
  margin-top: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 45px rgba(0,0,0,.22);
  background: linear-gradient(180deg, #eef6fb 0%, #dbeaf5 100%);
  display: block;
}

/* Keep the cards balanced while letting the full screenshot show */
.feature-card.image-feature {
  justify-content: flex-start;
}


/* AI Spot Analysis section update: show full marketing image without enlarging the section */
.feature-card.large {
  align-items: center;
}
.feature-card.large .small-phone {
  max-width: 330px;
  width: 100%;
  justify-self: center;
}
.feature-card.large .small-phone img {
  width: 100%;
  height: auto;
  max-height: 470px;
  object-fit: contain;
  object-position: center top;
  background: linear-gradient(180deg, #eef6fb 0%, #dbeaf5 100%);
}
@media (max-width: 900px) {
  .feature-card.large .small-phone {
    max-width: 340px;
  }
  .feature-card.large .small-phone img {
    max-height: 500px;
  }
}


/* Official CastWise logo replacement */
.official-brand-logo,
.brand-logo,
.site-header img {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  border-radius: 10px !important;
  object-fit: cover !important;
  display: block !important;
  box-shadow: 0 10px 28px rgba(56, 189, 248, .18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
