@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+JP:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap");

:root {
  color-scheme: light dark;
  --radius: 16px;
  --font-display: "Outfit", "IBM Plex Sans JP", sans-serif;
  --font-body: "IBM Plex Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --btn-ink: #04101d;
  --white: #fff;

  /* Light (default for browsers without prefers-color-scheme) */
  --bg: #f3f7fb;
  --bg-mid: #e7eef7;
  --bg-end: #dce6f2;
  --panel: #ffffff;
  --line: rgba(15, 40, 70, 0.12);
  --text: #0c1a2b;
  --muted: #4d647a;
  --cyan: #0891b2;
  --blue: #2563eb;
  --green: #0d9f6e;
  --glow-a: rgba(8, 145, 178, 0.12);
  --glow-b: rgba(37, 99, 235, 0.1);
  --nav-bg: rgba(243, 247, 251, 0.86);
  --card-bg: rgba(255, 255, 255, 0.78);
  --outline-bg: rgba(12, 40, 70, 0.03);
  --outline-hover: rgba(8, 145, 178, 0.08);
  --node-bg: #ffffff;
  --eyebrow: #0e7490;
  --lead: #334155;
  --gradient-start: #0c1a2b;
  --gradient-mid: #0891b2;
  --gradient-end: #2563eb;
  --ring: rgba(8, 145, 178, 0.22);
  --tag: #0f766e;
  --lab-band: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(8, 145, 178, 0.05));
  --cta-bg: linear-gradient(135deg, #e8f1fb, #d9e8f6);
  --shadow: 0 12px 36px rgba(15, 40, 70, 0.08);
  --icon-bg: rgba(8, 145, 178, 0.1);
  --icon-border: rgba(8, 145, 178, 0.22);
  --compare-old: #64748b;
  --flow-bg: rgba(12, 40, 70, 0.03);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06111f;
    --bg-mid: #081628;
    --bg-end: #06101d;
    --panel: #0d223f;
    --line: rgba(255, 255, 255, 0.12);
    --text: #eef7ff;
    --muted: #9fb3c8;
    --cyan: #37d6ff;
    --blue: #4d7eff;
    --green: #42dfa2;
    --glow-a: rgba(55, 214, 255, 0.12);
    --glow-b: rgba(77, 126, 255, 0.12);
    --nav-bg: rgba(6, 17, 31, 0.78);
    --card-bg: rgba(255, 255, 255, 0.03);
    --outline-bg: rgba(255, 255, 255, 0.03);
    --outline-hover: rgba(55, 214, 255, 0.06);
    --node-bg: rgba(13, 34, 63, 0.9);
    --eyebrow: #bcefff;
    --lead: #c7d8e8;
    --gradient-start: #ffffff;
    --gradient-mid: #37d6ff;
    --gradient-end: #8eb1ff;
    --ring: rgba(55, 214, 255, 0.16);
    --tag: #93f3ca;
    --lab-band: linear-gradient(135deg, rgba(75, 124, 255, 0.1), rgba(56, 215, 255, 0.04));
    --cta-bg: linear-gradient(135deg, #10294c, #0a1930);
    --shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
    --icon-bg: rgba(55, 214, 255, 0.08);
    --icon-border: rgba(55, 214, 255, 0.2);
    --compare-old: #91a5bb;
    --flow-bg: rgba(255, 255, 255, 0.03);
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f7fb;
  --bg-mid: #e7eef7;
  --bg-end: #dce6f2;
  --panel: #ffffff;
  --line: rgba(15, 40, 70, 0.12);
  --text: #0c1a2b;
  --muted: #4d647a;
  --cyan: #0891b2;
  --blue: #2563eb;
  --green: #0d9f6e;
  --glow-a: rgba(8, 145, 178, 0.12);
  --glow-b: rgba(37, 99, 235, 0.1);
  --nav-bg: rgba(243, 247, 251, 0.86);
  --card-bg: rgba(255, 255, 255, 0.78);
  --outline-bg: rgba(12, 40, 70, 0.03);
  --outline-hover: rgba(8, 145, 178, 0.08);
  --node-bg: #ffffff;
  --eyebrow: #0e7490;
  --lead: #334155;
  --gradient-start: #0c1a2b;
  --gradient-mid: #0891b2;
  --gradient-end: #2563eb;
  --ring: rgba(8, 145, 178, 0.22);
  --tag: #0f766e;
  --lab-band: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(8, 145, 178, 0.05));
  --cta-bg: linear-gradient(135deg, #e8f1fb, #d9e8f6);
  --shadow: 0 12px 36px rgba(15, 40, 70, 0.08);
  --icon-bg: rgba(8, 145, 178, 0.1);
  --icon-border: rgba(8, 145, 178, 0.22);
  --compare-old: #64748b;
  --flow-bg: rgba(12, 40, 70, 0.03);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #06111f;
  --bg-mid: #081628;
  --bg-end: #06101d;
  --panel: #0d223f;
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef7ff;
  --muted: #9fb3c8;
  --cyan: #37d6ff;
  --blue: #4d7eff;
  --green: #42dfa2;
  --glow-a: rgba(55, 214, 255, 0.12);
  --glow-b: rgba(77, 126, 255, 0.12);
  --nav-bg: rgba(6, 17, 31, 0.78);
  --card-bg: rgba(255, 255, 255, 0.03);
  --outline-bg: rgba(255, 255, 255, 0.03);
  --outline-hover: rgba(55, 214, 255, 0.06);
  --node-bg: rgba(13, 34, 63, 0.9);
  --eyebrow: #bcefff;
  --lead: #c7d8e8;
  --gradient-start: #ffffff;
  --gradient-mid: #37d6ff;
  --gradient-end: #8eb1ff;
  --ring: rgba(55, 214, 255, 0.16);
  --tag: #93f3ca;
  --lab-band: linear-gradient(135deg, rgba(75, 124, 255, 0.1), rgba(56, 215, 255, 0.04));
  --cta-bg: linear-gradient(135deg, #10294c, #0a1930);
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  --icon-bg: rgba(55, 214, 255, 0.08);
  --icon-border: rgba(55, 214, 255, 0.2);
  --compare-old: #91a5bb;
  --flow-bg: rgba(255, 255, 255, 0.03);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size-adjust: from-font;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, var(--glow-a), transparent 30%),
    radial-gradient(circle at 92% 12%, var(--glow-b), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-mid) 60%, var(--bg-end));
  line-height: 1.75;
  transition: background 0.25s ease, color 0.25s ease;
}

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

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

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--outline-bg);
  color: var(--text);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  padding: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  border-color: color-mix(in srgb, var(--cyan) 55%, transparent);
  background: var(--outline-hover);
}

