:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f3f4ff;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #dce3ef;
  --accent: #aaabf6;
  --accent-strong: #4a458e;
  --accent-soft: #ececff;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-md: 0 16px 38px rgba(15, 23, 42, 0.09);
  --shadow-sm: 0 6px 20px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 78% -10%, #ececff 0%, #f8fafc 36%), var(--bg);
  color: var(--ink-soft);
  font-family: "Avenir Next", "Segoe UI", Tahoma, Arial, sans-serif;
}

a { color: inherit; }

:where(
  .nav-link,
  .button,
  .button-ghost,
  .screen-tab,
  .post-card,
  .card,
  .feature-dark-card,
  .faq details
) {
  transition:
    transform 180ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    filter 220ms ease;
}

.wrap { width: min(1280px, 93vw); margin: 0 auto; }
.site { min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.84);
  border-bottom: 1px solid rgba(220, 227, 239, 0.85);
  backdrop-filter: blur(10px);
}

.topbar .wrap {
  width: min(1380px, 95vw);
}

.topbar-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand { text-decoration: none; }

.textLogo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Segoe UI", "Avenir Next", Tahoma, Arial, sans-serif;
  font-size: 40px;
  line-height: 40px;
  font-weight: 900;
  letter-spacing: -1.7px;
  color: #111418;
}

.textLogo > span { line-height: 40px; }

.textLogoAccent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #4a458e;
  color: #ffffff;
  text-align: center;
}

.nav { display: inline-flex; align-items: center; gap: 22px; }
.nav-link { text-decoration: none; font-size: 0.98rem; color: var(--ink-soft); }
.nav-link:hover {
  color: #222961;
  transform: translateY(-1px);
}

.button, .button-ghost {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.button {
  background: var(--accent);
  border-color: #9496ef;
  color: #1d1d4f;
}

.button:hover {
  background: #9496ef;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(74, 69, 142, 0.28);
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.button-ghost:hover {
  background: #ffffff;
  border-color: #c5cde0;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.hero { padding: 92px 0 58px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1.05fr) minmax(620px, 1fr);
  gap: 54px;
  align-items: center;
}

.kicker {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #4b4ba3;
  background: var(--accent-soft);
  border: 1px solid #d5d6ff;
  padding: 7px 12px;
  border-radius: 999px;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.35rem, 4.9vw, 5rem);
  max-width: 15ch;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 18px 0 0;
  max-width: 54ch;
  font-size: 1.06rem;
  line-height: 1.68;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note { margin-top: 12px; font-size: 0.88rem; color: var(--muted); }

.visual {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #ffffff 0%, #f5f7ff 60%, #ebeefe 100%);
  box-shadow: var(--shadow-md);
  padding: 16px;
}

.visual-title { margin: 0 0 8px; color: var(--ink); font-size: 1.15rem; }
.visual ul { margin: 0; padding-left: 18px; line-height: 1.6; }
.hero-side-image {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  justify-self: center;
  margin-right: 0;
}

.hero-side-image img {
  width: min(860px, 60vw);
  max-width: none;
  height: auto;
  display: block;
}

.section { padding: 48px 0; }
.section h2,
.page-title { margin: 0; color: var(--ink); font-size: clamp(1.56rem, 2.2vw, 2.2rem); }
.section-lead { margin: 12px 0 0; color: var(--muted); max-width: 74ch; line-height: 1.65; }

.cards3 {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  border-color: #c7d2e6;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}

.card h3 { margin: 0 0 8px; color: var(--ink); font-size: 1rem; }
.card p { margin: 0; line-height: 1.56; }

.features-dark {
  background: radial-gradient(circle at 10% 20%, #102262 0%, #08164a 45%, #050d32 100%);
  color: #d8e2ff;
  border-top: 1px solid #243980;
  border-bottom: 1px solid #243980;
}

.features-dark .section-lead {
  color: #aebfe8;
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}

.features-dark-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 24px;
}

.features-dark-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.8rem;
  color: #95a7df;
}

.features-dark h2 {
  color: #f6f8ff;
  margin-bottom: 10px;
}

.features-dark-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-dark-card {
  border: 1px solid #2a3e83;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0.01) 100%),
    #101f5a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 32px rgba(2, 8, 30, 0.28);
  padding: 18px;
}

.feature-dark-card:hover {
  transform: translateY(-4px);
  border-color: #8f83ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 34px rgba(2, 8, 30, 0.35),
    0 0 0 1px rgba(154, 140, 255, 0.22);
  filter: brightness(1.05);
}

.feature-dark-card:hover .feature-dark-icon {
  color: #a494ff;
}

.feature-dark-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  display: inline-block;
  margin-bottom: 12px;
  background: none;
  border: 0;
  color: #8d7cff;
}

.feature-dark-icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-dark-card h3 {
  margin: 0 0 8px;
  color: #f4f7ff;
  font-size: 1.05rem;
}

.feature-dark-card p {
  margin: 0;
  line-height: 1.6;
  color: #c5d3f5;
}

.screen-tabs {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.screen-tab {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0 14px;
  cursor: pointer;
}

.screen-tab.active {
  background: var(--accent-soft);
  border-color: #cfd1ff;
  color: #31317e;
}

.screen-tab:hover {
  transform: translateY(-1px);
  border-color: #c5c8ff;
  color: #2f3378;
}

.screen-tab:focus-visible {
  outline: 2px solid #6d72e6;
  outline-offset: 2px;
}

.screen-panels { margin-top: 16px; }

.screen-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.screen-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
  border-color: #c7d2e6;
}

.screen-card-large {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.screen-card-large img {
  width: 100%;
  height: auto;
  display: block;
}

.screen-copy { padding: 16px 18px 18px; }
.screen-copy h3 { margin: 0; color: var(--ink); font-size: 1.08rem; }
.screen-copy p { margin: 10px 0 0; line-height: 1.62; }

.faq {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.faq-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 20px;
  align-items: start;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 16px 16px;
  min-height: 74px;
}

.faq details:hover {
  transform: translateY(-2px);
  border-color: #c5cde0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.faq-visual {
  position: sticky;
  top: 108px;
  overflow: visible;
  background: transparent;
}

.faq-artwork {
  position: relative;
}

.faq-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
}

.faq-visual-logo {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: 218px;
  height: 92px;
  border-radius: 16px;
  background: #a8b4cf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.faq-visual-logo .textLogo {
  font-size: 52px;
  line-height: 52px;
  letter-spacing: -1.6px;
}

.faq-visual-logo .textLogo > span { line-height: 52px; }

.faq-visual-logo .textLogoAccent {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.faq-side-copy {
  margin-top: 24px;
  max-width: 320px;
}

.faq-side-copy h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.button-contact {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  background: #0f1115;
  color: #ff9c3a;
  border: 1px solid #0f1115;
}

.button-contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 17, 21, 0.28);
  filter: brightness(1.03);
}

