:root {
  --bg: #f3f6f4;
  --bg-alt: #ffffff;
  --ink: #122018;
  --ink-soft: #2b3d32;
  --muted: #435248;
  --muted-strong: #3f4f45;
  --lead: #26342b;
  --body-soft: #314137;
  --brand: #0f6b42;
  --brand-2: #2c9665;
  --accent: #ff8a2b;
  --line: #d8e3da;
  --header-bg: rgba(243, 246, 244, 0.8);
  --header-line: rgba(216, 227, 218, 0.7);
  --panel-start: rgba(255, 255, 255, 0.98);
  --panel-end: rgba(243, 248, 244, 0.92);
  --hero-media-bg: #f8fcf9;
  --hero-media-line: #d3e1d8;
  --showcase-bg: #f5faf7;
  --showcase-line: #d0ded5;
  --ghost-bg: #ecf4ef;
  --ghost-text: #0f6b42;
  --ghost-line: #c8dacd;
  --table-head-bg: #ecf4ef;
  --footer-text: #4c5d53;
  --row-muted: #46584d;
  --body-grad-a: #ffffff;
  --body-grad-b: #f3f6f4;
  --body-grad-c: #eef4f0;
  --shadow: 0 20px 45px rgba(15, 36, 26, 0.08);
  --radius: 22px;
}

html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0f1512;
  --bg-alt: #121b16;
  --ink: #e6f2ea;
  --ink-soft: #d7e9de;
  --muted: #b3c7ba;
  --muted-strong: #c1d4c8;
  --lead: #d4e5db;
  --body-soft: #bdd1c4;
  --line: #304237;
  --header-bg: rgba(12, 18, 15, 0.84);
  --header-line: rgba(58, 80, 67, 0.7);
  --panel-start: rgba(24, 34, 29, 0.96);
  --panel-end: rgba(14, 20, 17, 0.92);
  --hero-media-bg: #152119;
  --hero-media-line: #33493c;
  --showcase-bg: #18231c;
  --showcase-line: #32463a;
  --ghost-bg: #1b2b22;
  --ghost-text: #d3eadc;
  --ghost-line: #395343;
  --table-head-bg: #1c2c23;
  --footer-text: #9cb2a5;
  --row-muted: #9aafa3;
  --body-grad-a: #111915;
  --body-grad-b: #0f1512;
  --body-grad-c: #0b110e;
  --shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

html[data-theme='dark'] .bg-orb {
  opacity: 0.2;
}

html[data-theme='dark'] .pie-chart {
  background: conic-gradient(var(--accent) 0 6%, #3a4a41 6% 100%);
  box-shadow: inset 0 0 0 1px #4a5d52, 0 14px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme='dark'] .logo {
  color: #e6f2ea;
}

html[data-theme='dark'] nav a {
  color: #c4d8cc;
}

html[data-theme='dark'] .store-card,
html[data-theme='dark'] .showcase-card,
html[data-theme='dark'] .hero-media,
html[data-theme='dark'] .pillar,
html[data-theme='dark'] .feature-card,
html[data-theme='dark'] .partner-card,
html[data-theme='dark'] .code-card,
html[data-theme='dark'] .tone-box,
html[data-theme='dark'] .problem,
html[data-theme='dark'] .cta {
  border-color: #3a4d42;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 20%, var(--body-grad-a) 0%, var(--body-grad-b) 35%, var(--body-grad-c) 100%);
  line-height: 1.45;
  overflow-x: hidden;
}

html:lang(zh) body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

html:lang(ja) body {
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
}

html:lang(hi) body {
  font-family: "Noto Sans Devanagari", "Kohinoor Devanagari", "Mangal", sans-serif;
}

html:lang(bn) body {
  font-family: "Noto Sans Bengali", "Bangla Sangam MN", "Vrinda", sans-serif;
}

html:lang(ta) body {
  font-family: "Noto Sans Tamil", "InaiMathi", "Latha", sans-serif;
}

html:lang(zh) h1,
html:lang(zh) h2,
html:lang(zh) h3,
html:lang(ja) h1,
html:lang(ja) h2,
html:lang(ja) h3,
html:lang(hi) h1,
html:lang(hi) h2,
html:lang(hi) h3,
html:lang(bn) h1,
html:lang(bn) h2,
html:lang(bn) h3,
html:lang(ta) h1,
html:lang(ta) h2,
html:lang(ta) h3 {
  font-family: inherit;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.4;
  z-index: -1;
}

.orb-a {
  width: 340px;
  height: 340px;
  background: #9ecfb1;
  top: -90px;
  left: -80px;
}

.orb-b {
  width: 320px;
  height: 320px;
  background: #ffc08e;
  bottom: -100px;
  right: -60px;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

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

.nav {
  min-height: 74px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  text-decoration: none;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--brand);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

nav a:hover,
nav a:focus-visible {
  color: var(--brand);
}

nav a.nav-cta {
  color: #fff;
  font-size: 0.9rem;
  padding: 0.62rem 1rem;
}

nav a.nav-cta:hover,
nav a.nav-cta:focus-visible {
  color: #fff;
}

.eco-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.9rem;
}

.eco-switch input {
  accent-color: var(--brand);
  width: 18px;
  height: 18px;
}

.top-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}

