:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3ff;
  --text: #0d1526;
  --muted: #5d6a83;
  --line: #dce4f2;
  --primary: #204ecf;
  --primary-2: #193a9b;
  --accent: #0f9d7a;
  --dark: #0b1020;
  --dark-2: #121936;
  --shadow: 0 20px 45px rgba(17, 30, 68, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(244, 247, 251, 0.82);
  border-bottom: 1px solid rgba(220, 228, 242, 0.7);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}

.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font-size: 1rem; }
.brand-copy small { color: var(--muted); font-size: 0.82rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a { color: var(--muted); font-weight: 600; }
.main-nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 42px;
  height: 42px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: .25s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: .2s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 0 18px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 18px 30px rgba(32, 78, 207, 0.22);
}
.btn-secondary {
  color: var(--text);
  background: #fff;
  border-color: var(--line);
}
.btn-outline {
  border-color: var(--line);
  color: var(--text) !important;
}
.btn-full { width: 100%; }

.hero {
  padding: 72px 0 44px;
  background:
    radial-gradient(circle at top right, rgba(32, 78, 207, 0.14), transparent 32%),
    radial-gradient(circle at top left, rgba(15, 157, 122, 0.10), transparent 24%),
    var(--bg);
}
.hero-grid,
.section-grid,
.cta-grid,
.two-col {
  display: grid;
  gap: 42px;
  align-items: center;
  grid-template-columns: 1.05fr .95fr;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.hero h1 span { color: var(--primary); }
.lead {
  margin: 0 0 24px;
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 64ch;
}
.eyebrow {
  margin-bottom: 12px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--primary);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.hero-points li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.card-frame {
  padding: 14px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid rgba(220, 228, 242, 0.9);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
}
.card-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero-visual { min-height: 460px; }
.tall-visual { min-height: 560px; }

.trust-band {
  padding: 0 0 14px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.trust-grid > div {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(220, 228, 242, 0.9);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.trust-grid strong { display: block; margin-bottom: 6px; }
.trust-grid span { color: var(--muted); }

.section { padding: 88px 0; }
.section-dark {
  background: linear-gradient(180deg, var(--dark), var(--dark-2));
  color: #fff;
}
.section-dark .eyebrow { color: #8fb1ff; }
.section-dark p,
.section-dark .section-head p,
.section-dark .feature-card p,
.section-dark .use-grid p { color: rgba(255,255,255,.78); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head.centered { text-align: center; margin-inline: auto; }
.section-head.narrow { max-width: 720px; }
.section h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.section p { color: var(--muted); }

.side-panel { display: grid; gap: 18px; }
.compare-card,
.feature-card,
.product-card,
.contact-card,
.use-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.compare-card { padding: 26px; }
.compare-card.accent {
  background: linear-gradient(180deg, #f4fbf8, #ffffff);
  border-color: rgba(15, 157, 122, 0.26);
}
.compare-card h3 { margin: 0 0 12px; }
.compare-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.compare-card li + li { margin-top: 10px; }

.feature-grid.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  padding: 28px;
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}
.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(143, 177, 255, 0.18);
  margin-bottom: 18px;
  font-weight: 800;
  color: #c4d4ff;
}
.feature-card h3 { margin: 0 0 10px; }

.cards-grid.five-col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.product-card {
  padding: 22px;
  position: relative;
}
.product-card h3 { margin: 8px 0 10px; }
.product-card p { margin: 0; color: var(--muted); }
.product-card .tag { font-weight: 700; color: var(--text); margin-bottom: 8px; }
.product-card .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}
.product-card.featured {
  border-color: rgba(32, 78, 207, 0.26);
  box-shadow: 0 22px 40px rgba(32, 78, 207, 0.12);
}
.product-card.featured .badge {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.product-card.premium {
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}
.product-card.premium .badge {
  color: #0c2c74;
  background: #e5edff;
}
.product-card.enterprise .badge {
  color: #0d5a49;
  background: #def7ee;
}
.product-card.muted { opacity: 0.92; }

.timeline { display: grid; gap: 18px; }
.timeline-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
}
.timeline-item span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.timeline-item h3 { margin: 0 0 6px; }
.timeline-item p { margin: 0; }

.use-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.use-grid article {
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.use-grid h3 { margin: 0 0 8px; }

.faq-list { display: grid; gap: 14px; }
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding-right: 28px;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--primary);
  font-size: 1.2rem;
}
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; }

.cta-section {
  background: linear-gradient(180deg, #edf3ff, #f7faff);
}
.contact-card {
  padding: 24px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.contact-card label { display: block; margin-bottom: 14px; }
.contact-card span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.contact-card input,
.contact-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
}
.contact-card input:focus,
.contact-card textarea:focus {
  outline: 2px solid rgba(32,78,207,0.16);
  border-color: rgba(32, 78, 207, 0.42);
}
.form-note {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  padding: 28px 0 40px;
  background: var(--dark);
  color: rgba(255,255,255,0.72);
}
.footer-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: center;
}
.footer-grid strong,
.footer-grid a { color: #fff; }

@media (max-width: 1120px) {
  .cards-grid.five-col { grid-template-columns: repeat(2, 1fr); }
  .feature-grid.three,
  .use-grid,
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.is-open { display: flex; }
  .hero-grid,
  .section-grid,
  .cta-grid,
  .two-col,
  .footer-grid,
  .field-grid,
  .trust-grid,
  .feature-grid.three,
  .use-grid,
  .cards-grid.five-col {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 44px; }
  .hero-visual, .tall-visual { min-height: 340px; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 68px 0; }
  .hero h1 { font-size: 2.3rem; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
}
