/* =========================================================
   Flowless Landing Page
   ========================================================= */

:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f5f7fb;
  --color-bg-dark: #0d1b3e;

  --color-text: #12203f;
  --color-text-soft: #5f6b82;
  --color-border: #dce2ec;

  --color-primary: #2448ff;
  --color-primary-dark: #1734d6;
  --color-accent: #ff2f8b;

  --color-white: #ffffff;

  --shadow-soft: 0 16px 40px rgba(18, 32, 63, 0.09);
  --shadow-card: 0 10px 28px rgba(18, 32, 63, 0.08);
  --shadow-hover: 0 18px 45px rgba(18, 32, 63, 0.14);

  --radius-small: 10px;
  --radius-medium: 18px;
  --radius-large: 28px;

  --container-width: 1180px;
  --header-height: 76px;
}


/* =========================================================
   Reset
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family:
    Inter,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.025em;
}

section {
  position: relative;
}


/* =========================================================
   Shared layout
   ========================================================= */

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

.narrow-container {
  max-width: 860px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.section-heading > p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--color-text-soft);
  font-size: 1.08rem;
}

.section-label,
.eyebrow {
  margin-bottom: 18px;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}


/* =========================================================
   Buttons
   ========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  line-height: 1;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.site-nav a:focus-visible,
.demo-thumbnail:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid rgba(36, 72, 255, 0.28);
  outline-offset: 4px;
}

.button-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 12px 28px rgba(36, 72, 255, 0.24);
}

.button-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 16px 34px rgba(36, 72, 255, 0.3);
}

.button-secondary {
  border-color: var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
}

.button-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.button-light {
  background: var(--color-white);
  color: var(--color-primary-dark);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.button-light:hover {
  background: #f3f5ff;
}

.button-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--color-white);
}

.button-outline-light:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}


/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(220, 226, 236, 0.8);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo,
.footer-logo {
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.site-logo::after,
.footer-logo::after {
  content: ".";
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--color-text-soft);
  font-size: 0.94rem;
  font-weight: 650;
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--color-primary);
}

.site-nav .nav-language {
  color: var(--color-primary);
  font-weight: 750;
}

.site-nav .nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
}

.site-nav .nav-cta:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-text);
  font-weight: 750;
  cursor: pointer;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-toggle-icon {
  position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle-icon::before {
  top: -5px;
}

.menu-toggle-icon::after {
  top: 5px;
}

.nav-toggle:checked + .menu-toggle .menu-toggle-icon {
  background: transparent;
}

.nav-toggle:checked + .menu-toggle .menu-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle:checked + .menu-toggle .menu-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}


/* =========================================================
   Hero
   ========================================================= */

.hero {
  overflow: hidden;
  padding: 116px 0 108px;
  background:
    radial-gradient(
      circle at 80% 18%,
      rgba(36, 72, 255, 0.14),
      transparent 30%
    ),
    radial-gradient(
      circle at 20% 82%,
      rgba(255, 47, 139, 0.08),
      transparent 27%
    ),
    linear-gradient(180deg, #ffffff 0%, #f8f9fd 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: 80px;
  right: -90px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(36, 72, 255, 0.14);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 980px;
  margin-bottom: 26px;
  font-size: clamp(3rem, 6.2vw, 5.8rem);
  font-weight: 850;
}

.hero h1 span {
  display: block;
  color: var(--color-primary);
}

html[lang="ja"] .hero h1 {
  font-size: clamp(2.7rem, 5.2vw, 4.75rem);
  line-height: 1.16;
}

html[lang="ja"] .hero h1 span {
  margin-top: 0.5em;
  font-size: 0.6em;
  line-height: 1.35;
}

html[lang="ja"] .custom-hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 1.18;
}

.hero-description {
  max-width: 660px;
  margin-bottom: 34px;
  color: var(--color-text-soft);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}


/* =========================================================
   Problem section
   ========================================================= */

.problem-section {
  padding: 108px 0;
}

.problem-section .section-label {
  color: var(--color-accent);
}

.simple-workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0 40px;
}

