/* ==========================================================================
   HOANTRANTDH — Manufacturing Data Hub
   Landing page styles
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/inter-vietnamese-wght-normal.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  --navy-950: #030814;
  --navy-900: #050b1a;
  --navy-850: #081226;
  --navy-800: #0c1a33;
  --navy-700: #13264a;
  --cyan: #22d3ee;
  --sky: #38bdf8;
  --blue: #3b82f6;
  --violet: #818cf8;
  --danger: #f87171;
  --grad: linear-gradient(120deg, #22d3ee 0%, #38bdf8 45%, #3b82f6 100%);

  /* contextual tokens (dark by default) */
  --bg: var(--navy-900);
  --text: #e8eef8;
  --heading: #ffffff;
  --muted: #94a5c3;
  --line: rgba(148, 178, 230, 0.14);
  --line-strong: rgba(148, 178, 230, 0.26);
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --accent: var(--cyan);
  --accent-soft: rgba(34, 211, 238, 0.12);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);

  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --container: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--heading); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 750; }
h3 { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: 0.82em; }
strong, b { color: var(--heading); font-weight: 650; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 8px; background: var(--cyan); color: var(--navy-900); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.8em 1.35em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: #04101f; box-shadow: 0 8px 30px -8px rgba(34, 211, 238, 0.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -8px rgba(34, 211, 238, 0.7); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--heading); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--cyan); background: var(--accent-soft); }
.btn-ghost:hover .icon { transform: rotate(-30deg); }
.btn-sm { padding: 0.6em 1.1em; font-size: 0.875rem; }
.btn-lg { padding: 0.95em 1.6em; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(5, 11, 26, 0.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; letter-spacing: 0.06em; color: #fff; font-size: 0.98rem; }
.brand-sub { font-size: 0.72rem; color: var(--cyan); letter-spacing: 0.04em; font-weight: 500; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link { display: block; padding: 8px 10px; border-radius: 8px; font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: color .2s, background-color .2s; position: relative; }
.nav-link:hover { color: #fff; }
.nav-link.is-active { color: #fff; }
.nav-link.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad); }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.04); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1199px) {
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    margin: 0; padding: 24px var(--gutter) 40px;
    background: rgba(3, 8, 20, 0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    display: flex; flex-direction: column; gap: 20px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { font-size: 1.125rem; padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--text); }
  .nav-link.is-active { color: var(--cyan); }
  .nav-link.is-active::after { display: none; }
  .nav-cta-mobile { display: inline-flex; align-self: flex-start; }
  .site-header.menu-open { background: rgba(3, 8, 20, 0.97); border-bottom-color: var(--line); }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 112px 0; background: var(--bg); color: var(--text); }
.section--tight-top { padding-top: 0; }
.section--deep { --bg: var(--navy-950); }
.section--light {
  --bg: #f3f6fb;
  --text: #33415c;
  --heading: #0a1530;
  --muted: #5b6a86;
  --line: #dbe3ef;
  --line-strong: #c4d0e2;
  --card: #ffffff;
  --card-hover: #ffffff;
  --accent: #0891b2;
  --accent-soft: rgba(8, 145, 178, 0.1);
  --shadow: 0 18px 40px -22px rgba(15, 35, 80, 0.35);
}
.section--light .gradient-text { background: linear-gradient(120deg, #0891b2, #2563eb); -webkit-background-clip: text; background-clip: text; }
.section:not(.section--light)::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(148,178,230,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(148,178,230,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.section > .container { position: relative; }
.section-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.section-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s, background-color .35s;
}
.section:not(.section--light) .card { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); background: var(--card-hover); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.card-icon { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; align-items: center; justify-content: center; margin-bottom: 18px; background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.card-icon .icon { width: 24px; height: 24px; }
.card-grid { display: grid; gap: 20px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1024px) { .card-grid--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid--3 { grid-template-columns: 1fr; } .card-grid--5 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .card[data-reveal].is-visible:hover { transform: translateY(-4px); }
.js [data-reveal].reveal-done { transition-delay: 0s; }
.js .card[data-reveal].reveal-done { transition: transform .35s var(--ease), border-color .35s, box-shadow .35s, background-color .35s; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding: calc(var(--header-h) + 72px) 0 96px; overflow: hidden; background: var(--navy-900); }
.hero-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 50% 62%, rgba(56, 189, 248, 0.16), transparent 70%),
    radial-gradient(600px 400px at 12% 10%, rgba(59, 130, 246, 0.16), transparent 70%),
    radial-gradient(600px 400px at 90% 20%, rgba(34, 211, 238, 0.1), transparent 70%);
}
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(148,178,230,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(148,178,230,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}
.hero .container { position: relative; }
.hero-copy { max-width: 920px; margin: 0 auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.04); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text); margin-bottom: 28px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34,211,238,.6); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(34,211,238,.6); } 70% { box-shadow: 0 0 0 10px rgba(34,211,238,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); } }
.hero-title { font-size: clamp(2.4rem, 6.2vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 22px; }
.hero-sub { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600; color: #cfe3ff; margin-bottom: 18px; }
.hero-sub span { position: relative; }
.hero-sub span:nth-child(odd) { color: var(--cyan); }
.hero-vi { max-width: 720px; margin: 0 auto 34px; color: var(--muted); font-size: 1.05rem; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 28px; }
.hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: 0.9rem; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--cyan); width: 1.05em; height: 1.05em; stroke-width: 2.4; }

/* Hub diagram */
.hub-diagram { position: relative; margin: 72px 0 0; display: grid; grid-template-columns: 1fr minmax(300px, 380px) 1fr; align-items: center; gap: 72px; }
.hub-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hub-col { position: relative; z-index: 1; }
.hub-col-title { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.hub-col-title .icon { color: var(--cyan); }
.hub-apps .hub-col-title { justify-content: flex-end; }
.hub-nodes { display: flex; flex-direction: column; gap: 8px; }
.hub-sources .hub-nodes { align-items: flex-start; }
.hub-apps .hub-nodes { align-items: flex-end; }
.hub-node {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; min-width: 168px;
  border-radius: 10px; font-size: 0.875rem; font-weight: 550; color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--line-strong); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .4s, box-shadow .4s, color .4s;
}
.hub-apps .hub-node { flex-direction: row-reverse; text-align: right; }
.hub-node .icon { color: var(--sky); width: 18px; height: 18px; }
.hub-node.is-pulse { border-color: rgba(34, 211, 238, 0.8); box-shadow: 0 0 0 3px rgba(34,211,238,0.12), 0 0 22px rgba(34, 211, 238, 0.35); color: #fff; }
.hub-apps .hub-node.is-pulse { border-color: rgba(129, 140, 248, 0.85); box-shadow: 0 0 0 3px rgba(129,140,248,0.12), 0 0 22px rgba(129, 140, 248, 0.4); }

.hub-core { position: relative; z-index: 1; aspect-ratio: 1; width: 100%; display: grid; place-items: center; }
.core-rings { position: absolute; inset: 0; }
.core-rings span { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(56, 189, 248, 0.35); animation: spin 40s linear infinite; }
.core-rings span:nth-child(2) { inset: 7%; border-style: solid; border-color: rgba(34, 211, 238, 0.18); border-top-color: rgba(34,211,238,0.8); animation-duration: 9s; }
.core-rings span:nth-child(3) { inset: 14%; border-color: rgba(59, 130, 246, 0.3); animation-duration: 26s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.core-inner {
  position: relative; width: 74%; aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8%;
  background: radial-gradient(circle at 50% 35%, rgba(56, 189, 248, 0.28), rgba(12, 26, 51, 0.92) 62%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.25), inset 0 0 40px rgba(34, 211, 238, 0.14);
  transition: box-shadow .3s;
}
.hub-core.is-pulse .core-inner { box-shadow: 0 0 90px rgba(34, 211, 238, 0.45), inset 0 0 50px rgba(34, 211, 238, 0.24); }
.core-logo { width: 40px; height: 40px; margin-bottom: 6px; }
.core-title { font-weight: 800; color: #fff; font-size: 1.05rem; line-height: 1.15; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 10px; }
.core-modules { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.core-modules li { font-size: 0.66rem; font-weight: 600; padding: 3px 7px; border-radius: 6px; color: #cdefff; background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.28); white-space: nowrap; }

@media (max-width: 1100px) {
  .hub-diagram { gap: 40px; grid-template-columns: 1fr minmax(280px, 320px) 1fr; }
  .hub-node { min-width: 0; font-size: 0.8rem; padding: 7px 11px; }
  .core-modules li { font-size: 0.6rem; padding: 2px 6px; }
}
@media (max-width: 860px) {
  .hub-diagram { grid-template-columns: 1fr; gap: 56px; margin-top: 56px; }
  .hub-col-title, .hub-apps .hub-col-title { justify-content: center; }
  .hub-nodes, .hub-sources .hub-nodes, .hub-apps .hub-nodes { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; }
  .hub-apps .hub-node { flex-direction: row; text-align: left; }
  .hub-node { font-size: 0.78rem; padding: 6px 10px; gap: 7px; }
  .hub-core { max-width: 330px; margin: 0 auto; }
}
@media (max-width: 400px) {
  .hub-core { max-width: 290px; }
  .core-title { font-size: 0.92rem; }
}

/* ==========================================================================
   PROBLEM
   ========================================================================== */
.islands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 32px; margin-bottom: 20px; }
.island {
  position: relative; padding: 22px 20px 20px; border-radius: 22px 30px 24px 34px;
  background: radial-gradient(120% 100% at 30% 0%, rgba(59,130,246,0.12), rgba(255,255,255,0.02));
  border: 1px dashed rgba(148, 178, 230, 0.3);
  animation: drift 7s ease-in-out infinite;
}
.island:nth-child(2n) { animation-delay: -2s; border-radius: 30px 20px 34px 22px; }
.island:nth-child(3n) { animation-delay: -4s; }
.island:nth-child(4n) { animation-delay: -5.5s; border-radius: 26px 34px 20px 28px; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(3px, -7px); } }
.island h3 { font-size: 1rem; margin: 10px 0 6px; }
.island code { display: inline-block; color: #fbbf24; background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.2); padding: 2px 8px; border-radius: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.island-icon { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(148, 178, 230, 0.1); color: var(--sky); }
.island-icon .icon { width: 20px; height: 20px; }
/* broken links between islands */
.island::after { content: ""; position: absolute; top: 50%; right: -30px; width: 28px; border-top: 2px dashed rgba(248, 113, 113, 0.45); }
.island:nth-child(4n)::after { display: none; }
.islands-note { text-align: center; color: var(--muted); font-size: 0.95rem; font-style: italic; margin: 8px 0 64px; }

.problem-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.problem-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.problem-list li { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; background: rgba(248, 113, 113, 0.05); border: 1px solid rgba(248, 113, 113, 0.18); font-weight: 500; font-size: 0.95rem; }
.problem-list .icon { color: var(--danger); stroke-width: 2.4; width: 1.05em; height: 1.05em; }
.highlight-quote { margin: 0; padding: 40px 36px; border-radius: var(--radius); border: 1px solid rgba(34, 211, 238, 0.35); background: linear-gradient(135deg, rgba(34,211,238,0.1), rgba(59,130,246,0.06)); position: relative; }
.highlight-quote p { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: #fff; margin: 0; }
.highlight-quote p + p { margin-top: 10px; }
@media (max-width: 960px) {
  .islands { grid-template-columns: repeat(2, 1fr); }
  .island:nth-child(4n)::after { display: block; }
  .island:nth-child(2n)::after { display: none; }
  .problem-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .islands { gap: 20px 24px; }
  .island { padding: 16px 14px; }
  .island::after { right: -24px; width: 22px; }
  .island code { font-size: 0.72rem; }
  .problem-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SOLUTION
   ========================================================================== */
.solution-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.stack-flow { display: flex; flex-direction: column; gap: 36px; max-width: 440px; margin: 0 auto; width: 100%; counter-reset: none; }
.stack-item {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; color: var(--heading);
}
.stack-item .icon { width: 22px; height: 22px; color: var(--accent); }
.stack-item img { width: 28px; height: 28px; }
.stack-item:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 36px; transform: translateX(-50%);
  background: linear-gradient(var(--line-strong), var(--line-strong));
}
.stack-item:not(:last-child)::before {
  content: ""; position: absolute; left: 50%; top: 100%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent); z-index: 1;
  animation: drop 1.8s var(--ease) infinite; animation-delay: calc(var(--i, 0) * 0.3s);
}
@keyframes drop { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(28px); opacity: 0; } }
.stack-item--core { background: linear-gradient(135deg, #0a1530, #13264a); color: #fff; border-color: transparent; padding: 24px 22px; font-size: 1.1rem; box-shadow: 0 20px 50px -18px rgba(8,145,178,0.55), 0 0 0 1px rgba(34,211,238,0.5); }
.steps { display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; border: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.step:hover { background: var(--card); border-color: var(--line); }
.step-num { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; color: var(--accent); background: var(--accent-soft); }
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .solution-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ==========================================================================
   ARCHITECTURE
   ========================================================================== */
.arch { max-width: 980px; margin: 0 auto; }
.arch-layer {
  display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: center;
  padding: 22px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
}
.arch-label h3 { margin: 2px 0 6px; font-size: 1.1rem; }
.arch-num { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.arch-tag { display: inline-block; font-size: 0.72rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 0.85rem; font-weight: 550; padding: 7px 13px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); }
.arch-layer--core {
  position: relative; padding: 30px 26px; border: 1px solid transparent;
  background: linear-gradient(var(--navy-800), var(--navy-800)) padding-box, var(--grad) border-box;
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.06), 0 30px 80px -30px rgba(34, 211, 238, 0.55);
  transform: scale(1.03);
}
.arch-layer--core .arch-num { color: var(--cyan); }
.arch-layer--core h3 { font-size: 1.3rem; }
.arch-tag--core { background: var(--grad); color: #04101f; border-color: transparent; font-weight: 700; }
.arch-layer--core .chips li { background: rgba(34, 211, 238, 0.1); border-color: rgba(34, 211, 238, 0.35); color: #e0f9ff; }
.arch-link { display: flex; justify-content: center; gap: 22%; height: 44px; }
.arch-link span { position: relative; width: 2px; height: 100%; background: linear-gradient(var(--line-strong), rgba(34,211,238,0.4)); overflow: hidden; }
.arch-link span::after { content: ""; position: absolute; left: -2px; top: -8px; width: 6px; height: 8px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: fall 1.6s linear infinite; }
.arch-link span:nth-child(2)::after { animation-delay: .5s; }
.arch-link span:nth-child(3)::after { animation-delay: 1s; }
@keyframes fall { to { transform: translateY(56px); } }
@media (max-width: 760px) {
  .arch-layer { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .arch-layer--core { transform: none; padding: 24px 20px; }
  .chips li { font-size: 0.8rem; padding: 6px 10px; }
}

/* ==========================================================================
   CAPABILITIES
   ========================================================================== */
.cap-card { overflow: hidden; }
.cap-num { position: absolute; top: 18px; right: 22px; font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
.cap-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(120deg, #0891b2, #2563eb); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.cap-card:hover::after { transform: scaleX(1); }

/* ==========================================================================
   ISA-95
   ========================================================================== */
.isa-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; }
.isa-copy > p:not(.kicker) { color: var(--muted); font-size: 1.05rem; }
.isa-copy h2 { margin-bottom: 20px; }
.raw-vs-context { margin: 28px 0; display: flex; flex-direction: column; gap: 10px; }
.rvc { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card); }
.rvc-label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.rvc-raw code { color: #fbbf24; font-size: 0.95rem; }
.rvc-ctx { border-color: rgba(34, 211, 238, 0.45); background: linear-gradient(135deg, rgba(34,211,238,0.1), rgba(59,130,246,0.05)); }
.rvc-ctx .rvc-label { color: var(--cyan); }
.rvc-ctx p { margin: 0; color: var(--text); }
.rvc-arrow { color: var(--cyan); margin-left: 18px; width: 22px; height: 22px; }
.isa-message p { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; color: #fff; margin: 0; letter-spacing: -0.02em; line-height: 1.3; }
.isa-message em { font-style: normal; color: var(--muted); }

.isa-ladder { position: relative; display: flex; flex-direction: column; gap: 10px; max-width: 400px; margin: 0 auto; width: 100%; padding-left: 36px; }
.isa-ladder::before { content: ""; position: absolute; left: 11px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(#fbbf24, var(--sky) 20%, var(--cyan) 90%); opacity: .5; }
.isa-step { position: relative; padding: 11px 16px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; background: var(--card); border: 1px solid var(--line-strong); }
.isa-step::before { content: ""; position: absolute; left: -31px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--navy-900); border: 2px solid var(--sky); }
.isa-step--raw { color: #fbbf24; border-color: rgba(251,191,36,0.35); font-family: var(--mono); font-size: 0.9rem; }
.isa-step--raw::before { border-color: #fbbf24; }
.isa-step--ctx { background: var(--grad); color: #04101f; border-color: transparent; font-weight: 750; box-shadow: 0 12px 40px -12px rgba(34,211,238,0.6); }
.isa-step--ctx::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.js .isa-ladder[data-reveal] { transform: none; }
.js .isa-ladder[data-reveal] .isa-step { opacity: 0; transform: translateX(-16px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js .isa-ladder.is-visible .isa-step { opacity: 1; transform: none; }
@media (max-width: 900px) { .isa-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ==========================================================================
   KNOWLEDGE GRAPH
   ========================================================================== */
.kg-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: stretch; }
.kg-stage { position: relative; height: 540px; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(circle at 50% 50%, rgba(59,130,246,0.1), transparent 70%), rgba(255,255,255,0.015); overflow: hidden; touch-action: none; }
.kg-svg { width: 100%; height: 100%; }
.kg-edge { stroke: rgba(148, 178, 230, 0.28); stroke-width: 1.5; transition: stroke .3s, opacity .3s; }
.kg-edge.is-active { stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 6 6; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -12; } }
.kg-edge.is-dim { opacity: 0.25; }
.kg-edge-label { font-size: 11px; font-weight: 600; fill: #a5f3fc; opacity: 0; transition: opacity .3s; pointer-events: none; paint-order: stroke; stroke: var(--navy-950); stroke-width: 4px; stroke-linejoin: round; }
.kg-edge-label.is-active { opacity: 1; }
.kg-node { cursor: pointer; outline: none; transition: opacity .3s; }
.kg-node rect { fill: rgba(12, 26, 51, 0.92); stroke: rgba(148, 178, 230, 0.4); stroke-width: 1.2; transition: stroke .3s, fill .3s; }
.kg-node text { font-size: 13px; font-weight: 600; fill: #e8eef8; pointer-events: none; }
.kg-node .kg-dot { fill: var(--sky); }
.kg-node:hover rect, .kg-node:focus-visible rect { stroke: var(--cyan); }
.kg-node.is-active rect { fill: rgba(34, 211, 238, 0.18); stroke: var(--cyan); stroke-width: 2; filter: drop-shadow(0 0 10px rgba(34,211,238,0.55)); }
.kg-node.is-neighbor rect { stroke: rgba(34, 211, 238, 0.7); }
.kg-node.is-dim { opacity: 0.35; }
.kg-node.is-dragging { cursor: grabbing; }
.kg-panel { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: linear-gradient(160deg, rgba(34,211,238,0.08), rgba(255,255,255,0.02)); display: flex; flex-direction: column; }
.kg-panel-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.kg-panel-title { font-size: 1.5rem; margin-bottom: 4px; }
.kg-panel-example { font-family: var(--mono); font-size: 0.85rem; color: var(--cyan); margin-bottom: 14px; }
.kg-panel-text { color: var(--muted); font-size: 0.95rem; }
.kg-panel-rel { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.kg-panel-rel li { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.kg-panel-rel li b { color: var(--cyan); font-weight: 600; }
@media (max-width: 960px) {
  .kg-wrap { grid-template-columns: 1fr; }
  .kg-stage { height: 560px; }
}
@media (max-width: 520px) { .kg-stage { height: 600px; } }

/* ==========================================================================
   USE CASE
   ========================================================================== */
.uc { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.uc-steps { position: relative; display: flex; flex-direction: column; gap: 6px; }
.uc-steps::before { content: ""; position: absolute; left: 25px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
.uc-btn {
  position: relative; width: 100%; display: flex; align-items: flex-start; gap: 16px; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--muted); font-weight: 550;
  transition: background-color .35s, border-color .35s, color .35s, box-shadow .35s;
}
.uc-btn:hover { color: var(--heading); }
.uc-idx { position: relative; z-index: 1; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; background: var(--bg); border: 2px solid var(--line-strong); color: var(--muted); transition: all .35s; }
.uc-txt { padding-top: 1px; }
.uc-ids { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.uc-ids span { font-size: 0.75rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; border: 1px dashed var(--line-strong); color: var(--muted); transition: all .4s; }
.uc-step.is-done .uc-btn { color: var(--heading); }
.uc-step.is-done .uc-idx { background: var(--accent); border-color: var(--accent); color: #fff; }
.uc-step.is-current .uc-btn { background: var(--card); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--heading); box-shadow: var(--shadow); }
.uc-step.is-current .uc-idx { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 5px var(--accent-soft); }
.uc-step.is-done .uc-ids span, .uc-step.is-current .uc-ids span { border-style: solid; border-color: rgba(8,145,178,0.4); background: var(--accent-soft); color: var(--accent); }
.uc-step.is-current .uc-ids span { animation: popin .5s var(--ease) both; }
.uc-ids span:nth-child(2) { animation-delay: .1s !important; }
.uc-ids span:nth-child(3) { animation-delay: .2s !important; }
.uc-ids span:nth-child(4) { animation-delay: .3s !important; }
.uc-ids span:nth-child(5) { animation-delay: .4s !important; }
@keyframes popin { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }

.uc-console { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--radius); overflow: hidden; background: var(--navy-900); border: 1px solid #1e3358; box-shadow: 0 30px 60px -30px rgba(10, 21, 48, 0.6); color: #e8eef8; }
.uc-console-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid rgba(148,178,230,0.14); background: rgba(255,255,255,0.03); }
.uc-dots { display: flex; gap: 6px; }
.uc-dots i { width: 10px; height: 10px; border-radius: 50%; background: #334766; }
.uc-console-title { font-size: 0.8rem; font-family: var(--mono); color: #94a5c3; }
.uc-controls { margin-left: auto; display: flex; gap: 6px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid rgba(148,178,230,0.25); background: rgba(255,255,255,0.04); color: #e8eef8; cursor: pointer; transition: border-color .2s, background-color .2s; }
.icon-btn:hover { border-color: var(--cyan); background: rgba(34,211,238,0.1); }
.icon-btn .icon { width: 16px; height: 16px; }
.uc-console-body { padding: 20px; min-height: 420px; }
.uc-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.82rem; padding: 6px 12px; border-radius: 999px; background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.35); color: #86efac; margin-bottom: 18px; transition: all .4s; }
.uc-status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.uc-status.is-stop { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.4); color: #fca5a5; }
.uc-status.is-stop .uc-status-dot { animation: blink 1s steps(2) infinite; }
.uc-status.is-ctx { background: rgba(34, 211, 238, 0.1); border-color: rgba(34, 211, 238, 0.45); color: #a5f3fc; }
@keyframes blink { 50% { opacity: 0.2; } }
.uc-fields { margin: 0; display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 0.84rem; }
.uc-fields > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 7px 10px; border-radius: 6px; opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease), background-color .45s; }
.uc-fields > div.is-shown { opacity: 1; transform: none; }
.uc-fields > div.is-new { background: rgba(34, 211, 238, 0.12); }
.uc-fields dt { color: #7d8fb0; }
.uc-fields dd { margin: 0; color: #e8eef8; overflow-wrap: anywhere; }
.uc-fields .ctx dd { color: #a5f3fc; }
.uc-fields .act dd { color: #c4b5fd; }
@media (max-width: 900px) {
  .uc { grid-template-columns: 1fr; }
  .uc-console { position: relative; top: 0; }
  .uc-console-body { min-height: 0; }
}
@media (max-width: 480px) { .uc-fields > div { grid-template-columns: 96px 1fr; gap: 8px; font-size: 0.78rem; } }

/* ==========================================================================
   APPLICATIONS
   ========================================================================== */
.app-card { padding: 24px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.app-card .card-icon { margin-bottom: 14px; }
.app-card h3 { font-size: 1rem; margin: 0; }
.note { display: flex; gap: 14px; align-items: flex-start; margin: 32px auto 0; max-width: 860px; padding: 18px 22px; border-radius: 12px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--heading); }
.note .icon { color: var(--accent); margin-top: 2px; }
.note span { color: var(--text); }

/* ==========================================================================
   BEFORE / AFTER
   ========================================================================== */
.ba { display: grid; grid-template-columns: 1fr 140px 1fr; gap: 24px; align-items: center; max-width: 1000px; margin: 0 auto 28px; }
.ba-col { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.ba-before { border-color: rgba(248, 113, 113, 0.25); background: linear-gradient(160deg, rgba(248,113,113,0.06), rgba(255,255,255,0.01)); }
.ba-after { border-color: rgba(34, 211, 238, 0.35); background: linear-gradient(160deg, rgba(34,211,238,0.09), rgba(59,130,246,0.03)); }
.ba-title { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 18px; }
.ba-before .ba-title { color: #fca5a5; }
.ba-after .ba-title { color: var(--cyan); }
.ba-title .icon { stroke-width: 2.6; }
.ba-list { display: flex; flex-direction: column; gap: 16px; }
.ba-list li { position: relative; padding: 10px 14px; border-radius: 10px; font-weight: 550; font-size: 0.95rem; text-align: center; }
.ba-before li { background: rgba(248, 113, 113, 0.06); border: 1px dashed rgba(248, 113, 113, 0.35); color: #fecaca; }
.ba-after li { background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.35); color: #e0f9ff; }
.ba-list li:not(:last-child)::after { content: ""; position: absolute; left: 50%; top: 100%; height: 16px; margin-left: -1px; }
.ba-before li:not(:last-child)::after { border-left: 2px dashed rgba(248, 113, 113, 0.35); }
.ba-after li:not(:last-child)::after { width: 2px; background: linear-gradient(var(--cyan), var(--blue)); }
.ba-mid { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ba-core { position: relative; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(34,211,238,0.25), rgba(12,26,51,0.9) 70%); border: 1px solid rgba(34, 211, 238, 0.5); box-shadow: 0 0 40px rgba(34,211,238,0.3); }
.ba-core::before, .ba-core::after { content: ""; position: absolute; top: 50%; width: 40px; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan)); }
.ba-core::before { right: 100%; }
.ba-core::after { left: 100%; background: linear-gradient(90deg, var(--cyan), transparent); }
.ba-mid-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
/* animation states */
.js .ba .ba-list li { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.js .ba-before li { transition-delay: calc(var(--i, 0) * 90ms) !important; }
.js .ba-after li { transition-delay: calc(900ms + var(--i, 0) * 110ms) !important; }
.js .ba .ba-core { opacity: .3; transform: scale(.8); transition: opacity .5s .6s, transform .6s .6s var(--ease); }
.js .ba.is-playing .ba-list li { opacity: 1; transform: none; }
.js .ba.is-playing .ba-before li { opacity: .75; }
.js .ba.is-playing .ba-core { opacity: 1; transform: none; animation: corepulse 2.4s 1.2s ease-in-out infinite; }
@keyframes corepulse { 0%, 100% { box-shadow: 0 0 30px rgba(34,211,238,0.25); } 50% { box-shadow: 0 0 60px rgba(34,211,238,0.55); } }
@media (max-width: 820px) {
  .ba { grid-template-columns: 1fr; max-width: 460px; }
  .ba-mid { flex-direction: row; justify-content: center; }
  .ba-core { width: 72px; height: 72px; }
  .ba-core::before, .ba-core::after { display: none; }
}

/* ==========================================================================
   VALUE / CUSTOMERS
   ========================================================================== */
.value-card .card-icon { background: linear-gradient(135deg, rgba(8,145,178,0.12), rgba(37,99,235,0.12)); }
.customer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto; }
.customer-grid li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 600; color: var(--heading); transition: border-color .3s, background-color .3s; }
.customer-grid li:hover { border-color: rgba(34,211,238,0.5); background: rgba(34,211,238,0.06); }
.customer-grid .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--accent-soft); color: var(--cyan); }
@media (max-width: 900px) { .customer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .customer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   POSITIONING
   ========================================================================== */
.positioning { text-align: center; padding: 128px 0; }
.not-list { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 40px; }
.not-list li span { position: relative; display: inline-block; font-size: clamp(1.5rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; color: rgba(232, 238, 248, 0.32); line-height: 1.2; }
.not-list li span::after { content: ""; position: absolute; left: -4%; right: -4%; top: 47%; height: 4px; border-radius: 4px; background: var(--danger); transform: scaleX(1); transform-origin: left; transition: transform .6s var(--ease); transition-delay: calc(300ms + var(--i, 0) * 180ms); }
.js .not-list[data-reveal] { transform: none; }
.js .not-list li span::after { transform: scaleX(0); }
.js .not-list.is-visible li span::after { transform: scaleX(1); }
.is-statement { font-size: clamp(2rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; color: #fff; margin-bottom: 20px; }
.is-explain { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 1.15rem; }

/* ==========================================================================
   DATA FLOW PIPELINE
   ========================================================================== */
.pipeline { --gap: 14px; --node: 60px; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: var(--gap); }
.pipe-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-size: 0.82rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.pipe-icon { position: relative; z-index: 1; width: var(--node); height: var(--node); border-radius: 16px; display: grid; place-items: center; background: var(--navy-800); border: 1px solid var(--line-strong); color: var(--sky); box-shadow: 0 10px 30px -12px rgba(0,0,0,0.6); }
.pipe-icon .icon { width: 26px; height: 26px; }
.pipe-node--core .pipe-icon { background: linear-gradient(135deg, #0e2446, #10305c); border-color: var(--cyan); box-shadow: 0 0 0 5px rgba(34,211,238,0.1), 0 0 34px rgba(34,211,238,0.4); }
.pipe-node--core > span:last-child { color: var(--cyan); }
/* connector line */
.pipe-node:not(:last-child)::before {
  content: ""; position: absolute; top: calc(var(--node) / 2 - 1px); height: 2px;
  left: calc(50% + var(--node) / 2 + 4px); width: calc(100% + var(--gap) - var(--node) - 8px);
  background: linear-gradient(90deg, rgba(56,189,248,0.2), rgba(34,211,238,0.5), rgba(56,189,248,0.2));
}
/* data packet */
.pipe-node:not(:last-child)::after {
  content: ""; position: absolute; top: calc(var(--node) / 2 - 3px); width: 6px; height: 6px; border-radius: 50%;
  left: calc(50% + var(--node) / 2 + 4px); background: #fff; box-shadow: 0 0 8px var(--cyan), 0 0 16px var(--cyan); opacity: 0;
}
.pipeline.is-visible .pipe-node:not(:last-child)::after { animation: pkt-x 2.2s linear infinite; animation-delay: calc(var(--i, 0) * 0.25s); }
@keyframes pkt-x {
  0% { left: calc(50% + var(--node) / 2 + 4px); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: calc(150% + var(--gap) - var(--node) / 2 - 10px); opacity: 0; }
}
.js .pipeline[data-reveal] { transform: none; }
.js .pipeline[data-reveal] .pipe-node { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .pipeline.is-visible .pipe-node { opacity: 1; transform: none; }
@media (max-width: 1000px) {
  .pipeline { --gap: 18px; --node: 52px; grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pipe-node { flex-direction: row; text-align: left; gap: 18px; font-size: 1rem; }
  .pipe-icon { border-radius: 14px; }
  .pipe-node:not(:last-child)::before {
    left: calc(var(--node) / 2 - 1px); top: calc(var(--node) + 3px); width: 2px; height: calc(var(--gap) - 6px);
    background: linear-gradient(rgba(56,189,248,0.3), rgba(34,211,238,0.6));
  }
  .pipe-node:not(:last-child)::after { left: calc(var(--node) / 2 - 3px); top: calc(var(--node) + 3px); }
  .pipeline.is-visible .pipe-node:not(:last-child)::after { animation-name: pkt-y; animation-duration: 1.2s; }
}
@keyframes pkt-y { 0% { top: calc(var(--node) + 3px); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { top: calc(100% + var(--gap) - 9px); opacity: 0; } }

/* ==========================================================================
   INDUSTRIAL AI
   ========================================================================== */
.ai-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.ai-copy > p:not(.kicker) { color: var(--muted); font-size: 1.05rem; }
.ctx-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 24px; }
.ctx-tags li { font-size: 0.85rem; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.3); color: #cff7ff; }
.js .ai-copy.is-visible .ctx-tags li { animation: popin .5s var(--ease) both; animation-delay: calc(300ms + var(--i, 0) * 60ms); }
.fine { font-size: 0.9rem !important; padding-left: 14px; border-left: 2px solid var(--line-strong); }
.ai-chain { display: flex; flex-direction: column; gap: 28px; max-width: 420px; margin: 0 auto; width: 100%; }
.ai-stage { position: relative; display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-strong); }
.ai-stage strong { color: #fff; font-size: 1.1rem; grid-column: 2; }
.ai-stage small { grid-column: 2; color: var(--muted); font-size: 0.85rem; }
.ai-stage-icon { grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: rgba(56,189,248,0.1); color: var(--sky); }
.ai-stage-icon .icon { width: 26px; height: 26px; }
.ai-stage:nth-child(1) { opacity: .75; }
.ai-stage:nth-child(2) { border-color: rgba(56,189,248,0.4); }
.ai-stage:nth-child(3) { border-color: rgba(34,211,238,0.55); box-shadow: 0 0 30px -10px rgba(34,211,238,0.4); }
.ai-stage--ai { background: linear-gradient(135deg, rgba(34,211,238,0.2), rgba(59,130,246,0.2)); border-color: var(--cyan) !important; box-shadow: 0 0 60px -12px rgba(34,211,238,0.6); }
.ai-stage--ai .ai-stage-icon { background: var(--grad); color: #04101f; }
.ai-stage:not(:last-child)::after { content: ""; position: absolute; left: 45px; top: 100%; width: 2px; height: 28px; background: linear-gradient(var(--sky), var(--cyan)); }
.ai-stage:not(:last-child)::before { content: ""; position: absolute; left: 42px; top: calc(100% + 18px); border: 4px solid transparent; border-top: 6px solid var(--cyan); }
.js .ai-chain[data-reveal] { transform: none; }
.js .ai-chain[data-reveal] .ai-stage { opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 220ms); }
.js .ai-chain.is-visible .ai-stage { opacity: 1; transform: none; }
.js .ai-chain.is-visible .ai-stage:nth-child(1) { opacity: .75; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { background: radial-gradient(800px 400px at 80% 30%, rgba(59,130,246,0.14), transparent 70%), var(--navy-900); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.contact-copy > p:not(.kicker) { color: var(--muted); font-size: 1.05rem; }
.contact-vi { font-style: italic; }
.contact-list { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 28px; }
.contact-list li { display: flex; align-items: center; gap: 10px; font-weight: 550; }
.contact-list .icon { color: var(--cyan); stroke-width: 2.4; }
.contact-mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--cyan); padding: 10px 16px; border-radius: 10px; border: 1px solid rgba(34,211,238,0.35); background: rgba(34,211,238,0.06); transition: background-color .2s; }
.contact-mail:hover { background: rgba(34,211,238,0.14); }
.contact-form { padding: 32px; }
.contact-form:hover { transform: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.field label span { color: var(--cyan); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: #fff; padding: 12px 14px; border-radius: 10px;
  background: rgba(3, 8, 20, 0.55); border: 1px solid var(--line-strong); transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #94a5c3 50%), linear-gradient(135deg, #94a5c3 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { background: var(--navy-850); color: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #6b7c9b; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,0.18); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin: 0; min-height: 0; font-size: 0.8rem; color: #fca5a5; }
.form-status { margin: 14px 0 0; font-size: 0.9rem; color: #86efac; min-height: 1.2em; text-align: center; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } .contact-form { padding: 22px; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy-950); border-top: 1px solid var(--line); padding: 56px 0 28px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-brand { max-width: 420px; }
.footer-brand p { margin: 16px 0 0; font-size: 0.92rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; align-content: start; }
.footer-nav a { font-size: 0.92rem; transition: color .2s; }
.footer-nav a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom p:first-child { color: #fff; font-weight: 600; }
.footer-bottom p:first-child span { color: var(--muted); font-weight: 400; }
.footer-note { max-width: 460px; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-800); border: 1px solid var(--line-strong); color: var(--cyan); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility 0s .3s, border-color .2s; }
.to-top .icon { transform: rotate(180deg); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s, border-color .2s; }
.to-top:hover { border-color: var(--cyan); }

/* ---------- Responsive spacing ---------- */
@media (max-width: 760px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .section { padding: 80px 0; }
  .section--tight-top { padding-top: 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: calc(var(--header-h) + 48px) 0 72px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .positioning { padding: 96px 0; }
  .highlight-quote { padding: 32px 24px; }
  .brand-name { font-size: 0.9rem; }
  .brand-sub { font-size: 0.66rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .island { animation: none; }
}
