:root {
  --bg: #f4f6f9;
  --white: #ffffff;
  --ink: #0a0a0a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --sky: #5bc8f5;
  --violet: #8b5cf6;
  --gradient: linear-gradient(135deg, var(--sky) 0%, var(--primary) 50%, var(--violet) 100%);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; height: auto; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.ms {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  white-space: nowrap;
  direction: ltr;
  display: inline-block;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 12px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--sm { padding: 10px 20px; border-radius: 10px; }
.btn--primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2); }
.btn--primary:hover { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35); }
.btn--ghost { background: var(--white); border-color: var(--line); }
.btn--ghost:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn--white { background: var(--white); color: var(--ink); border-radius: 999px; padding: 12px 28px; }
.btn--white:hover { box-shadow: 0 8px 24px rgba(10, 10, 10, 0.15); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #262626; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 249, 255, 0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(199, 196, 215, 0.3);
}
.nav__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__logo img { height: 28px; width: auto; }
.nav__links { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
.nav__links a { color: #464554; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--primary); font-weight: 600; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 112px 0 128px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  background-image:
    linear-gradient(to right, rgba(100, 116, 139, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(100, 116, 139, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero__glow {
  position: absolute; inset: auto 0 0 0; height: 480px; pointer-events: none;
  background: radial-gradient(circle 540px at 50% 100%, rgba(99, 102, 241, 0.16), rgba(91, 200, 245, 0.08), transparent 70%);
}
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin-bottom: 32px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.05);
  isolation: isolate;
}
.pill::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--gradient); opacity: 0.55;
}
.pill::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(255, 255, 255, 0.92); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gradient); }
.hero__title {
  max-width: 900px; margin-bottom: 24px;
  font-size: 64px; line-height: 72px; font-weight: 700; letter-spacing: -0.03em;
}
.hero__title span { display: block; margin-top: 4px; color: var(--muted); font-weight: 600; }
.hero__sub { max-width: 640px; margin-bottom: 40px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero__actions { display: flex; gap: 16px; }

/* Sections */
.section { padding: 112px 24px; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-left: 0; padding-right: 0; }
.section__title { margin-bottom: 48px; font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; }
.section__title--center { text-align: center; }

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

.card, .tool {
  border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.card { background: var(--white); }
.card:hover, .tool:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 20px; border-radius: 12px;
  background: rgba(99, 102, 241, 0.08); color: var(--primary);
}
.card h3, .tool h3 { font-size: 20px; line-height: 28px; letter-spacing: -0.01em; }
.card h3 { margin-bottom: 6px; font-weight: 700; }
.card p, .tool p { color: var(--muted); font-size: 14px; line-height: 20px; }
.card--why { padding: 32px; }

.tool { display: flex; flex-direction: column; background: #f8fafc; min-height: 184px; }
.tool:hover { background: var(--white); }
.tool__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tag {
  padding: 4px 10px; border-radius: 999px; background: rgba(226, 232, 240, 0.7);
  color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.tool__arrow { color: #94a3b8; transition: transform .2s var(--ease), color .2s; }
.tool:hover .tool__arrow { color: var(--primary); transform: translateX(4px); }
.tool h3 { margin-bottom: 8px; font-weight: 600; transition: color .2s; }
.tool:hover h3 { color: var(--primary); }
.tool p { line-height: 1.6; }

/* CTA */
.cta-wrap { padding-bottom: 96px; }
.cta {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 72px 24px; border-radius: 24px; color: var(--white);
  background: var(--gradient);
  box-shadow: 0 20px 40px -8px rgba(99, 102, 241, 0.3);
}
.cta h2 { margin-bottom: 28px; font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; }
.cta hr { width: 100%; max-width: 480px; margin: 40px 0 28px; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.cta__news { margin-bottom: 16px; font-size: 14px; font-weight: 500; opacity: 0.9; }

/* Footer */
.footer { background: var(--white); border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; color: var(--muted); font-size: 14px; }
.footer__inner img { height: 20px; width: auto; }
.footer nav { display: flex; gap: 24px; color: var(--ink); }
.footer nav a:hover { color: var(--primary); }

/* Tablet */
@media (max-width: 1023px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* Phone */
@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .nav__links { display: none; }
  .nav__logo img { height: 24px; }
  .hero { padding: 72px 0 88px; }
  .hero__title { font-size: 40px; line-height: 48px; letter-spacing: -0.025em; }
  .hero__sub { font-size: 16px; margin-bottom: 32px; }
  .hero__actions { flex-direction: column; width: 100%; gap: 12px; }
  .hero__actions .btn { width: 100%; }
  .section { padding: 64px 16px; }
  .section--white { padding-left: 0; padding-right: 0; }
  .section__title { margin-bottom: 32px; font-size: 28px; line-height: 36px; }
  .grid { gap: 16px; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid--4 .card { padding: 16px; }
  .grid--4 .card__icon { margin-bottom: 12px; }
  .grid--4 .card h3 { font-size: 17px; line-height: 24px; }
  .tool { min-height: 0; }
  .cta-wrap { padding-bottom: 64px; }
  .cta { padding: 48px 20px; }
  .cta h2 { font-size: 28px; line-height: 36px; }
  .footer__inner { flex-direction: column; text-align: center; padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