.simple-workflow span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-bg-soft);
  font-weight: 750;
  text-align: center;
}

.problem-intro {
  margin-bottom: 30px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
}

.problem-content {
  padding: 34px;
  border-left: 5px solid var(--color-primary);
  border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
  background: var(--color-bg-soft);
}

.problem-content > p {
  margin-bottom: 20px;
  color: var(--color-text-soft);
  font-weight: 700;
}

.problem-quotes {
  display: grid;
  gap: 12px;
}

.problem-quotes blockquote {
  margin-bottom: 0;
  color: var(--color-text);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 780;
}


/* =========================================================
   Workflow
   ========================================================= */

.workflow-section {
  padding: 100px 0;
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.workflow-section h2 {
  max-width: 760px;
  margin-bottom: 52px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.workflow {
  display: grid;
  grid-template-columns:
    minmax(130px, 1fr)
    auto
    minmax(130px, 1fr)
    auto
    minmax(130px, 1fr)
    auto
    minmax(130px, 1fr);
  align-items: stretch;
  gap: 22px;
}

.workflow-step {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.06);
}

.workflow-step strong {
  display: block;
  margin: 8px 0 10px;
  font-size: 1.35rem;
}

.workflow-step p {
  margin: 0;
  line-height: 1.45;
}

.workflow-number {
  color: #8ea3ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.workflow-arrow {
  color: rgba(255, 255, 255, 0.48);
  font-size: 1.6rem;
}


/* =========================================================
   How it works
   ========================================================= */

.how-it-works-section {
  padding: 112px 0;
  background: var(--color-bg-soft);
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-card {
  display: flex;
  gap: 20px;
  min-height: 180px;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.step-card:last-child {
  grid-column: 1 / -1;
}

.step-number {
  display: inline-flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.92rem;
  font-weight: 800;
}

.step-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.step-card p {
  margin-bottom: 0;
  color: var(--color-text-soft);
}


/* =========================================================
   Demo section
   ========================================================= */

.demo-section {
  padding: 112px 0;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.demo-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.demo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.demo-card-wide {
  grid-column: 1 / -1;
}

.demo-card-copy {
  padding: 28px 30px 22px;
}

.demo-card-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.demo-card-copy p {
  margin-bottom: 0;
  color: var(--color-text-soft);
}

.demo-thumbnail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 32px 24px 72px;
  border-top: 1px solid var(--color-border);
  background: #eef1f7;
}

.demo-card-wide .demo-thumbnail {
  min-height: 500px;
}

.demo-thumbnail img {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: center top;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(18, 32, 63, 0.12);
  transition:
    transform 280ms ease,
    filter 280ms ease;
}

.demo-card-wide .demo-thumbnail img {
  max-width: 900px;
  max-height: 460px;
}

.demo-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 62, 0);
  transition: background 220ms ease;
  pointer-events: none;
}

.demo-thumbnail:hover img {
  transform: scale(1.015);
  filter: brightness(0.92);
}

.demo-thumbnail:hover::after {
  background: rgba(13, 27, 62, 0.06);
}

.play-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  place-items: center;
  border: 5px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 12px 30px rgba(13, 27, 62, 0.26);
  transition:
    transform 200ms ease,
    background-color 200ms ease;
}

.play-button span {
  margin-left: 4px;
  font-size: 1.4rem;
}

.demo-thumbnail:hover .play-button {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--color-primary-dark);
}

/* =========================================================
   Features
   ========================================================= */

.features-section {
  padding: 112px 0;
  background: var(--color-bg-soft);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  min-height: 240px;
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.feature-number {
  display: inline-block;
  margin-bottom: 50px;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.feature-card p {
  max-width: 440px;
  margin-bottom: 0;
  color: var(--color-text-soft);
}


/* =========================================================
   Featured insight
   ========================================================= */

.insight-section {
  padding: 96px 0;
}

.insight-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  padding: 46px 50px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-bg-soft);
}

.insight-card h2 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.insight-card p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--color-text-soft);
}

.insight-card .button {
  white-space: nowrap;
}


