:root {
  --ink: #101419;
  --ink-soft: #4b535c;
  --paper: #ffffff;
  --white: #ffffff;
  --mist: #f4f7fa;
  --line: #d8dee5;
  --black: #223949;
  --black-soft: #31566b;
  --brand-red: #b00000;
  --brand-red-dark: #7c0000;
  --accent-blue: #2f5368;
  --accent-blue-soft: #e9f1f6;
  --surface: #f7f9fb;
  --surface-blue: #eef4f8;
  --electric: var(--accent-blue);
  --shadow: 0 28px 70px rgba(16, 20, 25, 0.13);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.75;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red), var(--accent-blue));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

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

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

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

.title-phrase {
  display: inline-block;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(16, 20, 25, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 178px;
}

.brand-logo {
  width: 96px;
  height: 48px;
  object-fit: contain;
  background: var(--brand-red);
  border-radius: 2px;
}

.brand-copy {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand-red);
  background: rgba(176, 0, 0, 0.07);
}

.nav-cta {
  color: var(--white) !important;
  background: var(--brand-red) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(16, 20, 25, 0.14);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: clamp(680px, calc(100vh - 128px), 860px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 52%, var(--surface-blue) 52%, #f8fbfd 100%);
}

.dynamic-hero {
  min-height: clamp(720px, calc(100vh - 74px), 940px);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.72;
  background:
    linear-gradient(rgba(16, 20, 25, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 20, 25, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 42%, #000 58%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 40%, rgba(255, 255, 255, 0.64) 54%, rgba(255, 255, 255, 0.12) 75%, rgba(255, 255, 255, 0.04) 100%),
    linear-gradient(105deg, transparent 0%, transparent 52%, rgba(47, 83, 104, 0.1) 52%, rgba(47, 83, 104, 0.04) 100%),
    radial-gradient(circle at 76% 38%, rgba(47, 83, 104, 0.16), transparent 34%),
    radial-gradient(circle at 86% 64%, rgba(176, 0, 0, 0.06), transparent 28%);
  pointer-events: none;
}

.hero-ai-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.98;
  transform: translate3d(0, var(--hero-canvas-y, 0), 0) scale(1.02);
  transform-origin: center;
}

.hero-motion-label {
  position: absolute;
  right: clamp(20px, 5vw, 76px);
  bottom: clamp(24px, 5vw, 72px);
  z-index: 2;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100vw - 40px));
  color: rgba(16, 20, 25, 0.72);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  pointer-events: none;
}

.hero-motion-label span {
  border-left: 2px solid rgba(176, 0, 0, 0.58);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(8px);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.visual-panel {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(18, 24, 31, 0.74);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.main-panel {
  right: clamp(20px, 7vw, 100px);
  top: 23%;
  width: min(40vw, 500px);
  min-height: 320px;
  padding: 28px;
  transform: skewY(-4deg);
}

.code-panel {
  right: clamp(64px, 12vw, 190px);
  bottom: 14%;
  display: grid;
  gap: 8px;
  width: min(33vw, 420px);
  padding: 18px 20px;
  color: rgba(255, 255, 255, 0.8);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
}

.panel-label {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
}

.workflow-line {
  height: 4px;
  margin: 28px 0;
  background: linear-gradient(90deg, var(--brand-red), var(--electric), rgba(255, 255, 255, 0.12));
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  transform: skewY(4deg);
}

.workflow-grid span {
  min-height: 58px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 800;
}

.slash {
  position: absolute;
  width: 220px;
  height: 68px;
  transform: skewX(-34deg);
  opacity: 0.68;
}

.slash-one {
  right: 24%;
  top: 15%;
  background: rgba(176, 0, 0, 0.8);
}

.slash-two {
  right: 5%;
  bottom: 8%;
  background: rgba(47, 83, 104, 0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(76px, 11vw, 132px) clamp(20px, 5vw, 48px);
  color: var(--ink);
  transform: translate3d(0, var(--hero-content-y, 0), 0);
}

.hero-content::before {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--brand-red), var(--accent-blue));
}

.reveal-ready .scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 780ms ease,
    transform 780ms cubic-bezier(0.2, 0.72, 0.18, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-ready .scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow,
.section-kicker {
  color: var(--brand-red);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.65rem, 6.5vw, 5.65rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 18px 46px rgba(255, 255, 255, 0.86);
}

.hero-title span {
  display: block;
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 32px;
  color: #35424f;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions,
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.35;
}

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

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--brand-red-dark);
}

