:root {
  --purple-900: #2A1349;
  --purple-800: #391A63;
  --purple-700: #4A2179;
  --purple-600: #5D2C8C;
  --purple-500: #7C3F97;
  --purple-400: #A569BD;
  --purple-300: #C79BD8;
  --purple-200: #E6D6EF;
  --purple-100: #F6F1FA;
  --orange-500: #F5821F;
  --orange-400: #FF9F45;
  --ink: #241536;
  --gray-600: #6b6478;
  --gray-300: #E4DEEC;
  --white: #ffffff;
  --shadow: 0 20px 45px -20px rgba(42, 19, 73, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Prompt', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { margin: 0 0 .6em; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; color: var(--gray-600); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple-500);
  background: var(--purple-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow--light { background: rgba(255,255,255,.12); color: var(--purple-200); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--purple-600);
  color: var(--white);
}
.btn--primary:hover { background: var(--purple-700); }
.btn--accent {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-400));
  color: var(--white);
  box-shadow: 0 12px 24px -8px rgba(245, 130, 31, .55);
}
.btn--accent:hover { transform: translateY(-2px); }
.btn--ghost {
  border: 1.5px solid var(--purple-300);
  color: var(--purple-600);
}
.btn--ghost:hover { background: var(--purple-100); }
.btn--ghost-light {
  border: 1.5px solid rgba(255,255,255,.5);
  color: var(--white);
}
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-300);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand__logo { height: 30px; width: auto; flex-shrink: 0; }
.brand__logo--light { filter: brightness(0) invert(1); }
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
}
.nav__links a:hover { color: var(--purple-600); }
.nav__cta { margin-left: 8px; padding: 11px 22px; font-size: .9rem; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  margin-left: auto;
}
.nav__burger span { width: 22px; height: 2px; background: var(--purple-800); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
  background: var(--purple-100);
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: .45;
  z-index: 0;
}
.hero__blob--1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--purple-300), transparent 70%);
  top: -180px; right: -140px;
}
.hero__blob--2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--orange-400), transparent 70%);
  opacity: .18;
  bottom: -160px; left: -100px;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.hero__text h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  color: var(--purple-900);
}
.hero__lead { font-size: 1.05rem; max-width: 46ch; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 30px; }
.hero__proof {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--gray-600);
}
.hero__proof strong { color: var(--purple-700); font-weight: 700; }

.hero__art {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Phone mockup */
.phone {
  width: 240px;
  border-radius: 34px;
  background: var(--ink);
  padding: 10px;
  box-shadow: var(--shadow);
  position: relative;
}
.phone img { border-radius: 24px; width: 100%; display: block; aspect-ratio: 9/19.5; object-fit: cover; }
.phone__notch {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 16px;
  background: var(--ink);
  border-radius: 12px;
  z-index: 2;
}
.phone--float {
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}
.phone--back {
  position: absolute;
  right: 0;
  bottom: 10px;
  z-index: 1;
  transform: scale(.86) rotate(8deg);
  opacity: .9;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Stats */
.stats { background: var(--purple-800); padding: 34px 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num { font-size: 1.6rem; font-weight: 700; color: var(--white); }
.stat__label { font-size: .85rem; color: var(--purple-200); }

/* Features */
.features { padding: 100px 0; }
.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--purple-900); }
.section-head--light h2 { color: var(--white); }
.section-head--light p { color: var(--purple-200); }

.feature {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}
.feature:last-child { margin-bottom: 0; }
.feature--reverse { grid-template-columns: 1.15fr .85fr; }
.feature--reverse .feature__media { order: 2; }
.feature--reverse .feature__text { order: 1; }
.feature__media { display: flex; justify-content: center; }
.feature__media .phone { width: 220px; }
.feature__tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--orange-500);
  background: #FFF1E2;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.feature__text h3 { font-size: 1.5rem; color: var(--purple-900); }
.feature__text p { font-size: 1rem; max-width: 46ch; }

/* CMS */
.cms {
  background: linear-gradient(160deg, var(--purple-900), var(--purple-600) 120%);
  padding: 100px 0;
}
.browser-frame {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.5);
}
.browser-frame--wide { border-radius: var(--radius-lg); margin-bottom: 40px; }
.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #EDE7F3;
}
.browser-frame__bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--purple-300);
}
.browser-frame__title {
  margin-left: 12px;
  font-size: .78rem;
  color: var(--gray-600);
  background: var(--white);
  padding: 4px 14px;
  border-radius: 999px;
}
.browser-frame img { width: 100%; display: block; }
.browser-frame--wide img { aspect-ratio: 16/9; object-fit: cover; object-position: top; }

.cms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.cms-card .browser-frame img { aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.cms-card h3 { color: var(--white); font-size: 1.15rem; margin-top: 20px; }
.cms-card p { color: var(--purple-200); font-size: .92rem; margin-bottom: 0; max-width: 46ch; }

/* App gallery */
.app-gallery { padding: 100px 0; background: var(--purple-100); }
.gallery-strip {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 10px 4px 30px;
  scroll-snap-type: x mandatory;
}
.gallery-strip .phone { flex: 0 0 auto; scroll-snap-align: start; }
.phone--sm { width: 200px; }

/* CTA banner */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  padding: 90px 0;
  text-align: center;
}
.cta-banner__blob {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--orange-400), transparent 70%);
  opacity: .25;
  top: -220px; left: 50%;
  transform: translateX(-50%);
}
.cta-banner__inner { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-banner p { color: var(--purple-200); max-width: 480px; margin: 0 auto 8px; }
.cta-banner__actions { justify-content: center; margin-top: 28px; }
.btn { border: none; font-family: inherit; cursor: pointer; }

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 48px auto 0;
  text-align: left;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--white);
  font-size: .92rem;
  transition: background .15s ease;
}
.contact-card:hover { background: rgba(255,255,255,.16); }
.contact-card__icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.contact-card__icon svg { width: 19px; height: 19px; }
.contact-card__icon--line { background: #06C755; color: var(--white); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(23, 10, 41, .6); backdrop-filter: blur(2px); }
.modal__panel {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px 28px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}
.modal__panel h3 { color: var(--purple-900); font-size: 1.15rem; margin-bottom: 20px; }
.modal__qr { width: 220px; height: 220px; margin: 0 auto; border-radius: 12px; border: 1px solid var(--gray-300); }
.modal__panel p { margin: 18px 0 0; font-size: .9rem; }
.modal__panel strong { color: var(--purple-700); }
.modal__close {
  position: absolute; top: 12px; right: 14px;
  width: 30px; height: 30px;
  border: none; background: var(--purple-100); color: var(--purple-700);
  border-radius: 50%; font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.modal__close:hover { background: var(--purple-200); }

/* Footer */
.footer { background: var(--purple-900); padding: 60px 0 20px; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand p { color: var(--purple-300); font-size: .9rem; margin-top: 14px; }
.footer__links { display: flex; gap: 26px; align-items: flex-start; font-size: .92rem; }
.footer__links a { color: var(--purple-200); }
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  padding-top: 20px;
  font-size: .82rem;
  color: var(--purple-400);
}

/* Responsive */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { height: 440px; margin-top: 20px; }
  .feature, .feature--reverse { grid-template-columns: 1fr; text-align: center; }
  .feature--reverse .feature__media, .feature--reverse .feature__text,
  .feature .feature__media, .feature .feature__text { order: unset; }
  .feature__text p { margin-left: auto; margin-right: auto; }
  .cms-grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-300);
    gap: 16px;
  }
  .nav__links.is-open { display: flex; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }
}
