/* Homepage composition fix — overrides landing-premium.css */
:root {
  --max: 1500px;
  --gutter: 40px;
}

.top-nav-inner {
  max-width: var(--max);
  width: calc(100% - (var(--gutter) * 2));
  margin: 0 auto;
  padding: 0.95rem 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}
.brand-lockup { font-size: 1.1rem; }
.nav-center { justify-content: center; gap: 0.35rem; }
.nav-center a {
  font-size: 0.98rem;
  padding: 0.55rem 0.95rem;
}
.btn-nav {
  min-height: 44px;
  font-size: 0.9rem;
  padding: 0.65rem 1.15rem;
}

.hero-wrap {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  width: min(720px, 70%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(39, 135, 255, 0.28),
    transparent
  );
  pointer-events: none;
}
.hero-bg {
  background:
    radial-gradient(ellipse 55% 60% at 78% 42%, rgba(39,135,255,0.22), transparent 62%),
    radial-gradient(ellipse 40% 35% at 12% 18%, rgba(74,163,255,0.1), transparent 55%),
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(39,135,255,0.1), transparent 70%),
    #05080D;
}
.hero-bg::before {
  background-size: 26px 26px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse at 72% 42%, black 12%, transparent 72%);
  animation: hero-grid-drift 18s linear infinite;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  will-change: transform, opacity;
}
.hero-orb-a {
  width: min(46vw, 520px);
  height: min(46vw, 520px);
  left: 58%;
  top: 18%;
  background: radial-gradient(circle, rgba(39,135,255,0.38), transparent 68%);
  animation: hero-orb-drift-a 12s ease-in-out infinite;
}
.hero-orb-b {
  width: min(34vw, 360px);
  height: min(34vw, 360px);
  left: 6%;
  top: 8%;
  background: radial-gradient(circle, rgba(74,163,255,0.22), transparent 70%);
  animation: hero-orb-drift-b 15s ease-in-out infinite;
}
.hero-orb-c {
  width: min(40vw, 420px);
  height: min(28vw, 300px);
  left: 28%;
  bottom: -8%;
  background: radial-gradient(circle, rgba(39,135,255,0.16), transparent 72%);
  animation: hero-orb-drift-c 17s ease-in-out infinite;
}
.hero-sheen {
  position: absolute;
  inset: -20% -30%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255,255,255,0.035) 48%,
    transparent 62%
  );
  animation: hero-sheen-sweep 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hero-grid-drift {
  from { background-position: 0 0; }
  to { background-position: 26px 26px; }
}
@keyframes hero-orb-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.75; }
  50% { transform: translate(-4%, 6%) scale(1.08); opacity: 1; }
}
@keyframes hero-orb-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
  50% { transform: translate(8%, 10%) scale(1.12); opacity: 0.9; }
}
@keyframes hero-orb-drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(6%, -8%) scale(1.1); opacity: 0.85; }
}
@keyframes hero-sheen-sweep {
  0%, 100% { transform: translateX(-12%) rotate(0.001deg); opacity: 0.35; }
  50% { transform: translateX(10%) rotate(0.001deg); opacity: 0.7; }
}
.hero-shell {
  max-width: 1440px;
  width: calc(100% - (var(--gutter) * 2));
  margin: 0 auto;
  /* Drop content ~60–80px below nav; keep compact bottom so Features peeks in */
  padding: 5.25rem 0 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
  align-items: center;
}
.hero-copy {
  max-width: 580px;
  position: relative;
  z-index: 2;
}
body.home-page .hero-copy .eyebrow {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(74,163,255,0.12),
    0 8px 28px rgba(39,135,255,0.18);
  animation: hero-eyebrow-pulse 4.5s ease-in-out infinite;
}
body.home-page .hero-copy .eyebrow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: hero-eyebrow-shine 4.5s ease-in-out infinite;
}
.hero-title {
  margin: 1rem 0 0;
  font-size: clamp(56px, 5vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 650;
  max-width: none;
  color: #F7F9FC;
  text-shadow: 0 0 40px rgba(39,135,255,0.12);
}
.hero-title span {
  display: block;
  margin-top: 0.08em;
  background: linear-gradient(120deg, #F7F9FC 18%, #7EC2FF 48%, #4AA3FF 72%, #F7F9FC 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hero-title-shine 7s ease-in-out infinite;
}
.hero-lead {
  margin: 1.35rem 0 0;
  max-width: 560px;
  font-size: clamp(17px, 1.15vw, 19px);
  line-height: 1.7;
  color: #8994A7;
}
.cta-row { margin-top: 2.05rem; gap: 0.95rem; }
.btn-primary,
.btn-secondary {
  min-height: 52px;
  font-size: 1rem;
  padding: 0.95rem 1.4rem;
}
body.home-page .hero-copy .btn-primary {
  animation: hero-cta-glow 3.2s ease-in-out infinite;
}
.trust-line {
  margin-top: 1.65rem;
  margin-bottom: 0.25rem;
  gap: 0.75rem 1.35rem;
  font-size: 1rem;
  color: #586276;
}
@keyframes hero-eyebrow-pulse {
  0%, 100% { border-color: rgba(39,135,255,0.35); box-shadow: 0 0 0 1px rgba(74,163,255,0.1), 0 8px 28px rgba(39,135,255,0.14); }
  50% { border-color: rgba(74,163,255,0.55); box-shadow: 0 0 0 1px rgba(74,163,255,0.22), 0 10px 34px rgba(39,135,255,0.28); }
}
@keyframes hero-eyebrow-shine {
  0%, 55%, 100% { transform: translateX(-130%); }
  70% { transform: translateX(130%); }
}
@keyframes hero-title-shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes hero-cta-glow {
  0%, 100% { box-shadow: 0 14px 40px rgba(39,135,255,0.28); }
  50% { box-shadow: 0 16px 48px rgba(39,135,255,0.48), 0 0 24px rgba(74,163,255,0.25); }
}
.trust-line span::before {
  content: "✓";
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #4AA3FF;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  margin-left: 0;
}
.hero-glow {
  display: block !important;
  position: absolute;
  width: min(820px, 120%);
  height: min(820px, 120%);
  left: 48%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(39,135,255,0.34), transparent 68%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
  animation: hero-glow-breathe 6s ease-in-out infinite;
}
.product-stage {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: none;
  margin-left: 0;
  margin-right: -1.25rem;
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
  transform: none;
  filter: drop-shadow(0 28px 60px rgba(0,0,0,.45)) drop-shadow(0 0 34px rgba(39,135,255,0.16));
  animation: hero-float 7s ease-in-out infinite;
}
.product-stage img,
.hero-product-img {
  display: block;
  width: auto;
  height: clamp(450px, 50vh, 540px);
  max-width: min(960px, 56vw);
  object-fit: contain;
  object-position: left center;
  background: transparent;
}
.float-note,
.mini-badge { display: none !important; }
@keyframes hero-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.012); }
}
@keyframes hero-glow-breathe {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.96); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