.cta-section .contact-panel .button.primary {
  background: var(--accent-blue);
  box-shadow: 0 12px 28px rgba(47, 83, 104, 0.2);
}

.cta-section .contact-panel .button.primary:hover,
.cta-section .contact-panel .button.primary:focus-visible {
  background: var(--black);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.dynamic-hero .button.secondary,
.visual-page .button.secondary {
  color: var(--ink);
  border-color: rgba(47, 83, 104, 0.24);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(47, 83, 104, 0.1);
}

.dynamic-hero .hero-actions .button.primary {
  background: var(--accent-blue);
  box-shadow: 0 12px 28px rgba(47, 83, 104, 0.18);
}

.dynamic-hero .hero-actions .button.primary:hover,
.dynamic-hero .hero-actions .button.primary:focus-visible {
  background: var(--black);
}

.button.ghost {
  color: var(--brand-red-dark);
  border-color: var(--line);
  background: var(--white);
}

.button.full {
  width: 100%;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 194px));
  gap: 12px;
  max-width: 680px;
  margin: 46px 0 0;
}

.hero-metrics div {
  padding: 16px 18px;
  border: 1px solid rgba(16, 20, 25, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(31, 47, 63, 0.12);
}

.hero-metrics dt {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.hero-metrics dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.section,
.band {
  padding: clamp(72px, 9vw, 112px) 0;
}

.band {
  background: var(--mist);
}

.band.warm {
  background: var(--surface-blue);
}

.dark-band {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(176, 0, 0, 0.12), transparent 34%),
    linear-gradient(135deg, #223949 0%, #31566b 66%, #203747 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(16, 20, 25, 0.12);
}

.dark-band .section-kicker {
  color: #ffb7b2;
}

.dark-band .lead-block,
.dark-band .lead-block p {
  color: rgba(255, 255, 255, 0.78);
}

.grid-band {
  background:
    linear-gradient(rgba(16, 20, 25, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 20, 25, 0.028) 1px, transparent 1px),
    var(--surface);
  background-size: 56px 56px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.intro h2 {
  max-width: 700px;
}

.lead-block {
  padding-left: clamp(22px, 3vw, 34px);
  border-left: 1px solid rgba(47, 83, 104, 0.18);
}

.dark-band .lead-block {
  border-left-color: rgba(255, 255, 255, 0.22);
}

.section-heading {
  display: grid;
  grid-template-columns: 164px minmax(0, 760px);
  gap: 12px clamp(28px, 5vw, 60px);
  max-width: none;
  margin-bottom: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(47, 83, 104, 0.16);
}

.section-heading .section-kicker {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 4px 0 0;
}

.section-heading h2,
.section-heading > p:not(.section-kicker) {
  grid-column: 2;
}

.section-heading.row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading.compact {
  max-width: none;
}

.section-heading h2,
.intro h2,
.cta-section h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3.7vw, 3.25rem);
  line-height: 1.18;
}

.section-heading p,
.lead-block,
.note,
.panel-note {
  color: var(--ink-soft);
}

.section-heading h2 {
  letter-spacing: 0;
}

.lead-block p:last-child {
  margin-bottom: 0;
}

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

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

.service-card,
.plan-card,
.article-card,
.usecase-grid article,
.contact-panel,
.source-box {
  border: 1px solid rgba(16, 20, 25, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 36px rgba(22, 37, 51, 0.06);
}

.service-card,
.plan-card,
.article-card,
.usecase-grid article {
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.service-card,
.article-card,
.usecase-grid article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(250, 252, 253, 0.98)),
    var(--white);
}

.service-card::before,
.plan-card::before,
.article-card::before,
.usecase-grid article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red), var(--accent-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.service-card:hover::before,
.plan-card:hover::before,
.article-card:hover::before,
.usecase-grid article:hover::before {
  transform: scaleX(1);
}

.service-card h3,
.plan-card h3,
.article-card h3,
.usecase-grid h3,
.timeline-item h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.45;
}

