/* ========================================
   Baiyin Group - Global Stylesheet
   Design Language: Dark, Restrained, Eastern × Future
   Accent: #38BDF8 (Cyan-Blue)
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: #E5E7EB;
  background: #07090C;
  overflow-x: hidden;
  font-feature-settings: "kern", "liga";
  letter-spacing: 0.01em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease, opacity .25s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Tokens ---------- */
:root {
  --bg-0: #07090C;
  --bg-1: #0B0E13;
  --bg-2: #11151C;
  --bg-3: #161B23;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text-0: #FFFFFF;
  --text-1: #E5E7EB;
  --text-2: #9CA3AF;
  --text-3: #6B7280;
  --accent: #38BDF8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-glow: rgba(56, 189, 248, 0.45);

  --max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 14px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  margin-right: 12px;
  vertical-align: middle;
}

h1, h2, h3, h4 { font-weight: 300; line-height: 1.15; color: var(--text-0); letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6vw, 84px); font-weight: 200; }
h2 { font-size: clamp(30px, 4vw, 54px); }
h3 { font-size: clamp(22px, 2vw, 30px); }
h4 { font-size: clamp(17px, 1.4vw, 20px); font-weight: 400; }

p { color: var(--text-2); font-size: 15px; line-height: 1.75; }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--text-1); line-height: 1.7; font-weight: 300; }