.theme-toggle-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  background: currentColor;
  mask: var(--theme-icon) center / contain no-repeat;
  -webkit-mask: var(--theme-icon) center / contain no-repeat;
}

/* Show sun when dark (click → light), moon when light (click → dark) */
.theme-toggle {
  --theme-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M21 14.5A8.5 8.5 0 0 1 9.5 3 7 7 0 1 0 21 14.5z'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  .theme-toggle:not([data-theme-current="light"]) {
    --theme-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E");
  }
}

.theme-toggle[data-theme-current="dark"] {
  --theme-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E");
}

.theme-toggle[data-theme-current="light"] {
  --theme-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M21 14.5A8.5 8.5 0 0 1 9.5 3 7 7 0 1 0 21 14.5z'/%3E%3C/svg%3E");
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 140px;
  flex: 0 0 auto;
}

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

@media (max-width: 560px) {
  .brand-logo {
    height: 26px;
    max-width: 110px;
  }

  .brand-text {
    font-size: 0.95rem;
  }
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.875rem;
}

.nav-links a:hover {
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  color: var(--btn-ink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--cyan) 35%, transparent);
}

.btn-outline {
  border-color: var(--line);
  background: var(--outline-bg);
}

.btn-outline:hover {
  border-color: color-mix(in srgb, var(--cyan) 55%, transparent);
  background: var(--outline-hover);
}

/* Hero */
.hero {
  min-height: min(100vh, 820px);
  display: grid;
  align-items: center;
  padding: 88px 0 64px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--eyebrow);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

h1,
h2,
h3,
.brand {
  font-family: var(--font-display);
}

h1 {
  font-size: clamp(2.75rem, 6.5vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 16px 0;
  font-weight: 800;
}

.gradient {
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.125rem;
  color: var(--lead);
  max-width: 40rem;
  margin: 0;
}

.actions,
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Visual: cycle / lab orb */
.hero-visual,
.orb {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
}

.orb {
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
  margin: auto;
  min-height: 0;
}

.orb::before,
.orb::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--ring);
}

.orb::before {
  inset: 6%;
}

.orb::after {
  inset: 20%;
}

.circle,
.core {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--cyan) 95%, white), color-mix(in srgb, var(--blue) 88%, white));
  color: var(--btn-ink);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.25;
  z-index: 2;
  position: relative;
}

.ring,
.ring2 {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--ring);
}

.ring {
  width: 400px;
  height: 400px;
}

.ring2 {
  width: 480px;
  height: 480px;
}