/* =========================================================
   Article pages
   ========================================================= */

.article-page {
  background: linear-gradient(180deg, #f8f9fd 0, #fff 440px);
}

.article-shell {
  width: min(calc(100% - 40px), 920px);
  margin-inline: auto;
  padding: 84px 0 110px;
}

.article-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
}

.article-back,
.language-switch {
  color: var(--color-primary);
  font-size: 0.92rem;
  font-weight: 750;
}

.article-back:hover,
.language-switch:hover {
  color: var(--color-primary-dark);
}

.article-header {
  max-width: 840px;
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
}

.article-header h1 {
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.article-lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--color-text-soft);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.article-body {
  max-width: 760px;
  margin-inline: auto;
  font-size: 1.06rem;
}

.article-body h2 {
  margin: 64px 0 22px;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body table {
  margin-bottom: 24px;
}

.article-body li + li {
  margin-top: 7px;
}

.article-body strong {
  color: var(--color-text);
}

.article-body blockquote {
  margin-left: 0;
  padding: 22px 26px;
  border-left: 5px solid var(--color-primary);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  background: var(--color-bg-soft);
  color: var(--color-text);
  font-weight: 680;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body code {
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: #edf0f7;
  font-size: 0.9em;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.article-body th,
.article-body td {
  padding: 13px 15px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--color-bg-soft);
}

.article-body hr {
  margin: 64px 0 34px;
  border: 0;
  border-top: 1px solid var(--color-border);
}

.article-body a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-cta {
  margin-top: 64px;
  padding: 34px;
  border-radius: var(--radius-medium);
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.article-cta strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-white);
  font-size: 1.35rem;
}

.article-cta p {
  color: rgba(255, 255, 255, 0.72);
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.article-cta .button {
  text-decoration: none;
}

.article-cta .button-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--color-white);
}


/* =========================================================
   CTA
   ========================================================= */

.cta-section {
  overflow: hidden;
  padding: 110px 0;
  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(255, 255, 255, 0.18),
      transparent 30%
    ),
    linear-gradient(135deg, #2448ff 0%, #132fce 100%);
  color: var(--color-white);
}

.cta-section::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -170px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

.cta-inner > p {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 750;
}

