/* Reset & base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #e6f4ea;
  background: radial-gradient(1200px 800px at 70% 20%, rgba(0,255,170,0.06), transparent 60%) #050b0a;
  overflow-x: hidden;
}

/* Canvas layers */
#stars, #matrix {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  display: block;
}
#matrix { z-index: -2; mix-blend-mode: screen; opacity: 0.18; }

/* THREE container and halo rings */
#three-container {
  position: fixed;
  top: 12vh;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  z-index: -1;
  pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(0,255,170,0.35));
}
.glow-ring, .glow-ring-2 {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  border: 1px solid rgba(0,255,170,0.25);
  box-shadow: 0 0 40px rgba(0,255,170,0.25), inset 0 0 60px rgba(0,255,170,0.15);
  animation: spin 28s linear infinite;
}
.glow-ring-2 {
  inset: -60px;
  border-color: rgba(255,215,0,0.25);
  box-shadow: 0 0 40px rgba(255,215,0,0.2), inset 0 0 60px rgba(255,215,0,0.1);
  animation-duration: 36s;
  animation-direction: reverse;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg);} }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(5,11,10,0.8), rgba(5,11,10,0.2));
  border-bottom: 1px solid rgba(0,255,170,0.12);
  z-index: 10;
  padding: 10px 18px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 48px; height: 48px; object-fit: contain; border-radius: 50%;
  animation: slow-rotate 14s linear infinite;
  box-shadow: 0 0 16px rgba(255,215,0,0.25), 0 0 42px rgba(0,255,170,0.18);
}
@keyframes slow-rotate { from { transform: rotate(0deg);} to { transform: rotate(360deg);} }
.brand-text h1 {
  font-family: Orbitron, Inter, sans-serif;
  font-weight: 800; letter-spacing: 1.5px;
  margin: 0; font-size: 16px;
}
.tagline { margin: 0; font-size: 12px; color: #bcffd5; opacity: 0.9; }

.nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.nav a {
  text-decoration: none; color: #e6f4ea; font-weight: 600; font-size: 13px;
  padding: 6px 10px; border: 1px solid rgba(0,255,170,0.2); border-radius: 999px;
  background: linear-gradient(180deg, rgba(0,255,170,0.05), rgba(255,215,0,0.02));
}
.nav a:hover { transform: translateY(-1px); box-shadow: 0 0 16px rgba(0,255,170,0.2); }

/* Hero */
.hero {
  padding: 14vh 18px 8vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.ai-voice {
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(18px, 2.6vw, 26px);
  letter-spacing: 1.2px;
  color: #dfffea;
  text-shadow: 0 0 12px rgba(0,255,170,0.3);
  margin-bottom: 28px;
}
.ai-voice .prefix { color: #9fffc7; opacity: 0.9; margin-right: 8px; }
.cursor { animation: blink 1s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.cta {
  display: inline-block;
  padding: 12px 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #04150f; text-decoration: none;
  background: linear-gradient(90deg, #b5ffdb, #ffe89b);
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(0,255,170,0.36), 0 0 32px rgba(255,215,0,0.28);
  animation: heartbeat 2.6s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.04); }
  40% { transform: scale(0.98); }
  60% { transform: scale(1.05); }
}

/* Sections */
main { padding: 14px 18px 80px; max-width: 1200px; margin-inline: auto; }
.card {
  background: linear-gradient(180deg, rgba(4,13,11,0.75), rgba(4,13,11,0.4));
  border: 1px solid rgba(0,255,170,0.12);
  border-radius: 18px;
  padding: clamp(18px, 2.2vw, 28px);
  margin: 18px 0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35), inset 0 0 40px rgba(0,255,170,0.04);
}
.card h2 {
  font-family: Orbitron, Inter, sans-serif;
  letter-spacing: 1px;
}
.grid.two { display: grid; gap: 18px; grid-template-columns: 1fr; }
.grid.three { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px){
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
}

.values li { margin-bottom: 8px; }

.table-wrap { overflow-x: auto; }
table {
  width: 100%; border-collapse: collapse; border: 1px solid rgba(0,255,170,0.15);
  background: rgba(0,0,0,0.15);
}
th, td { padding: 12px; border-bottom: 1px solid rgba(0,255,170,0.12); text-align: left; }
thead th {
  background: linear-gradient(180deg, rgba(0,255,170,0.15), transparent);
  font-family: Orbitron, Inter, sans-serif;
}
.fine { opacity: 0.85; }

blockquote {
  margin: 0; padding: 14px 18px;
  border-left: 3px solid rgba(182, 255, 219, 0.6);
  background: rgba(0,255,170,0.08);
  font-style: italic;
  border-radius: 12px;
}

/* Holographic panels */
.holo-panels details {
  border: 1px solid rgba(0,255,170,0.18);
  border-radius: 14px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(0,255,170,0.06), rgba(255,215,0,0.03));
  overflow: hidden;
}
.holo-panels summary {
  list-style: none;
  cursor: pointer;
  padding: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.holo-panels summary::-webkit-details-marker { display: none; }
.holo-panels .panel { padding: 0 14px 14px; border-top: 1px dashed rgba(255,255,255,0.12); }

/* Signature */
.signature { margin-top: 10px; opacity: 0.95; }
.signature .name {
  font-family: "Orbitron", Inter, sans-serif;
  font-weight: 800; letter-spacing: 0.6px;
}
.signature .title { opacity: 0.85; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 30px 18px 60px;
  opacity: 0.9;
  font-size: 13px;
}

/* back to top */
#backToTop {
  position: fixed; right: 14px; bottom: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(0,255,170,0.35);
  background: rgba(4,13,11,0.6);
  color: #dfffea; font-weight: 900;
  box-shadow: 0 0 20px rgba(0,255,170,0.25);
  cursor: pointer; display: none;
}
#backToTop.show { display: block; }

/* reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(8px) scale(0.98);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.show { opacity: 1; transform: translateY(0) scale(1); }
