/* ============ Base ============ */
:root {
  --lime: #8ee800;
  --lime-bright: #9be51a;
  --lime-soft: #b6f04a;
  --ink: #111213;
  --ink-60: rgba(17, 18, 19, 0.62);
  --ink-40: rgba(17, 18, 19, 0.42);
  --bg: #ffffff;
  --bg-gray: #f4f5f6;
  --card: #f6f7f8;
  --border: rgba(17, 18, 19, 0.08);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.container.center { text-align: center; }

.section { padding: 110px 0; }

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ Typography helpers ============ */
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-40);
  margin-bottom: 22px;
  text-transform: uppercase;
}
.eyebrow.green { color: var(--lime); }

.section-title {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.section-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-60);
  max-width: 640px;
}
.center .section-sub { margin: 0 auto; }

/* ============ Header ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 28px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
}
.brand img { width: 26px; height: 26px; object-fit: contain; }

.main-nav {
  display: flex;
  gap: 26px;
  margin: 0 auto;
  font-size: 14px;
  color: var(--ink-60);
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.icon-btn {
  border: none; background: none; cursor: pointer;
  color: var(--ink); display: flex; align-items: center;
}
.ghost-link { font-size: 13px; color: var(--ink-40); }
.ghost-link:hover { color: var(--ink); }
.btn-dark {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 999px;
  transition: opacity 0.2s;
}
.btn-dark:hover { opacity: 0.82; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 140px 32px 100px;
}
.hero-tag {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-40);
  margin-bottom: 36px;
}
.hero-line {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: clamp(48px, 9vh, 110px);
}
.hero-line:last-of-type { margin-bottom: 40px; }
.hero-sub {
  max-width: 560px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-60);
}

/* ============ Infrastructure ============ */
.infrastructure { background: var(--bg-gray); }

.infra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 70px;
  align-items: start;
}
.infra-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  margin-top: var(--offset, 0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.infra-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(17, 18, 19, 0.08);
}
.infra-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-40);
  margin-bottom: 20px;
}
.infra-logo { height: 34px; width: auto; object-fit: contain; margin-bottom: 20px; }
.infra-desc { font-size: 13.5px; line-height: 1.65; color: var(--ink-60); margin-bottom: 20px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-size: 11.5px;
  color: var(--ink-60);
  border: 1px solid var(--border);
  background: var(--bg-gray);
  padding: 4px 11px;
  border-radius: 999px;
}

/* ============ Ecosystem marquee ============ */
.ecosystem { background: var(--bg-gray); padding-bottom: 70px; }
.marquee-wrap { margin-top: 60px; display: flex; flex-direction: column; gap: 34px; }

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 30px; width: auto; object-fit: contain; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ Paths ============ */
.wave-chart {
  margin-top: 70px;
  background: url("../assets/decor/chart-grid.svg") repeat;
  border-radius: var(--radius);
}
.wave-chart svg { width: 100%; height: 200px; display: block; }

.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 26px;
}
.path-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.path-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(17, 18, 19, 0.07);
}
.path-icon { color: var(--ink); margin-bottom: 18px; }
.path-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.path-card p { font-size: 13.5px; line-height: 1.65; color: var(--ink-60); }

/* ============ QR section ============ */
.qr { background: var(--bg-gray); }

.qr-flow {
  margin: 60px auto 0;
  max-width: 860px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(rgba(17,18,19,0.12) 1px, transparent 1px) 0 0 / 14px 14px,
    #fff;
  padding: 34px 30px 40px;
}
.qr-flow-title { font-weight: 700; font-size: 16px; margin-bottom: 26px; }

