:root {
  --black: #050505;
  --ink: #111111;
  --paper: #ffffff;
  --soft: #f4f4f1;
  --line: #dadad2;
  --muted: #62635f;
  --red: #ff3f47;
  --cyan: #00a9c8;
  --lime: #a5c83b;
  --yellow: #f2c94c;
  --violet: #6f45ff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 52px);
  color: var(--paper);
  background: rgba(5, 5, 5, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--paper);
  text-decoration: none;
  font-weight: 900;
}

.brand img {
  width: 132px;
  height: auto;
}

.brand span {
  display: inline-block;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.chapter-nav a {
  min-width: 72px;
  padding: 9px 11px;
  color: rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
}

.chapter-nav a.is-active,
.chapter-nav a:hover {
  color: var(--black);
  background: var(--paper);
}

.hero {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 94vh;
  padding: 132px clamp(22px, 6vw, 88px) 0;
  color: var(--paper);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.82) 48%, rgba(5, 5, 5, 0.28) 100%),
    url("assets/ai-dashboard.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(22px, 6vw, 88px);
  right: clamp(22px, 6vw, 88px);
  bottom: 148px;
  height: 1px;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--cyan), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
  padding-bottom: 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

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

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(54px, 8vw, 104px);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5.5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 22px;
}

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

.hero-actions a {
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
}

.hero-actions a:first-child {
  color: var(--black);
  background: var(--paper);
}

.hero-actions a:last-child {
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.46);
}

.hero-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 calc(clamp(22px, 6vw, 88px) * -1);
  background: rgba(255, 255, 255, 0.2);
}

.hero-strip div {
  min-height: 148px;
  padding: 24px clamp(18px, 3vw, 42px);
  background: rgba(5, 5, 5, 0.82);
}

.hero-strip span,
.hero-strip strong {
  display: block;
}

.hero-strip span {
  margin-bottom: 10px;
  color: var(--cyan);
  font-weight: 950;
}

.hero-strip strong {
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-strip p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.band {
  padding: clamp(70px, 10vw, 128px) clamp(20px, 5vw, 72px);
}

.intro-band,
.cases-band {
  background: var(--paper);
}

.trends-band {
  color: var(--paper);
  background: var(--black);
}

.axis-band {
  color: var(--paper);
  background: #141414;
}

.split-layout,
.axis-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
}

.section-heading > p:not(.eyebrow),
.wide-heading > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 20px;
}

.trends-band .section-heading > p:not(.eyebrow),
.axis-band .section-heading > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.wide-heading {
  max-width: 980px;
  margin: 0 auto clamp(34px, 5vw, 60px);
  text-align: center;
}

.intro-panel {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.intro-panel article {
  min-height: 150px;
  padding: 26px;
  background: var(--soft);
}

.intro-panel span,
.trend-card span,
.case-points span,
.discussion-grid span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.intro-panel p,
.trend-card p,
.case-panel p,
.discussion-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.trend-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto clamp(26px, 5vw, 54px);
}

.trend-image {
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #111111;
  box-shadow: var(--shadow);
}

.trend-image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center top;
}

.trend-copy h3 {
  font-size: clamp(34px, 5vw, 58px);
}

.trend-copy > p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 20px;
}

.signal-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.2);
}

.signal-cards div {
  min-height: 144px;
  padding: 22px;
  background: #171717;
}

.signal-cards strong,
.signal-cards span {
  display: block;
}

.signal-cards strong {
  margin-bottom: 10px;
  color: var(--yellow);
}

.signal-cards span {
  color: rgba(255, 255, 255, 0.72);
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
}

.trend-card {
  min-height: 330px;
  padding: clamp(24px, 4vw, 42px);
  color: var(--ink);
  background: var(--soft);
  border-radius: 8px;
}

.trend-card.dark-card {
  color: var(--paper);
  background: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.trend-card.dark-card p,
.trend-card.dark-card li {
  color: rgba(255, 255, 255, 0.72);
}

.trend-card ul,
.case-panel ul {
  margin: 22px 0 0;
  padding-left: 20px;
}

.trend-card li {
  margin-bottom: 10px;
  color: var(--muted);
}

.case-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(820px, 100%);
  margin: 0 auto 22px;
}

.case-tabs button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.case-tabs button[aria-selected="true"] {
  color: var(--paper);
  background: var(--black);
  border-color: var(--black);
}

.case-panel {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 0;
  max-width: 1240px;
  min-height: 520px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}

.case-panel.is-active {
  display: grid;
}

.case-panel img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.case-panel > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 50px);
}

.case-panel h3 {
  font-size: clamp(30px, 4vw, 48px);
}

.case-panel > div > p {
  font-size: 19px;
}

.case-points {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.case-points span {
  width: 100%;
  margin-bottom: 0;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--paper);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  text-transform: none;
}

.axis-layout {
  align-items: center;
}

.discussion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.discussion-grid article {
  min-height: 230px;
  padding: 26px;
  background: #1e1e1e;
}

.discussion-grid span {
  color: var(--cyan);
}

.discussion-grid h3 {
  color: var(--paper);
}

.discussion-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.closing-line {
  display: flex;
  gap: 12px;
  max-width: 1240px;
  margin: clamp(34px, 5vw, 56px) auto 0;
  padding: 24px;
  color: var(--black);
  background: var(--yellow);
  border-radius: 8px;
}

.closing-line strong,
.closing-line span {
  display: block;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 22px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.68);
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer a {
  color: var(--paper);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .chapter-nav {
    justify-content: flex-start;
  }

  .chapter-nav a {
    min-width: auto;
    padding: 8px 10px;
  }

  .hero {
    min-height: 940px;
    padding-top: 174px;
  }

  .hero::after {
    bottom: 444px;
  }

  .hero-strip,
  .split-layout,
  .trend-feature,
  .trend-grid,
  .case-panel,
  .case-panel.is-active,
  .axis-layout,
  .discussion-grid {
    grid-template-columns: 1fr;
  }

  .hero-strip {
    margin: 0 calc(clamp(22px, 6vw, 88px) * -1);
  }

  .trend-image,
  .trend-image img,
  .case-panel img {
    min-height: 360px;
  }

  .signal-cards {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .brand span {
    padding-left: 0;
    border-left: 0;
  }

  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 22px;
  }

  .hero-copy,
  .trend-copy > p,
  .section-heading > p:not(.eyebrow),
  .wide-heading > p:not(.eyebrow) {
    font-size: 18px;
  }

  .case-tabs {
    grid-template-columns: 1fr;
  }

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