/* ═══════════════════════════════════════════
   HOME PAGE – Premium Dark SaaS Aesthetic
   ═══════════════════════════════════════════ */

/* ── Layout container ── */
.home-page {
  --purple:      #a76bf3;
  --purple-deep: #7c3aed;
  --purple-soft: #c084fc;
  --pink:        #ec4899;
  --ink:         #f8f7ff;
  --muted:       #b9b3ca;
  --panel:       #1a1530;
  --line:        rgba(255,255,255,.08);
  --glow-purple: rgba(124,58,237,.18);
  --glow-pink:   rgba(236,72,153,.10);
  color: var(--ink);
  max-width: 1250px;
  margin: auto;
}

/* Override main-content wrapper */
.main-content:has(.home-page) { padding: 0; }
.main-content:has(.home-page) > .container { max-width: none; padding: 0; }


/* ═══════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════ */
.reveal,
.reveal-up,
.reveal-scale {
  opacity: 0;
  transition: opacity .7s cubic-bezier(.16,1,.3,1),
              transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal      { transform: translateY(32px); }
.reveal-up   { transform: translateY(48px); }
.reveal-scale { transform: scale(.94) translateY(24px); }

.reveal.visible,
.reveal-up.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger children inside grids */
.feature-grid .feature-card:nth-child(1) { transition-delay: 0ms; }
.feature-grid .feature-card:nth-child(2) { transition-delay: 80ms; }
.feature-grid .feature-card:nth-child(3) { transition-delay: 160ms; }
.feature-grid .feature-card:nth-child(4) { transition-delay: 240ms; }
.feature-grid .feature-card:nth-child(5) { transition-delay: 320ms; }
.feature-grid .feature-card:nth-child(6) { transition-delay: 400ms; }

.steps li:nth-child(1) { transition-delay: 0ms; }
.steps li:nth-child(2) { transition-delay: 100ms; }
.steps li:nth-child(3) { transition-delay: 200ms; }
.steps li:nth-child(4) { transition-delay: 300ms; }

.article-grid article:nth-child(1) { transition-delay: 0ms; }
.article-grid article:nth-child(2) { transition-delay: 100ms; }
.article-grid article:nth-child(3) { transition-delay: 200ms; }


/* ═══════════════════════════════════════════
   AMBIENT GLOW (decorative background orbs)
   ═══════════════════════════════════════════ */
.ambient-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
}


/* ═══════════════════════════════════════════
   EYEBROW (shared label component)
   ═══════════════════════════════════════════ */
.eyebrow {
  display: inline-block;
  color: var(--purple-soft);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--purple-soft), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 700px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(2rem,7vw,6rem);
  overflow: visible;
}

/* Ambient orbs behind the hero */
.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  top: -10%;
  left: -15%;
  background: radial-gradient(circle, var(--glow-purple) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: float-slow 12s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  bottom: -5%;
  right: -8%;
  background: radial-gradient(circle, var(--glow-pink) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: float-slow 14s ease-in-out infinite alternate-reverse;
}

@keyframes float-slow {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(20px, -18px); }
}

/* Hero copy */
.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1,
.section h2,
.final-cta h2 {
  letter-spacing: -.04em;
  line-height: 1.04;
  margin: 0;
}

.hero h1 {
  font-size: xxx-large;
  max-width: 850px;
  background: linear-gradient(135deg, #fff 40%, var(--purple-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animated gradient bar under hero heading */
.hero h1::after {
  content: "";
  display: block;
  width: 110px;
  height: 5px;
  margin-top: 1.3rem;
  border-radius: 9px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  background-size: 200% 100%;
  animation: gradient-slide 3s ease-in-out infinite;
}

@keyframes gradient-slide {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero-lead {
  font-size: clamp(1rem,1.6vw,1.2rem);
  line-height: 1.8;
  color: var(--muted);
  max-width: 660px;
  margin: 1.7rem 0;
}


/* ── Buttons ── */
.hero-actions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: 14px;
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  transition: .25s transform, .25s box-shadow, .25s background;
  position: relative;
  overflow: hidden;
}
.button:hover {
  transform: translateY(-3px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple-deep), var(--pink));
  box-shadow: 0 14px 40px rgba(124,58,237,.30), 0 0 0 1px rgba(167,107,243,.2);
}
.button.primary:hover {
  box-shadow: 0 18px 50px rgba(124,58,237,.40), 0 0 0 1px rgba(167,107,243,.35);
}
/* Shimmer effect on primary buttons */
.button.primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.12) 50%, transparent 80%);
  transform: skewX(-25deg);
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { left: -75%; }
  100% { left: 175%; }
}

