:root {
  --purple: #350047;
  --purple-2: #4b0064;
  --purple-3: #6d2381;
  --text: #1f1d2b;
  --muted: #6b6680;
  --soft: #f6f1f8;
  --line: #e7e1ec;
  --white: #fff;
  --shadow: 0 22px 60px rgba(53, 0, 71, 0.14);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.45;
}

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

.container {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  padding: 42px 0 28px;
  position: relative;
  z-index: 2;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand img {
  width: 205px;
  display: block;
}

.menu {
  display: flex;
  gap: 44px;
  font-size: 14px;
  color: #20142d;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  padding: 17px 26px;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 12px 25px rgba(53, 0, 71, 0.18);
}

.btn-light {
  background: white;
  color: var(--purple);
  box-shadow: none;
  border: 1px solid rgba(53, 0, 71, 0.12);
}

.btn-text {
  background: transparent;
  color: var(--purple);
  box-shadow: none;
  padding-left: 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 68px;
}

.hero::before {
  content: '';
  position: absolute;
  right: -150px;
  top: 18px;
  width: 690px;
  height: 690px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(53, 0, 71, 0.06), rgba(109, 35, 129, 0.18));
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 430px 1fr;
  align-items: center;
  gap: 48px;
}

.hero-copy h1 {
  font-size: 64px;
  line-height: 1.05;
  margin: 0 0 26px;
  color: var(--purple);
  letter-spacing: -2px;
  font-weight: 900;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7eff9, #eee3f3);
  color: var(--purple);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.lead {
  font-size: 25px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 44px;
}

.mini-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 0 0 52px;
}