.mini,
.node {
  position: absolute;
  z-index: 3;
  min-width: 110px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--node-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

.m1,
.n1 {
  top: 5%;
  left: 35%;
}
.m2,
.n2 {
  top: 26%;
  right: 0;
}
.m3,
.n3 {
  bottom: 20%;
  right: 3%;
}
.m4,
.n4 {
  bottom: 4%;
  left: 34%;
}
.m5,
.n5 {
  bottom: 22%;
  left: 0;
}
.m6,
.n6 {
  top: 27%;
  left: 0;
}

/* Sections */
section {
  padding: 88px 0;
}

.section-head {
  max-width: 46rem;
  margin-bottom: 40px;
}

.kicker {
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-display);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 10px 0 12px;
  font-weight: 700;
}

.sub {
  color: var(--muted);
  font-size: 1.0625rem;
  margin: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card h3 {
  font-size: 1.25rem;
  margin: 12px 0 8px;
  font-weight: 700;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
}

/* Compare / flow / layers */
.compare {
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.compare-row:last-child {
  border-bottom: 0;
}

.arrow {
  text-align: center;
  color: var(--cyan);
  font-weight: 800;
  font-size: 1.25rem;
}

.old {
  color: var(--compare-old);
}

.new {
  font-weight: 600;
}

.agent-card {
  position: relative;
  overflow: hidden;
}

.flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  align-items: stretch;
}

.flow .step,
.flow-step {
  background: var(--flow-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

.flow .step b,
.flow-step strong {
  display: block;
  color: var(--text);
  font-size: 0.9375rem;
  margin-bottom: 4px;
  font-family: var(--font-display);
}

.arch-figure {
  margin: 0 auto;
  width: min(920px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--arch-figure-bg, #fff);
  line-height: 0;
}

.arch-figure img,
.arch-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1536 / 1024;
  object-fit: contain;
}

.arch-img-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --arch-figure-bg: #0b1626;
  }

  :root:not([data-theme="light"]) .arch-img-light {
    display: none;
  }

  :root:not([data-theme="light"]) .arch-img-dark {
    display: block;
  }
}

html[data-theme="light"] {
  --arch-figure-bg: #fff;
}

html[data-theme="light"] .arch-img-light {
  display: block;
}

html[data-theme="light"] .arch-img-dark {
  display: none;
}

html[data-theme="dark"] {
  --arch-figure-bg: #0b1626;
}

html[data-theme="dark"] .arch-img-light {
  display: none;
}

html[data-theme="dark"] .arch-img-dark {
  display: block;
}

.layer-stack {
  display: grid;
  gap: 10px;
}

.layer {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--flow-bg);
}

.layer strong {
  font-size: 1.0625rem;
  font-family: var(--font-display);
}

.layer span {
  color: var(--muted);
}

.tag {
  display: inline-block;
  padding: 4px 0;
  color: var(--tag);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.usecase-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.usecase .tag {
  margin-bottom: 0;
}

.usecase h3 {
  margin-top: 0;
}

.usecase-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  line-height: 0;
  border: 1px solid transparent;
}

.usecase-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.usecase-icon-factory {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.28);
}

.usecase-icon-building {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.28);
}

.usecase-icon-disaster {
  color: #d97706;
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.28);
}

.usecase-icon-home {
  color: #0d9488;
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(13, 148, 136, 0.28);
}

.usecase-icon-logistics {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.28);
}

.usecase-icon-health {
  color: #e11d48;
  background: rgba(225, 29, 72, 0.12);
  border-color: rgba(225, 29, 72, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .usecase-icon-factory {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
  }

  :root:not([data-theme="light"]) .usecase-icon-building {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.14);
    border-color: rgba(96, 165, 250, 0.32);
  }

  :root:not([data-theme="light"]) .usecase-icon-disaster {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.3);
  }

  :root:not([data-theme="light"]) .usecase-icon-home {
    color: #2dd4bf;
    background: rgba(45, 212, 191, 0.12);
    border-color: rgba(45, 212, 191, 0.3);
  }

  :root:not([data-theme="light"]) .usecase-icon-logistics {
    color: #c4b5fd;
    background: rgba(196, 181, 253, 0.14);
    border-color: rgba(196, 181, 253, 0.32);
  }

  :root:not([data-theme="light"]) .usecase-icon-health {
    color: #fb7185;
    background: rgba(251, 113, 133, 0.14);
    border-color: rgba(251, 113, 133, 0.32);
  }
}

html[data-theme="dark"] .usecase-icon-factory {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}

html[data-theme="dark"] .usecase-icon-building {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.14);
  border-color: rgba(96, 165, 250, 0.32);
}

html[data-theme="dark"] .usecase-icon-disaster {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
}

html[data-theme="dark"] .usecase-icon-home {
  color: #2dd4bf;
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.3);
}

html[data-theme="dark"] .usecase-icon-logistics {
  color: #c4b5fd;
  background: rgba(196, 181, 253, 0.14);
  border-color: rgba(196, 181, 253, 0.32);
}