.section {
  max-width: var(--max);
  width: calc(100% - (var(--gutter) * 2));
  margin: 0 auto;
  padding: 90px 0;
}
/* Pull Features up so it peeks into the first viewport */
body.home-page #features {
  margin-top: 0;
  padding-top: 56px;
  padding-bottom: 90px;
  position: relative;
}
body.home-page #features .section-head {
  margin-bottom: 2rem;
}
/* Avoid a blank void if the first section is only partially on-screen */
body.home-page #features.reveal {
  opacity: 1;
  transform: none;
}
/* Splitter bloom/line for Features is handled in landing-polish.css */
.section-eyebrow {
  display: inline-flex;
  margin: 0 0 0.85rem;
  color: #4AA3FF;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-head {
  max-width: 44rem;
  margin: 0 auto 2.5rem;
}
.section-head h2 {
  font-size: clamp(2.15rem, 3.8vw, 3.25rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.section-head p { font-size: 1.1rem; }
.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.feature-card {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  padding: 1.85rem 1.6rem 1.75rem;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(39,135,255,0.45);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28), 0 0 0 1px rgba(39,135,255,0.12);
}
.feature-card h3 { font-size: 1.2rem; }
.feature-card p { font-size: 1rem; }

.cta-band,
.site-footer .footer-grid,
.site-footer .footer-copy,
.page-hero {
  max-width: var(--max);
  width: calc(100% - (var(--gutter) * 2));
}
.cta-band { margin-left: auto; margin-right: auto; }
.page-hero { margin-left: auto; margin-right: auto; }
.site-footer .footer-grid,
.site-footer .footer-copy {
  margin-left: auto;
  margin-right: auto;
}

/* Corner download CTA on homepage */
body.home-page .dock-download {
  display: inline-flex;
  right: 1.35rem;
  bottom: 1.35rem;
  min-height: 48px;
  padding: 0.9rem 1.35rem;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  box-shadow:
    0 14px 40px rgba(39,135,255,0.35),
    0 0 0 1px rgba(255,255,255,0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
body.home-page .dock-download:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 18px 46px rgba(39,135,255,0.42),
    0 0 0 1px rgba(255,255,255,0.12);
}

@media (max-width: 1200px) {
  .hero-shell {
    grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
    padding: 4.5rem 0 2.75rem;
  }
  .hero-visual { margin-left: -0.5rem; }
  .product-stage {
    width: min(780px, 118%);
    margin-left: 0;
    margin-right: -1.25rem;
  }
  .hero-title { font-size: clamp(48px, 4.6vw, 72px); }
}

@media (max-width: 1024px) {
  :root { --gutter: 28px; }
  .hero-shell {
    grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
    gap: 1.25rem;
    padding: 3.5rem 0 2.5rem;
  }
  .hero-title { font-size: clamp(42px, 5vw, 64px); }
  .hero-visual { margin-left: 0; }
  .product-stage {
    width: min(640px, 112%);
    margin-left: 0;
    margin-right: -0.5rem;
  }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home-page #features { padding-top: 64px; }
}

@media (max-width: 900px) {
  .hero-wrap {
    min-height: 0;
    align-items: flex-start;
  }
  .hero-wrap::after { width: min(420px, 70%); }
  .hero-shell {
    grid-template-columns: 1fr;
    padding: 2.5rem 0 2.25rem;
    gap: 1.25rem;
  }
  .hero-copy { max-width: none; }
  .hero-visual {
    order: 2;
    margin-left: 0;
    justify-content: center;
    padding: 0.25rem 0 0;
  }
  .product-stage {
    width: min(720px, 100%);
    margin: 0 auto;
    animation: none;
  }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .hero-title {
    font-size: clamp(36px, 9.5vw, 48px);
    letter-spacing: -0.045em;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .hero-lead { font-size: 16px; }
  .cta-row .btn-primary,
  .cta-row .btn-secondary { width: 100%; }
  .trust-line {
    gap: 0.55rem 0.9rem;
    font-size: 0.86rem;
  }
  .mini-badge { display: none; }
  .section { padding: 72px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-shell,
  .section,
  .top-nav-inner {
    width: calc(100% - 36px);
  }
}

html[dir="rtl"] .hero-shell {
  direction: rtl;
}
html[dir="rtl"] .product-stage {
  margin-right: 0;
  margin-left: -1.5rem;
}
html[dir="rtl"] .trust-line span::before {
  margin-left: 0.35rem;
  margin-right: 0;
}

/* Hero entrance */
.hero-in > * {
  opacity: 1;
  animation: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-in > * {
    animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero-in > *:nth-child(1) { animation-delay: 0.06s; }
  .hero-in > *:nth-child(2) { animation-delay: 0.14s; }
  .hero-in > *:nth-child(3) { animation-delay: 0.22s; }
  .hero-in > *:nth-child(4) { animation-delay: 0.3s; }
  .hero-in > *:nth-child(5) { animation-delay: 0.38s; }
  .hero-visual .product-stage {
    animation:
      hero-rise 1s cubic-bezier(0.22, 1, 0.36, 1) both,
      hero-float 7s ease-in-out 1s infinite;
    animation-delay: 0.2s, 1s;
  }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg::before,
  .hero-orb,
  .hero-sheen,
  .hero-glow,
  .product-stage,
  body.home-page .hero-copy .eyebrow,
  body.home-page .hero-copy .eyebrow::after,
  .hero-title span,
  body.home-page .hero-copy .btn-primary {
    animation: none !important;
  }
}
