:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #637083;
  --line: #dfe6ef;
  --primary: #2563eb;
  --primary-dark: #1e3a8a;
  --green: #0f766e;
  --amber: #b45309;
  --soft-blue: #eaf1ff;
  --soft-green: #e7f6f3;
  --soft-amber: #fff4df;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
}

.navbar {
  min-height: 72px;
}

.navbar-brand,
.nav-link {
  color: var(--ink);
}

.nav-link {
  font-size: 0.94rem;
}

.hero-section {
  padding: 140px 0 86px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.1)),
    var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-section h1 {
  margin: 12px 0 18px;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  line-height: 1.03;
  font-weight: 760;
  letter-spacing: 0;
}

.lead {
  max-width: 780px;
  color: #24324a;
  font-size: 1.22rem;
}

.large-text {
  font-size: 1.18rem;
  color: #233149;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--primary-dark);
  font-weight: 720;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #24324a;
  font-size: 0.94rem;
}

.hero-benefits i {
  color: var(--green);
}

.hero-panel {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(23, 32, 51, 0.12);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.metric-grid div {
  min-height: 96px;
  padding: 18px;
  border-radius: 8px;
  background: var(--soft-blue);
}

.metric-grid div:nth-child(2),
.metric-grid div:nth-child(3) {
  background: var(--soft-green);
}

.metric-grid strong,
.metric-grid span {
  display: block;
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.flow-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px;
  background: #111827;
  color: white;
  border-radius: 8px;
  font-weight: 700;
}

.section {
  padding: 86px 0;
  background: var(--surface);
}

.section-muted {
  background: var(--bg);
}

.section-accent {
  background: linear-gradient(135deg, #eef5ff, #eefaf7);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.12;
  font-weight: 740;
  letter-spacing: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.06rem;
}

.info-grid,
.result-grid,
.effect-grid,
.benefit-grid,
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-grid article,
.role-card,
.feature-card,
.result-grid div,
.effect-grid article,
.benefit-grid div,
.scenario-grid article {
  height: 100%;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section-muted .role-card,
.section-muted .result-grid div {
  background: var(--surface);
}

.info-grid i,
.feature-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--primary);
  font-size: 1.2rem;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.14rem;
  line-height: 1.3;
  font-weight: 720;
  letter-spacing: 0;
}

p {
  margin-bottom: 0;
}

.role-card p,
.feature-card p,
.result-grid p,
.effect-grid p,
.benefit-grid p,
.scenario-grid p,
.problem-list p {
  color: var(--muted);
}

.problem-list {
  display: grid;
  gap: 14px;
}

.problem-list div {
  padding: 22px;
  border-left: 4px solid var(--primary);
  background: #f9fbff;
  border-radius: 8px;
}

.data-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.table {
  margin: 0;
}

.table th {
  background: #edf3ff;
  color: #24324a;
  white-space: nowrap;
}

.table td,
.table th {
  padding: 16px;
  border-color: var(--line);
  vertical-align: top;
}

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

.timeline div {
  position: relative;
  min-height: 210px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 760;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-card strong {
  margin-top: auto;
  color: var(--ink);
}

.feature-card span {
  color: var(--muted);
}

.effect-grid article:nth-child(2),
.benefit-grid div:nth-child(2) {
  background: var(--soft-green);
}

.effect-grid article:nth-child(3),
.benefit-grid div:nth-child(3) {
  background: var(--soft-amber);
}

.diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 26px;
}

.diagram > div {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 720;
}

.diagram > i {
  align-self: center;
  color: var(--primary);
  font-size: 1.3rem;
}

.diagram div i {
  color: var(--green);
  font-size: 1.7rem;
}

.optional-diagram {
  display: block;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.competence-grid,
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.competence-grid span,
.recommendation-grid span {
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 650;
}

.cta-section {
  background: #111827;
  color: white;
}

.cta-box {
  max-width: 980px;
}

.cta-box .eyebrow {
  color: #9dd6ff;
}

.cta-box h2 {
  margin: 12px 0 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.cta-box p {
  max-width: 900px;
  margin-bottom: 24px;
  color: #d6deeb;
  font-size: 1.08rem;
}

.basis-list {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  color: var(--muted);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.back-to-top.is-visible {
  display: inline-flex;
}

@media (max-width: 1199px) {
  .diagram {
    grid-template-columns: 1fr;
  }

  .diagram > i {
    transform: rotate(90deg);
  }

  .competence-grid,
  .recommendation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .info-grid,
  .result-grid,
  .effect-grid,
  .benefit-grid,
  .scenario-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-section {
    padding-top: 116px;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 64px 0;
  }

  .hero-section h1 {
    font-size: 2.6rem;
  }

  .info-grid,
  .result-grid,
  .effect-grid,
  .benefit-grid,
  .scenario-grid,
  .timeline,
  .metric-grid,
  .competence-grid,
  .recommendation-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .info-grid article,
  .role-card,
  .feature-card,
  .result-grid div,
  .effect-grid article,
  .benefit-grid div,
  .scenario-grid article {
    padding: 20px;
  }

  .table td,
  .table th {
    min-width: 180px;
  }
}
