:root {
  color-scheme: light;
  --ink: #10202b;
  --muted: #5d6b76;
  --line: #dce4e8;
  --soft: #eef5f2;
  --panel: #ffffff;
  --brand: #0c3b5e;
  --brand-2: #007f7a;
  --accent: #d97706;
  --accent-2: #7c3aed;
  --shadow: 0 18px 45px rgba(13, 42, 61, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f8faf9;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(248, 250, 249, 0.92);
  border-bottom: 1px solid rgba(220, 228, 232, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  font-size: 0.9rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: #314653;
  font-size: 0.95rem;
}

.nav a {
  padding: 8px 0;
}

.nav a:hover {
  color: var(--brand-2);
}

.nav-cta {
  padding: 10px 14px !important;
  color: #fff !important;
  background: var(--brand);
  border-radius: 8px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: clamp(56px, 8vw, 98px) clamp(18px, 5vw, 72px) 44px;
  background:
    linear-gradient(115deg, rgba(12, 59, 94, 0.08), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #edf6f4 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions,
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--brand);
}

.button.primary:hover {
  background: #082c47;
}

.button.secondary {
  color: var(--brand);
  background: #fff;
  border-color: var(--line);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 34px 0 0;
}

.trust-strip div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.trust-strip dt {
  font-weight: 900;
  color: var(--brand);
}

.trust-strip dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  width: min(100%, 580px);
  justify-self: end;
  padding: 16px;
  background: #122736;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visual-topbar {
  display: flex;
  gap: 7px;
  padding: 4px 0 14px;
}

.visual-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f0b35f;
}

.visual-topbar span:nth-child(2) {
  background: #3fc3b0;
}

.visual-topbar span:nth-child(3) {
  background: #8ea7ff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-tile,
.chart-tile,
.chat-tile,
.signal-tile {
  min-height: 136px;
  padding: 18px;
  color: #e8f1f4;
  background: #19384b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.metric-tile span,
.chart-header span,
.signal-tile span {
  color: #a9c3cc;
  font-size: 0.84rem;
}

.metric-tile strong {
  display: block;
  margin-top: 14px;
  font-size: 2.1rem;
}

.metric-tile small {
  color: #63dbc7;
}

.metric-tile.accent strong {
  color: #f7c879;
}

.wide {
  grid-column: span 2;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.chart-header strong {
  color: #63dbc7;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 9px;
  height: 170px;
  margin-top: 18px;
}

.bar-chart span {
  display: block;
  height: var(--h);
  min-height: 24px;
  background: linear-gradient(180deg, #4bd5c5, #f0b35f);
  border-radius: 7px 7px 2px 2px;
}

.chat-tile {
  display: grid;
  align-content: center;
  gap: 10px;
}

.chat-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  color: #173143;
  background: #fff;
  font-size: 0.88rem;
}

.chat-line.bot {
  margin-left: auto;
  color: #fff;
  background: var(--brand-2);
}

.chat-line.short {
  max-width: 78%;
}

.signal-tile {
  display: grid;
  place-items: center;
  text-align: center;
}

.risk-ring {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-top: 12px;
  background: conic-gradient(#d97706 0 24%, #29495c 24% 100%);
  border-radius: 50%;
}

.risk-ring strong {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  background: #19384b;
  border-radius: 50%;
}

.section,
.method,
.seo-section,
.contact {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: end;
  background: #fff;
}

.section-heading {
  max-width: 860px;
}

.section-summary {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.method-summary {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.services {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(64px, 8vw, 96px);
  background: #fff;
}

.service-card,
.case-grid article,
.seo-grid article {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
}

.service-card.featured {
  border-color: rgba(0, 127, 122, 0.36);
  box-shadow: 0 16px 34px rgba(0, 127, 122, 0.12);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  font-weight: 900;
}

.service-card p,
.case-grid p,
.seo-grid p,
.timeline p,
.contact p {
  color: var(--muted);
  line-height: 1.65;
}

.price {
  margin-top: auto;
  color: var(--brand) !important;
  font-size: 1.25rem;
  font-weight: 900;
}

.note {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 18px;
  color: var(--brand-2);
  font-weight: 900;
}

.service-link:hover {
  color: var(--brand);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.48fr);
  gap: clamp(26px, 5vw, 68px);
  align-items: center;
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, #ffffff 0%, #edf6f4 100%);
}

.page-hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.6rem);
}

.page-panel {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-panel strong {
  display: block;
  color: var(--brand);
  font-size: 1.8rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.45fr);
  gap: 18px;
  padding: clamp(52px, 7vw, 88px) clamp(18px, 5vw, 72px);
  background: #fff;
}

.detail-block {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf9;
}

.detail-block ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.cases-section {
  background: #eef5f2;
}

.case-grid,
.seo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

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

.case-tag {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-action {
  margin-top: 28px;
}

.case-detail-list {
  display: grid;
  gap: 18px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(64px, 8vw, 96px);
  background: #fff;
}

.case-detail-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 0.8fr);
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf9;
}

.case-detail-card h2 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.case-detail-card p,
.case-detail-card li {
  color: var(--muted);
  line-height: 1.75;
}

.case-detail-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.method {
  background: #fff;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.timeline li {
  padding: 22px;
  border-top: 3px solid var(--brand-2);
  background: #f8faf9;
  border-radius: var(--radius);
}

.timeline span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--brand-2);
  border-radius: 50%;
  font-weight: 900;
}

.seo-section {
  color: #fff;
  background: #10202b;
}

.seo-section .eyebrow {
  color: #f7c879;
}

.seo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seo-grid article {
  background: #19313f;
  border-color: rgba(255, 255, 255, 0.12);
}

.seo-grid p {
  color: #b9cad0;
}

.seo-action {
  margin-top: 28px;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(64px, 8vw, 96px);
  background: #fff;
}

.article-card {
  padding: 26px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-card p,
.article-body p {
  color: var(--muted);
  line-height: 1.75;
}

.article-card a,
.article-body a {
  color: var(--brand-2);
  font-weight: 900;
}

.article-body {
  max-width: 880px;
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background: #fff;
}

.article-body h2 {
  margin-top: 36px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.article-body ul {
  color: var(--muted);
  line-height: 1.85;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  background: #fff;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #314653;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd9de;
  border-radius: 8px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: #d5e4e9;
  background: #0f1d27;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #7ee0d3;
}

@media (max-width: 1080px) {
  .hero,
  .page-hero,
  .intro-section,
  .detail-grid,
  .case-detail-card,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: start;
  }

  .services,
  .article-list,
  .seo-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .menu-button {
    display: block;
  }

  .nav {
    position: absolute;
    inset: 66px 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .trust-strip,
  .services,
  .article-list,
  .case-grid,
  .seo-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }

  .bar-chart {
    height: 130px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
