:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #edf3f8;
  --text: #172133;
  --muted: #5c687a;
  --navy: #10284a;
  --blue: #2563a9;
  --teal: #2f8f9d;
  --line: #d9e1ea;
  --shadow: 0 18px 45px rgba(16, 40, 74, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

.nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

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

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

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.section {
  padding: 88px 0;
  scroll-margin-top: 88px;
}

.section-inner,
.hero {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.04rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.18rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  color: #ffffff;
  background: var(--navy);
}

.button.secondary {
  color: var(--navy);
  background: transparent;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-screen {
  width: min(100%, 360px);
  margin: 0;
  padding: 12px;
  border: 1px solid #cbd7e4;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-screen img {
  display: block;
  width: 100%;
  border-radius: 20px;
}

.mock-phone {
  width: min(100%, 390px);
  min-height: 560px;
  padding: 26px;
  border: 1px solid #cbd7e4;
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #eef5fb 100%);
  box-shadow: var(--shadow);
}

.phone-top {
  width: 80px;
  height: 8px;
  margin: 0 auto 28px;
  border-radius: 999px;
  background: #b8c5d5;
}

.mock-search {
  height: 44px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: #e3eaf2;
}

.mock-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.mock-image {
  height: 118px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(37, 99, 169, 0.78), rgba(47, 143, 157, 0.78)),
    repeating-linear-gradient(45deg, #dfe7f0 0 8px, #cbd8e5 8px 16px);
}

.mock-line {
  height: 12px;
  width: 70%;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #c8d4e2;
}

.mock-line.wide {
  width: 100%;
}

.mock-price {
  display: inline-flex;
  margin-top: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
}

.mock-chart {
  height: 140px;
  margin-top: 18px;
  padding: 18px;
  display: flex;
  align-items: end;
  gap: 12px;
  border-radius: var(--radius);
  background: var(--navy);
}

.mock-chart span {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: #79c6d0;
}

.mock-chart span:nth-child(1) { height: 38%; }
.mock-chart span:nth-child(2) { height: 54%; }
.mock-chart span:nth-child(3) { height: 48%; }
.mock-chart span:nth-child(4) { height: 72%; }
.mock-chart span:nth-child(5) { height: 86%; }

.mock-credibility {
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius);
  color: var(--navy);
  background: #dff3ee;
  font-weight: 700;
}

.overview-band,
.alt-section {
  background: var(--surface-soft);
}

.overview-band {
  padding: 68px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.overview-grid,
.info-grid,
.placeholder-grid,
.split-list,
.answer-grid,
.method-summary {
  display: grid;
  gap: 18px;
}

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

.overview-card,
.content-card,
.answer-grid article,
.method-summary article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(16, 40, 74, 0.06);
}

.overview-card p,
.content-card p,
.feature-item p,
.content-stack p,
.section-intro,
.answer-grid p,
.method-summary p {
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
}

.content-stack > *:last-child {
  margin-bottom: 0;
}

.callout {
  padding: 22px;
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
  color: var(--navy);
  background: #e8f0f8;
}

.evidence-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.evidence-panel p {
  color: var(--muted);
}

.insight-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.insight-list span {
  display: block;
  padding: 12px 14px;
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  color: var(--navy);
  background: #eef8f7;
  font-weight: 700;
}

.answer-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 22px;
}

.section-intro {
  max-width: 820px;
  margin-bottom: 28px;
  font-size: 1.04rem;
}

.method-summary {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 18px;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.evidence-visuals {
  margin-top: 28px;
}

.solution-visuals {
  align-items: start;
}

.visual-figure {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(16, 40, 74, 0.06);
}

.visual-figure img {
  display: block;
  width: 100%;
  border-radius: 6px;
  border: 1px solid #e5ebf1;
}

.visual-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.wide-visual,
.reflection-visual {
  grid-column: 1 / -1;
}

.info-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 32px 0 36px;
}

.flow-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 6px;
}

.flow-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #b8c8d8;
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--surface);
  font-weight: 700;
}

.feature-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-number {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-weight: 800;
}

.placeholder-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
}

.image-placeholder {
  min-height: 260px;
  margin: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  border: 2px dashed #9fb1c4;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(237, 243, 248, 0.92)),
    repeating-linear-gradient(45deg, #dbe5ef 0 12px, #edf3f8 12px 24px);
}

.image-placeholder span {
  color: var(--navy);
  font-size: 1.16rem;
  font-weight: 800;
}

.image-placeholder figcaption {
  max-width: 320px;
  color: var(--muted);
}

.split-list {
  grid-template-columns: repeat(3, 1fr);
}

.solution-note {
  margin-bottom: 8px;
}

.decision-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.decision-row {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr 1.15fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.decision-row:first-child {
  border-top: 0;
}

.decision-row span {
  padding: 16px;
  color: var(--muted);
  border-left: 1px solid var(--line);
}

.decision-row span:first-child {
  border-left: 0;
  color: var(--navy);
  font-weight: 700;
}

.decision-head {
  background: var(--navy);
}

.decision-head span,
.decision-head span:first-child {
  color: #ffffff;
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

li + li {
  margin-top: 8px;
}

.references-list {
  max-width: 860px;
  padding: 24px 24px 24px 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .nav {
    width: min(100% - 28px, 1120px);
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px;
  }

  .hero,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 36px;
  }

  .overview-grid,
  .info-grid,
  .split-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .decision-row {
    grid-template-columns: 1fr;
  }

  .decision-row span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .decision-row span:first-child {
    border-top: 0;
  }
}

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

  .section-inner,
  .hero {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding-top: 40px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .overview-grid,
  .info-grid,
  .placeholder-grid,
  .split-list,
  .answer-grid,
  .method-summary,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .mock-phone {
    min-height: 500px;
    padding: 20px;
  }

  .mock-card {
    grid-template-columns: 80px 1fr;
  }

  .image-placeholder {
    min-height: 220px;
  }
}