.service-card p,
.plan-card li,
.article-card p,
.usecase-grid p,
.timeline-item p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.card-icon,
.plan-label,
.article-date {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-blue);
  font-weight: 800;
  font-size: 0.82rem;
}

.card-icon,
.plan-label {
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(176, 0, 0, 0.28);
  color: var(--brand-red);
}

.plan-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 250, 252, 0.98)),
    var(--white);
}

.plan-card.featured {
  color: var(--white);
  border-color: rgba(47, 83, 104, 0.92);
  background:
    linear-gradient(135deg, rgba(176, 0, 0, 0.16), transparent 36%),
    linear-gradient(160deg, #243e50, #31566b 62%, #223847);
  box-shadow: 0 26px 76px rgba(35, 59, 76, 0.18);
  transform: translateY(-8px);
}

.plan-card.featured .plan-label {
  color: #c6e0f3;
  border-bottom-color: rgba(198, 224, 243, 0.55);
}

.plan-card.featured h3,
.plan-card.featured li,
.plan-card.featured .price,
.plan-card.featured .price span {
  color: var(--white);
}

.price {
  margin-bottom: 18px;
  color: var(--brand-red-dark);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
}

.price span {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.plan-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 1.1em;
}

.note {
  margin: 22px 0 0;
  font-size: 0.92rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(16, 20, 25, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 16px 48px rgba(22, 37, 51, 0.06);
}

.timeline-item {
  padding: 26px 24px 28px;
  border-top: 0;
  border-right: 1px solid rgba(16, 20, 25, 0.1);
}

.timeline-item:last-child {
  border-right: 0;
}

.timeline-item span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: var(--white);
  background: var(--accent-blue);
  border-radius: 999px;
  font-weight: 800;
}

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

.company-section {
  color: var(--ink);
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 46%, var(--surface-blue) 46%, #f8fbfd 100%);
  border-top: 1px solid rgba(47, 83, 104, 0.12);
  border-bottom: 1px solid rgba(47, 83, 104, 0.12);
}

.company-section .section-kicker {
  color: var(--brand-red);
}

.company-section p {
  color: #3c4a57;
}

.company-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.company-layout h2 {
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 3.7vw, 3.25rem);
  line-height: 1.18;
}

.company-table {
  margin: 0;
  border-top: 1px solid rgba(16, 20, 25, 0.12);
}

.company-table div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(16, 20, 25, 0.12);
}

.company-table dt {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
}

.company-table dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.article-card a {
  color: var(--ink);
}

.article-card a:hover,
.text-link:hover {
  color: var(--brand-red);
}

.text-link {
  color: var(--brand-red-dark);
  font-weight: 800;
}

.cta-section {
  padding: clamp(64px, 9vw, 104px) 0;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 30%, rgba(176, 0, 0, 0.26), transparent 34%),
    linear-gradient(120deg, #223949 0%, #31566b 62%, #203747 100%);
}

.cta-section .section-kicker {
  color: #ffb7b2;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.82);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.contact-panel {
  padding: 24px;
  color: var(--ink);
}

