:root {
  --paper: #f5efe4;
  --paper-strong: #fffaf0;
  --ink: #121612;
  --muted: #657268;
  --line: rgba(18, 22, 18, 0.15);
  --dark: #0d1210;
  --dark-soft: #141b17;
  --green: #0f7b58;
  --green-bright: #57d79f;
  --copper: #bd7a42;
  --blue: #41b7d8;
  --shadow: 0 26px 80px rgba(18, 22, 18, 0.22);
  --header: 68px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(18, 22, 18, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 22, 18, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
  font-family: Inter, "Noto Sans SC", "Noto Sans JP", "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

body[data-lang="ja"] {
  font-family: Inter, "Noto Sans JP", "Yu Gothic", "Hiragino Sans", "Segoe UI", system-ui, sans-serif;
}

body[data-lang="en"] {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.scroll-meter {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
}

.scroll-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green-bright), var(--blue));
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 70;
  width: min(1180px, calc(100vw - 32px));
  min-height: var(--header);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(13, 18, 16, 0.74);
  color: #fff;
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--green), var(--green-bright));
  color: #fff;
  font-weight: 950;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.site-header nav a,
.language-switcher button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  cursor: pointer;
}

.site-header nav a:hover,
.language-switcher button:hover,
.language-switcher button.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.language-switcher {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
}

.language-switcher button {
  min-width: 42px;
}

.hero-copy,
.capability-section,
.panel-stage,
.workflow,
.image-led,
.final-cta {
  overflow-anchor: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 132px max(24px, calc((100vw - 1180px) / 2)) 72px;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(13, 18, 16, 0.86));
  pointer-events: none;
}

.hero picture,
.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.06);
  transform: scale(1.02);
}

.hero-scrim {
  background:
    radial-gradient(circle at 72% 28%, rgba(87, 215, 159, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(8, 11, 10, 0.96), rgba(8, 11, 10, 0.76) 42%, rgba(8, 11, 10, 0.18) 74%),
    linear-gradient(0deg, rgba(8, 11, 10, 0.70), transparent 58%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  color: #fff;
  min-width: 0;
}

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

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.9;
  font-weight: 950;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.02;
  font-weight: 930;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.hero-lead {
  min-height: 2.25em;
  margin-bottom: 18px;
  color: #fff7e8;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.08;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.hero-text {
  max-width: 620px;
  min-height: 5.1em;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.72;
  overflow-wrap: anywhere;
}

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

.primary-link,
.secondary-link,
.button-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 170ms ease, background 170ms ease, color 170ms ease, border-color 170ms ease;
}

.primary-link,
.button-link {
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
}

.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
}

.primary-link:hover,
.secondary-link:hover,
.button-link:hover {
  transform: translateY(-2px);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(18, 22, 18, 0.12);
  background: var(--dark);
  color: #fff;
}

.proof-strip div {
  min-height: 118px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
}

.proof-strip div:first-child {
  border-left: 0;
}

.proof-strip strong {
  color: #fffaf0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

.proof-strip span {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.section {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 104px 0;
}

.capability-section,
.panel-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.section-copy p,
.panel-copy p,
.image-copy p,
.final-cta p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.78;
}

.section-copy p:not(.eyebrow),
.panel-copy p:not(.eyebrow),
.image-copy p:not(.eyebrow),
.final-cta p:not(.eyebrow) {
  min-height: 4.8em;
}

.capability-rail {
  display: grid;
  border-top: 1px solid var(--line);
}

.capability-row {
  width: 100%;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px 18px;
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.capability-row span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-weight: 950;
  transition: background 170ms ease, color 170ms ease, border-color 170ms ease;
}

.capability-row strong {
  min-height: 2.5em;
  font-size: 22px;
  line-height: 1.25;
}

.capability-row small {
  grid-column: 2;
  min-height: 3.3em;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.capability-row.active span,
.capability-row:hover span {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.promo-art {
  position: relative;
  margin: 0;
}

.promo-art img,
.wide-shot img {
  width: 100%;
  display: block;
}

.promo-art img {
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.promo-art figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.workflow h2 {
  max-width: 880px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  background: var(--line);
  border: 1px solid var(--line);
}

.timeline-step {
  min-height: 270px;
  padding: 30px;
  background: rgba(255, 250, 240, 0.84);
}

.timeline-step span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 42px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.timeline-step p {
  min-height: 5.2em;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.image-led {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 500px);
  align-items: center;
  padding: 0;
  margin: 42px 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(87, 215, 159, 0.14), transparent 30%),
    var(--dark-soft);
  color: #fff;
}

.wide-shot {
  height: 660px;
  margin: 0;
  overflow: hidden;
}

.wide-shot img {
  height: 100%;
  object-fit: cover;
  border: 0;
  box-shadow: none;
}

.image-copy {
  padding: 76px max(24px, calc((100vw - 1180px) / 2)) 76px 0;
}

.image-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.final-cta {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 100px 0 122px;
  text-align: center;
}

.final-cta .primary-link {
  margin-top: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
    top: 12px;
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .brand span:last-child {
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: 100svh;
    padding-top: 122px;
  }

  .proof-strip,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-section,
  .panel-stage,
  .image-led {
    grid-template-columns: 1fr;
  }

  .image-led {
    margin: 0;
  }

  .wide-shot {
    height: auto;
  }

  .image-copy {
    padding: 38px 24px 62px;
  }
}

@media (max-width: 560px) {
  .site-header {
    left: 10px;
    width: min(370px, calc(100vw - 20px));
    transform: none;
    gap: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .language-switcher button {
    min-width: 36px;
    padding: 0 8px;
  }

  .hero {
    padding: 112px 18px 54px;
  }

  .hero-copy {
    width: min(336px, calc(100vw - 36px));
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-scrim {
    background:
      radial-gradient(circle at 75% 18%, rgba(87, 215, 159, 0.14), transparent 34%),
      linear-gradient(90deg, rgba(8, 11, 10, 0.96), rgba(8, 11, 10, 0.78) 58%, rgba(8, 11, 10, 0.28)),
      linear-gradient(0deg, rgba(8, 11, 10, 0.78), transparent 62%);
  }

  h1 {
    font-size: 43px;
    line-height: 0.94;
  }

  h2 {
    font-size: 34px;
  }

  .hero-lead {
    font-size: 25px;
    line-height: 1.14;
    word-break: break-all;
  }

  .hero-text {
    min-height: 7.1em;
    word-break: break-all;
  }

  .proof-strip,
  .timeline {
    grid-template-columns: 1fr;
  }

  .proof-strip div,
  .timeline-step {
    min-height: 152px;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 72px 0;
  }

  .capability-row {
    grid-template-columns: 48px 1fr;
  }

  .capability-row small {
    min-height: 0;
    grid-column: 1 / -1;
  }

  .section-copy p:not(.eyebrow),
  .panel-copy p:not(.eyebrow),
  .image-copy p:not(.eyebrow),
  .final-cta p:not(.eyebrow),
  .timeline-step p {
    min-height: 0;
  }
}
