/* FLUX site.css — dark neon data-rights theme */
:root {
  --bg: #04060c;
  --bg2: #080d18;
  --ink: #e8f1f2;
  --muted: #8fa3b3;
  --line: rgba(140, 180, 200, 0.14);
  --teal: #4dffcc;
  --ember: #ff6b38;
  --violet: #8a78ff;
  --amber: #ffcc47;
  --blue: #4dc3ff;
  --magenta: #ff8ad8;
  --green: #73ff8c;
  --white: #f2f2ff;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
          -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--teal); color: #04110c; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}
#flux-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.node-labels { position: absolute; inset: 0; pointer-events: none; }
.node-label {
  position: absolute; top: 0; left: 0;
  font-size: 11px; letter-spacing: 0.18em;
  color: rgba(200, 225, 235, 0.55);
  font-family: var(--mono);
  white-space: nowrap;
  will-change: transform;
}
.topnav {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 40px;
  z-index: 5;
}
.brand {
  color: var(--ink); text-decoration: none;
  font-family: var(--mono); font-weight: 700; letter-spacing: 0.22em;
  display: flex; align-items: center; gap: 10px;
}
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot { 50% { opacity: 0.35; } }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.3em; font-weight: 400; }
.topnav-links { display: flex; gap: 28px; }
.topnav-links a {
  color: var(--muted); text-decoration: none; font-size: 14px; letter-spacing: 0.12em;
  transition: color 0.25s;
}
.topnav-links a:hover { color: var(--teal); }

.hero-copy {
  position: absolute; z-index: 4;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(92vw, 900px);
  pointer-events: none;
}
.hero-copy .cta { pointer-events: auto; }
.kicker {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.42em; color: var(--teal);
  margin-bottom: 26px;
}
.mega {
  font-size: clamp(72px, 14vw, 168px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 30px;
  text-shadow: 0 0 60px rgba(77, 255, 204, 0.25);
}
.mega .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(70px) rotate(4deg);
  animation: ch-in 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.mega .ch:nth-child(1) { animation-delay: 0.15s; }
.mega .ch:nth-child(2) { animation-delay: 0.30s; }
.mega .ch:nth-child(3) { animation-delay: 0.45s; color: var(--teal); }
.mega .ch:nth-child(4) { animation-delay: 0.60s; color: var(--teal); }
@keyframes ch-in { to { opacity: 1; transform: none; } }
.hero-sub {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--muted); line-height: 2; letter-spacing: 0.14em;
  margin-bottom: 38px;
}
.reveal { opacity: 0; animation: fade-up 1.1s ease forwards; animation-delay: 0.9s; }
.hero-sub.reveal { animation-delay: 1.0s; }
.cta.reveal { animation-delay: 1.2s; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.cta {
  display: inline-block;
  padding: 14px 38px;
  border: 1px solid rgba(77, 255, 204, 0.55);
  color: var(--teal); text-decoration: none;
  letter-spacing: 0.28em; font-size: 14px;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.cta:hover {
  background: rgba(77, 255, 204, 0.12);
  box-shadow: 0 0 28px rgba(77, 255, 204, 0.25);
  color: #d8fff2;
}
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1px solid rgba(140, 180, 200, 0.4);
  border-radius: 12px;
  z-index: 4;
}
.scroll-hint span {
  display: block; width: 4px; height: 8px; margin: 7px auto 0;
  border-radius: 2px; background: var(--teal);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 50% { transform: translateY(10px); opacity: 0.2; } }

/* ---------- sections ---------- */
main { position: relative; z-index: 2; background: linear-gradient(var(--bg), var(--bg2)); }
section { padding: 110px 6vw; max-width: 1280px; margin: 0 auto; }
.section-head { margin-bottom: 64px; }
.section-head h2 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800; letter-spacing: 0.1em;
  margin: 18px 0 20px;
}
.section-head h2 .red { color: var(--ember); }
.lede { color: var(--muted); font-size: 16px; letter-spacing: 0.08em; line-height: 1.9; }

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(10, 16, 28, 0.55);
  backdrop-filter: blur(6px);
  padding: 34px 28px 30px;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s, box-shadow 0.35s;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--violet), var(--magenta));
  opacity: 0; transition: opacity 0.35s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(77, 255, 204, 0.4); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.card:hover::before { opacity: 1; }
.card-no {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.3em;
  color: var(--teal); margin-bottom: 16px;
}
.card h3 { font-size: 21px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 14px; line-height: 1.5; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.95; letter-spacing: 0.04em; }
.card-tag {
  margin-top: 18px; display: inline-block;
  font-size: 12px; letter-spacing: 0.24em; color: var(--amber);
  border: 1px solid rgba(255, 204, 71, 0.35);
  padding: 6px 14px; border-radius: 20px;
}

/* ---------- process ---------- */
.process { border-top: 1px solid var(--line); }
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px; counter-reset: step;
}
.step {
  border: 1px solid var(--line);
  padding: 36px 28px; border-radius: 4px;
  background: rgba(10, 16, 28, 0.4);
  position: relative;
}
.step-no {
  font-family: var(--mono); font-size: 44px; font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--teal);
  margin-bottom: 14px;
}
.step h3 { font-size: 20px; letter-spacing: 0.2em; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.9; }

/* ---------- contact ---------- */
.contact { border-top: 1px solid var(--line); text-align: center; }
.contact .section-head { margin-bottom: 48px; }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px; margin-bottom: 54px; text-align: left;
}
.contact-item {
  border: 1px solid var(--line); border-radius: 4px;
  padding: 28px; background: rgba(10, 16, 28, 0.4);
}
.contact-item p:last-child { font-size: 17px; letter-spacing: 0.06em; margin-top: 10px; }
.demo-note {
  color: var(--muted); font-size: 13px; line-height: 2;
  max-width: 720px; margin: 0 auto;
  border-top: 1px dashed var(--line); padding-top: 28px;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 30px 6vw;
  text-align: center;
  color: var(--muted); font-size: 12.5px; letter-spacing: 0.06em; line-height: 2;
  background: var(--bg);
}
.footer .sep { margin: 0 10px; opacity: 0.5; }

/* ---------- scroll animations (JS hooks) ---------- */
.g-fade { opacity: 0; transform: translateY(46px); }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .topnav { padding: 16px 20px; }
  .topnav-links { display: none; }
  section { padding: 80px 6vw; }
  .node-label { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .mega .ch, .reveal { animation: none; opacity: 1; transform: none; }
  .brand-dot, .scroll-hint span { animation: none; }
  html { scroll-behavior: auto; }
}
