:root {
  --blue: #2f80ed;
  --blue-deep: #1d6fe0;
  --blue-soft: #eaf3ff;
  --blue-line: #d6e7ff;
  --ink: #162033;
  --muted: #667085;
  --bg: #f7f9fc;
  --white: #ffffff;
  --card: #ffffff;
  --shadow: 0 12px 40px rgba(22, 48, 90, 0.08);
  --radius: 14px;
  --font: "Manrope", system-ui, sans-serif;
  --max: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--blue-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #12284d;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: none;
}

.brand__name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #12284d;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand__name {
  color: #fff;
}

.site-footer .brand img {
  width: 34px;
  height: 34px;
  max-width: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a,
.nav-drop > button {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.nav-links a:hover,
.nav-drop > button:hover,
.nav-links a.is-active {
  color: var(--blue);
}

.nav-drop { position: relative; }

.nav-drop__menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--blue-line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.45rem;
}

.nav-drop.is-open .nav-drop__menu { display: grid; }

.nav-drop__menu a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
}

.nav-drop__menu a:hover { background: var(--blue-soft); color: var(--blue); }

.nav-ico {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0 1.05rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover { background: var(--blue-deep); }

.btn-outline {
  background: #fff;
  color: var(--blue);
  border-color: #b7d4ff;
}

.btn-outline:hover { background: var(--blue-soft); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: #d7e3f5;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--blue-line);
  background: #fff;
  cursor: pointer;
}

.hero {
  padding: 3.4rem 0 2.8rem;
  background:
    radial-gradient(720px 320px at 8% 10%, rgba(124, 92, 255, 0.12), transparent 55%),
    radial-gradient(680px 300px at 92% 20%, rgba(47, 128, 237, 0.14), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #efeaff;
  color: #6b4eff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.eyebrow svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.hero h1 {
  margin: 1rem 0 0.8rem;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #12284d;
}

.hero h1 .accent {
  color: #3b6ef5;
}

.hero p.lead {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
  font-size: 1.05rem;
}

.hero-checks {
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.hero-checks li {
  position: relative;
  padding-left: 1.55rem;
  color: #314056;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #6b4eff;
  box-shadow: inset 0 0 0 2px #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 10px 10px;
  background-repeat: no-repeat;
  background-position: center;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-visual {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(59, 110, 245, 0.18);
  box-shadow: 0 24px 60px rgba(30, 60, 120, 0.14);
  background: #fff;
  aspect-ratio: 16 / 10;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.section {
  padding: 4rem 0;
}

.section.alt { background: #fff; }

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: 0 8px 24px rgba(22, 48, 90, 0.04);
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 0.85rem;
}

.feature-card .icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  align-items: center;
}

.flow-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--blue-line);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.flow-item span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
}

.flow-arrow {
  color: var(--blue);
  font-weight: 800;
}

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

.role-card {
  background: #fff;
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
}

.role-card strong { display: block; margin-bottom: 0.35rem; }
.role-card span { color: var(--muted); font-size: 0.9rem; }

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.plan-card {
  background: #fff;
  border: 1px solid var(--blue-line);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.plan-card h3 { margin: 0 0 0.45rem; font-size: 1.35rem; }
.plan-card p { margin: 0 0 1rem; color: var(--muted); }
.plan-card ul {
  margin: 0 0 1.2rem;
  padding-left: 1.1rem;
  color: var(--ink);
}

.plan-card li { margin: 0.35rem 0; }

.site-footer {
  background: #0f1b33;
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer .brand { color: #fff; }
.site-footer h4 {
  margin: 0 0 0.8rem;
  color: #fff;
  font-size: 0.95rem;
}

.site-footer a {
  display: block;
  margin: 0.4rem 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover { color: #fff; }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.page-hero {
  padding: 2.4rem 0 1.2rem;
  background: #fff;
  border-bottom: 1px solid var(--blue-line);
}

.page-hero h1 { margin: 0 0 0.45rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.page-hero p { margin: 0; color: var(--muted); max-width: 40rem; }

.content-block {
  background: #fff;
  border: 1px solid var(--blue-line);
  border-radius: 16px;
  padding: 1.3rem;
  margin-bottom: 1rem;
}

.content-block h3 { margin: 0 0 0.5rem; color: var(--blue); }
.content-block p, .content-block li { color: var(--muted); }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 27, 51, 0.55);
}

.modal.is-open { display: flex; }

.modal__box {
  width: min(720px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.modal__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.3rem 0.9rem;
  border-bottom: 1px solid var(--blue-line);
}

.modal__head h2 { margin: 0 0 0.25rem; font-size: 1.35rem; }
.modal__head p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--blue-line);
  background: #fff;
  cursor: pointer;
  font-size: 1.3rem;
}

.form-pad { padding: 1.15rem 1.3rem 1.35rem; }

.fields { display: grid; gap: 0.85rem; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }

label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #314056;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #cfe0f7;
  background: #fbfdff;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.15);
}

textarea { min-height: 90px; resize: vertical; }

.type-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.type-pill {
  border: 1px solid #cfe0f7;
  border-radius: 12px;
  padding: 0.9rem;
  cursor: pointer;
  background: #fff;
}

.type-pill input { display: none; }

.type-pill strong { display: block; margin-bottom: 0.2rem; }
.type-pill span { color: var(--muted); font-size: 0.84rem; }

.type-pill.is-on {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.branch { display: none; }
.branch.is-on { display: grid; gap: 0.85rem; }

.alert {
  display: none;
  background: #fff1f1;
  color: #b42318;
  border: 1px solid #f5c2c0;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.alert.is-on { display: block; }

.thanks { display: none; text-align: center; padding: 1.5rem 1rem; }
.thanks.is-on { display: block; }
.form-body.is-off { display: none; }
.thanks h3 { margin: 0 0 0.6rem; }
.thanks p { color: var(--muted); }

.modal__actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}

.modal__actions .btn { flex: 1; }

.btn-block { width: 100%; }

.plans-hero {
  background:
    radial-gradient(700px 280px at 50% 0%, rgba(47, 128, 237, 0.12), transparent 60%),
    #fff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}

.plan-tier {
  background: #fff;
  border: 1px solid var(--blue-line);
  border-radius: 18px;
  padding: 1.4rem 1.3rem 1.25rem;
  box-shadow: 0 10px 28px rgba(22, 48, 90, 0.05);
  display: flex;
  flex-direction: column;
}

.plan-tier--featured {
  border-color: rgba(47, 128, 237, 0.45);
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 55%);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.plan-tier__label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.plan-tier h2 {
  margin: 0.45rem 0 0.5rem;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.plan-tier__desc {
  margin: 0 0 1rem;
  color: var(--muted);
  min-height: 2.8em;
}

.plan-tier ul {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.plan-tier li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.1rem;
  border-bottom: 1px solid #eef3fb;
  color: var(--ink);
  font-size: 0.94rem;
}

.plan-tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--blue);
}

@media (max-width: 980px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-links,
  .nav-actions { display: none; }
  .nav.is-open .nav-links,
  .nav.is-open .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .nav.is-open {
    flex-wrap: wrap;
    padding: 0.8rem 0 1rem;
  }
  .nav-drop__menu { position: static; box-shadow: none; border: 0; padding: 0; }
  .hero-grid,
  .feature-grid,
  .roles,
  .plans,
  .footer-grid,
  .fields-2,
  .type-pills,
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-visual img { height: 100%; }
  .hero-visual { aspect-ratio: 16 / 10; max-height: none; }
  .brand__name { font-size: 1.05rem; }
  .plan-tier--featured { transform: none; order: -1; }
}