html[data-theme="dark"] .usecase-icon-health {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.14);
  border-color: rgba(251, 113, 133, 0.32);
}

html[data-theme="light"] .usecase-icon-factory {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.28);
}

html[data-theme="light"] .usecase-icon-building {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.28);
}

html[data-theme="light"] .usecase-icon-disaster {
  color: #d97706;
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.28);
}

html[data-theme="light"] .usecase-icon-home {
  color: #0d9488;
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(13, 148, 136, 0.28);
}

html[data-theme="light"] .usecase-icon-logistics {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.28);
}

html[data-theme="light"] .usecase-icon-health {
  color: #e11d48;
  background: rgba(225, 29, 72, 0.12);
  border-color: rgba(225, 29, 72, 0.28);
}

.lab,
.lab-band {
  background: var(--lab-band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.roadmap .card {
  min-height: 200px;
}

.year {
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
}

.cta {
  text-align: center;
  padding: 64px 32px;
  border-radius: 20px;
  background: var(--cta-bg);
  border: 1px solid var(--line);
}

.cta .actions,
.cta .hero-actions {
  justify-content: center;
}

/* Lab-specific */
.agenda {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.agenda:last-child {
  border-bottom: 0;
}

.time {
  font-weight: 700;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.875rem;
}

.agenda b {
  display: block;
  font-size: 1.0625rem;
  font-family: var(--font-display);
}

.agenda span {
  color: var(--muted);
}

.flow-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.member-card,
.app-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.app-card {
  gap: 0;
  padding: 22px 22px 20px;
}

.member-card:hover,
.app-card:hover {
  border-color: color-mix(in srgb, var(--cyan) 55%, transparent);
}

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

.app-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.app-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  margin: 0;
  border: 1px solid transparent;
  line-height: 0;
}

.app-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  flex: none;
}

.app-card .tag {
  margin-bottom: 0;
}

.app-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.app-card p {
  flex: 1 1 auto;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.app-icon-water {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.28);
}

.app-icon-heat {
  color: #ea580c;
  background: rgba(234, 88, 12, 0.12);
  border-color: rgba(234, 88, 12, 0.28);
}

.app-icon-wbgt {
  color: #ca8a04;
  background: rgba(202, 138, 4, 0.12);
  border-color: rgba(202, 138, 4, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app-icon-water {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
  }

  :root:not([data-theme="light"]) .app-icon-heat {
    color: #fb923c;
    background: rgba(251, 146, 60, 0.14);
    border-color: rgba(251, 146, 60, 0.32);
  }

  :root:not([data-theme="light"]) .app-icon-wbgt {
    color: #facc15;
    background: rgba(250, 204, 21, 0.12);
    border-color: rgba(250, 204, 21, 0.3);
  }
}

html[data-theme="dark"] .app-icon-water {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}

html[data-theme="dark"] .app-icon-heat {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.14);
  border-color: rgba(251, 146, 60, 0.32);
}

html[data-theme="dark"] .app-icon-wbgt {
  color: #facc15;
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.3);
}

html[data-theme="light"] .app-icon-water {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.28);
}

html[data-theme="light"] .app-icon-heat {
  color: #ea580c;
  background: rgba(234, 88, 12, 0.12);
  border-color: rgba(234, 88, 12, 0.28);
}

html[data-theme="light"] .app-icon-wbgt {
  color: #ca8a04;
  background: rgba(202, 138, 4, 0.12);
  border-color: rgba(202, 138, 4, 0.28);
}

.member-card .more,
.app-card .more {
  margin-top: 18px;
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.8125rem;
}

@media (prefers-reduced-motion: reduce) {
  .app-card:hover {
    transform: none;
  }
}

.note-box {
  margin-top: 20px;
  padding: 18px 22px;
}

.note-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

footer {
  padding: 36px 0 56px;
  color: var(--muted);
  font-size: 0.875rem;
}

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

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-primary:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .hero-grid {
    gap: 28px;
  }

  .nav-links {
    display: none;
  }

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

  .flow-5 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .orb {
    max-width: 400px;
  }

  .hero-visual {
    min-height: 400px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: 2.5rem;
  }

  .lead {
    font-size: 1rem;
  }

  .mini,
  .node {
    min-width: 88px;
    font-size: 0.6875rem;
    padding: 8px 8px;
  }

  .circle,
  .core {
    width: 150px;
    height: 150px;
    font-size: 1.125rem;
  }

  .ring {
    width: 300px;
    height: 300px;
  }

  .ring2 {
    width: 360px;
    height: 360px;
  }

  .compare-row {
    grid-template-columns: 1fr 40px 1fr;
    font-size: 0.875rem;
  }

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

  section {
    padding: 64px 0;
  }
}