.cta-inner h2 {
  margin-bottom: 34px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.cta-section .button {
  min-height: 56px;
  padding: 16px 30px;
  font-size: 1rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}


/* =========================================================
   Customization page
   ========================================================= */

.custom-hero {
  overflow: hidden;
  padding: 108px 0 100px;
  background:
    radial-gradient(circle at 82% 18%, rgba(36, 72, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}

.custom-hero h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6vw, 5.4rem);
}

.custom-hero h1 span {
  color: var(--color-primary);
}

.custom-hero-copy {
  max-width: 760px;
  margin-bottom: 34px;
  color: var(--color-text-soft);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.custom-section {
  padding: 104px 0;
}

.custom-section-soft {
  background: var(--color-bg-soft);
}

.custom-intro {
  max-width: 820px;
  margin-bottom: 46px;
}

.custom-intro h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.custom-intro > p:last-child {
  margin-bottom: 0;
  color: var(--color-text-soft);
  font-size: 1.08rem;
}

.custom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.custom-card {
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.custom-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.custom-card p {
  margin-bottom: 0;
  color: var(--color-text-soft);
}

.scope-list {
  display: grid;
  gap: 16px;
}

.scope-item {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) 1fr;
  gap: 30px;
  padding: 28px 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-white);
}

.scope-item h3 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.scope-item p {
  margin-bottom: 0;
  color: var(--color-text-soft);
}

.scope-item-primary {
  border-color: rgba(36, 72, 255, 0.35);
  box-shadow: 0 10px 28px rgba(36, 72, 255, 0.08);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  padding: 26px;
  border-top: 4px solid var(--color-primary);
  border-radius: 0 0 var(--radius-medium) var(--radius-medium);
  background: var(--color-bg-soft);
}

.process-list span {
  display: block;
  margin-bottom: 24px;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.process-list h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.process-list p {
  margin-bottom: 0;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.source-note {
  padding: 38px 42px;
  border-left: 6px solid var(--color-accent);
  border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.source-note h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.source-note p {
  max-width: 840px;
  color: rgba(255, 255, 255, 0.72);
}

.source-note p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  padding: 62px 0 32px;
  background: #09142f;
  color: var(--color-white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--color-white);
}

.footer-inner > div:first-child p {
  max-width: 430px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  font-weight: 650;
  white-space: nowrap;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-links .nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
}

.footer-links .nav-cta:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}


.copyright {
  grid-column: 1 / -1;
  margin: 34px 0 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
}


/* =========================================================
   Responsive: tablet
   ========================================================= */

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .header-inner {
    position: relative;
  }

  .site-header.mobile-nav-ready .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header.mobile-nav-ready .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(9, 20, 47, 0.14);
  }

  .site-header.mobile-nav-ready .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-header.mobile-nav-ready .site-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .site-header.mobile-nav-ready .site-nav .nav-cta {
    margin-top: 6px;
    text-align: center;
  }

  .site-header:not(.mobile-nav-ready) {
    height: auto;
  }

  .site-header:not(.mobile-nav-ready) .header-inner {
    min-height: var(--header-height);
    height: auto;
    flex-wrap: wrap;
    padding-top: 10px;
  }

  .site-header:not(.mobile-nav-ready) .site-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 16px;
    padding: 8px 0 12px;
  }

  .site-header:not(.mobile-nav-ready) .site-nav a {
    display: inline-flex;
  }

  .hero {
    padding: 90px 0 86px;
  }

  .simple-workflow {
    grid-template-columns: 1fr;
  }

  .workflow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .workflow-step {
    min-height: 110px;
  }

  .workflow-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .steps-list,
  .demo-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .step-card:last-child,
  .demo-card-wide {
    grid-column: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 12px;
  }

  .copyright {
    grid-column: 1;
  }

  .insight-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .insight-card .button {
    justify-self: start;
  }

  .custom-grid,
  .process-list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .demo-thumbnail,
  .demo-card-wide .demo-thumbnail {
    min-height: 0;
    padding: 28px 20px;
  }

  .demo-thumbnail img,
  .demo-card-wide .demo-thumbnail img {
    width: 100%;
    max-width: 100%;
    max-height: none;
  }
  
}

@media (max-width: 600px) {
  .feature-card {
    min-height: 0;
    padding: 24px;
  }

  .feature-number {
    margin-bottom: 24px;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 60px;
  }

  .site-logo {
    font-size: 1.15rem;
  }

  .site-nav .nav-cta {
    padding: 8px 13px;
    font-size: 0.8rem;
  }
}

@media (max-width: 600px) {
  .problem-section,
  .workflow-section,
  .how-it-works-section,
  .demo-section,
  .features-section,
  .insight-section,
  .custom-section,
  .cta-section {
    padding: 56px 0;
  }

  .simple-workflow {
    gap: 12px;
    margin: 22px 0 30px;
  }

  .simple-workflow span {
    min-height: 64px;
    padding: 12px 16px;
  }
}

@media (max-width: 600px) {
  .step-card {
    gap: 16px;
    min-height: auto;
    padding: 20px;
  }

  .step-number {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
  }
}



