:root {
  --ink: #11122f;
  --muted: #5a6178;
  --surface: #eef2f8;
  --surface-strong: #f8fbff;
  --line: rgba(20, 28, 54, 0.1);
  --violet: #6847ff;
  --cyan: #35c7e8;
  --rose: #ff4f86;
  --orange: #ff914d;
  --green: #22b884;
  --shadow-low: 12px 12px 28px rgba(127, 139, 166, 0.22),
    -12px -12px 28px rgba(255, 255, 255, 0.92);
  --shadow-high: 26px 30px 70px rgba(54, 66, 104, 0.22),
    -18px -18px 44px rgba(255, 255, 255, 0.88);
  --inner-shadow: inset 8px 8px 16px rgba(144, 154, 177, 0.2),
    inset -8px -8px 16px rgba(255, 255, 255, 0.9);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.demo-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(17, 18, 47, 0.35);
  backdrop-filter: blur(14px);
  font-size: clamp(0.78rem, 1.9vw, 0.95rem);
  text-align: center;
}

.demo-banner a {
  font-weight: 800;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.site-header {
  position: relative;
  min-height: 760px;
  isolation: isolate;
  background:
    linear-gradient(105deg, rgba(117, 45, 255, 0.92) 0%, rgba(53, 199, 232, 0.88) 36%, rgba(255, 79, 134, 0.86) 67%, rgba(255, 145, 77, 0.95) 100%),
    #7b5cff;
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 18% -14% auto -10%;
  height: 52%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  transform: skewY(-8deg);
  transform-origin: left;
  z-index: -1;
}

.site-header::after {
  content: "";
  position: absolute;
  left: -8vw;
  right: -8vw;
  bottom: -1px;
  height: 31%;
  background: var(--surface);
  clip-path: polygon(0 60%, 100% 12%, 100% 100%, 0% 100%);
  z-index: -1;
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  color: #fff;
}

.brand,
.nav-action,
.eyebrow-pill,
.lead-form button,
.primary-button,
.modal-contact,
.price-card button,
.checkout-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.brand {
  font-size: 1.35rem;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 7px 7px 20px rgba(74, 44, 125, 0.25), -6px -6px 18px rgba(255, 255, 255, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.6rem);
  font-weight: 800;
}

.nav-links a {
  opacity: 0.93;
}

.nav-links a,
.demo-banner a,
.service-card,
.proof-card,
.capsule-card a,
.site-footer a {
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.nav-links a:hover,
.demo-banner a:hover,
.capsule-card a:hover,
.site-footer a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-action {
  min-height: 46px;
  padding: 0 1.35rem;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  box-shadow: 12px 14px 36px rgba(130, 57, 108, 0.24);
}

.hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0 9rem;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow-pill {
  min-height: 36px;
  padding: 0 1rem;
  color: #fff;
  background: rgba(17, 18, 47, 0.23);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 1.15rem 0 1.2rem;
  max-width: 760px;
  font-size: clamp(2.9rem, 6.2vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin: 0 0 2rem;
  color: rgba(17, 18, 47, 0.75);
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
  font-weight: 560;
}

.lead-form {
  display: flex;
  width: min(100%, 455px);
  min-height: 60px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(247, 251, 255, 0.9);
  box-shadow: var(--shadow-low);
}

.lead-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 1.1rem;
  color: var(--ink);
  background: transparent;
}

.lead-form input::placeholder {
  color: rgba(90, 97, 120, 0.85);
}

.lead-form button,
.checkout-card button,
.price-card button,
.primary-button,
.modal-contact {
  min-width: 128px;
  padding: 0 1.15rem;
  color: #fff;
  background: #082a4a;
  border-radius: 999px;
  box-shadow: 7px 8px 18px rgba(8, 42, 74, 0.2);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  perspective: 1000px;
}

.floating-card {
  position: absolute;
  background: rgba(248, 251, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 32px;
  box-shadow: var(--shadow-high);
  backdrop-filter: blur(18px);
}

.checkout-card {
  z-index: 2;
  top: 36px;
  left: 8%;
  width: min(360px, 78vw);
  min-height: 460px;
  padding: 2rem 1.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: floatY 7s ease-in-out infinite;
}

.card-icon {
  width: 78px;
  height: 78px;
  margin-bottom: 1.25rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, transparent 52%, var(--orange) 0),
    linear-gradient(135deg, var(--violet), var(--rose));
  box-shadow: var(--shadow-low);
}

.mini-label,
.checkout-card span,
.dash-head span,
.capsule-card span,
.proof-card span,
.price-card span,
.section-kicker {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.checkout-card strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.2rem;
}

.checkout-card button {
  width: 100%;
  margin: 1.6rem 0 1.4rem;
  border-radius: 10px;
}

.field-line {
  width: 100%;
  height: 48px;
  margin-top: 0.75rem;
  border-radius: 10px;
  background: #f6f9fd;
  box-shadow: var(--inner-shadow);
}

.field-line.short {
  width: 68%;
}

.pill-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1rem;
}

.pill-row span {
  flex: 1;
  height: 34px;
  border-radius: 999px;
  background: #f6f9fd;
  box-shadow: var(--inner-shadow);
}

.dashboard-card {
  right: -9%;
  top: 112px;
  width: 370px;
  padding: 1.6rem;
  animation: floatY 8s ease-in-out 700ms infinite reverse;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.dash-head strong {
  color: var(--green);
  font-size: 1.45rem;
}

.line-chart {
  height: 170px;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(17, 18, 47, 0.06) 1px, transparent 1px) 0 0 / 42px 100%,
    linear-gradient(180deg, rgba(17, 18, 47, 0.06) 1px, transparent 1px) 0 0 / 100% 42px,
    #fbfdff;
  box-shadow: var(--inner-shadow);
  overflow: hidden;
}

.line-chart span {
  display: block;
  width: 92%;
  height: 74%;
  margin: 34px auto 0;
  clip-path: polygon(0 84%, 18% 64%, 34% 70%, 47% 42%, 60% 55%, 76% 24%, 100% 12%, 100% 22%, 76% 34%, 60% 66%, 47% 54%, 34% 82%, 18% 76%, 0 96%);
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1rem;
}

.metrics-grid div {
  padding: 1rem;
  border-radius: 18px;
  background: #f7faff;
  box-shadow: var(--inner-shadow);
}

.metrics-grid b,
.metrics-grid small {
  display: block;
}

.metrics-grid small {
  color: var(--muted);
}

.capsule-card {
  right: 10%;
  bottom: 42px;
  width: 285px;
  padding: 1.35rem;
  animation: floatY 9s ease-in-out 1300ms infinite;
}

.capsule-card strong {
  display: block;
  margin: 0.35rem 0 1rem;
  font-size: 1.35rem;
}

.capsule-card a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 0.9rem;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  font-weight: 800;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.intro-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.section-copy h2 {
  margin: 0.55rem 0 1rem;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-copy p {
  max-width: 610px;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  min-height: 300px;
  padding: 1.45rem;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-low);
}

.service-card:hover,
.proof-card:hover {
  transform: translateY(-4px);
  box-shadow: 18px 18px 36px rgba(127, 139, 166, 0.24),
    -14px -14px 30px rgba(255, 255, 255, 0.95);
}

.soft-glyph {
  display: block;
  width: 74px;
  height: 74px;
  margin-bottom: 2.4rem;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: var(--shadow-low);
}

.soft-glyph.secondary {
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.soft-glyph.tertiary {
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.service-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.neumo-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow-high);
}

.panel-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem;
  border-radius: 24px;
}

