:root {
  --bg: #f3f6fd;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --text: #1f3552;
  --muted: #58708d;
  --line: #d7e2f2;
  --primary: #2257f4;
  --primary-dark: #1742c6;
  --accent: #f4b51b;
  --radius: 28px;
  --shadow: 0 20px 60px rgba(34, 87, 244, 0.08);
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}
.narrow-container { width: min(calc(100% - 48px), 860px); }
.site-main { overflow: clip; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215, 226, 242, 0.8);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
}
.brand-ring {
  width: 22px;
  height: 22px;
  border: 5px solid var(--accent);
  border-left-color: transparent;
  border-radius: 999px;
  transform: translateY(-3px);
}
.main-navigation ul,
.menu-fallback,
.footer-menu-fallback {
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-navigation ul,
.menu-fallback {
  display: flex;
  align-items: center;
  gap: 36px;
  color: var(--text);
  font-weight: 500;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: .25s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 30px rgba(34, 87, 244, 0.18);
}
.button-primary:hover { background: var(--primary-dark); }
.button-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}
.button-ghost {
  background: rgba(34, 87, 244, 0.06);
  color: var(--primary);
}
.menu-toggle,
.mobile-menu { display: none; }

.hero-section {
  background: var(--bg);
  padding: 48px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 48px;
  min-height: 660px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: .02em;
}
.hero-copy h1,
.section-heading h2,
.section-heading-split h2,
.cta-box h2,
.entry-title {
  margin: 0;
  font-weight: 800;
  line-height: 1.03;
}
.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  max-width: 11ch;
}
.hero-copy h1 .accent,
.hero-copy strong,
.section-heading h2 strong { color: var(--primary); }
.hero-copy h1::first-line { color: var(--text); }
.hero-description {
  margin: 22px 0 0;
  max-width: 920px;
  font-size: 1.15rem;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-visual { position: relative; min-height: 460px; }
.orbit-scene {
  position: relative;
  width: min(100%, 540px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.avatar {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
  background: linear-gradient(140deg, #8bb6ff, #2257f4);
  border: 8px solid rgba(255,255,255,.9);
}
.avatar-lg { width: 118px; height: 118px; font-size: 2rem; }
.avatar-md { width: 90px; height: 90px; font-size: 1.25rem; }
.avatar-sm { width: 66px; height: 66px; font-size: 1rem; }
.avatar-1 { top: 80px; left: 120px; }
.avatar-2 { top: 20px; right: 110px; background: linear-gradient(140deg, #ffd17a, #f4b51b); }
.avatar-3 { top: 120px; right: 10px; background: linear-gradient(140deg, #ffb3be, #ff7a8c); }
.avatar-4 { top: 205px; right: 180px; background: linear-gradient(140deg, #ffd17a, #f49f1b); }
.avatar-5 { bottom: 88px; left: 230px; background: linear-gradient(140deg, #ffafef, #7f61ff); }
.avatar-6 { bottom: 110px; left: 100px; background: linear-gradient(140deg, #ffe79c, #ffb000); }
.avatar-7 { bottom: 124px; right: 8px; background: linear-gradient(140deg, #8de0d0, #29b39b); }
.accent {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
}
.accent-yellow { background: #f4b51b; top: 218px; left: 215px; }
.accent-blue { background: #2f61ff; top: 150px; right: 255px; width: 10px; height: 10px; }
.accent-green { background: #29b35f; top: 40px; right: 88px; width: 12px; height: 12px; }
.accent-purple { background: #7d3cff; bottom: 145px; right: 125px; width: 16px; height: 16px; clip-path: polygon(50% 0%, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0% 50%, 39% 36%); }
.scribble {
  position: absolute;
  left: 54px;
  top: 220px;
  font-size: 82px;
  color: var(--accent);
  transform: rotate(35deg);
}

.features-section,
.pricing-section,
.generic-page-section { padding: 84px 0; }
.section-heading,
.section-heading-split { margin-bottom: 42px; }
.section-heading h2,
.section-heading-split h2,
.cta-box h2,
.entry-title { font-size: clamp(2.3rem, 4vw, 3.6rem); }
.section-heading p,
.section-heading-split p,
.cta-box p,
.content-entry { color: var(--muted); }
.section-heading-split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.section-heading-split > div { max-width: 760px; }
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  margin-top: 18px;
}
.feature-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface-soft);
  border: 1px solid #eef2f8;
  min-height: 276px;
  padding: 34px 28px;
  border-radius: 24px;
}
.feature-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 1.35rem;
  box-shadow: 0 10px 24px rgba(20, 61, 177, 0.08);
  margin-bottom: 22px;
}
.feature-card h3 {
  margin: 0 0 14px;
  font-size: 1.85rem;
  line-height: 1.18;
}
.feature-card p { margin: 0; color: var(--muted); }

.pricing-section { background: linear-gradient(180deg, #fff 0%, #f8fbff 100%); }
.pricing-stack {
  display: grid;
  gap: 22px;
}
.pricing-card {
  background: #fff;
  border: 2px solid #caddff;
  border-radius: 28px;
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 30px 32px;
  box-shadow: 0 10px 30px rgba(34, 87, 244, 0.05);
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 24px 50px rgba(34, 87, 244, 0.12);
}
.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 2px solid var(--primary);
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
}
.plan-price {
  margin-top: 28px;
  font-size: 3.2rem;
  line-height: 1;
  font-weight: 800;
}
.plan-period {
  margin-top: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--muted);
}
.plan-description {
  margin: 26px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.pricing-details h3 {
  margin: 0 0 20px;
  font-size: 1.6rem;
}
.pricing-details ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.pricing-details li {
  position: relative;
  padding-left: 36px;
  font-size: 1.2rem;
}
.pricing-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: -1px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #9db7ff;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: .95rem;
  line-height: 1;
}
.pricing-action { justify-self: end; }
.pricing-action .button { min-width: 240px; }

.cta-section { padding: 0 0 88px; }
.cta-box {
  background: linear-gradient(135deg, #1f48dd, #2a6cff);
  border-radius: 32px;
  padding: 42px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-box .eyebrow,
.cta-box p { color: rgba(255,255,255,0.84); }
.cta-box .button-primary { background: #fff; color: var(--primary); box-shadow: none; }

.site-footer {
  background: #f7f7f7;
  padding-top: 76px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand-mark { margin-bottom: 32px; }
.footer-follow {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 600;
}
.social-list {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.social-list a {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--line);
}
.language-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 14px;
  background: #fff;
}
.flag-it {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(90deg, #2fa64a 0 33%, #fff 33% 66%, #e73939 66% 100%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.04) inset;
}
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.footer-links-grid h3 {
  color: var(--primary);
  margin: 0 0 16px;
}
.footer-links-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-links-grid li + li { margin-top: 14px; }
.footer-links-grid a { color: var(--text); }
.footer-bottom {
  border-top: 1px solid #dfdfdf;
  margin-top: 54px;
  padding: 22px 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #6b7280;
}
.legal-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.content-entry { color: var(--text); }
.entry-content { font-size: 1.1rem; }

@media (max-width: 1100px) {
  .hero-grid,
  .pricing-card,
  .footer-top,
  .section-heading-split,
  .cta-box { grid-template-columns: 1fr; display: grid; }
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
  .pricing-action { justify-self: start; }
  .hero-copy h1 { max-width: 12ch; }
}

@media (max-width: 860px) {
  .main-navigation, .header-link, .header-actions .button-outline { display: none; }
  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 1.1rem;
  }
  .mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    padding: 16px 24px 24px;
    background: #fff;
  }
  .mobile-menu.is-open { display: block; }
  .mobile-menu ul,
  .mobile-menu .menu-fallback {
    display: grid;
    gap: 14px;
  }
  .hero-section { padding-top: 24px; }
  .hero-grid { min-height: auto; }
  .hero-copy h1 { font-size: clamp(2.8rem, 12vw, 4.4rem); }
  .feature-cards,
  .footer-links-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 24px; gap: 24px; }
  .pricing-action .button { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .button { width: 100%; }
  .hero-actions { flex-direction: column; }
  .avatar-1 { top: 50px; left: 30px; }
  .avatar-2 { right: 60px; }
  .avatar-3 { right: 0; }
  .avatar-4 { right: 120px; }
  .avatar-5 { left: 120px; }
  .avatar-6 { left: 20px; }
  .accent-blue { right: 180px; }
}
