:root {
  --navy: #0b1f3a;
  --blue: #1455d9;
  --blue-2: #2f7df6;
  --ice: #eef6ff;
  --line: #d7e2f0;
  --ink: #172033;
  --muted: #5c6a7f;
  --green: #0f8b6f;
  --white: #ffffff;
  --graphite: #2b3442;
  --shadow: 0 18px 50px rgba(11, 31, 58, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand strong {
  color: var(--navy);
  font-size: 17px;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--graphite);
  font-size: 14px;
}

.nav-links a {
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--blue);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.lang-switch a,
.lang-switch strong {
  min-width: 28px;
  padding: 3px 6px;
  border-radius: 4px;
  text-align: center;
  font-size: 12px;
}

.lang-switch strong {
  color: var(--white);
  background: var(--blue);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
}

.button.primary {
  color: var(--white);
  background: var(--blue);
}

.button.secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.button:hover {
  transform: translateY(-1px);
}

.hero {
  min-height: 680px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(7, 22, 44, 0.92) 0%, rgba(7, 22, 44, 0.78) 42%, rgba(7, 22, 44, 0.18) 78%),
    url("hero-finops.png") center / cover no-repeat;
  color: var(--white);
}

.hero-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 110px 24px 72px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #a8cdfd;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 12px;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  margin: 24px 0 0;
  color: #d7e7fb;
  font-size: 20px;
}

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

.metric-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 124px;
  padding: 22px;
  background: var(--white);
}

.metric strong {
  display: block;
  color: var(--blue);
  font-size: 25px;
  line-height: 1.05;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.section {
  padding: 84px 24px;
}

.section.alt {
  background: var(--ice);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 34px;
}

.section-head h2,
.page-hero h1 {
  color: var(--navy);
}

.section-head h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.2;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.case-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.case-kpi strong {
  display: block;
  color: var(--green);
  font-size: 30px;
  line-height: 1;
}

.case-kpi span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

.case-body h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 22px;
}

.case-body p {
  margin: 0;
  color: var(--muted);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.step {
  min-height: 210px;
  background: var(--white);
  padding: 26px;
}

.step span {
  color: var(--blue);
  font-weight: 800;
}

.step h3 {
  margin: 18px 0 10px;
  color: var(--navy);
}

.step p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding: 88px 24px 64px;
  background: var(--ice);
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 20px;
}

.article-list {
  display: grid;
  gap: 16px;
}

.article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.article small {
  display: block;
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 8px;
}

.article h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.article h3 a,
.case-body h3 a {
  color: inherit;
}

.article h3 a:hover,
.case-body h3 a:hover,
.back-link:hover {
  color: var(--blue);
}

.detail-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 44px;
  align-items: start;
}

.detail-aside {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.detail-body {
  max-width: 760px;
}

.detail-body h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.15;
}

.detail-body h2:not(:first-child) {
  margin-top: 34px;
}

.detail-body p {
  margin: 0 0 18px;
  color: var(--graphite);
  font-size: 18px;
}

.back-link {
  color: var(--blue);
  font-weight: 800;
}

.product-note {
  margin: 18px 0 0;
}

.cta {
  padding: 72px 24px;
  background: var(--navy);
  color: var(--white);
}

.cta-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.cta h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.cta p {
  margin: 14px 0 0;
  color: #c9d8ec;
}

.footer {
  padding: 34px 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  font-size: 14px;
  text-align: center;
}

.note {
  padding: 22px;
  border-left: 4px solid var(--blue);
  background: var(--ice);
  color: var(--graphite);
}

.profile-placeholder {
  min-height: 460px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(20, 85, 217, 0.08), rgba(15, 139, 111, 0.08)),
    var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
  padding: 28px;
}

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.photo-single {
  display: grid;
  grid-template-columns: minmax(260px, 420px);
  justify-content: start;
}

.portrait-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.portrait-card div {
  padding: 16px;
}

.portrait-card strong {
  display: block;
  color: var(--navy);
}

.portrait-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.profile-strip {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 28px;
  align-items: center;
}

.product-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 940px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .metric-strip,
  .grid-3,
  .grid-2,
  .process,
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-head,
  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 620px;
  }

  .hero-inner {
    padding: 82px 18px 48px;
  }

  .section,
  .page-hero,
  .cta {
    padding-left: 18px;
    padding-right: 18px;
  }

  .metric-strip,
  .grid-3,
  .grid-2,
  .process,
  .detail-grid,
  .photo-pair,
  .profile-strip,
  .case-card {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }

  .nav-links {
    gap: 12px;
    font-size: 13px;
  }
}
