:root {
  color-scheme: light;
  --bg: #f9fafb;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --accent-start: #a020f0;
  --accent-end: #007aff;
  --accent-soft: rgba(160, 32, 240, 0.08);
  --accent-soft-alt: rgba(0, 122, 255, 0.08);
  --shadow-soft: 0 28px 60px -35px rgba(15, 23, 42, 0.4);
  --shadow-card: 0 18px 44px -30px rgba(15, 23, 42, 0.45);
  --radius-large: 32px;
  --radius-medium: 24px;
  --radius-small: 16px;
  font-size: 16px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 90% 0%, rgba(0, 122, 255, 0.08), transparent 45%),
    radial-gradient(circle at 0% 10%, rgba(160, 32, 240, 0.08), transparent 50%), var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 6rem;
  display: grid;
  gap: 5rem;
}

.section {
  display: grid;
  gap: 2.8rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  padding: clamp(1.75rem, 4vw, 2.4rem);
}

.button {
  appearance: none;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 2.4rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button--gradient {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #ffffff;
  box-shadow: 0 15px 30px rgba(160, 32, 240, 0.35);
}

.button--gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(0, 122, 255, 0.35);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(17, 24, 39, 0.6);
  margin-bottom: 0.8rem;
}

.hero {
  background: var(--surface);
  border-radius: var(--radius-large);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  gap: clamp(2.4rem, 5vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.hero__text {
  display: grid;
  gap: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 3.6rem);
  line-height: 1.1;
  font-weight: 700;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero__note {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hero__panel {
  display: grid;
  gap: 1.4rem;
  border-radius: var(--radius-medium);
  padding: 2.2rem;
}

.hero__panel-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(17, 24, 39, 0.55);
}

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

.hero__logo {
  min-height: 110px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px -30px rgba(15, 23, 42, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  animation: heroLogoFloat var(--float-duration, 4.5s) ease-in-out infinite alternate;
  animation-delay: var(--float-delay, 0s);
  transform: translateY(0) rotate(var(--float-rotation, 0deg));
}

.hero__logo img,
.hero__logo svg {
  width: 34px;
  height: 34px;
  pointer-events: none;
  object-fit: contain;
}

@keyframes heroLogoFloat {
  from {
    transform: translateY(-3px) rotate(calc(var(--float-rotation, 0deg) * -1));
  }
  to {
    transform: translateY(6px) rotate(var(--float-rotation, 0deg));
  }
}

.hero__logo:nth-child(1) {
  --float-duration: 4s;
  --float-delay: 0s;
  --float-rotation: 1deg;
}

.hero__logo:nth-child(2) {
  --float-duration: 5.2s;
  --float-delay: 0.4s;
  --float-rotation: -1.5deg;
}

.hero__logo:nth-child(3) {
  --float-duration: 3.6s;
  --float-delay: 0.9s;
  --float-rotation: 1.8deg;
}

.hero__logo:nth-child(4) {
  --float-duration: 4.8s;
  --float-delay: 0.2s;
  --float-rotation: -2deg;
}

.hero__logo:nth-child(5) {
  --float-duration: 5.5s;
  --float-delay: 0.6s;
  --float-rotation: 1.2deg;
}

.hero__logo:nth-child(6) {
  --float-duration: 4.3s;
  --float-delay: 1s;
  --float-rotation: -1deg;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-small);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
}

.icon svg {
  display: block;
}

.icon--accent {
  background: linear-gradient(135deg, rgba(160, 32, 240, 0.12), rgba(0, 122, 255, 0.12));
}

.icon--neutral {
  background: rgba(79, 70, 229, 0.08);
}

.section__header {
  max-width: 620px;
  display: grid;
  gap: 0.75rem;
}

.section__header h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.section__eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(17, 24, 39, 0.55);
  margin-bottom: 0.6rem;
}

.section__header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.how__steps,
.features__grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

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

.step {
  display: grid;
  gap: 1.1rem;
  padding: 2rem;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.feature {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  height: 100%;
}

.feature p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.persona__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.tag {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(160, 32, 240, 0.06), rgba(0, 122, 255, 0.06));
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.section--cta .section__content {
  display: grid;
  gap: 1.2rem;
  text-align: center;
  align-items: center;
  justify-items: center;
  padding: clamp(2.4rem, 6vw, 3rem);
  border-radius: var(--radius-medium);
}

.section--cta p {
  color: var(--text-secondary);
  max-width: 520px;
}

.section__tagline {
  margin-top: -1rem;
  font-size: 1rem;
  color: rgba(17, 24, 39, 0.7);
}

.section--demo .demo__media {
  padding: 0;
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
}

.demo__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-medium);
}

.demo__video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-medium);
  object-fit: contain;
  background: #000;
}

.footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-bottom: 3rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.2s ease;
  z-index: 100;
}

.modal.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.35);
}

.modal__content {
  position: relative;
  width: min(460px, 100%);
  border-radius: var(--radius-medium);
  padding: clamp(2rem, 5vw, 2.6rem);
  display: grid;
  gap: 1.6rem;
}

.modal__subtitle {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.modal__feedback {
  font-size: 0.95rem;
  color: var(--text-secondary);
  min-height: 1.2rem;
}

.modal__feedback.is-success {
  color: #047857;
}

.modal__feedback.is-error {
  color: #b91c1c;
}

.modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(249, 250, 251, 0.75);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__form {
  display: grid;
  gap: 1.2rem;
}

.modal__form label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.modal__form input[type='text'],
.modal__form input[type='email'] {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--text-primary);
  background: #fdfdfd;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.modal__form input[type='text']:focus,
.modal__form input[type='email']:focus {
  border-color: rgba(160, 32, 240, 0.6);
  box-shadow: 0 0 0 4px rgba(160, 32, 240, 0.12);
  outline: none;
}

.modal__form fieldset {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  display: grid;
  gap: 1rem;
}

.modal__form legend {
  padding: 0 0.4rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.radio-group {
  display: grid;
  gap: 0.75rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
}

.radio-group input[type='radio'] {
  accent-color: var(--accent-end);
  width: 1.1rem;
  height: 1.1rem;
}

.modal__form button[type='submit'] {
  margin-top: 0.5rem;
  justify-self: start;
}

@media (max-width: 720px) {
  .hero {
    padding: 2.5rem;
  }

  .hero__actions {
    justify-content: flex-start;
  }

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

@media (max-width: 560px) {
  .features__grid {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 3rem 1.25rem 4rem;
  }

  .hero {
    padding: 2rem;
  }

  .card {
    padding: 1.6rem;
  }

  .section--cta .section__content {
    padding: 2rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__note {
    text-align: center;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .modal__content {
    padding: 2rem;
  }
}