.mini-card {
  text-align: center;
  color: var(--purple);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.mini-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border-radius: 13px;
  background: linear-gradient(135deg, #f7eff9, #eee3f3);
  display: grid;
  place-items: center;
}

.mini-icon svg,
.big-icon svg {
  width: 34px;
  height: 34px;
  stroke: var(--purple);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-card p {
  margin: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.hero-visual {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  inset: -10px -80px auto auto;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 35, 129, 0.12), transparent 58%);
}

.screen {
  position: relative;
  width: 790px;
  height: 520px;
  background: white;
  border: 18px solid #111;
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topbar {
  height: 48px;
  background: var(--purple);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-size: 12px;
}

.topbar-brand {
  font-family: Comfortaa, Inter, sans-serif;
  font-weight: 700;
  font-size: 17px;
}

.dashboard {
  display: grid;
  grid-template-columns: 150px 1fr;
  height: calc(100% - 48px);
}

.sidebar {
  border-right: 1px solid var(--line);
  padding: 16px 0;
  font-size: 12px;
  color: #3b3340;
}

.side-item {
  padding: 12px 24px;
}

.side-item.active {
  background: #f0f2f2;
}

.dash-main {
  padding: 22px 22px 16px;
  overflow: hidden;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 14px;
  min-height: 92px;
}

.card strong {
  display: block;
  font-size: 34px;
}

.card b {
  font-size: 13px;
}

.card p {
  font-size: 10px;
  color: #777;
  margin: 4px 0 0;
}

.section-title {
  text-align: center;
  color: var(--purple);
  font-weight: 900;
  font-size: 15px;
  margin: 24px 0 12px;
}

.table {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  font-size: 10px;
}

.row {
  display: grid;
  grid-template-columns: 120px 120px 1fr 78px 72px;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.row.head {
  background: #f5f6f9;
  color: var(--purple);
  font-weight: 900;
}

.row:last-child {
  border-bottom: 0;
}

.link {
  color: #0071c8;
  font-weight: 700;
}

.base {
  height: 28px;
  width: 880px;
  background: linear-gradient(#333, #080808);
  border-radius: 0 0 50px 50px;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.25);
}

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 32px 32px 0 0;
  padding: 42px 0 0;
  margin-top: 0;
  box-shadow: 0 -8px 36px rgba(53, 0, 71, 0.05);
}

.section-heading {
  text-align: center;
  color: var(--purple);
  font-size: 35px;
  line-height: 1.12;
  margin: 0 auto 12px;
  font-weight: 900;
}

.underline {
  width: 64px;
  height: 4px;
  background: var(--purple);
  border-radius: 99px;
  margin: 0 auto 54px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
  margin-bottom: 56px;
}

.feature h3 {
  color: var(--purple);
  font-size: 18px;
  margin: 14px 0 14px;
}

.feature p {
  color: #4f4860;
  font-size: 15px;
  margin: 0;
}

.big-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  color: var(--purple);
  background: linear-gradient(135deg, #f7eff9, #eee3f3);
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  background: linear-gradient(135deg, var(--purple), #24002f);
  color: white;
  border-radius: 16px;
  padding: 34px 28px;
  margin: 0 0 72px;
}

.stat {
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.45);
  min-height: 110px;
  display: grid;
  place-items: center;
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  font-size: 36px;
}

.stat span {
  font-size: 18px;
  display: block;
  margin-top: 8px;
}

.testimonials {
  padding-bottom: 84px;
}

.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.quote {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(53, 0, 71, 0.05);
  padding: 32px;
}

.quote-mark {
  font-size: 34px;
  color: var(--purple);
  font-weight: 900;
}

.quote p {
  font-size: 15px;
  color: #3d3548;
}

.stars {
  color: #ffcf32;
  letter-spacing: 3px;
  margin: 18px 0;
}

.quote b {
  color: var(--purple);
}

.quote small {
  display: block;
  color: #3d3548;
}

.cta-footer {
  background: radial-gradient(circle at left 40%, rgba(255, 255, 255, 0.13), transparent 16%),
    linear-gradient(135deg, var(--purple), #21002b);
  color: white;
  padding: 72px 0 40px;
}

.cta {
  text-align: center;
  margin-bottom: 72px;
}

.cta h2 {
  font-size: 38px;
  margin: 0 0 12px;
}

.cta p {
  font-size: 17px;
  margin: 0 0 30px;
}

.footer-grid {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 34px;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 34px;
}

.footer-logo img {
  width: 170px;
  filter: brightness(0) invert(1);
}

.footer-grid h4 {
  margin: 0 0 16px;
}

.footer-grid p,
.footer-grid a {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  margin: 0 0 10px;
  font-size: 14px;
}

.copy {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 32px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 8, 26, 0.58);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(100%, 460px);
  padding: 30px 28px 26px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(53, 0, 71, 0.24);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f3edf7;
  color: var(--purple);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-kicker {
  margin: 0 0 8px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-card h3 {
  margin: 0;
  color: var(--purple);
  font-size: 32px;
  line-height: 1.08;
}

.modal-copy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.demo-form {
  margin-top: 22px;
}

.field-label {
  display: block;
  margin: 14px 0 8px;
  color: #352f45;
  font-size: 14px;
  font-weight: 700;
}

.demo-form .field-label:first-child {
  margin-top: 0;
}

.field-input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #d8d1df;
  border-radius: 12px;
  font: inherit;
  color: var(--text);
}

.field-input:focus {
  outline: 2px solid rgba(53, 0, 71, 0.18);
  border-color: var(--purple);
}

.modal-submit {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}

.form-status {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.form-status.success {
  color: #0f7a3c;
}

.form-status.error {
  color: #b42318;
}

.hidden-honey {
  display: none;
}

@media (max-width: 980px) {
  .container {
    width: min(100% - 36px, 720px);
  }

  .menu {
    display: none;
  }

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

  .hero-copy h1 {
    font-size: 48px;
  }

  .lead {
    font-size: 20px;
  }

  .hero-visual {
    min-height: auto;
    overflow: hidden;
  }

  .screen {
    width: 760px;
    max-width: 100%;
    height: 440px;
  }

  .base {
    width: 100%;
  }

  .feature-grid,
  .stats,
  .cards3 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mini-features {
    gap: 12px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .hero-copy h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 18px;
  }

  .mini-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid,
  .stats,
  .cards3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .screen {
    height: 360px;
  }

  .dashboard {
    grid-template-columns: 110px 1fr;
  }

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

  .row {
    grid-template-columns: 90px 1fr 1fr;
  }

  .row span:nth-child(n + 4) {
    display: none;
  }

  .section-heading {
    font-size: 28px;
  }

  .cta h2 {
    font-size: 30px;
  }

  .modal-card {
    padding: 26px 20px 22px;
  }

  .modal-card h3 {
    font-size: 28px;
  }
}
