/* Hero */
.hero {
  position: relative;
  padding: var(--space-12) 0 120px;
}

@media (max-width: 768px) {
  .hero {
    padding: var(--space-12) 0 80px;
  }
}

.glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 450px at 50% 10%, rgba(10,12,20,0.45), transparent 50%),
    radial-gradient(420px 220px at 50% 6%, rgba(60,110,255,0.62), rgba(60,110,255,0.18) 45%, transparent 70%),
    radial-gradient(360px 220px at 82% 78%, rgba(90,230,200,0.34), rgba(90,230,200,0.08) 40%, transparent 75%);
  mix-blend-mode: normal;
}

.no-glow .glow {
  display: none !important;
}

.hero .glow {
  display: none !important;
}

.hero-inner {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 0;
  pointer-events: none;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 8px rgba(40, 60, 100, 0.18), 0 1px 0 rgba(0,0,0,0.22);
  background-size: 200% 100%;
  background-position: left center;
  transition: background-position 6s ease-in-out;
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1 {
    animation: gradient-drift 8s ease-in-out infinite alternate;
  }
}

@keyframes gradient-drift {
  0% { background-position: left center; }
  100% { background-position: right center; }
}



/* Dashboard */
.dashboard {
  margin: var(--space-8) auto var(--space-8);
  max-width: 980px;
  width: calc(100% - 160px);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: visible;
  position: relative;
  z-index: 1;
}

.dashboard::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  border-radius: calc(var(--radius) + 18px);
  background:
    radial-gradient(circle at 50% 50%, transparent 0%, transparent 62%, rgba(60,110,255,0.36) 64%, rgba(60,110,255,0.14) 70%, transparent 74%),
    radial-gradient(circle at 82% 72%, transparent 0%, transparent 60%, rgba(90,230,200,0.18) 62%, rgba(90,230,200,0.06) 68%, transparent 72%);
  filter: blur(38px);
  opacity: 0.92;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: normal;
}

@media (max-width: 767px) {
  .dashboard::before {
    width: 120%;
    height: 120%;
    filter: blur(28px);
    opacity: 0.78;
    top: 52%;
  }
}

.dashboard figcaption {
  color: var(--muted);
  text-align: center;
  padding: 10px 14px;
  font-size: 13px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.no-glow .dashboard::before {
  display: none;
}

/* Stats band */
.band {
  background: var(--bg);
  position: relative;
}

#stats .section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

#stats .section-head .gradient-text {
  max-width: 1100px;
  margin: 0 auto;
}

#stats .section-head p {
  max-width: 980px;
  margin: 0 auto;
  color: var(--muted);
}

/* Brand marquee */
.brand-marquee {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  padding: 26px 0 22px;
  margin-top: 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0)), var(--bg);
  border-top: none;
  border-bottom: none;
  z-index: 2;
}

.brands-cta {
  display: flex;
  justify-content: center;
  margin: 18px 0 8px;
}

.brands-cta .btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
}

.brands-cta .btn:focus {
  outline: 3px solid rgba(76,134,255,0.12);
  outline-offset: 4px;
}

.brand-stats {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

.brand-stats .stat-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 300px;
  min-height: 140px;
  padding: 20px 36px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(8,12,20,0.98), rgba(11,16,28,0.96));
  border: 1px solid rgba(255,255,255,0.02);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(55,104,255,0.12), inset 0 1px 0 rgba(255,255,255,0.02);
  text-align: center;
  position: relative;
  overflow: visible;
}

.brand-stats .stat-value {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 6px;
}

.brand-stats .stat-pill::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 22px;
  background:
    radial-gradient(300px 120px at 10% 10%, rgba(76,134,255,0.28), transparent 30%),
    radial-gradient(280px 120px at 90% 90%, rgba(107,210,255,0.18), transparent 35%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

.brand-stats .stat-pill::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  border: 1.5px solid rgba(76,134,255,0.32);
  z-index: 2;
  pointer-events: none;
}

.brand-track {
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 34s linear infinite;
  padding-left: 0;
}

