*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --logo-purple:  #591F76;
  --purple-dark:  #3A1150;
  --purple-deep:  #280C3A;
  --purple-mid:   #7A2FB5;
  --purple-light: #A855D8;
  --cream:        #F2EDE8;
  --muted:        rgba(242, 237, 232, 0.5);
  --border:       rgba(242, 237, 232, 0.1);
  --border-hover: rgba(168, 85, 216, 0.4);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--logo-purple);
  color: var(--cream);
  overflow-x: hidden;
}

.grain {
  position: fixed; inset: -200%; width: 400%; height: 400%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .03; pointer-events: none; z-index: 1;
  animation: gs .6s steps(1) infinite;
}
@keyframes gs { 0%{transform:translate(0,0)} 25%{transform:translate(-1%,-1%)} 50%{transform:translate(1%,0)} 75%{transform:translate(0,1%)} }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px;
  height: 80px;
  background: #ffffff;
  border-bottom: 1px solid rgba(89, 31, 118, 0.12);
  box-shadow: 0 1px 24px rgba(89, 31, 118, 0.08);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 2px 36px rgba(89, 31, 118, 0.14); }

.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand-text { font-family: 'DM Serif Display', serif; font-size: 18px; color: var(--logo-purple); letter-spacing: .02em; font-weight: 400; }

.nav-logo-img { height: 60px; width: auto; display: block; }

.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-btn {
  font-size: 12px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  color: #fff; text-decoration: none;
  background: var(--logo-purple);
  padding: 11px 26px; border-radius: 2px;
  transition: background .25s; white-space: nowrap;
}
.nav-btn:hover { background: var(--purple-dark); }

.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px 64px 100px;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 55% at 75% 15%, rgba(168,85,216,.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 15% 85%, rgba(89,31,118,.5) 0%, transparent 55%);
  animation: gp 14s ease-in-out infinite alternate;
}
@keyframes gp { from{opacity:.75;transform:scale(1)} to{opacity:1;transform:scale(1.05)} }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 20%, transparent 80%);
  opacity: .4;
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(52px, 6.5vw, 104px);
  line-height: 1.0; letter-spacing: -.025em; max-width: 100%;
  opacity: 0; animation: up .85s .15s forwards;
}
.hero-title em { font-style: italic; color: #dfa8ff; }

.hero-sub-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 56px; opacity: 0; animation: up .85s .32s forwards;
}
.hero-tagline {
  font-size: 17px; line-height: 1.72; font-weight: 300;
  color: var(--muted); max-width: 600px;
}
.hero-tagline strong { color: var(--cream); font-weight: 400; }

.hero-scroll {
  position: absolute; right: 64px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  opacity: 0; animation: fi .8s 1.1s forwards;
}
.scroll-label { writing-mode: vertical-rl; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.scroll-line { width: 1px; height: 56px; background: linear-gradient(to bottom, var(--purple-light), transparent); animation: sp 2s ease-in-out infinite; }
@keyframes sp { 0%,100%{transform:scaleY(1);opacity:.5} 50%{transform:scaleY(.6);opacity:1} }

section { position: relative; z-index: 2; scroll-margin-top: 80px; }
.label { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #dfa8ff; margin-bottom: 24px; }

.problem {
  padding: 160px 64px;
  display: grid; grid-template-columns: 5fr 7fr; gap: 100px; align-items: start;
  border-bottom: 1px solid var(--border);
  background: var(--purple-deep);
}
.problem-left { position: sticky; top: 100px; }
.problem-heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(34px, 3.5vw, 56px); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 28px;
}
.problem-heading em { font-style: italic; color: #dfa8ff; }
.problem-intro { font-size: 16px; line-height: 1.75; color: var(--muted); font-weight: 300; }
.problem-cards { display: flex; flex-direction: column; gap: 1px; }
.prob-card { padding: 44px 48px; border: 1px solid var(--border); transition: border-color .3s, background .3s; }
.prob-card:hover { border-color: var(--border-hover); background: rgba(89,31,118,.2); }
.prob-icon { width: 36px; height: 36px; margin-bottom: 22px; color: #dfa8ff; opacity: .8; }
.prob-title { font-size: 18px; font-weight: 400; margin-bottom: 12px; letter-spacing: -.01em; }
.prob-text { font-size: 14px; line-height: 1.78; color: var(--muted); font-weight: 300; }

.solution {
  padding: 160px 64px; border-bottom: 1px solid var(--border);
  text-align: center; position: relative; overflow: hidden;
  background: var(--logo-purple);
}
.solution::before { content:''; position: absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:900px; height:900px; background:radial-gradient(circle, rgba(168,85,216,.12) 0%, transparent 65%); pointer-events:none; }
.solution-heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(38px, 5vw, 72px); line-height: 1.05; letter-spacing: -.025em; max-width: 900px; margin: 0 auto 64px;
}
.solution-heading em { font-style: italic; color: #dfa8ff; }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); max-width: 1100px; margin: 0 auto; text-align: left; }
.sol-card { background: var(--logo-purple); padding: 52px 44px; transition: background .4s; }
.sol-card:hover { background: var(--purple-dark); }
.sol-num { font-family: 'DM Serif Display', serif; font-size: 12px; color: #dfa8ff; letter-spacing: .06em; margin-bottom: 32px; }
.sol-title { font-size: 19px; font-weight: 400; margin-bottom: 14px; letter-spacing: -.01em; }
.sol-text { font-size: 14px; line-height: 1.78; color: var(--muted); font-weight: 300; }

.cta {
  padding: 160px 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background: var(--purple-deep);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(168,85,216,.1) 0%, transparent 65%);
  pointer-events: none;
}
.cta-heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3.2vw, 52px);
  line-height: 1.15; letter-spacing: -.02em;
  max-width: 820px;
}
.cta-heading em { font-style: italic; color: #dfa8ff; }

footer {
  padding: 28px 64px;
  background: var(--purple-deep);
  border-top: 1px solid var(--border);
  display: flex; justify-content: center; align-items: center; gap: 24px;
  z-index: 2; position: relative;
}
.f-copy { font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.f-terms { font-size: 12px; letter-spacing: .06em; color: var(--muted); text-decoration: none; }
.f-terms:hover { color: var(--cream); }

@keyframes up { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
@keyframes fi { from{opacity:0} to{opacity:1} }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .85s ease, transform .85s ease; }
.reveal.on { opacity: 1; transform: translateY(0); }

@media(max-width:900px){
  nav { padding: 0 20px; height: 68px; }
  .nav-brand-text { font-size: 15px; }
  .hero { padding: 0 28px 72px; }
  .hero-scroll { display: none; }
  .hero-sub-row { flex-direction: column; gap: 0; }
  .hero-tagline { max-width: 100%; margin-top: 36px; }
  .problem { grid-template-columns: 1fr; gap: 52px; padding: 80px 28px; }
  .problem-left { position: static; }
  .solution { padding: 80px 28px; }
  .solution-grid { grid-template-columns: 1fr; }
  .cta { padding: 80px 28px; }
  footer { padding: 24px 28px; flex-direction: column; gap: 12px; }
}