.contact-label {
  margin-bottom: 4px;
  color: var(--ink-soft) !important;
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-email {
  margin-bottom: 18px;
  color: var(--ink) !important;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 900;
  word-break: break-word;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label,
.privacy-check {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.5;
}

.form-field label span {
  color: var(--brand-red-dark);
  font-size: 0.78rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  line-height: 1.5;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(176, 0, 0, 0.22);
  border-color: var(--brand-red);
  background: var(--white);
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.privacy-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--brand-red);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.5em;
  color: var(--ink-soft) !important;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.5;
}

.form-status[data-status="success"] {
  color: #126b45 !important;
}

.form-status[data-status="error"] {
  color: var(--brand-red-dark) !important;
}

.panel-note {
  margin: 14px 0 0;
  font-size: 0.88rem;
}

.panel-note a {
  color: var(--brand-red-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  padding: 28px 0;
  color: var(--ink-soft);
  background: var(--surface);
  border-top: 1px solid rgba(16, 20, 25, 0.09);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.page-hero {
  padding: clamp(72px, 10vw, 120px) 0 56px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(176, 0, 0, 0.18), transparent 36%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #223949, #31566b 68%, #203747);
  background-size: auto, 64px 64px, 64px 64px, auto;
}

.page-hero .container {
  max-width: 880px;
}

.page-hero .section-kicker {
  color: #ffb7b2;
}

.page-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(260px, 1fr);
  gap: 42px;
  align-items: start;
}

.article-body {
  font-size: 1.02rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.article-body h2 {
  margin-top: 44px;
  margin-bottom: 14px;
  font-size: 1.65rem;
  line-height: 1.35;
}

.article-body p {
  color: var(--ink-soft);
}

.article-body .lead {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 650;
}

.article-body .point,
.article-body .note {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent-blue);
  border-radius: 6px;
  background: rgba(47, 83, 104, 0.08);
  color: var(--ink);
  font-weight: 700;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 10px;
  margin: 0 0 1.2em;
  padding-left: 1.35em;
  color: var(--ink-soft);
}

.article-body a,
.source-box a {
  color: var(--brand-red-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-meta {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.source-box {
  padding: 20px;
  overflow-wrap: anywhere;
}

.source-box h2,
.source-box h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.source-box ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.1em;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.share-button:hover,
.share-button:focus-visible {
  border-color: var(--brand-red);
  color: var(--brand-red-dark);
}

.visual-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #f8fafc;
}

.visual-header {
  position: fixed;
  inset: 0 0 auto;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(16, 20, 25, 0.1);
}

.visual-header .brand-copy,
.visual-header .site-nav {
  color: var(--ink);
}

.visual-header .nav-toggle {
  border-color: rgba(16, 20, 25, 0.14);
  background: var(--white);
}

.visual-header .nav-toggle span {
  background: var(--ink);
}

.visual-stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background: #f8fafc;
}

.ai-visual-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.visual-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9) 44%, rgba(255, 255, 255, 0.5) 76%, rgba(255, 255, 255, 0.64)),
    linear-gradient(135deg, rgba(176, 0, 0, 0.025), rgba(47, 83, 104, 0.09));
  pointer-events: none;
}

.visual-scanline {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.28;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 8px, rgba(16, 20, 25, 0.045) 9px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.visual-copy {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  max-width: 760px;
  min-height: 100vh;
  padding: 118px clamp(20px, 7vw, 96px) 72px;
}

.visual-copy h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 6vw, 6.4rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.visual-copy p:not(.eyebrow) {
  max-width: 620px;
  color: #3c4a57;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.visual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.visual-readout {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: clamp(22px, 5vw, 62px);
  z-index: 3;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 40px));
  color: rgba(16, 20, 25, 0.72);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
}