.brand-track > * {
  flex: 0 0 auto;
}

.brand-track a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 6px 2px;
  white-space: nowrap;
}

.brand-track a[aria-hidden="true"] {
  opacity: 0.95;
}

.brand-marquee:hover .brand-track,
.brand-marquee:focus-within .brand-track {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Steps */
.steps .steps-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.step-grid {
  grid-template-columns: 1fr;
}

.step-card {
  background: rgba(11, 16, 32, 0.6);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 0;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-600);
}

.step-card .mockup {
  width: 100%;
  height: 400px;
  background: radial-gradient(circle at center, rgba(20, 25, 45, 1) 0%, rgba(7, 10, 20, 1) 100%) !important;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.step-card .mockup img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.step-card:hover .mockup img {
  transform: scale(1.05);
}

.step-card-content {
  padding: 24px 28px 32px;
  background: transparent;
}

.step-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
  opacity: 0.8;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text);
}

.step-card p:not(.step-label) {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Specific Mockup Adjustments */
.mockup.mockup--notification {
  background: radial-gradient(circle at center, rgba(76, 134, 255, 0.1), rgba(7, 10, 20, 1) 80%) !important;
}

/* Deep Features */
#deep-features .section-head,
.features-rows .section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

#deep-features .section-head .gradient-text,
.features-rows .section-head .gradient-text {
  max-width: 1100px;
  margin: 0 auto;
}

#deep-features .section-head p,
.features-rows .section-head p {
  max-width: 980px;
  margin: 0 auto;
  color: var(--muted);
}

#deep-features {
  position: relative;
  z-index: 4;
  background: var(--bg);
}

.features-rows .feature-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  align-items: center;
  margin-bottom: 24px;
}

.feature-row--split {
  position: relative;
}

.feature-row--split .feature-copy {
  padding-right: 24px;
}

.feature-row--split .feature-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
}

.feature-row--split .image-card {
  width: 100%;
  max-width: 720px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 40px 110px rgba(55,104,255,0.18), inset 0 1px 0 rgba(255,255,255,0.02);
  aspect-ratio: 720 / 460;
  background: var(--panel);
}

.feature-row--split .image-card img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-row--split .side-divider {
  position: absolute;
  left: 0;
  top: 12%;
  height: 76%;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
  box-shadow: 0 8px 24px rgba(0,0,0,0.45) inset, 0 0 34px rgba(76,134,255,0.06);
  opacity: 0.9;
  pointer-events: none;
}

.feature-row--split.alt-layout {
  direction: ltr;
}

.feature-row--split .feature-copy { order: 1; }
.feature-row--split .feature-media { order: 2; }
.feature-row--split.alt-layout .feature-copy { order: 2; }
.feature-row--split.alt-layout .feature-media { order: 1; }

.feature-copy h3 {
  line-height: 1.18;
  margin-bottom: 18px;
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.08;
}

.feature-copy p {
  margin: 0 0 12px;
  color: var(--muted);
}

.feature-media {
  width: 100%;
}

.image-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.image-card.glow {
  box-shadow: 0 40px 90px rgba(55, 104, 255, 0.25), 0 10px 0 rgba(107, 255, 232, 0.06) inset;
}

.image-card.glow::after {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  background: radial-gradient(600px 260px at 60% -10%, rgba(55, 104, 255, 0.3), transparent 70%);
  pointer-events: none;
}

.no-glow .image-card.glow {
  box-shadow: none;
}

.no-glow .image-card.glow::after {
  display: none;
}

/* Sections (Get Started) */
#getStarted .section-head {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

#getStarted .section-head .gradient-text {
  margin: 0 auto;
  font-size: 32px;
  line-height: 1.14;
}

#getStarted .section-head p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 900px;
}

#getStarted .section-head h2 {
  font-size: 28px;
}

#getStarted .section-head img {
  display: block;
  margin: 18px auto 0;
  width: 100%;
  max-width: 900px;
  height: auto;
  object-fit: contain;
}

#getStarted {
  position: relative;
  z-index: 2;
  background: var(--bg);
}