/* =========================================================
   Responsive: mobile
   ========================================================= */

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--container-width));
  }

  .site-logo {
    font-size: 1rem;
  }

  .site-nav .nav-cta {
    padding: 9px 14px;
    font-size: 0.84rem;
  }

  .hero {
    padding: 72px 0 74px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 13vw, 4.4rem);
  }

  html[lang="ja"] .hero h1 {
    font-size: clamp(2.15rem, 9.5vw, 2.55rem);
  }

  html[lang="ja"] .hero h1 span {
    font-size: 0.72em;
  }

  html[lang="ja"] .custom-hero h1 {
    font-size: clamp(2.2rem, 9.5vw, 2.8rem);
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .problem-section,
  .workflow-section,
  .how-it-works-section,
  .demo-section,
  .features-section,
  .cta-section {
    padding: 78px 0;
  }

  .problem-content {
    padding: 24px;
  }

  .step-card {
    min-height: auto;
    padding: 22px;
  }

  .step-number {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .demo-card {
    border-radius: var(--radius-medium);
  }

  .demo-card-copy {
    padding: 24px 22px 18px;
  }

  .play-button {
    width: 58px;
    height: 58px;
    border-width: 4px;
  }

  .play-button span {
    font-size: 1.1rem;
  }
  .feature-card {
    min-height: auto;
    padding: 26px;
  }

  .feature-number {
    margin-bottom: 34px;
  }

  .footer-inner {
    gap: 28px;
  }

  .insight-card {
    padding: 28px 24px;
    border-radius: var(--radius-medium);
  }

  .article-shell {
    width: min(calc(100% - 28px), 920px);
    padding: 48px 0 78px;
  }

  .article-tools {
    margin-bottom: 34px;
  }

  .article-header {
    margin-bottom: 38px;
    padding-bottom: 34px;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-body h2 {
    margin-top: 48px;
  }

  .article-body table {
    display: block;
    overflow-x: auto;
  }

  .article-cta {
    padding: 26px 22px;
  }

  .article-cta-actions {
    flex-direction: column;
  }

  .article-cta .button {
    width: 100%;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .button {
    width: 100%;
  }

  .custom-hero {
    padding: 72px 0 74px;
  }

  .custom-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .scope-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px;
  }

  .source-note {
    padding: 30px 24px;
  }
}



/* =========================================================
   Homepage typography: clearer type hierarchy (EN / JA)
   Scoped to the homepage so Help, Insights and other pages
   retain their existing design.
   ========================================================= */

.home-page {
  font-size: 17px;
  line-height: 1.75;
}

.home-page .site-nav {
  gap: clamp(12px, 1.5vw, 24px);
}

.home-page .site-nav a {
  font-size: 1rem;
}

.home-page .section-label,
.home-page .eyebrow {
  font-size: 0.9rem;
  line-height: 1.5;
  letter-spacing: 0.11em;
}

.home-page .hero h1 span {
  margin-top: 0.22em;
  font-size: 0.66em;
  line-height: 1.25;
}

html[lang="ja"] .home-page .hero h1 span {
  margin-top: 0.43em;
  font-size: 0.62em;
  line-height: 1.38;
}

.home-page .hero-description {
  max-width: 730px;
  font-size: clamp(1.18rem, 1.7vw, 1.4rem);
  line-height: 1.8;
}

.home-page .simple-workflow span {
  font-size: 1.04rem;
  line-height: 1.5;
}

.home-page .problem-content > p {
  font-size: 1.08rem;
  line-height: 1.75;
}

.home-page .problem-content > p:last-child {
  margin-top: 22px;
  margin-bottom: 0;
}

.home-page .problem-quotes blockquote {
  font-size: clamp(1.27rem, 2.4vw, 1.75rem);
  line-height: 1.45;
}

.home-page .section-heading > p:last-child {
  font-size: 1.12rem;
  line-height: 1.75;
}

.home-page .workflow-step p,
.home-page .step-card p,
.home-page .demo-card-copy p,
.home-page .feature-card p,
.home-page .insight-card p:last-child {
  font-size: 1.06rem;
  line-height: 1.7;
}

.home-page .cta-inner > p {
  font-size: 1.08rem;
}

@media (max-width: 900px) {
  .home-page .site-nav a {
    font-size: 1.04rem;
  }
}

@media (max-width: 600px) {
  .home-page .hero h1 span {
    margin-top: 0.28em;
    font-size: 0.72em;
  }

  html[lang="ja"] .home-page .hero h1 span {
    margin-top: 0.45em;
    font-size: 0.72em;
  }

  .home-page .hero-description {
    font-size: 1.12rem;
    line-height: 1.75;
  }

  .home-page .section-label,
  .home-page .eyebrow {
    font-size: 0.88rem;
    letter-spacing: 0.08em;
  }

  .home-page .simple-workflow span {
    font-size: 1rem;
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
