:root {
  --bg: #f7f1ff;
  --bg-soft: #fffafe;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-dark: #171022;
  --text: #1f1633;
  --muted: #6f6489;
  --line: rgba(124, 73, 242, 0.14);
  --primary: #7c49f2;
  --primary-dark: #5520cb;
  --accent: #ff6a7a;
  --shadow: 0 24px 70px rgba(70, 28, 139, 0.18);
  --shadow-soft: 0 18px 40px rgba(70, 28, 139, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1180px, calc(100vw - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(168, 120, 255, 0.34), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(255, 128, 150, 0.16), transparent 24%),
    linear-gradient(180deg, #f4eaff 0%, #ffffff 38%, #f8f4ff 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
a.button {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(50px);
  z-index: -1;
}

.page-shell::before {
  width: 18rem;
  height: 18rem;
  top: 8rem;
  left: -4rem;
  background: rgba(135, 90, 255, 0.16);
}

.page-shell::after {
  width: 22rem;
  height: 22rem;
  bottom: 12rem;
  right: -7rem;
  background: rgba(255, 110, 140, 0.12);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-soft {
  position: relative;
}

.section-soft::before {
  content: "";
  position: absolute;
  inset: 1.4rem 1rem;
  border-radius: calc(var(--radius-xl) + 6px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(247, 241, 255, 0.56));
  border: 1px solid rgba(124, 73, 242, 0.08);
  z-index: -1;
}

.section-dark {
  color: #f8f3ff;
}

.section-dark .container {
  background:
    radial-gradient(circle at top left, rgba(190, 149, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #160f23 0%, #26133a 58%, #34155c 100%);
  border-radius: 34px;
  padding: 3.2rem;
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 1rem 0;
  transition: padding 180ms ease, background-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(247, 241, 255, 0.72);
  backdrop-filter: blur(16px);
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(124, 73, 242, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.95rem;
  box-shadow: 0 10px 24px rgba(124, 73, 242, 0.18);
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand strong {
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 0.84rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(124, 73, 242, 0.09);
  box-shadow: var(--shadow-soft);
}

.site-nav a {
  color: var(--muted);
  font-size: 0.96rem;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 16px 34px rgba(99, 46, 198, 0.28);
}

.button-secondary,
.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(124, 73, 242, 0.16);
  box-shadow: var(--shadow-soft);
}

.hero {
  padding-top: 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2.25rem;
  align-items: center;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.eyebrow-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 0 0 6px rgba(124, 73, 242, 0.08);
}

.hero-copy h1,
.section-heading h2,
.cta-panel h2 {
  margin: 0.9rem 0 0.85rem;
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  font-size: clamp(2.35rem, 4.6vw, 4.45rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-text,
.section-heading p,
.feature-card p,
.audience-card p,
.workflow-card p,
.cta-panel p,
.stat-card p,
.floating-card small {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.6rem 0 1.2rem;
}

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

.stat-card,
.feature-card,
.audience-card,
.workflow-card,
.cta-panel,
.floating-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.stat-card {
  padding: 1.35rem;
}

.stat-card-minimal {
  padding: 0.9rem 0.25rem;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  box-shadow: none;
}

.stat-card-minimal .stat-value {
  margin-bottom: 0.15rem;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.stat-card-minimal p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.stat-card-plain .stat-value {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.stat-card.accent {
  background: linear-gradient(135deg, rgba(124, 73, 242, 0.96), rgba(166, 104, 255, 0.9));
  color: #fff;
  border-color: transparent;
}

.stat-card.accent p,
.stat-card.accent .stat-label {
  color: rgba(255, 255, 255, 0.82);
}

.stat-label {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.stat-value {
  display: block;
  margin-bottom: 0.6rem;
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
}

.hero-visual {
  position: relative;
}

.device-stage {
  position: relative;
  min-height: 39rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  z-index: -1;
}

.glow-one {
  width: 19rem;
  height: 19rem;
  top: 4rem;
  right: 2rem;
  background: rgba(124, 73, 242, 0.28);
}

.glow-two {
  width: 14rem;
  height: 14rem;
  bottom: 3rem;
  left: 0;
  background: rgba(255, 106, 122, 0.18);
}

.phone-frame {
  position: relative;
  width: min(22.5rem, 88vw);
  padding: 0.8rem;
  border-radius: 2.8rem;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(233, 223, 255, 0.94)),
    #fff;
  box-shadow:
    0 38px 80px rgba(78, 37, 150, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transform: rotate(-7deg);
  transform-style: preserve-3d;
  transition: transform 240ms ease;
}

.phone-notch {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 1.45rem;
  border-radius: 0 0 1rem 1rem;
  background: rgba(23, 16, 34, 0.92);
  z-index: 2;
}

.app-shot {
  width: 100%;
  /*aspect-ratio: 1179 / 2556;*/
  object-fit: cover;
  object-position: top center;
  border-radius: 2.1rem;
  box-shadow: inset 0 0 0 1px rgba(124, 73, 242, 0.08);
}

.floating-card {
  position: absolute;
  max-width: 12.5rem;
  padding: 0.85rem 0.95rem;
}

.floating-card strong {
  display: block;
  margin: 0.25rem 0;
  font-size: 1.05rem;
}

.card-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-top {
  top: -2rem;
  left: 1rem;
}

.trust-strip {
  padding-top: 0;
}

.trust-grid {
  display: grid;
  gap: 1.2rem;
  align-items: center;
  padding: 1.8rem;
  border: 1px solid rgba(124, 73, 242, 0.1);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
}

.trust-grid p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.trust-tags span {
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: rgba(124, 73, 242, 0.08);
  color: var(--primary-dark);
  font-weight: 700;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 2.4rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

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

.feature-card,
.workflow-card,
.audience-card {
  padding: 1.6rem;
}

.feature-card h3,
.audience-card h3,
.workflow-card h3 {
  margin: 0.85rem 0 0.75rem;
  font-size: 1.45rem;
  line-height: 1.15;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 12px 28px rgba(99, 46, 198, 0.22);
  font-weight: 900;
}

.audience-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

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

.audience-card:last-child {
  grid-column: span 2;
  background:
    radial-gradient(circle at top right, rgba(255, 131, 148, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 238, 255, 0.92));
}

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

.workflow-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.workflow-card span {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.workflow-card p,
.section-dark .section-heading p,
.section-dark .section-label {
  color: rgba(255, 255, 255, 0.74);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem;
  background:
    radial-gradient(circle at top left, rgba(171, 119, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 240, 255, 0.92));
}

.cta-panel h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer {
  padding: 0 0 2.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(124, 73, 242, 0.1);
  color: var(--muted);
}

.footer-details {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
  text-align: right;
}

.footer-details p {
  margin: 0;
}

.footer-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.14rem;
  color: var(--primary-dark);
  flex: 0 0 auto;
}

.footer-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.footer-details a {
  color: var(--primary-dark);
}

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

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

@media (max-width: 1080px) {
  .hero-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .device-stage {
    min-height: 34rem;
  }

  .card-top {
    left: 1rem;
    top: 0.75rem;
  }

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

@media (max-width: 860px) {
  .phone-frame {
    transform: none !important;
  }

  .floating-card {
    display: none;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .hero-stats,
  .feature-grid,
  .audience-cards,
  .workflow-grid,
  .cta-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .cta-panel,
  .footer-inner {
    display: grid;
  }

  .footer-details {
    justify-items: start;
    text-align: left;
  }

  .hero-copy h1 {
    font-size: clamp(2.3rem, 11vw, 4rem);
  }

  .section {
    padding: 4rem 0;
  }

  .section-dark .container {
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 1.2rem, 100%);
  }

  .site-header {
    padding: 0.8rem 0;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .device-stage {
    min-height: 32rem;
  }

  .phone-frame {
    width: min(18rem, 88vw);
    transform: rotate(-4deg);
  }

  .floating-card {
    max-width: 10rem;
    padding: 0.75rem 0.8rem;
  }

  .card-top {
    top: 0.5rem;
    left: 0.35rem;
  }

  .trust-grid,
  .stat-card,
  .feature-card,
  .audience-card,
  .workflow-card,
  .cta-panel {
    border-radius: 22px;
  }

  .section-soft::before {
    inset: 0.5rem 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