.back-link {
  font-size: 0.86rem;
  padding: 0.5rem 0.85rem;
  white-space: nowrap;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.language-switch select {
  font: inherit;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.35rem 0.45rem;
}

main {
  padding-bottom: 48px;
}

section {
  margin-block: 74px;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.65rem);
}

h3 {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
}

p,
li,
small,
span,
a,
button,
input {
  font-size: clamp(1rem, 1vw, 1.05rem);
}

p code {
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
  background: #e9f3ec;
  border: 1px solid #c7dbcf;
  padding: 0.06rem 0.35rem;
  border-radius: 8px;
}

.kicker {
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

.lead {
  max-width: 67ch;
  color: var(--lead);
  font-size: clamp(1.05rem, 1.6vw, 1.23rem);
}

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

.hero-media {
  margin: 28px 0 0;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--hero-media-line);
  background: var(--hero-media-bg);
  box-shadow: var(--shadow);
}

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

.hero-media figcaption {
  margin-top: 10px;
  font-weight: 700;
  color: var(--muted-strong);
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.82rem 1.24rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(130deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 12px 24px rgba(12, 94, 57, 0.25);
}

.btn-ghost {
  background: var(--ghost-bg);
  color: var(--ghost-text);
  border: 1px solid var(--ghost-line);
}

.pillars {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pillar,
.feature-card,
.path-card,
.arch-card,
.sync-card,
.partner-card,
.code-card,
.tone-box,
.problem,
.cta,
.sos-panel {
  background: linear-gradient(150deg, var(--panel-start), var(--panel-end));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pillar {
  padding: 18px;
}

.pillar p {
  color: var(--muted);
  margin-bottom: 6px;
}

.problem {
  padding: clamp(18px, 3vw, 34px);
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 18px;
}

.problem ul {
  margin: 14px 0 0;
  padding-inline-start: 20px;
}

.pie-wrap {
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 14px;
}

.pie-chart {
  width: clamp(190px, 26vw, 250px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 6%, #dce5df 6% 100%);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: inset 0 0 0 1px #c8d7ce, 0 14px 28px rgba(35, 49, 40, 0.18);
}

.pie-chart::before {
  content: "";
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--hero-media-bg);
  position: absolute;
}

.pie-chart span {
  position: relative;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.paths {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 15px;
  align-items: center;
}

.path-card {
  padding: 20px;
}

.path-card small {
  color: var(--brand);
  font-weight: 700;
}

.backend-pill {
  border: 2px dashed #9dc9b0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  color: var(--brand);
  text-align: center;
}

.clinical-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.showcase-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.showcase-card {
  margin: 0;
  border-radius: 18px;
  border: 1px solid var(--showcase-line);
  background: var(--showcase-bg);
  box-shadow: 0 10px 24px rgba(15, 36, 26, 0.08);
  overflow: hidden;
}

.showcase-card img {
  width: 100%;
  display: block;
}

.showcase-card figcaption {
  padding: 12px 14px 14px;
  font-weight: 700;
  color: var(--ink-soft);
}

.feature-card {
  padding: 20px;
}

.feature-card p {
  color: var(--body-soft);
}

.sos-panel {
  margin-top: 20px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  background: radial-gradient(circle at 14% 8%, #183123, #0f1512 80%);
  color: #e6f7ee;
  border-color: #274535;
}

.sos-panel .kicker {
  color: #6ce0a2;
}

.sos-panel ul {
  margin: 14px 0 0;
  padding-inline-start: 20px;
}

.sos-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #2f4938;
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.35);
}

.sos-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timer-badge {
  position: absolute;
  inset-inline-end: 12px;
  bottom: 12px;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #eaf6ff;
  background: rgba(8, 21, 35, 0.72);
  border: 1px solid rgba(131, 186, 255, 0.65);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
}

.timeline {
  position: relative;
  margin-top: 18px;
  padding: 0 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 24px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #bfd8c8, #8fbe9f 74%, #fa9f4f 88%, #eb5f40 100%);
}

.timeline span {
  display: grid;
  justify-items: center;
  gap: 22px;
  font-weight: 700;
  color: #34443a;
}

.timeline span::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #f2f8f4;
  background: #4c9f70;
  z-index: 1;
}

.timeline span:nth-child(4)::before {
  background: var(--accent);
}

.jitai-text {
  margin-top: 16px;
  max-width: 70ch;
}

.arch-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.arch-card {
  padding: 20px;
}

.arch-card p {
  margin: 0;
}

.sync-card {
  margin-top: 16px;
  padding: 22px;
  border-left: 6px solid var(--accent);
}

.security-layout {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.code-card,
.partner-card {
  padding: 20px;
}

.partner-card img {
  width: 100%;
  border-radius: 14px;
  display: block;
  margin-bottom: 12px;
  border: 1px solid #d3e2d8;
}

.code-card pre {
  margin: 0;
  overflow-x: auto;
  border-radius: 14px;
  background: #0f1e16;
  color: #d7fbe6;
  padding: 16px;
  border: 1px solid #214433;
}

.code-card code {
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.87rem;
}

.tone-box {
  margin-top: 18px;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

#tone-message {
  margin: 0;
  max-width: 60ch;
}

.language-table {
  margin-top: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  box-shadow: var(--shadow);
}

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

.row span {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.row span:first-child {
  border-inline-end: 1px solid var(--line);
  color: var(--row-muted);
  text-decoration: line-through;
}

.row.head span {
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  background: var(--table-head-bg);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.pipeline article {
  padding: 14px 12px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid #bfd4c6;
  background: linear-gradient(150deg, #ffffff, #f0f7f2);
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(18, 52, 35, 0.08);
}

.pipeline article:nth-child(4) {
  border-color: #ffbc84;
  box-shadow: 0 10px 20px rgba(255, 138, 43, 0.24);
}

.cta {
  padding: clamp(22px, 4vw, 36px);
  background: linear-gradient(130deg, var(--panel-start), var(--panel-end) 44%, var(--hero-media-bg) 100%);
}

.store-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.store-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: 0 12px 24px rgba(18, 52, 35, 0.08);
}

.store-card h3 {
  margin: 4px 0;
}

.store-card img {
  width: 168px;
  height: 168px;
  image-rendering: pixelated;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #d5e2da;
  padding: 8px;
}

.footer {
  padding: 8px 0 40px;
  color: var(--footer-text);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
}

.footer a {
  color: var(--ghost-text);
  text-decoration: none;
  font-weight: 700;
}

.footer a:hover,
.footer a:focus-visible {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

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

html.eco-mode .bg-orb {
  display: none;
}

html.eco-mode .site-header {
  backdrop-filter: none;
}

html.eco-mode .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

html.eco-mode .btn:hover,
html.eco-mode .btn:focus-visible {
  transform: none;
}

html.eco-mode .hero-media,
html.eco-mode .pillar,
html.eco-mode .feature-card,
html.eco-mode .showcase-card,
html.eco-mode .store-card,
html.eco-mode .partner-card,
html.eco-mode .code-card,
html.eco-mode .tone-box,
html.eco-mode .problem,
html.eco-mode .cta {
  box-shadow: none;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .pillars,
  .clinical-grid,
  .showcase-grid,
  .arch-grid,
  .pipeline,
  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .problem,
  .security-layout,
  .sos-panel {
    grid-template-columns: 1fr;
  }

  .paths {
    grid-template-columns: 1fr;
  }

  .backend-pill {
    width: fit-content;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  section {
    margin-block: 56px;
  }

  .nav {
    min-height: 66px;
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-direction: column;
  }

  nav {
    gap: 10px;
  }

  .eco-switch {
    margin-inline-start: 0;
  }

  .top-controls {
    margin-inline-start: 0;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .pillars,
  .clinical-grid,
  .showcase-grid,
  .arch-grid,
  .pipeline,
  .store-grid,
  .row {
    grid-template-columns: 1fr;
  }

  .row span:first-child {
    border-inline-end: 0;
    border-bottom: 1px dashed var(--line);
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 18px;
  }

  .timeline::before {
    left: 8%;
    right: 8%;
  }
}
