
:root{
  --bg:#0b0b10;
  --panel: rgba(16,16,26,.62);
  --text:#f2f2f6;
  --muted:rgba(242,242,246,.70);
  --line:rgba(242,242,246,.14);
  --accent:#7c5cff;
  --accent2:#00d2ff;
  --max:1080px;
  --r:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  color:var(--text);
  background:#000000;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:22px 18px 56px;}

/* Header */
.topbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background: rgba(16,16,26,.55);
  backdrop-filter: blur(10px);
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:12px;
}
.brand img{height:24px;width:auto;display:block;}

.lang{display:flex; gap:8px;}
.lang button,
.lang a{
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  color: rgba(242,242,246,.78);
  padding:8px 11px;
  border-radius:999px;
  cursor:pointer;
  font-weight:800;
  letter-spacing:.10em;
  text-transform:uppercase;
  font-size:11px;
}
.lang button.is-active{
  background: rgba(242,242,246,.92);
  color:#0b0b10;
  border-color: rgba(242,242,246,.28);
}

/* Hero */
.hero{
  margin-top:18px;
  height: calc(100svh - 22px - 56px - 60px);
  min-height: 520px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.hero-inner{
  width:100%;
  max-width: 920px;
  padding: 36px 22px;
  border:none;
  border-radius: 34px;
  /* Blend with background: effectively invisible */
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

h1{
  margin:0;
  font-size: clamp(34px, 6vw, 60px);
  letter-spacing:.10em;
  text-transform:uppercase;
  line-height:1.05;
}

/* Human + AI line (no X) */
.hxai{
  margin: 14px auto 0;
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
  font-size:11px;
  color: rgba(242,242,246,.82);

  position: relative;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(8,8,12,.72);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);

}
.hxai .dot{
  width:10px; height:10px; border-radius:999px;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(0,210,255,.9));
  box-shadow: 0 0 18px rgba(0,210,255,.30);
}
.hxai .pipe{
  width:64px; height:1px; background: rgba(242,242,246,.22);
  position:relative; overflow:hidden;
}
.hxai .pipe::after{
  content:"";
  position:absolute; inset:0;
  background:#000000;
  transform: translateX(-120%);
  animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan{
  0%{transform:translateX(-120%)}
  55%{transform:translateX(120%)}
  100%{transform:translateX(120%)}
}

.ctas{
  margin-top:18px;
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

.enter-hint{
  margin-top:10px;
  text-align:center;
  opacity:.82;
  font-size:13px;
  max-width:52ch;
  margin-left:auto;
  margin-right:auto;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
  font-size:12px;
}
.btn.primary{background: rgba(242,242,246,.92); color:#0b0b10; border-color: rgba(242,242,246,.22);}
.btn:hover{filter: brightness(1.08);}

.grid{
  margin-top:18px;
  display:grid;
  gap:12px;
  max-width: 860px;
  margin-left:auto;
  margin-right:auto;
}
.card{
  border:1px solid var(--line);
  border-radius: var(--r);
  background: rgba(16,16,26,.55);
  padding:16px;
}
.card h2{
  margin:0 0 6px 0;
  font-size: 13px;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.card p{margin:0; color:var(--muted); line-height:1.7;}

.footer{
  margin-top:26px;
  padding-top:16px;
  border-top:1px solid var(--line);
  text-align:center;
  color: rgba(242,242,246,.55);
  font-size:12px;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px;
  line-height:18px;
}
.footer #year{display:inline-block; min-width:4ch;}
html{scroll-behavior:smooth; overflow-y: auto}

/* Heartbeat line */
.pulse .beatline{
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: beatline 2.2s ease-in-out infinite;
  opacity: .9;
}
@keyframes beatline{
  0%{stroke-dashoffset:220; opacity:.35}
  35%{stroke-dashoffset:0; opacity:.95}
  70%{stroke-dashoffset:0; opacity:.55}
  100%{stroke-dashoffset:-220; opacity:.35}
}



/* v18 header redesign: avoid 'search bar' look */
.topbar{
  border-radius: 14px !important;
  background: transparent !important;
  border: 1px solid rgba(242,242,246,0.10) !important;
  padding: 12px 14px !important;
  box-shadow: none !important;
}
/* v18 hero stability: avoid up/down jump */
.hero{
  height:auto !important;
  min-height: calc(100svh - 140px) !important;
  padding: 10px 0 !important;
}
.container{padding-bottom: 40px !important;}

/* v19 topbar refinement */
.topbar{
  border-radius: 16px !important;
  padding: 10px 12px !important;
}
.brand--solo img{width:34px !important; height:34px !important; border-radius:14px !important;}

/* v20: header without frame */
.topbar{
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 14px 6px !important;
}
.brand{
  font-size: 0 !important; /* hide any accidental text spacing */
}
.brand img{height:24px;width:auto;display:block;}
.lang{gap:10px !important;}
.lang button,
.lang a{
  border-radius: 999px !important;
  padding: 8px 14px !important;
}

/* v20: fit + no jump */
.hero{
  min-height: 72svh !important;
  padding: 0 !important;
}
.hero-inner{
  width:100%;
  max-width: 920px;
  padding: 36px 22px;
  border:none;
  border-radius: 34px;
  /* Blend with background: effectively invisible */
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}


/* v20: stronger AI animation canvas layer */
#ai-net{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.container{position:relative; z-index:1;}

/* v21: stop scrollbar on home (no page scroll) */
body.home{overflow:hidden;}
/* allow scroll on internal pages */
body.page{overflow:auto;}

/* make canvas never affect layout */
#ai-net{position:fixed; inset:0; width:100%; height:100%; display:block; z-index:0; pointer-events:none;}
.container{position:relative; z-index:1;}

/* ensure hero doesn't exceed viewport */
body.home .container{min-height:100svh; display:flex; flex-direction:column;}
body.home .hero{flex:1; display:flex; align-items:center; justify-content:center; min-height:0 !important;}
body.home .footer{margin-top:auto;}

/* v22 header: transparent + inline divider */
.topbar{background: transparent !important; border:none !important; box-shadow:none !important; padding: 14px 10px !important;}
.navline{
  flex: 1 1 auto;
  height: 1px;
  background: rgba(242,242,246,0.18);
  margin: 0 18px;
  align-self: center;
}
/* keep logo on left, lang on right */
.topbar{display:flex; align-items:center; gap:14px;}
.brand{display:flex; align-items:center;}
.lang{margin-left: 0;}

/* v22 pulse: network style (v27 refined) */
.pulse svg{display:block}
.pulse .beatnodes circle{
  opacity:.85;
}
.pulse .beatline{
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: beatline 3.6s linear infinite;
  opacity: .9;
}
@keyframes beatline{
  0%{stroke-dashoffset:1; opacity:.18}
  20%{stroke-dashoffset:0; opacity:.78}
  70%{stroke-dashoffset:0; opacity:.52}
  100%{stroke-dashoffset:-1; opacity:.18}
}


/* v24: header truly transparent (no overlay) */
.topbar{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.topbar::before, .topbar::after{display:none !important; content:none !important;}

/* navline: thinner + softer to match mesh */
.navline{
  height: 1px !important;
  background: rgba(242,242,246,0.14) !important;
}

/* buttons slightly lighter */
.lang button,
.lang a{
  border: 1px solid rgba(242,242,246,0.18) !important;
}

/* v24 pulse refinement (smoother, lighter) */
.pulse .beatline{animation-duration: 3.2s !important;}
.pulse .beatnodes circle{animation-duration: 3.2s !important;}


/* v27 header: no blur block between logo and language */
.topbar{
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}
.navline{
  background: rgba(242,242,246,0.12) !important;
}


/* Center helper */
.center{min-height: calc(100svh - 22px - 56px - 60px); display:flex; flex-direction:column; justify-content:center; align-items:center; gap:12px;}


/* Webgame full-height shell */
body.page-webgame{min-height:100vh;display:flex;flex-direction:column;}
body.page-webgame main{flex:1;min-height:0;display:flex;}
body.page-webgame .gameShell{
  flex:1;min-height:0;
  border-radius:26px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.10);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset;
  background: rgba(0,0,0,0.30);
}
body.page-webgame #gameframe{width:100%;height:100%;border:0;display:block;background:transparent;}


/* === Home: about section === */
.section.about{
  max-width: 860px;
  margin: 18px auto 0 auto;
  padding: 18px 16px;
}
.section.about h2{
  margin: 0 0 10px 0;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(242,242,246,.88);
}
.section.about p{
  margin: 0 0 14px 0;
  color: var(--muted);
  line-height: 1.7;
}
.cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.card.link{
  display: block;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.card.link h3{
  margin: 0 0 6px 0;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(242,242,246,.9);
}
.card.link:hover{
  transform: translateY(-2px);
  border-color: rgba(242,242,246,.24);
  background: rgba(16,16,26,.72);
}
@media (max-width: 860px){
  .cards{ grid-template-columns: 1fr; }
}


.hidden{display:none !important;}


.lang a{display:inline-flex; align-items:center; justify-content:center; text-decoration:none;}


/* Inner pages: brand is visual only (no home nav) */
a.brand[data-nohome="1"]{cursor:default; pointer-events:none;}