.qr-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
}
.qr-step {
  flex: 1;
  border-radius: 10px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.qr-step span { font-size: 12px; opacity: 0.75; }
.qr-step.lime { background: var(--lime-bright); color: var(--ink); }
.qr-step.dark { background: #3a3d3f; color: #fff; }
.qr-arrow { align-self: center; color: var(--ink-40); font-size: 18px; }

.markets {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.markets-label { font-size: 13px; color: var(--ink-60); margin-right: 4px; }
.chip {
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  color: var(--ink-60);
}

/* ============ Why / bento ============ */
.bento {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 64px;
}
.bento-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(17, 18, 19, 0.07);
}
.bento-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.bento-card p { font-size: 13.5px; line-height: 1.65; color: var(--ink-60); }

.bento-card.wide { display: flex; flex-direction: column; gap: 26px; }
.bento-card.wide img { max-height: 260px; margin: 0 auto; object-fit: contain; }

.bento-card.tall { display: flex; flex-direction: column; justify-content: space-between; gap: 26px; }
.bento-card.tall img { max-height: 220px; margin: 10px auto 0; object-fit: contain; }
.center-text { text-align: center; }

.bento-card.frame {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(142,232,0,0.05), rgba(142,232,0,0.05)),
    var(--card);
}
.agent-frame {
  border: 1px solid rgba(142, 232, 0, 0.7);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 30px 26px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 0 1px rgba(142,232,0,0.12), 0 10px 40px rgba(142,232,0,0.14);
}
.agent-frame::before, .agent-frame::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
}
.agent-frame::before { top: -5px; left: -5px; background: var(--lime); }
.agent-frame::after { bottom: -5px; right: -5px; background: var(--lime); }

.bento-card.split {
  display: flex;
  gap: 20px;
  align-items: center;
}
.bento-card.split img { max-width: 42%; object-fit: contain; }

/* ============ U Card ============ */
.ucard { padding-bottom: 0; overflow: hidden; }

.ucard-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  margin-top: 64px;
  text-align: left;
}
.ucard-feature svg { margin-bottom: 14px; }
.ucard-feature h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.ucard-feature p { font-size: 13px; line-height: 1.7; color: var(--ink-60); }

.ucard-visual {
  margin: 60px auto -4px;
  max-width: 820px;
  width: 100%;
  /* the source SVG is a full ring of cards — show only the top fan like the original */
  aspect-ratio: 2 / 1.1;
  object-fit: cover;
  object-position: top;
}

/* ============ Security ============ */
.security { background: var(--bg-gray); }

.sec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 60px;
}
.sec-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.sec-card svg { margin-bottom: 16px; }
.sec-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.sec-card ul { list-style: none; }
.sec-card li {
  font-size: 13.5px;
  color: var(--ink-60);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.sec-card li:last-child { border-bottom: none; }

/* ============ FAQ ============ */
.faq { margin-top: 80px; }
.faq-title { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.faq-sub { font-size: 14px; color: var(--ink-60); margin-bottom: 28px; }

.faq-list {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 28px;
}
.faq-list details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-list details:last-child { border-bottom: none; }
.faq-list summary {
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 18px;
  color: var(--ink-40);
  transition: transform 0.25s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-60);
}

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
  padding: 70px 0 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
}
.footer-brand img { width: 150px; margin-bottom: 26px; }
.footer-tagline { font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.footer-note { font-size: 12.5px; line-height: 1.7; color: var(--ink-60); margin-bottom: 24px; }
.footer-copy { font-size: 11.5px; line-height: 1.7; color: var(--ink-40); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-60);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--ink);
  padding: 5px 0;
}
.footer-col a:hover { color: var(--lime); }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .section { padding: 80px 0; }
  .infra-grid { grid-template-columns: 1fr 1fr; }
  .infra-card { margin-top: 0; }
  .ucard-features { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .main-nav { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .infra-grid, .path-grid, .sec-grid, .ucard-features { grid-template-columns: 1fr; }
  .qr-steps { flex-direction: column; }
  .qr-arrow { transform: rotate(90deg); }
  .bento-card.split { flex-direction: column; }
  .bento-card.split img { max-width: 80%; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .ghost-link { display: none; }
}