.text-cn { font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif; }
.text-en { font-family: "SF Pro Display", -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.04em; }
.mono { font-family: "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.02em; }

.hl { color: var(--text-0); }
.muted { color: var(--text-3); }
.accent { color: var(--accent); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}
.section--tight { padding: clamp(60px, 7vw, 100px) 0; }

.row { display: flex; flex-wrap: wrap; gap: 32px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

/* ---------- Header / Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(7, 9, 12, 0.55);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(7, 9, 12, 0.85);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-size: 15px; color: var(--text-0); letter-spacing: 0.06em; }
.brand-name small { color: var(--text-3); font-weight: 300; margin-left: 6px; font-size: 12px; letter-spacing: 0.1em; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 400;
  letter-spacing: 0.04em;
  position: relative;
  padding: 8px 0;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text-0); }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 16px;
  height: 1px;
  background: var(--accent);
}

.nav-cta {
  font-size: 13px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-1);
  transition: all .25s var(--ease);
}
.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 28px;
  height: 28px;
  position: relative;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--text-0);
  margin: 7px 0;
  transition: all .3s var(--ease);
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open .nav-mobile { display: block; }
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: rgba(7, 9, 12, 0.95);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  padding: 24px var(--gutter);
}
.nav-mobile a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-1);
  font-size: 15px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 30% 40%, rgba(56,189,248,0.12), transparent 70%),
    linear-gradient(180deg, rgba(7,9,12,0.6) 0%, rgba(7,9,12,0.35) 40%, rgba(7,9,12,0.95) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-1);
  margin-bottom: 32px;
  background: rgba(255,255,255,0.02);
}
.hero-tag .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.05;
  margin-bottom: 28px;
  font-weight: 200;
}
.hero h1 .accent {
  background: linear-gradient(135deg, #38BDF8 0%, #67E8F9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 300;
}
.hero-sub {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--text-2);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 48px;
  font-weight: 300;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  max-width: 720px;
}
.hero-meta-item .num {
  font-size: 28px;
  color: var(--text-0);
  font-weight: 200;
  letter-spacing: -0.02em;
}
.hero-meta-item .label {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.12em;
  margin-top: 4px;
  text-transform: uppercase;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: all .3s var(--ease);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #07090C;
}
.btn-primary:hover {
  background: #67E8F9;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -8px var(--accent-glow);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text-1);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-1);
  font-size: 14px;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
}
.btn-arrow:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.btn-arrow span.arrow {
  transition: transform .3s var(--ease);
}
.btn-arrow:hover span.arrow {
  transform: translateX(4px);
}

/* ---------- Section Heading ---------- */
.section-head {
  margin-bottom: 64px;
  max-width: 820px;
}
.section-head .eyebrow { display: inline-block; margin-bottom: 24px; }
.section-head h2 { margin-bottom: 20px; }
.section-head p { color: var(--text-2); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.75; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-glow) 50%, transparent 100%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.card:hover {
  border-color: rgba(56, 189, 248, 0.25);
  transform: translateY(-3px);
  background: var(--bg-2);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.18);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 24px;
}
.card-icon svg { width: 22px; height: 22px; }

.card h4 { margin-bottom: 12px; color: var(--text-0); }
.card p { font-size: 14px; color: var(--text-2); }

.card-tag {
  display: inline-block;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* ---------- AOS × EOS Diagram ---------- */
.aoseos {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.aoseos-grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .aoseos-grid { grid-template-columns: 1fr; }
}
.aoseos-col {
  padding: 32px;
  background: var(--bg-2);
  border-radius: 12px;
  border: 1px solid var(--line);
  position: relative;
}
.aoseos-col h3 {
  font-size: 28px;
  margin-bottom: 6px;
  color: var(--text-0);
}
.aoseos-col .role {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
}
.aoseos-col p { font-size: 14px; line-height: 1.75; }
.aoseos-col ul {
  margin-top: 20px;
  list-style: none;
  font-size: 13px;
  color: var(--text-2);
}
.aoseos-col li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.aoseos-col li:last-child { border-bottom: none; }
.aoseos-col li .k { color: var(--text-1); font-weight: 400; }
.aoseos-col li .v { color: var(--text-3); font-size: 12px; font-family: "SF Mono", Menlo, monospace; }

.aoseos-bridge {
  display: grid;
  place-items: center;
  position: relative;
}
.aoseos-bridge::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--accent) 50%, transparent 100%);
}
.aoseos-bridge-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: "SF Mono", Menlo, monospace;
  font-size: 14px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 32px var(--accent-glow);
}
@media (max-width: 900px) {
  .aoseos-bridge { padding: 16px 0; }
  .aoseos-bridge::before { left: 0; right: 0; top: 50%; bottom: auto; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
}

/* ---------- Module Grid (CMS/ICS/OMS/DAS) ---------- */
.module-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.module-card:hover {
  border-color: rgba(56, 189, 248, 0.25);
  background: var(--bg-2);
}
.module-card .mod-code {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}
.module-card .mod-code .code {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 28px;
  color: var(--accent);
  font-weight: 300;
  letter-spacing: 0.04em;
}
.module-card .mod-code .num {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--text-3);
}
.module-card h4 { margin-bottom: 12px; }
.module-card p { font-size: 14px; }
.module-card .analogy {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
  font-family: "SF Mono", Menlo, monospace;
  letter-spacing: 0.04em;
}

/* ---------- Showcase (Sample Spaces) ---------- */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 900px) { .showcase-row { grid-template-columns: 1fr; } }

.showcase-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-2);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all .4s var(--ease);
}
.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.showcase-card:hover img { transform: scale(1.04); }
.showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(7,9,12,0.95) 100%);
}
.showcase-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px;
  z-index: 2;
}
.showcase-meta .label {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.showcase-meta h3 {
  color: var(--text-0);
  font-size: clamp(22px, 2vw, 30px);
  margin-bottom: 10px;
}
.showcase-meta p {
  color: var(--text-2);
  font-size: 13px;
  max-width: 520px;
}

/* ---------- Business Group ---------- */
.bg-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  height: 100%;
  transition: all .35s var(--ease);
}
.bg-card:hover {
  border-color: rgba(56, 189, 248, 0.25);
  background: var(--bg-2);
  transform: translateY(-3px);
}
.bg-card .ord {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: 24px;
  display: block;
}
.bg-card h3 { margin-bottom: 8px; }
.bg-card .en {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  font-family: "SF Pro Display", -apple-system, sans-serif;
}
.bg-card ul {
  list-style: none;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.bg-card ul li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-2);
  position: relative;
  padding-left: 18px;
}
.bg-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 6px; height: 1px;
  background: var(--accent);
}

