:root {
  color-scheme: dark;
  --bg: #06070b;
  --bg-soft: #0b0d14;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f7f8f8;
  --muted: #a7adbb;
  --dim: #6e7585;
  --blue: #5e6ad2;
  --blue-2: #828fff;
  --cyan: #5eead4;
  --green: #38d996;
  --orange: #fb923c;
  --rose: #fb7185;
  --violet: #a78bfa;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 32px 90px rgba(0, 0, 0, .48);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -20%, rgba(94, 106, 210, .24), transparent 32rem),
    linear-gradient(180deg, #07080c 0%, #090b12 48%, #050609 100%);
  color: var(--text);
  font-family: var(--font);
  font-feature-settings: "cv01", "ss03";
  overflow-x: hidden;
}
body::selection { background: rgba(130,143,255,.35); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  transform: translateY(-140%);
  z-index: 50;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--text);
  color: #050609;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.ambient { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.orb { position: absolute; width: 38rem; height: 38rem; border-radius: 50%; filter: blur(88px); opacity: .24; }
.orb-one { top: -16rem; left: -12rem; background: var(--blue); }
.orb-two { top: 20rem; right: -18rem; background: var(--rose); opacity: .16; }
.orb-three { bottom: -18rem; left: 18%; background: var(--cyan); opacity: .10; }
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.72), transparent 78%);
}
.noise {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 10, 16, .72);
  backdrop-filter: blur(22px);
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
}
.brand { display: inline-flex; align-items: center; gap: 11px; padding-left: 5px; }
.brand img { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 13px; letter-spacing: .16em; }
.brand small { color: var(--muted); font-size: 12px; }
.header-nav { display: flex; gap: 6px; }
.header-nav a, .header-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-radius: 999px;
  padding: 0 16px;
  color: #d7dbea;
  font-weight: 600;
  font-size: 14px;
}
.header-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.header-cta { background: #f7f8f8; color: #08090a; box-shadow: inset 0 -1px 0 rgba(0,0,0,.18); }
.header-cta:hover { background: #fff; }

.hero { min-height: 640px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .72fr); align-items: center; gap: 34px; padding: 84px 0 56px; }
.eyebrow { margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.eyebrow span { width: 8px; height: 8px; border-radius: 999px; background: var(--green); box-shadow: 0 0 18px var(--green); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 22px; font-size: clamp(3.25rem, 9vw, 7.7rem); line-height: .86; letter-spacing: -0.075em; font-weight: 800; text-wrap: balance; }
h2 { margin-bottom: 14px; font-size: clamp(2rem, 5vw, 4.2rem); line-height: .94; letter-spacing: -0.058em; font-weight: 800; text-wrap: balance; }
h3 { margin-bottom: 12px; font-size: clamp(1.55rem, 2vw, 2.15rem); line-height: 1; letter-spacing: -0.04em; }
.lead { max-width: 690px; color: #bbc1ce; font-size: clamp(1.06rem, 1.8vw, 1.32rem); line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; border-radius: 999px; padding: 0 20px; font-weight: 700; border: 1px solid var(--line); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: #f7f8f8; color: #07080c; border-color: transparent; }
.btn.ghost { background: rgba(255,255,255,.035); color: #e8ebf5; }

.hero-console {
  position: relative;
  min-height: 510px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.026));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.12);
}
.hero-console::before { content:""; position:absolute; inset:-1px; background: radial-gradient(circle at 50% 0%, rgba(130,143,255,.38), transparent 48%); opacity:.8; }
.console-bar, .console-body, .mini-map { position: relative; z-index: 1; }
.console-bar { height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.18); }
.console-bar span { width: 11px; height: 11px; border-radius: 50%; background: #fb7185; }
.console-bar span:nth-child(2) { background: #fbbf24; }
.console-bar span:nth-child(3) { background: #34d399; }
.console-bar strong { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.console-body { display: grid; gap: 12px; padding: 18px; }
.status-row { display: grid; grid-template-columns: 14px auto 1fr; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(0,0,0,.20); }
.status-row strong { font-size: 30px; letter-spacing: -0.05em; }
.status-row small { color: var(--muted); font-weight: 600; }
.pulse { width: 11px; height: 11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 20px var(--green); }
.pulse.blue { background: var(--blue-2); box-shadow: 0 0 20px var(--blue-2); }
.pulse.violet { background: var(--violet); box-shadow: 0 0 20px var(--violet); }
.mini-map { margin: 16px; height: 230px; border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.07), transparent 64%), rgba(0,0,0,.18); }
.mini-map::before, .mini-map::after { content:""; position:absolute; inset:20%; border:1px solid rgba(255,255,255,.08); border-radius: 50%; }
.mini-map::after { inset:34%; }
.mini-map i { position:absolute; left:var(--x); top:var(--y); width:13px; height:13px; border-radius:50%; background:var(--c); box-shadow:0 0 24px var(--c); transform: translate(-50%, -50%); }

.feature, .network {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.feature p:not(.eyebrow), .network p { color: var(--muted); line-height: 1.62; font-size: 1.05rem; }
.suite-stack { display: grid; gap: 10px; }
.suite-stack a { display: flex; justify-content: space-between; gap: 18px; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.045); transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.suite-stack a:hover { transform: translateX(4px); background: rgba(255,255,255,.075); border-color: var(--line-strong); }
.suite-stack span { color: var(--muted); text-align: right; }

.projects { padding: 54px 0 28px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 22px; }
.section-head h2 { max-width: 650px; margin-bottom: 0; }
.section-head p:last-child { max-width: 430px; color: var(--muted); line-height: 1.56; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.project-card {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  isolation: isolate;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.project-card:hover { transform: translateY(-5px); border-color: var(--line-strong); background: rgba(255,255,255,.06); }
.project-card::before { content:""; position:absolute; inset:0; z-index:-2; opacity:.72; background: radial-gradient(circle at 85% 10%, var(--accent, rgba(130,143,255,.42)), transparent 18rem); }
.project-card::after { content:""; position:absolute; inset:1px; z-index:-1; border-radius: calc(var(--radius-lg) - 1px); background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); }
.hero-card { grid-column: span 2; grid-row: span 2; min-height: 676px; padding: 28px; }
.card-glow { position: absolute; width: 34rem; height: 34rem; right: -15rem; top: -18rem; background: rgba(94,106,210,.55); filter: blur(70px); border-radius: 50%; z-index: -3; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag, .live { display:inline-flex; align-items:center; gap:8px; min-height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.18); color: #dfe3ed; font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.project-card h3 { margin-top: auto; }
.hero-card h3 { font-size: clamp(3rem, 5.6vw, 5.6rem); letter-spacing: -0.075em; }
.project-card p { color: #b4bbc9; line-height: 1.56; margin-bottom: 22px; }
.hero-card p { max-width: 580px; font-size: 1.12rem; }
.card-link, .split-actions a, .quick-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.045); color: #f0f2f7; font-weight: 700; transition: background .18s ease, transform .18s ease; }
.card-link { justify-content: space-between; padding: 0 14px 0 18px; width: 100%; }
.card-link:hover, .split-actions a:hover, .quick-links a:hover { background: rgba(255,255,255,.10); transform: translateY(-1px); }
.card-link span { color: var(--blue-2); }
.quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 8px 0 14px; }
.quick-links a { padding: 0 10px; }
.split-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bluescore { --accent: rgba(94, 106, 210, .58); }
.crown { --accent: rgba(251, 146, 60, .38); }
.wdv { --accent: rgba(94, 234, 212, .35); }
.gallery { --accent: rgba(96, 165, 250, .32); }
.festival { --accent: rgba(244, 63, 94, .34); }
.legacy { --accent: rgba(167, 139, 250, .38); }

.network { margin-top: 16px; }
.network h2 { margin-bottom: 0; }
.site-footer { display: flex; justify-content: space-between; gap: 18px; padding: 34px 0 54px; color: var(--dim); font-size: 14px; }
.site-footer strong { color: var(--text); letter-spacing: .12em; }
.site-footer a:hover { color: var(--text); }

[data-reveal] { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.reveal-pending { opacity: 0; transform: translateY(18px); }
.reveal-pending.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 64px; }
  .hero-console { min-height: 420px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-card { min-height: 560px; }
}
@media (max-width: 780px) {
  .site-header { border-radius: 28px; align-items: stretch; flex-wrap: wrap; }
  .header-nav { order: 3; width: 100%; justify-content: space-between; }
  .header-nav a { flex: 1; justify-content: center; padding-inline: 10px; }
  .header-cta { margin-left: auto; }
  .hero { padding-top: 46px; }
  h1 { font-size: clamp(3.2rem, 17vw, 5.4rem); }
  .feature, .network, .section-head { grid-template-columns: 1fr; display: grid; }
  .suite-stack a { flex-direction: column; gap: 4px; }
  .suite-stack span { text-align: left; }
  .project-grid { grid-template-columns: 1fr; }
  .hero-card { grid-column: auto; grid-row: auto; min-height: 600px; }
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { flex-direction: column; }
}
@media (max-width: 480px) {
  .shell, .site-header { width: min(100% - 20px, 1180px); }
  .brand small { display: none; }
  .header-cta { width: 100%; justify-content: center; }
  .hero-console { min-height: 380px; }
  .feature, .network, .project-card { padding: 18px; border-radius: 22px; }
  .hero-card { min-height: 540px; }
  .mini-map { height: 170px; }
}