.panel-row + .panel-row {
  margin-top: 0.8rem;
}

.panel-row:nth-child(2) {
  background: #f7faff;
  box-shadow: var(--inner-shadow);
}

.panel-row span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.panel-row strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.panel-row p {
  margin: 0;
  color: var(--muted);
}

.primary-button {
  border-radius: 14px;
}

.proof-section {
  padding-top: 3rem;
}

.proof-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.proof-card {
  min-height: 230px;
  padding: 1.35rem;
  border-radius: 28px;
  background: #f8fbff;
  box-shadow: var(--shadow-low);
}

.proof-card.wide {
  grid-column: span 2;
}

.proof-card.accent {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--rose));
}

.proof-card.dark {
  color: #fff;
  background: var(--ink);
}

.proof-card.accent span,
.proof-card.dark span {
  color: rgba(255, 255, 255, 0.78);
}

.proof-card strong {
  display: block;
  margin: 0.55rem 0;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1;
}

.proof-card p {
  margin: 0;
  color: var(--muted);
}

.proof-card.accent p,
.proof-card.dark p {
  color: rgba(255, 255, 255, 0.78);
}

.pricing-section {
  padding-top: 4rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.price-card {
  padding: 1.5rem;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-low);
}

.price-card.featured {
  color: #fff;
  background: linear-gradient(145deg, #14213d, #5d52d6 58%, #36c6e6);
  transform: translateY(-12px);
}

.price-card.featured span,
.price-card.featured p {
  color: rgba(255, 255, 255, 0.76);
}

.price-card strong {
  display: block;
  margin: 0.55rem 0;
  font-size: 2.55rem;
  line-height: 1;
}

.price-card p {
  min-height: 72px;
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.price-card button {
  width: 100%;
  border-radius: 14px;
}

.price-card.featured button {
  color: var(--ink);
  background: #fff;
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 520px;
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.2rem;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  font-weight: 800;
}

.demo-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 20;
  width: min(520px, calc(100% - 32px));
  padding: 2rem;
  color: var(--ink);
  border: 0;
  border-radius: 30px;
  background: rgba(248, 251, 255, 0.98);
  box-shadow: 0 30px 90px rgba(17, 18, 47, 0.34), var(--shadow-low);
  transform: translate(-50%, -48%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.demo-modal[hidden] {
  display: block;
  visibility: hidden;
}

body.modal-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(17, 18, 47, 0.42);
  backdrop-filter: blur(8px);
}

body.modal-open .demo-modal {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-low);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-kicker {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--violet);
  font-weight: 900;
  text-transform: uppercase;
}

.demo-modal h2 {
  margin: 0 2rem 0.75rem 0;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 0.98;
}

.demo-modal p {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.modal-contact {
  min-height: 52px;
  border-radius: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }

  50% {
    transform: translateY(-14px) rotateX(2deg);
  }
}

@media (max-width: 980px) {
  .site-header {
    min-height: auto;
  }

  .nav-shell {
    min-height: auto;
    padding: 1rem 0;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.4rem 0 0.2rem;
  }

  .hero,
  .intro-section,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.25rem;
  }

  .hero-visual {
    min-height: 520px;
  }

  .checkout-card {
    left: 0;
  }

  .dashboard-card {
    right: 0;
  }

  .service-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .proof-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .demo-banner {
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-action {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .lead-form {
    border-radius: 22px;
    flex-direction: column;
    gap: 0.55rem;
  }

  .lead-form input,
  .lead-form button {
    min-height: 48px;
  }

  .hero-visual {
    min-height: 650px;
  }

  .floating-card {
    border-radius: 26px;
  }

  .checkout-card,
  .dashboard-card,
  .capsule-card {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-bottom: 1rem;
    animation: none;
  }

  .proof-board {
    grid-template-columns: 1fr;
  }

  .proof-card.wide {
    grid-column: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