/* Breakpoints for Index */
@media (min-width: 375px) {
  .hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 767px) {
  .dashboard {
    width: calc(100% - 48px);
    margin: var(--space-6) auto var(--space-6);
  }
  #getStarted .section-head img { max-width: 92vw; }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 56px;
  }
  .brand-stats .stat-value {
    font-size: 48px;
  }
  .brand-stats .stat-pill {
    min-width: 360px;
    min-height: 160px;
    padding: 26px 42px;
  }
  .step-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  /* Removed conflicting margins for new card design */
  .feature-row--split {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .feature-row--split.alt-layout {
    grid-template-columns: 1fr 1fr;
  }
  .feature-row--split .side-divider {
    left: -8px;
    top: 10%;
  }
  .feature-row--split.alt-layout .feature-copy {
    order: 2;
    padding-left: 24px;
    padding-right: 0;
    text-align: left;
  }
  .feature-row--split.alt-layout .feature-media {
    order: 1;
  }
  .brand-track img+img {
    margin-left: 64px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: calc(var(--space-16) + 12px) 0 calc(var(--space-16) + 8px);
  }
  .brand-stats .stat-pill {
    min-width: 420px;
    min-height: 170px;
    padding: 30px 48px;
  }
  .brand-stats .stat-value {
    font-size: 56px;
  }
  .brand-stats .stat-pill::before { inset: -10px; filter: blur(8px); }
  .brand-stats .stat-pill::after { inset: -3px; }
  .feature-copy h3 {
    font-size: 28px;
  }
  #stats .section-head .gradient-text,
  #deep-features .section-head .gradient-text,
  #getStarted .section-head .gradient-text {
    font-size: 40px;
  }
  #getStarted .section-head h2 { font-size: 34px; }
}

@media (min-width: 1440px) {
  .hero h1 {
    font-size: 68px;
  }
  .feature-copy h3 {
    font-size: 32px;
  }
}

/* Redesigned CTA Section */
.cta-section-redesigned {
  position: relative;
  overflow: hidden;
  padding: 120px 0 0; /* Top padding only, bottom handled by content flow */
}

.cta-glow-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(76, 134, 255, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cta-content-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-section-redesigned .section-head {
  margin-bottom: 40px;
  max-width: 800px;
}

.cta-section-redesigned h2 {
  font-size: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-section-redesigned p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.cta-visual {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin-top: -20px; /* Slight overlap or pull up */
  display: flex;
  justify-content: center;
}

.visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(76, 134, 255, 0.25) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
}

.network-svg {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

@media (max-width: 768px) {
  .cta-section-redesigned h2 {
    font-size: 32px;
  }
  
  .cta-section-redesigned {
    padding-top: 80px;
  }
  
  .network-svg {
    max-height: 400px;
  }
}

/* Reviews Section */
.reviews-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.reviews-carousel-wrapper {
  margin-top: 64px;
  position: relative;
  /* Optional: Add fade masks on sides */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reviews-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 40px; /* Space for scrollbar if visible, or just breathing room */
  padding-left: 5%; /* Center start */
  padding-right: 5%;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}

.reviews-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.review-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  min-width: 350px;
  max-width: 350px;
  scroll-snap-align: center;
  flex-shrink: 0;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border-color: var(--primary-600);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.reviewer-info h4 {
  margin: 0 0 4px 0;
  font-size: 18px;
  color: var(--text);
  font-weight: 600;
}

.reviewer-role {
  font-size: 14px;
  color: var(--muted);
}

.review-rating {
  color: #FFD700; /* Gold color for stars */
  font-size: 18px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  font-style: italic;
}

@media (max-width: 768px) {
  .review-card {
    min-width: 280px;
    max-width: 280px;
    padding: 24px;
  }
}


/* Reviews Section Heading Match */
.reviews-section .section-head .gradient-text {
  font-size: 32px;
  line-height: 1.14;
}

@media (min-width: 1024px) {
  .reviews-section .section-head .gradient-text {
    font-size: 40px;
  }
}
