
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #10233f;
  --muted: #64748b;
  --line: #dfe6f1;
  --accent: #0f9f8f;
  --accent-dark: #087b72;
  --warm: #f59e0b;
  --blue: #1f5eff;
  --shadow: 0 24px 70px rgba(16, 35, 63, .12);
  --radius: 22px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(223,230,241,.8); }
.header-inner { display: flex; align-items: center; min-height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--ink), #1c3b68); color: #fff; font-weight: 800; letter-spacing: .02em; }
.brand-text { font-weight: 800; line-height: 1.05; font-size: 15px; }
.main-nav { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav-link { color: #34445c; font-size: 14px; padding: 10px 8px; border-radius: 10px; white-space: nowrap; display: inline-flex; align-items: center; }
.nav-link:hover, .nav-link.active { color: var(--ink); background: #edf4ff; }
.header-cta { display: inline-flex; align-items: center; justify-content: center; padding: 11px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }
.hero { position: relative; overflow: hidden; padding: 86px 0 70px; background: radial-gradient(circle at 84% 18%, rgba(15,159,143,.18), transparent 33%), radial-gradient(circle at 8% 16%, rgba(31,94,255,.12), transparent 30%); }
.hero:before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(16,35,63,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(16,35,63,.045) 1px, transparent 1px); background-size: 38px 38px; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 52px; }
.kicker { color: var(--accent-dark); text-transform: uppercase; font-weight: 850; letter-spacing: .12em; font-size: 12px; margin-bottom: 14px; }
h1, h2, h3 { margin: 0 0 16px; line-height: 1.12; letter-spacing: -.03em; }
h1 { font-size: clamp(40px, 6vw, 72px); max-width: 820px; }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 22px; }
.lead { font-size: clamp(18px, 2.1vw, 23px); color: #44546a; max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 20px; border-radius: 999px; font-weight: 800; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 14px 30px rgba(15,159,143,.25); }
.btn.primary:hover { background: var(--accent-dark); }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.light { background: #fff; color: var(--ink); }
.source-strip { display: flex; flex-wrap: wrap; gap: 10px; color: #4d5d73; font-size: 14px; }
.source-strip span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); }
.dashboard-mockup { background: linear-gradient(180deg, #fff, #f8fbff); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 22px; min-height: 430px; position: relative; }
.mockup-topbar { display: flex; gap: 7px; margin-bottom: 20px; }
.mockup-topbar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mockup-title { font-weight: 850; margin-bottom: 16px; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi-card { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: #fff; }
.kpi-card small, .kpi-card em { display: block; color: var(--muted); font-style: normal; font-size: 12px; }
.kpi-card strong { display: block; font-size: 23px; margin: 4px 0; }
.chart-lines { height: 120px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, #fff, #f1f7ff); padding: 18px; display: grid; align-content: end; gap: 8px; margin-bottom: 18px; }
.chart-lines i { display: block; height: 8px; border-radius: 999px; background: linear-gradient(90deg, rgba(31,94,255,.16), rgba(15,159,143,.62)); }
.chart-lines i:nth-child(1){width:84%}.chart-lines i:nth-child(2){width:65%}.chart-lines i:nth-child(3){width:92%}.chart-lines i:nth-child(4){width:55%}.chart-lines i:nth-child(5){width:76%}.chart-lines i:nth-child(6){width:68%}
.bars { height: 120px; border: 1px solid var(--line); border-radius: 20px; background: #fff; display: flex; align-items: end; gap: 12px; padding: 18px; }
.bars span { flex: 1; border-radius: 10px 10px 3px 3px; background: linear-gradient(180deg, var(--accent), #b8eee8); }
.section { padding: 82px 0; }
.section.alt { background: #fff; }
.section.dark { background: var(--ink); color: #fff; }
.section-head { max-width: 820px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 18px; }
.dark .section-head p, .dark p { color: rgba(255,255,255,.72); }
.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 10px 30px rgba(16,35,63,.06); }
.dark .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.card p { color: var(--muted); }
.dark .card p { color: rgba(255,255,255,.72); }
.card-link { display: inline-flex; margin-top: 8px; color: var(--accent-dark); font-weight: 850; }
.dark .card-link { color: #87fff3; }
.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-grid span { padding: 10px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: #334155; font-weight: 650; }
.dark .pill-grid span { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.16); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.check-list { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.check-list li { padding-left: 34px; position: relative; }
.check-list li:before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); }
.check-list li:after { content: ""; position: absolute; left: 7px; top: 9px; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.architecture { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: stretch; }
.arch-node { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; min-height: 120px; position: relative; }
.arch-node h3 { font-size: 18px; }
.arch-node p { color: var(--muted); font-size: 14px; }
.arch-node:not(:last-child):after { content: "→"; position: absolute; right: -14px; top: 42%; color: var(--accent); font-weight: 900; font-size: 22px; z-index: 2; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.step span { color: var(--accent); font-weight: 900; }
.step h3 { font-size: 19px; margin-top: 12px; }
.step p { color: var(--muted); font-size: 15px; }
.cta-section { padding: 64px 0; background: linear-gradient(135deg, var(--ink), #163d70); color: #fff; }
.cta-panel { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.cta-panel p { color: rgba(255,255,255,.76); max-width: 760px; }
.form-card { background: #fff; border-radius: 26px; padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
label { font-weight: 750; font-size: 14px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; font: inherit; color: var(--ink); background: #fff; }
textarea { min-height: 120px; resize: vertical; }
.form-card .btn { margin-top: 22px; }
.form-note { color: var(--muted); font-size: 13px; margin-top: 12px; }
.form-status { margin-top: 12px; font-weight: 750; color: var(--accent-dark); }
.site-footer { background: #07162b; color: #d5deeb; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand { color: #fff; font-weight: 900; font-size: 20px; margin-bottom: 12px; }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.site-footer a { display: block; color: #d5deeb; margin: 8px 0; }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; color: #98a7bb; font-size: 14px; }
.quote-box { background: #edfdfb; border-left: 5px solid var(--accent); border-radius: 18px; padding: 22px; font-weight: 800; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 16px; border-bottom: 1px solid var(--line); }
th { background: #f8fafc; font-size: 14px; color: #475569; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.case-meta span { font-size: 12px; padding: 6px 9px; border-radius: 999px; background: #edf4ff; color: #1d4ed8; font-weight: 800; }
.article-date { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
@media (max-width: 1060px) {
  .header-cta { display: none; }
  .main-nav { gap: 4px; }
  .nav-link { font-size: 13px; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .architecture, .steps { grid-template-columns: repeat(2, 1fr); }
  .arch-node:not(:last-child):after { display:none; }
}
@media (max-width: 820px) {
  .container { width: min(100% - 28px, var(--max)); }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; left: 14px; right: 14px; top: 74px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 16px; display: none; flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .nav-link { padding: 12px 14px; }
  .hero { padding: 58px 0; }
  .cards.three, .cards.two, .footer-grid, .cta-panel, .form-grid { grid-template-columns: 1fr; }
  .dashboard-mockup { min-height: auto; }
  .kpi-row { grid-template-columns: 1fr; }
  .architecture, .steps { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}


/* Expanded navigation */
.nav-group { position: relative; display: flex; align-items: center; }
.nav-parent::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 8px; margin-top: -4px; opacity: .65; }
.nav-dropdown { position: absolute; left: 0; top: calc(100% + 10px); min-width: 270px; display: none; grid-template-columns: 1fr; gap: 2px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); z-index: 50; }
.nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-group:hover .nav-dropdown, .nav-group:focus-within .nav-dropdown { display: grid; }
.nav-dropdown a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--ink); font-weight: 720; font-size: 14px; white-space: nowrap; }
.nav-dropdown a:hover { background: #edfdfb; color: var(--accent-dark); }
.footer-grid-wide { grid-template-columns: 1.35fr 1fr 1fr 1fr 1fr; }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.mini-card strong { display: block; font-size: 22px; margin-bottom: 4px; }
.mini-card span { color: var(--muted); font-size: 14px; }
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.problem-item { border-left: 4px solid var(--accent); background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 8px 24px rgba(16,35,63,.05); }
.problem-item h3 { font-size: 18px; margin-bottom: 8px; }
.problem-item p { margin: 0; color: var(--muted); }
@media (max-width: 1180px) {
  .main-nav { gap: 2px; }
  .nav-link { font-size: 13px; padding: 9px 8px; }
  .nav-dropdown a { white-space: normal; }
}
@media (max-width: 1060px) {
  .footer-grid-wide { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-group { display: block; }
  .nav-parent::after { display: none; }
  .main-nav.open .nav-dropdown { display: grid; position: static; min-width: 0; box-shadow: none; border-radius: 14px; margin: -6px 0 8px 12px; padding: 8px; background: #f8fafc; }
  .main-nav.open .nav-dropdown::before { display: none; }
  .nav-dropdown a { white-space: normal; font-size: 13px; padding: 9px 10px; }
  .mini-grid, .problem-grid, .footer-grid-wide { grid-template-columns: 1fr; }
}

/* SVG hero illustrations */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
}
.hero-visual img {
  display: block;
  width: min(100%, 640px);
  height: auto;
  border-radius: 34px;
  filter: drop-shadow(0 22px 34px rgba(16,35,63,.16));
}
.inner-hero .hero-visual {
  min-height: 360px;
}
@media (max-width: 820px) {
  .hero-visual, .inner-hero .hero-visual { min-height: 0; }
  .hero-visual img { max-width: 100%; }
}

/* Detailed cases */
.case-preview-grid .card { scroll-margin-top: 96px; }
.case-detail-section { background: linear-gradient(180deg, #f5f7fb, #ffffff); }
.case-stack { display: grid; gap: 34px; }
.case-detail { scroll-margin-top: 96px; background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 34px; box-shadow: 0 18px 46px rgba(16,35,63,.08); }
.case-detail-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.case-detail-head h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 0; }
.case-detail-grid { display: grid; grid-template-columns: 310px 1fr; gap: 32px; margin-top: 28px; }
.case-facts { position: sticky; top: 96px; align-self: start; background: #f8fafc; border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.case-facts h3 { font-size: 19px; margin-bottom: 18px; }
.case-facts dl { display: grid; gap: 12px; margin: 0; }
.case-facts dt { color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 850; letter-spacing: .08em; }
.case-facts dd { margin: -8px 0 0; font-weight: 750; color: var(--ink); }
.case-body { max-width: 780px; }
.case-body h3 { margin-top: 28px; }
.case-body h3:first-child { margin-top: 0; }
.case-body p { color: #44546a; }
.check-list.compact { margin: 10px 0 20px; gap: 9px; }
.check-list.compact li { color: #44546a; }
.case-pills { margin: 12px 0 24px; }
.case-result { background: #edfdfb; border: 1px solid rgba(15,159,143,.22); border-radius: 22px; padding: 22px; margin: 26px 0 18px; }
.case-result h3 { margin-top: 0; }
.case-result p { margin-bottom: 0; }
@media (max-width: 960px) {
  .case-detail-head, .case-detail-grid { grid-template-columns: 1fr; }
  .case-facts { position: static; }
}
@media (max-width: 820px) {
  .case-detail { padding: 24px; border-radius: 24px; }
}


/* Article pages */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.breadcrumbs a { color: var(--accent-dark); font-weight: 700; }
.article-hero h1 { font-size: clamp(34px, 4.8vw, 60px); }
.article-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 42px; align-items: start; }
.article-aside { display: grid; gap: 16px; position: sticky; top: 98px; }
.article-aside-cta { width: 100%; }
.article-body { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 5vw, 56px); box-shadow: 0 16px 48px rgba(16,35,63,.07); }
.article-body h2 { font-size: clamp(26px, 3vw, 38px); margin-top: 36px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin-top: 28px; font-size: 24px; }
.article-body p { color: #3f5068; font-size: 17px; }
.article-body ul { margin: 0 0 22px 0; padding-left: 22px; color: #3f5068; font-size: 17px; }
.article-body li { margin: 8px 0; }
.article-cta-box { margin-top: 44px; padding: 28px; border-radius: 24px; background: linear-gradient(135deg, #ecfffb, #edf4ff); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.article-card-grid .card { min-height: 250px; }
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; grid-template-columns: repeat(2, 1fr); }
  .article-aside-cta { grid-column: 1 / -1; }
  .article-cta-box { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .article-aside { grid-template-columns: 1fr; }
  .article-body { padding: 24px; border-radius: 22px; }
}


/* Features page */
.cards.four { grid-template-columns: repeat(4, 1fr); }
.feature-map { align-items: stretch; }
.feature-tile {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(16,35,63,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(16,35,63,.11); border-color: rgba(15,159,143,.35); }
.feature-tile span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 13px; background: #edfdfb; color: var(--accent-dark); font-weight: 900; margin-bottom: 16px; }
.feature-tile h3 { font-size: 21px; }
.feature-tile p { color: var(--muted); margin-bottom: 0; }
.feature-block { scroll-margin-top: 96px; }
.feature-block-head { max-width: 880px; margin-bottom: 32px; }
.feature-block-head p { color: var(--muted); font-size: 18px; }
.feature-card { min-height: 230px; }
.feature-card p { color: #44546a; }
.feature-quote { margin-top: 24px; }
.feature-bottom-grid { margin-top: 20px; }
.section-action { margin-top: 28px; }
.footer-grid-extended { grid-template-columns: 1.3fr .9fr 1.05fr .85fr .95fr 1.2fr; }
@media (max-width: 1180px) {
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .footer-grid-extended { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .cards.four, .footer-grid-extended { grid-template-columns: 1fr; }
}

/* Compact top menu */
.nav-dropdown-narrow { min-width: 170px; }
@media (min-width: 821px) {
  .main-nav { flex-wrap: nowrap; }
  .nav-group { flex: 0 0 auto; }
}
