:root {
  /* PALCO3 iOS token mapping (Theme.Palco3 in BRAVAH/Telas/Theme.swift) */
  --bg-deep: #070714;
  --bg-navy: #202846;
  --glass-bg: rgba(17, 24, 39, 0.70);
  --glass-stroke: rgba(235, 235, 234, 0.16);
  --glass-stroke-strong: rgba(235, 235, 234, 0.26);
  --accent-green: #95DA4A;
  --accent-green-dark: #45B73C;
  --text-primary: #f8fafc;
  --text-secondary: rgba(235, 235, 234, 0.78);
  --text-tertiary: rgba(235, 235, 234, 0.54);
  --radius-lg: 22px;
  --shadow-soft: 0 16px 40px rgba(3, 4, 12, 0.45);
}

body.home-page {
  background:
    radial-gradient(1050px 520px at 14% -5%, rgba(149, 218, 74, 0.10), transparent 62%),
    radial-gradient(900px 420px at 86% 0%, rgba(32, 40, 70, 0.42), transparent 65%),
    linear-gradient(180deg, var(--bg-navy) 0%, var(--bg-deep) 74%);
  background-attachment: fixed;
  animation: none;
  color: var(--text-primary);
}

.home-page a:focus-visible,
.home-page button:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 3px;
}

.home-page .header-cta img,
.home-page .app-store-btn img {
  height: 34px;
  width: auto;
}

.hp-main {
  padding-top: calc(var(--header-height) + 44px);
}

.hp-section {
  padding: clamp(56px, 7vw, 94px) 0;
}

.hp-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(149, 218, 74, 0.42);
  background: rgba(149, 218, 74, 0.12);
  color: #dfffc0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hp-section-head {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.hp-section-head h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.hp-section-head p {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.62;
}

.hp-glass-card {
  background:
    linear-gradient(154deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.015) 40%, rgba(0, 0, 0, 0.24) 100%),
    var(--glass-bg);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow-soft);
}

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.hp-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.hp-btn-primary {
  background: linear-gradient(145deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
  color: #081106;
  box-shadow: 0 12px 28px rgba(149, 218, 74, 0.25);
}

.hp-btn-ghost {
  background: rgba(235, 235, 234, 0.08);
  border-color: rgba(235, 235, 234, 0.2);
  color: var(--text-primary);
}

.hp-hero {
  padding: clamp(30px, 4vw, 44px) 0 clamp(56px, 8vw, 90px);
}

.hp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
}

.hp-hero-copy h1 {
  margin-top: 16px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 760px;
}

.hp-subtitle {
  margin-top: 20px;
  max-width: 640px;
  color: var(--text-secondary);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  line-height: 1.66;
}

.hp-hero-ctas {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hp-micro-proof {
  margin-top: 22px;
  list-style: none;
  display: grid;
  gap: 8px;
}

.hp-micro-proof li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
}

.hp-micro-proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px rgba(149, 218, 74, 0.7);
}

.hp-hero-visual {
  display: flex;
  justify-content: center;
}

.hp-phone-wrap {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 0.76;
}

.hp-phone-back {
  position: absolute;
  width: 64%;
  right: -8%;
  top: 17%;
  border-radius: 34px;
  border: 1px solid rgba(235, 235, 234, 0.16);
  opacity: 0.2;
  transform: rotate(8deg);
  filter: saturate(0.75) blur(1.5px) brightness(0.75);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
  z-index: 0;
  pointer-events: none;
}

.hp-phone-mockup {
  position: absolute;
  left: 8%;
  top: 2%;
  width: 74%;
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(165deg, #151820 0%, #090b11 100%);
  border: 1px solid rgba(235, 235, 234, 0.25);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  animation: hpFloat 6.8s ease-in-out infinite;
  z-index: 2;
}

.hp-phone-mockup::before,
.hp-phone-mockup::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 99px;
  background: rgba(235, 235, 234, 0.28);
}

.hp-phone-mockup::before {
  left: -4px;
  top: 22%;
  height: 72px;
}

.hp-phone-mockup::after {
  right: -4px;
  top: 30%;
  height: 58px;
}

.hp-phone-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 24px;
  border-radius: 14px;
  background: #040507;
  border: 1px solid rgba(235, 235, 234, 0.1);
  z-index: 3;
}

.hp-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  object-fit: cover;
  border: 1px solid rgba(235, 235, 234, 0.08);
}

@keyframes hpFloat {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hp-pillar-grid,
.hp-feature-grid,
.hp-steps-grid {
  display: grid;
  gap: 14px;
}

.hp-pillar-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hp-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hp-steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hp-pillar-grid .hp-glass-card,
.hp-feature-card,
.hp-step {
  padding: 22px;
}

.hp-pillar-grid h3,
.hp-feature-card h3,
.hp-step h3 {
  font-size: 1.16rem;
  margin-bottom: 9px;
}

.hp-pillar-grid p,
.hp-feature-card p,
.hp-step p {
  color: var(--text-secondary);
  line-height: 1.62;
}

.hp-step-index {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent-green);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hp-shots-track {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hp-shot {
  padding: 10px;
}

.hp-shot img {
  width: 100%;
  aspect-ratio: 9 / 19;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(235, 235, 234, 0.16);
}

.hp-pricing {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(26px, 4.5vw, 44px);
  text-align: center;
}

.hp-pricing h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}

.hp-pricing p {
  margin: 16px auto 22px;
  max-width: 680px;
  color: var(--text-secondary);
  line-height: 1.64;
}

.hp-footer {
  padding-top: 44px;
}

.hp-footer-logo {
  width: 110px;
  opacity: 0.9;
  margin-bottom: 14px;
}

@media (max-width: 1120px) {
  .hp-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-shots-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 968px) {
  .hp-main {
    padding-top: calc(var(--header-height) + 20px);
  }

  .hp-hero-grid {
    grid-template-columns: 1fr;
  }

  .hp-hero-copy {
    text-align: center;
  }

  .hp-hero-ctas {
    justify-content: center;
  }

  .hp-micro-proof {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .hp-phone-wrap {
    width: min(100%, 360px);
  }

  .hp-pillar-grid,
  .hp-feature-grid,
  .hp-steps-grid {
    grid-template-columns: 1fr;
  }

  .hp-shots-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 62vw);
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .hp-shot {
    scroll-snap-align: start;
  }
}

@media (max-width: 640px) {
  .hp-main {
    padding-top: calc(var(--header-height) + 12px);
  }

  .hp-btn {
    width: 100%;
  }

  .hp-hero-ctas {
    flex-direction: column;
  }

  .home-page .app-store-btn img,
  .home-page .header-cta img {
    height: 30px;
  }
}