.button.secondary {
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(6px);
}
.button.secondary:hover {
  border-color: rgba(167,107,243,.4);
  background: rgba(255,255,255,.07);
  box-shadow: 0 8px 30px rgba(124,58,237,.12);
}


/* ── Hero Points ── */
.hero-points {
  display: flex;
  gap: .65rem 1.5rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
  color: var(--muted);
  font-size: .88rem;
}
.hero-points li::before {
  content: "✓";
  color: #4ade80;
  font-weight: 900;
  margin-right: .45rem;
}


/* ── Hero Visual ── */
.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 520px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 32px;
  background: radial-gradient(circle at 50% 38%, rgba(167,107,243,.18), transparent 55%),
              linear-gradient(170deg, #1a1530 0%, #110e20 100%);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.35),
              inset 0 1px 0 rgba(255,255,255,.06);
}
.hero-visual > img {
  width: min(78%, 400px);
  height: auto;
  border-radius: 24px;
  filter: drop-shadow(0 20px 50px rgba(124,58,237,.25));
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.hero-visual:hover > img {
  transform: scale(1.03) translateY(-4px);
}

/* Insight cards on the hero visual */
.insight-card {
  position: absolute;
  display: grid;
  gap: .3rem;
  padding: 1rem 1.2rem;
  background: rgba(22,17,38,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.40),
              inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s;
}
.insight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(0,0,0,.50),
              inset 0 1px 0 rgba(255,255,255,.08);
}
.insight-card strong {
  font-size: .92rem;
}
.insight-card span {
  font-size: .78rem;
  color: var(--muted);
}
.insight-top    { top: 8%; right: 3%; }
.insight-bottom { bottom: 8%; left: 3%; }


/* ═══════════════════════════════════════════
   PROOF STRIP
   ═══════════════════════════════════════════ */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.025);
  margin: 3rem 0 7rem;
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 40px rgba(0,0,0,.15);
}
.proof-strip > div {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.6rem 1.8rem;
  border-right: 1px solid var(--line);
  transition: background .25s;
}
.proof-strip > div:last-child { border-right: 0; }
.proof-strip > div:hover {
  background: rgba(255,255,255,.03);
}

/* Proof strip icon circles */
.proof-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,.18), rgba(236,72,153,.10));
  border: 1px solid rgba(167,107,243,.2);
}
.proof-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--purple-soft);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proof-strip .proof-text {
  display: grid;
  gap: .35rem;
}
.proof-strip strong {
  font-size: 1rem;
}
.proof-strip .proof-text span {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}


/* ═══════════════════════════════════════════
   SECTION (shared)
   ═══════════════════════════════════════════ */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 3rem;
}
.section-heading h2,
.split h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(135deg, #fff 60%, var(--purple-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-heading p,
.split p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.06rem;
  margin-top: .8rem;
}


/* ═══════════════════════════════════════════
   FEATURE GRID
   ═══════════════════════════════════════════ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.feature-card {
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  transition: .35s transform, .35s border-color, .35s box-shadow;
  position: relative;
  overflow: hidden;
}
/* Subtle gradient glow on hover */
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  opacity: 0;
  transition: opacity .35s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  border-color: rgba(167,107,243,.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(124,58,237,.12),
              inset 0 1px 0 rgba(255,255,255,.06);
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: .72rem;
  font-weight: 900;
  color: var(--purple-soft);
  background: linear-gradient(135deg, rgba(124,58,237,.2), rgba(236,72,153,.08));
  border: 1px solid rgba(167,107,243,.2);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin: 1.1rem 0 .75rem;
  letter-spacing: -.02em;
}
.feature-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  font-size: .92rem;
}


/* ═══════════════════════════════════════════
   HOW IT WORKS (Steps)
   ═══════════════════════════════════════════ */
.process {
  border-top: 1px solid var(--line);
}
.process::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), transparent);
}

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.steps li {
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  transition: .3s transform, .3s border-color, .3s box-shadow;
  position: relative;
}
.steps li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: 18px 18px 0 0;
}

.steps li:hover {
  border-color: rgba(167,107,243,.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(124,58,237,.10);
}

.steps li > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(236,72,153,.10));
  border: 1px solid rgba(167,107,243,.25);
  color: var(--purple-soft);
  border-radius: 50%;
  font-weight: 900;
  font-size: .85rem;
}