/* ---------- CTA Bar (Cooperation) ---------- */
.coop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 900px) { .coop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .coop-grid { grid-template-columns: 1fr; } }
.coop-cell {
  background: var(--bg-1);
  padding: 36px 28px;
  text-align: center;
  transition: all .3s var(--ease);
  cursor: pointer;
}
.coop-cell:hover {
  background: var(--bg-2);
  color: var(--accent);
}
.coop-cell svg { width: 28px; height: 28px; margin: 0 auto 16px; color: var(--accent); }
.coop-cell h4 { font-size: 16px; margin-bottom: 6px; color: var(--text-0); font-weight: 400; }
.coop-cell p { font-size: 12px; color: var(--text-3); letter-spacing: 0.06em; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer h5 {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 24px;
  font-weight: 500;
}
.footer ul { list-style: none; }
.footer ul li { padding: 6px 0; }
.footer ul li a { font-size: 13px; color: var(--text-2); }
.footer ul li a:hover { color: var(--accent); }

.footer-brand p {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 18px;
  max-width: 360px;
  line-height: 1.7;
}

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-3);
}
.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--text-1); }

/* ---------- Page Header (Inner Pages) ---------- */
.page-hero {
  padding: 180px 0 80px;
  position: relative;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(50% 100% at 50% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
}
.page-hero .eyebrow { display: inline-block; margin-bottom: 20px; }
.page-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 24px;
  font-weight: 200;
}
.page-hero p {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--text-1);
  max-width: 720px;
  line-height: 1.7;
}

/* ---------- Stats Strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats-cell {
  background: var(--bg-1);
  padding: 36px 24px;
  text-align: center;
}
.stats-cell .num {
  font-size: clamp(32px, 3.5vw, 44px);
  color: var(--text-0);
  font-weight: 200;
  letter-spacing: -0.02em;
}
.stats-cell .num .accent { color: var(--accent); }
.stats-cell .label {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.14em;
  margin-top: 8px;
  text-transform: uppercase;
}

/* ---------- Tech Stack (5-layer) ---------- */
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stack-row {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 32px;
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 32px;
  align-items: center;
  transition: all .3s var(--ease);
}
@media (max-width: 700px) {
  .stack-row { grid-template-columns: 1fr; gap: 12px; }
}
.stack-row:hover {
  border-color: rgba(56, 189, 248, 0.25);
  background: var(--bg-2);
}
.stack-row .layer-num {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.stack-row h4 { font-size: 18px; }
.stack-row p { font-size: 13px; color: var(--text-2); margin: 0; }

/* ---------- Featured Visual ---------- */
.feature-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid var(--line);
}
.feature-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ---------- Decorative Lines ---------- */
.deco-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 75%);
}

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Selection ---------- */
::selection { background: var(--accent); color: #000; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ---------- Page-specific small adjustments ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-row {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.contact-row .label {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--text-3);
  text-transform: uppercase;
  min-width: 120px;
}
.contact-row .val { color: var(--text-1); font-size: 15px; }
.contact-row .val a:hover { color: var(--accent); }


/* ========================================
   2026-05 Homepage Brightness & Trust Upgrade
   ======================================== */
:root {
  --bg-0: #061116;
  --bg-1: #081A22;
  --bg-2: #0B1F2A;
  --bg-3: #123140;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text-0: #F5F7FA;
  --text-1: #E6EEF4;
  --text-2: #B8C3CC;
  --text-3: #8CA0AE;
  --accent: #36CFF2;
  --accent-2: #2ED3B7;
  --accent-soft: rgba(54, 207, 242, 0.10);
  --accent-glow: rgba(54, 207, 242, 0.18);
  --light-surface: #F6FAFC;
  --light-surface-2: #EAF6F8;
}