.faq summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.faq p { margin: 8px 0 0; line-height: 1.62; }

.blog-head {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.blog-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.blog-grid-stacked { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.post-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0 0 18px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: #c8d2e5;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.post-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}

.post-card time,
.post-card h2,
.post-card h3,
.post-card p {
  display: block;
  padding-left: 18px;
  padding-right: 18px;
}

.post-card time { padding-top: 12px; font-size: 0.8rem; color: #60669a; }
.post-card h2,
.post-card h3 { margin: 9px 0 8px; color: var(--ink); font-size: 1.03rem; line-height: 1.35; }
.post-card p { margin: 0; line-height: 1.58; }

.cta-bar {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.post-layout {
  max-width: 840px;
}

.post-back {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.post-layout h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 3.3vw, 2.5rem);
  line-height: 1.15;
}

.post-layout h2 {
  margin: 28px 0 10px;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
}

.post-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-figure {
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.post-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.post-layout p {
  margin: 12px 0;
  line-height: 1.75;
}

.post-next {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.post-cta {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(150deg, #f4f5ff 0%, #ececff 100%);
}

.post-cta h2 {
  margin: 0 0 8px;
  color: var(--ink);
}

.post-cta p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.post-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer {
  margin-top: 36px;
  border-top: 1px solid #243980;
  background: radial-gradient(circle at 10% 20%, #102262 0%, #08164a 45%, #050d32 100%);
  padding: 20px 0 30px;
  color: #c5d3f5;
  font-size: 0.9rem;
}

.footer a {
  color: #e8eeff;
  text-decoration: none;
}

.footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
}

.footer-grid p { margin: 0; }

.fade-up { animation: fadeUp 0.6s ease both; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .cards3,
  .blog-grid,
  .blog-grid-stacked,
  .features-dark-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .nav { display: none; }

  .textLogo {
    font-size: 34px;
    line-height: 34px;
    letter-spacing: -1.2px;
  }

  .textLogo > span { line-height: 34px; }

  .textLogoAccent {
    width: 42px;
    height: 42px;
    border-radius: 9px;
  }

  .cta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-side-image {
    margin-right: 0;
  }

  .hero-side-image img {
    width: 100%;
    max-width: 100%;
  }

  .post-card-image {
    height: 200px;
  }

  .faq-visual {
    position: static;
    max-width: 420px;
  }

  .faq-side-copy h3 {
    font-size: 1.65rem;
  }
}

@media (max-width: 1280px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 4.3vw, 4.2rem);
    max-width: 16ch;
  }

  .hero-side-image {
    margin-right: 0;
  }

  .hero-side-image img {
    width: min(720px, 54vw);
  }
}


.rich-article p { line-height: 1.75; }
.rich-article h2 { margin-top: 28px; margin-bottom: 10px; color: var(--ink); }
.rich-article h3 { margin-top: 22px; margin-bottom: 8px; color: var(--ink); font-size: 1.02rem; }
.rich-article ul, .rich-article ol { padding-left: 22px; line-height: 1.75; }
.rich-article li { margin-bottom: 8px; }
.rich-article .pull { margin: 24px 0; padding: 16px; border-left: 3px solid var(--accent-strong); background: #f8f9ff; border-radius: 10px; }
.rich-article .pull p { margin: 0; }
.rich-article .callout { margin: 24px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.rich-article .callout-head { margin-bottom: 10px; font-weight: 700; color: var(--ink); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.04em; }
.rich-article .stat-row { margin: 22px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rich-article .stat-cell { background: #fff; padding: 14px; }
.rich-article .stat-n { display: block; color: var(--accent-strong); font-weight: 800; font-size: 1.4rem; }
.rich-article .stat-label { color: var(--ink-soft); font-size: 0.9rem; }
.rich-article .section-divider { height: 1px; background: var(--line); margin: 28px 0; }
.rich-article .faq-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.rich-article .faq-q { font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.rich-article .faq-a { color: var(--ink-soft); }
@media (max-width: 900px) { .rich-article .stat-row { grid-template-columns: 1fr; } }
