/* ------------------------------------------------------------------ */
/* Theme Tokens                                                       */
/* ------------------------------------------------------------------ */
:root{
  --bg: #ffffff;
  --surface: #faf5ff;
  --surface-strong: #ffffff;
  --surface-soft: #fefce8;
  --text: #1f1b2e;
  --muted: #5b5871;
  --muted-soft: #706c8c;
  --border: #e6d8ff;
  --accent: #7c3aed;
  --accent-2: #facc15;
  --accent-soft: rgba(124,58,237,0.16);
  --shadow-sm: 0 8px 20px rgba(15,23,42,0.08);
  --shadow-md: 0 18px 40px rgba(15,23,42,0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --nav-height: 72px;
  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
}

/* ------------------------------------------------------------------ */
/* Base Resets                                                         */
/* ------------------------------------------------------------------ */
*,
*::before,
*::after{
  box-sizing: border-box;
}
html, body{
  height: 100%;
}
body{
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg{
  display: block;
  max-width: 100%;
}
a{
  color: inherit;
  text-decoration: none;
}
button{
  font: inherit;
  color: inherit;
}
:focus-visible{
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
main{
  position: relative;
  z-index: 1;
  background: var(--bg);
}

/* ------------------------------------------------------------------ */
/* Soft background accents                                             */
/* ------------------------------------------------------------------ */
.bg{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(900px 600px at -200px -120px, rgba(124,58,237,0.22), transparent 70%), radial-gradient(700px 420px at 100% 20%, rgba(250,204,21,0.18), transparent 65%), var(--bg);
}
.bg__grid{
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(124,58,237,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.18) 1px, transparent 1px);
  background-size: 42px 42px;
}
.bg__auras{
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
}

/* ------------------------------------------------------------------ */
/* Layout                                                              */
/* ------------------------------------------------------------------ */
.container{
  width: min(1140px, 92%);
  margin-inline: auto;
}
.section{
  position: relative;
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--bg);
}
.section--muted{
  background: var(--surface);
}
.maxw-3{
  max-width: 65ch;
}
.row{
  display: flex;
  align-items: center;
  gap: 12px;
}
.row.gap{
  gap: 20px;
}

/* ------------------------------------------------------------------ */
/* Header & Navigation                                                 */
/* ------------------------------------------------------------------ */
.header{
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(124,58,237,0.14);
}
.nav{
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand__logo{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 6px 18px rgba(124,58,237,0.32);
}
.brand__logo.small{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 18px;
  box-shadow: none;
}
.brand__name{
  color: var(--text);
}
.nav__list{
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav__list a{
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav__list a:hover,
.nav__list a:focus-visible{
  color: var(--accent);
}
.nav__toggle{
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.nav__toggle:hover{
  background: rgba(124,58,237,0.12);
}
.nav__toggle span{
  display: block;
  width: 26px;
  height: 2.5px;
  background: #1e293b;
  margin: 5px 0;
  border-radius: 999px;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.6);
  color: var(--text);
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}
.btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 12px 26px rgba(124,58,237,0.18);
}
.btn:active{
  transform: translateY(0);
}
.btn--primary{
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 20px 36px rgba(124,58,237,0.28);
}
.btn--light{
  background: #fff;
  color: var(--accent);
  border: 1px solid rgba(124,58,237,0.24);
}
.btn--ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.full{
  width: 100%;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero{
  padding: clamp(96px, 12vw, 150px) 0 clamp(72px, 8vw, 110px);
  background: linear-gradient(135deg, #f5f3ff 0%, #fef3c7 100%);
  position: relative;
  overflow: hidden;
}
.hero::after{
  content: "";
  position: absolute;
  inset: auto -160px -180px auto;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle at center, rgba(124,58,237,0.22), transparent 65%);
  filter: blur(0);
  transform: translateY(-30%);
  z-index: 0;
}
.hero__inner{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero__content{
  max-width: 540px;
}
.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.22);
  color: var(--accent);
  font-weight: 600;
}
.headline{
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08;
  margin: 18px 0 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.grad-text{
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted{
  color: var(--muted);
}
.cta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.hero__visual{
  position: relative;
}
.hero__visual .panel{
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124,58,237,0.14);
  box-shadow: var(--shadow-md);
  padding: clamp(20px, 3vw, 32px);
}
.mock{
  display: grid;
  gap: 16px;
}
.mock--grid{
  grid-template-columns: 1.6fr 1fr;
  align-items: start;
  gap: 16px;
}
.mock__preview{
  min-height: 260px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(230,216,255,0.8);
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  color: var(--muted-soft);
  background: radial-gradient(circle at 20% 20%, rgba(124,58,237,0.18), transparent 60%), radial-gradient(circle at 80% 40%, rgba(250,204,21,0.16), transparent 60%), #ffffff;
}
.mock__side{
  display: grid;
  gap: 14px;
}
.card.small{
  padding: 16px;
}
.state{
  display: flex;
  align-items: center;
  gap: 8px;
  color: #16a34a;
  font-weight: 600;
}
.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #16a34a;
  animation: pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(22,163,74,0.45);
}
@keyframes pulse{
  0%{ transform: scale(0.85); box-shadow: 0 0 0 0 rgba(22,163,74,0.45); }
  60%{ transform: scale(1.05); box-shadow: 0 0 0 14px rgba(22,163,74,0); }
  100%{ transform: scale(0.85); box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
.bar{
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(124,58,237,0.12);
  overflow: hidden;
}
.bar > span{
  position: absolute;
  inset: 0;
  width: 66%;
  background: var(--gradient);
}

/* ------------------------------------------------------------------ */
/* Metrics Strip                                                       */
/* ------------------------------------------------------------------ */
.metrics{
  margin-top: clamp(-96px, -10vw, -64px);
  position: relative;
  z-index: 5;
}
.metrics__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}
.metric{
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124,58,237,0.18);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.metric__label{
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-soft);
  font-weight: 600;
}
.metric__value{
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

/* ------------------------------------------------------------------ */
/* Cards & Panels                                                      */
/* ------------------------------------------------------------------ */
.panel,
.card{
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124,58,237,0.12);
  box-shadow: var(--shadow-sm);
  padding: 26px;
}
.card{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.icon{
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.18);
}
.icon svg{
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.6;
}
.eyebrow{
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
  font-weight: 600;
}
.kv{
  color: var(--text);
  font-weight: 600;
}
.big{
  font-size: 1.25rem;
  font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Typography                                                          */
/* ------------------------------------------------------------------ */
.h2{
  font-size: clamp(28px, 4.6vw, 40px);
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.h3{
  font-size: 1.2rem;
  margin: 0;
  font-weight: 700;
}
.h4{
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
  color: var(--muted);
}
.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.list li{
  margin: 6px 0;
}

/* ------------------------------------------------------------------ */
/* Grid utilities                                                      */
/* ------------------------------------------------------------------ */
.grid{
  display: grid;
  gap: 20px;
}
.grid-2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid.tight{
  gap: 12px;
}

/* ------------------------------------------------------------------ */
/* Steps                                                               */
/* ------------------------------------------------------------------ */
.steps .step{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 12px 28px rgba(124,58,237,0.24);
}

/* ------------------------------------------------------------------ */
/* Chips & ranges                                                      */
/* ------------------------------------------------------------------ */
.chip{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.16);
  color: var(--text);
}
.range{
  width: 100%;
  appearance: none;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(124,58,237,0.22);
  background: linear-gradient(90deg, var(--accent), var(--accent-2)) 0/ calc(var(--val,65) * 1%) 100% no-repeat, rgba(203,213,225,0.6);
}
.range::-webkit-slider-thumb{
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 12px rgba(124,58,237,0.28);
}

/* ------------------------------------------------------------------ */
/* FAQ                                                                 */
/* ------------------------------------------------------------------ */
.faq details{
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow-sm);
}
.faq summary{
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}
.faq p{
  margin: 12px 0 0;
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Form                                                                */
/* ------------------------------------------------------------------ */
.form{
  display: grid;
  gap: 14px;
}
.form label{
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--muted);
}
.form input,
.form textarea{
  background: #ffffff;
  border: 1px solid rgba(124,58,237,0.2);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form input:focus,
.form textarea:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.22);
  outline: none;
}
.form input::placeholder,
.form textarea::placeholder{
  color: rgba(100,116,139,0.8);
}
.form textarea{
  resize: vertical;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.footer{
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #5b21b6 0%, #f59e0b 100%);
  border-top: 1px solid rgba(124,58,237,0.32);
  padding: 32px 0 44px;
  color: #f8fafc;
  box-shadow: 0 -18px 36px rgba(91,33,182,0.28);
}
.footer__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer .muted{
  color: rgba(248,250,252,0.86);
}
.footer a{
  color: rgba(248,250,252,0.86);
  transition: opacity 0.2s ease;
}
.footer a:hover{
  opacity: 1;
  color: #fff;
}

/* ------------------------------------------------------------------ */
/* Reveal animation                                                    */
/* ------------------------------------------------------------------ */
.reveal{
  opacity: 0;
  transform: translateY(14px);
}
.reveal.in{
  opacity: 1;
  transform: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

/* ------------------------------------------------------------------ */
/* Misc                                                                */
/* ------------------------------------------------------------------ */
.wave{
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
}
#overview{
  display: block;
  position: relative;
  top: -90px;
  visibility: hidden;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 1180px){
  .grid-4{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 960px){
  .hero__inner{
    grid-template-columns: 1fr;
  }
  .hero__content{
    text-align: center;
    margin-inline: auto;
  }
  .cta{
    justify-content: center;
  }
  .hero__visual{
    max-width: 520px;
    margin: 0 auto;
  }
  .metrics{
    margin-top: clamp(-72px, -8vw, -48px);
  }
  .grid-3{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px){
  .nav__toggle{
    display: flow-root;
  }
  .nav__list{
    position: absolute;
    top: calc(var(--nav-height) + 16px);
    right: 4%;
    left: 4%;
    background: #ffffff;
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-md);
  }
  .nav__list li{
    width: 100%;
  }
  .nav__list a{
    display: block;
    padding: 12px 10px;
    border-radius: var(--radius-md);
  }
  .nav__list a:hover{
    background: rgba(124,58,237,0.12);
  }
  .nav__list.open{
    display: flex;
  }
  .nav__list .btn{
    width: 100%;
  }
}
@media (max-width: 768px){
  .metrics{
    margin-top: 28px;
  }
  .grid-3,
  .grid-2{
    grid-template-columns: 1fr;
  }
  .panel,
  .card{
    padding: 22px;
  }
  .brand__logo{
    width: 36px;
    height: 36px;
  }
}
@media (max-width: 520px){
  .hero{
    padding-top: 88px;
  }
  .headline{
    font-size: clamp(32px, 8vw, 44px);
  }
  .metrics__grid{
    gap: 14px;
  }
  .btn{
    width: 100%;
  }
  .cta{
    flex-direction: column;
  }
}


.toast-stack{
  position: fixed; right: 18px; bottom: 18px; z-index: 9999;
  display: grid; gap: 10px;
}
.toast{
  min-width: 280px; max-width: 420px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 10px;
  padding: 12px 14px; border-radius: 14px; border: 1px solid var(--stroke, rgba(255,255,255,0.12));
  background: rgba(255,255,255,.06); box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,.35));
  color: var(--text, #e6edf6);
  animation: toast-in .25s ease-out both;
}
.toast__icon{ width: 18px; height: 18px; margin-top: 2px; }
.toast__title{ font-weight: 700; margin: 0 0 2px; }
.toast__desc{ margin: 0; color: var(--muted, #a7b0c0); font-size: 14px; }
.toast__close{ background: transparent; border: 0; color: #94a3b8; cursor: pointer; font-size: 16px; line-height: 1; }
.toast--success{ border-color: rgba(16,185,129,.35); background: linear-gradient(180deg, rgba(16,185,129,.12), rgba(16,185,129,.05)); }
.toast--error{   border-color: rgba(244,63,94,.35); background: linear-gradient(180deg, rgba(244,63,94,.12), rgba(244,63,94,.05)); }
.toast--info{    border-color: rgba(56,189,248,.35); background: linear-gradient(180deg, rgba(56,189,248,.12), rgba(56,189,248,.05)); }
@keyframes toast-in{ from{opacity:0; transform: translateY(8px)} to{opacity:1; transform:none} }
@keyframes toast-out{ to{opacity:0; transform: translateY(6px)} }



/* Five-column grid (Solutions section) */
.grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Responsive behavior for .grid-5 */
@media (max-width: 1180px){
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px){
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px){
  .grid-5 { grid-template-columns: 1fr; }
}