body {
  color: var(--text-1);
  background:
    radial-gradient(1200px 520px at 20% -5%, rgba(54, 207, 242, 0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 5%, rgba(46, 211, 183, 0.08), transparent 58%),
    linear-gradient(180deg, #061116 0%, #081A22 46%, #0B1F2A 100%);
}

p { color: var(--text-2); }
.lead { color: var(--text-1); }
.muted { color: var(--text-3); }

.nav {
  background: rgba(8, 26, 34, 0.70);
  border-bottom-color: rgba(255,255,255,0.05);
}
.nav.is-scrolled {
  background: rgba(8, 26, 34, 0.88);
  border-bottom-color: var(--line);
}
.nav-inner { gap: 16px; }
.nav-links { gap: 24px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-eos {
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(54, 207, 242, 0.26);
  background: rgba(246, 250, 252, 0.08);
  color: var(--text-0);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.nav-eos:hover {
  color: #041016;
  background: linear-gradient(135deg, #36CFF2 0%, #2ED3B7 100%);
  border-color: transparent;
}
.nav-cta {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.14);
  color: var(--text-1);
}
.nav-cta:hover { background: rgba(255,255,255,0.06); }
@media (max-width: 900px) {
  .nav-actions { display: none; }
}
.nav-mobile {
  background: rgba(8, 26, 34, 0.96);
}

.hero {
  min-height: auto;
  padding: 140px 0 96px;
}
.hero-bg img { opacity: 0.42; filter: saturate(0.92) brightness(1.05); }
.hero-bg::after {
  background:
    radial-gradient(60% 54% at 26% 28%, rgba(54,207,242,0.10), transparent 72%),
    radial-gradient(42% 34% at 80% 28%, rgba(46,211,183,0.10), transparent 76%),
    linear-gradient(180deg, rgba(6,17,22,0.20) 0%, rgba(8,26,34,0.36) 30%, rgba(8,26,34,0.78) 72%, rgba(8,26,34,0.96) 100%);
}
.hero-inner { max-width: 1340px; }
.hero-copy {
  max-width: 860px;
  padding: 34px 36px 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 80px rgba(1, 15, 22, 0.26);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-tag {
  background: rgba(255,255,255,0.06);
  color: var(--text-1);
}
.hero-tag .dot { box-shadow: 0 0 8px rgba(54, 207, 242, 0.28); }
.hero-kicker {
  font-size: clamp(18px, 2vw, 28px);
  color: var(--text-1);
  line-height: 1.35;
  margin: -8px 0 18px;
  font-weight: 300;
}
.hero-sub {
  color: var(--text-1);
  max-width: 720px;
  margin-bottom: 28px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text-0);
  border-color: rgba(255,255,255,0.14);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(54, 207, 242, 0.28);
}
.hero-platform {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-bottom: 28px;
}
.hero-platform-card,
.hero-side-note {
  border-radius: 18px;
  padding: 22px 22px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}
.hero-platform-card h4,
.hero-side-note h4 { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.hero-platform-card p,
.hero-side-note p { font-size: 14px; color: var(--text-1); line-height: 1.7; }
.hero-audience { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hero-audience span {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-1);
}
.hero-meta {
  gap: 20px;
  max-width: none;
  border-top: none;
  padding-top: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hero-meta-item {
  padding: 22px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
}
.hero-meta-item .num { font-size: 30px; }
.hero-meta-item .label { color: var(--text-2); line-height: 1.5; }

.card,
.aoseos,
.aoseos-col,
.module-card,
.bg-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  border-color: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(2, 16, 24, 0.12);
}
.card:hover,
.module-card:hover,
.bg-card:hover,
.aoseos-col:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.08));
}
.card p,
.module-card p,
.bg-card p,
.aoseos-col p,
.aoseos-col li .k { color: var(--text-1); }
.aoseos-col li .v,
.bg-card .en,
.section-head p,
.module-card .analogy,
.bg-card ul li,
.card p { color: var(--text-2); }
.card-icon {
  background: rgba(54, 207, 242, 0.10);
  border-color: rgba(54, 207, 242, 0.18);
}
.module-card .analogy,
.bg-card ul { border-top-color: rgba(255,255,255,0.08); }

.showcase-card {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 16px 34px rgba(2, 16, 24, 0.10);
}
.showcase-card::after {
  background: linear-gradient(180deg, rgba(6,17,22,0.04) 24%, rgba(8,26,34,0.70) 100%);
}
.showcase-meta p { color: #D7E0E7; }
.showcase-note {
  margin-top: 28px;
  text-align: center;
  font-size: 15px;
  color: var(--text-1);
}

.section-light {
  background: linear-gradient(180deg, rgba(246,250,252,0.98) 0%, rgba(234,246,248,0.98) 100%);
  color: #10202B;
}
.section-light h2,
.section-light h3,
.section-light h4,
.section-light .lead,
.section-light p,
.section-light .section-head p,
.section-light .stats-cell .label,
.section-light .future-kicker,
.section-light .trust-item p,
.section-light .trust-item li { color: #16303F; }
.section-light .eyebrow { color: #1285A1; }
.section-light .eyebrow::before { background: #1285A1; }
.section-light .card,
.section-light .trust-card,
.section-light .future-panel,
.section-light .cta-panel {
  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(17,45,61,0.10);
  box-shadow: 0 16px 34px rgba(16, 48, 63, 0.08);
}
.section-light .btn-ghost,
.section-light .btn-secondary {
  color: #10202B;
  border-color: rgba(16,48,63,0.14);
  background: rgba(255,255,255,0.70);
}
.section-light .btn-ghost:hover,
.section-light .btn-secondary:hover { color: #041016; border-color: rgba(54,207,242,0.38); }

.aoseos-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0 24px;
}
.aoseos-topline span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text-1);
  font-size: 13px;
}
.aoseos-bottom {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.aoseos-bottom strong { color: var(--text-0); font-weight: 400; }
.aoseos-bottom p { margin: 0; font-size: 14px; }

.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tool-card {
  position: relative;
  padding: 32px 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 16px 40px rgba(1, 15, 22, 0.12);
}
.tool-card .icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  background: rgba(54, 207, 242, 0.10);
  border: 1px solid rgba(54, 207, 242, 0.18);
  color: var(--accent);
}
.tool-card .icon svg { width: 24px; height: 24px; }
.tool-card .code { display: block; font-size: 28px; color: var(--accent); font-family: 'SF Mono', Menlo, monospace; margin-bottom: 10px; }
.tool-card h4 { margin-bottom: 12px; }
.tool-card p { color: var(--text-1); font-size: 14px; }
.tool-card .small { margin-top: 14px; font-size: 12px; color: var(--text-2); letter-spacing: 0.08em; text-transform: uppercase; }

.future-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px;
  align-items: stretch;
}
.future-panel { padding: 42px; border-radius: 24px; }
.future-kicker {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1A526A;
  margin-bottom: 18px;
}
.future-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.future-keywords span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(18, 133, 161, 0.08);
  border: 1px solid rgba(18, 133, 161, 0.12);
  font-size: 13px;
}
.future-statement {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.12;
  color: #10202B;
  font-weight: 250;
  margin-top: 18px;
}
.future-statement .accent-strong { color: #1285A1; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item {
  padding: 30px 26px;
  border-radius: 20px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(17,45,61,0.10);
}
.trust-item .ord {
  display: inline-block;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #1285A1;
  margin-bottom: 16px;
}
.trust-item h4 { margin-bottom: 10px; color: #10202B; }
.trust-item p { font-size: 14px; line-height: 1.75; }

.cta-panel {
  padding: 56px 46px;
  border-radius: 28px;
  text-align: center;
}
.cta-panel p { max-width: 760px; margin: 0 auto 28px; }
.cta-panel .hero-buttons { justify-content: center; margin-bottom: 0; }

.index-page .section:nth-child(odd) .section-head,
.index-page .section:nth-child(even) .section-head { max-width: 860px; }

@media (max-width: 1100px) {
  .hero-platform,
  .future-band,
  .tool-grid,
  .trust-grid,
  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-copy { padding: 26px 22px; }
  .hero-platform,
  .future-band,
  .tool-grid,
  .trust-grid,
  .hero-meta { grid-template-columns: 1fr; }
  .aoseos-bottom { align-items: flex-start; }
}