.visual-readout span {
  border-left: 2px solid rgba(176, 0, 0, 0.58);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(8px);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .visual-header .site-nav {
    background: rgba(255, 255, 255, 0.96);
  }

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

  .site-nav a {
    border-radius: var(--radius);
  }

  .hero {
    min-height: 760px;
  }

  .dynamic-hero {
    min-height: 790px;
  }

  .hero-visual {
    opacity: 0.42;
  }

  .dynamic-hero::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.62) 48%, rgba(255, 255, 255, 0.88)),
      radial-gradient(circle at 68% 44%, rgba(47, 83, 104, 0.16), transparent 36%),
      linear-gradient(135deg, rgba(176, 0, 0, 0.035), rgba(47, 83, 104, 0.11));
  }

  .hero-motion-label {
    right: 20px;
    bottom: 22px;
  }

  .main-panel {
    right: -130px;
    top: 39%;
    width: 520px;
  }

  .code-panel,
  .slash-two {
    display: none;
  }

  .two-column,
  .company-layout,
  .cta-inner,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section-heading .section-kicker,
  .section-heading h2,
  .section-heading > p:not(.section-kicker) {
    grid-column: 1;
    grid-row: auto;
  }

  .lead-block {
    padding-left: 0;
    border-left: 0;
  }

  .visual-stage::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74) 48%, rgba(255, 255, 255, 0.9)),
      linear-gradient(135deg, rgba(176, 0, 0, 0.03), rgba(47, 83, 104, 0.08));
  }

  .visual-copy {
    min-height: 72vh;
    padding-top: 104px;
    padding-bottom: 34px;
  }

  .visual-readout {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 3;
    margin: -18px 20px 34px;
  }

  .service-grid,
  .plan-grid,
  .article-grid,
  .timeline,
  .usecase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item {
    border-right: 0;
    border-bottom: 1px solid rgba(16, 20, 25, 0.1);
  }

  .timeline-item:nth-child(odd) {
    border-right: 1px solid rgba(16, 20, 25, 0.1);
  }

  .timeline-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .sidebar {
    position: static;
  }
}

@media (max-height: 760px) and (min-width: 921px) {
  .hero {
    min-height: calc(100vh - 118px);
  }

  .hero-content {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .hero h1 {
    max-width: 690px;
    font-size: clamp(2.5rem, 5vw, 4.1rem);
  }

  .hero-lead {
    margin-bottom: 22px;
  }

  .hero-metrics {
    display: none;
  }

  .main-panel {
    top: 22%;
    width: min(39vw, 420px);
    min-height: 250px;
    padding: 22px;
  }

  .workflow-grid span {
    min-height: 48px;
    padding: 12px;
  }

  .code-panel {
    display: none;
  }
}

@media (max-width: 620px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    min-height: 68px;
  }

  .brand {
    min-width: auto;
  }

  .brand-logo {
    width: 76px;
    height: 38px;
  }

  .brand-copy {
    display: none;
  }

  .hero {
    min-height: 730px;
  }

  .hero-content {
    padding-top: 54px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10.2vw, 3rem);
  }

  .page-hero h1 {
    max-width: 100%;
    font-size: 1.85rem;
    line-height: 1.24;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .page-hero p,
  .article-body,
  .source-box {
    max-width: 100%;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .main-panel {
    right: -260px;
    top: 47%;
    width: 520px;
  }

  .hero-metrics,
  .service-grid,
  .plan-grid,
  .article-grid,
  .timeline,
  .usecase-grid,
  .company-table div {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 22px;
  }

  .hero-metrics div {
    padding: 10px;
  }

  .plan-card.featured {
    transform: none;
  }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    border-right: 0;
  }

  .timeline-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(16, 20, 25, 0.1);
  }

  .timeline-item:last-child {
    border-bottom: 0;
  }

  .hero-metrics dd {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .hero-visual {
    opacity: 0.22;
  }

  .hero-motion-label {
    display: none;
  }

  .section-heading.row,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-actions .button {
    width: auto;
    flex: 1 1 0;
    min-height: 46px;
    padding: 10px;
    font-size: 0.9rem;
  }

  .visual-actions .button {
    width: auto;
    flex: 1 1 0;
  }

  .visual-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.55rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-ready .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