.steps h3 {
  font-size: 1rem;
  margin: 1.1rem 0 .55rem;
  letter-spacing: -.015em;
}
.steps p {
  color: var(--muted);
  line-height: 1.6;
  font-size: .86rem;
}


/* ═══════════════════════════════════════════
   SPLIT (Recommendations section)
   ═══════════════════════════════════════════ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--purple-soft);
  font-weight: 800;
  text-decoration: none;
  transition: .2s gap, .2s color;
}
.text-link:hover {
  gap: .65rem;
  color: #d8b4fe;
}

.dashboard-preview {
  padding: 1.6rem;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel), #13102a);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25),
              inset 0 1px 0 rgba(255,255,255,.05);
}

.mini-chart {
  height: 160px;
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 1.1rem;
  margin-bottom: 1.1rem;
  background: rgba(13,11,26,.7);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.05);
}
.mini-chart i {
  height: var(--value);
  flex: 1;
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(to top, var(--purple-deep), var(--pink));
  transition: .4s height;
  animation: chart-grow 1.2s cubic-bezier(.16,1,.3,1) both;
  opacity: .85;
}
.mini-chart i:nth-child(1) { animation-delay: .1s; }
.mini-chart i:nth-child(2) { animation-delay: .2s; }
.mini-chart i:nth-child(3) { animation-delay: .3s; }
.mini-chart i:nth-child(4) { animation-delay: .4s; }

@keyframes chart-grow {
  0% { height: 0; opacity: 0; }
  100% { opacity: .85; }
}

.priority {
  display: grid;
  gap: .3rem;
  padding: 1.1rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.priority span {
  font-size: .7rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .08em;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.priority small {
  color: var(--muted);
  font-size: .84rem;
}


/* ═══════════════════════════════════════════
   ARTICLE GRID (Study Guides)
   ═══════════════════════════════════════════ */
.row-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  max-width: none;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.article-grid article {
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.02);
  transition: .3s transform, .3s border-color, .3s box-shadow;
}
.article-grid article:hover {
  border-color: rgba(167,107,243,.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(124,58,237,.10);
}
.article-grid span {
  display: inline-block;
  font-size: .7rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .06em;
  padding: .25rem .7rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(236,72,153,.08));
  border: 1px solid rgba(167,107,243,.2);
  color: var(--purple-soft);
}
.article-grid h3 { margin: 1rem 0 .6rem; }
.article-grid h3 a {
  color: var(--ink);
  text-decoration: none;
  transition: color .2s;
}
.article-grid h3 a:hover { color: var(--purple-soft); }
.article-grid p {
  color: var(--muted);
  line-height: 1.6;
  font-size: .92rem;
}
.article-grid article > a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--purple-soft);
  font-weight: 800;
  text-decoration: none;
  font-size: .9rem;
  transition: gap .2s;
}
.article-grid article > a:hover { gap: .6rem; }


/* ═══════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════ */
.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: clamp(2.2rem,5vw,4rem);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(124,58,237,.14), rgba(236,72,153,.08));
  border: 1px solid rgba(167,107,243,.25);
  box-shadow: 0 20px 60px rgba(124,58,237,.12);
}
/* Animated gradient border accent */
.final-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--purple));
  background-size: 200% 100%;
  animation: gradient-slide 3s ease-in-out infinite;
}

.final-cta h2 {
  font-size: clamp(1.8rem,4vw,2.8rem);
  max-width: 760px;
}
.final-cta p {
  color: var(--muted);
  margin-top: .6rem;
  line-height: 1.7;
}
.final-cta .button { flex: none; }


/* ── Disclaimer ── */
.disclaimer {
  color: #6e6880;
  text-align: center;
  font-size: .73rem;
  line-height: 1.55;
  margin: 2.8rem auto 0;
  max-width: 850px;
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
    min-height: auto;
  }
  .hero-visual { min-height: 420px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-strip > div:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  .home-page { padding-inline: 1rem; }
  .hero { min-height: auto; }
  .hero h1 { font-size: 2.5rem; }
  .hero-visual { min-height: 340px; }
  .insight-card {
    position: relative;
    inset: auto !important;
    width: calc(100% - 2rem);
    margin: .5rem;
  }
  .hero-visual > img { width: 68%; }
  .feature-grid,
  .steps { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .row-heading,
  .final-cta { display: grid; align-items: start; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
