:root {
  --bg:       #020508;
  --surface:  #060C18;
  --elevated: #0A1222;
  --accent:   #00C8A8;
  --amber:    #C87820;
  --border:   rgba(0, 200, 168, 0.1);
  --border-hi: rgba(0, 200, 168, 0.45);
  --text:     #B0C4D8;
  --text-sec: #4E6070;
  --text-dim: #263040;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Canvas ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ── */
#app {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ── Header ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 32px;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #030B1A 0%, #071525 100%);
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(0,200,168,0.22), inset 0 1px 0 rgba(0,200,168,0.12);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.logo-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
}
.logo-name span { color: var(--accent); }

/* ── Lang toggle ── */
.lang-toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.lang-btn {
  padding: 6px 14px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-sec);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn.active {
  background: var(--accent);
  color: #020508;
  box-shadow: 0 0 14px rgba(0,200,168,0.5);
}

/* ── Nav ── */
nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
nav::-webkit-scrollbar { display: none; }
.tab {
  padding: 10px 20px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-sec);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
  display: inline-block;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-shadow: 0 0 18px rgba(0,200,168,0.65);
}

/* ── Panels ── */
.panel { display: none; }
.panel.active { display: block; }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 24px 0 28px;
  position: relative;
}
/* Dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: -20px -40px;
  background-image: radial-gradient(circle, rgba(0,200,168,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
}
.hero-badge {
  display: inline-block;
  padding: 5px 18px;
  border: 1px solid rgba(0,200,168,0.45);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
  background: rgba(0,200,168,0.04);
  font-family: 'Courier New', monospace;
}
.hero h1 {
  font-size: clamp(24px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 15px;
  color: var(--text-sec);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Feature grid ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.card-wrap {
  transition: box-shadow 0.35s;
  border-radius: 3px;
}
.card-wrap:hover {
  box-shadow: 0 0 28px rgba(0,200,168,0.22), 0 4px 24px rgba(0,0,0,0.6);
}

.feature-card {
  background: linear-gradient(155deg, #030A16 0%, #060E20 100%);
  border: 1px solid var(--border);
  border-top-color: rgba(0,200,168,0.3);
  border-left-color: rgba(0,200,168,0.18);
  border-radius: 3px;
  padding: 30px 24px 28px;
  position: relative;
  overflow: hidden;
  height: 100%;
  color: var(--accent);
}

/* Top scan-line */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(0,200,168,0.45) 40%, rgba(0,200,168,0.6) 60%, transparent 95%);
}

/* Number badge */
.feature-card::after {
  content: attr(data-num);
  position: absolute;
  top: 11px; right: 13px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(0,200,168,0.28);
  font-family: 'Courier New', monospace;
}

/* Pulsing status dot */
.status-dot {
  position: absolute;
  top: 14px; left: 16px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 2.8s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 0.25; transform: scale(1);   box-shadow: none; }
  50%       { opacity: 0.9;  transform: scale(1.35); box-shadow: 0 0 6px var(--accent); }
}

/* Icon box */
.feature-icon {
  width: 52px; height: 52px;
  background: rgba(0,200,168,0.05);
  border: 1px solid rgba(0,200,168,0.18);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 6px;
}

.feature-card h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.65;
}

/* ── Doc pages ── */
.doc-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.doc-header .date {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-family: 'Courier New', monospace;
}
.doc-header h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.doc-section { margin-bottom: 32px; }
.doc-section h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-family: 'Courier New', monospace;
}
.doc-section p, .doc-section li {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.7;
}
.doc-section a { color: var(--accent); }
.doc-section ul { list-style: none; padding: 0; }
.doc-section ul li { padding: 6px 0 6px 18px; position: relative; }
.doc-section ul li::before {
  content: '›';
  position: absolute;
  left: 4px; top: 5px;
  color: var(--accent);
  opacity: 0.7;
  font-size: 15px;
}
.doc-section p + p { margin-top: 10px; }

/* ── Support ── */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.support-card {
  background: linear-gradient(155deg, #030A16 0%, #060E20 100%);
  border-top:    1px solid rgba(0,200,168,0.38);
  border-left:   2px solid rgba(0,200,168,0.22);
  border-right:  1px solid rgba(0,200,168,0.06);
  border-bottom: 1px solid rgba(0,200,168,0.06);
  border-radius: 2px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  color: var(--accent);
}
/* Vertical left glow bar */
.support-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 50%;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
  opacity: 0.5;
}
.support-card .s-icon {
  width: 52px; height: 52px;
  background: rgba(0,200,168,0.05);
  border: 1px solid rgba(0,200,168,0.18);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.support-card h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
}
.support-card p { font-size: 13px; color: var(--text-sec); line-height: 1.6; flex: 1; }
.support-card a {
  display: inline-block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}
.support-card a:hover { text-decoration: underline; }

/* ── FAQ ── */
.faq-item {
  background: #030A16;
  border: 1px solid var(--border);
  border-left: 2px solid var(--border);
  border-radius: 2px;
  margin-bottom: 6px;
  overflow: hidden;
  transition: border-left-color 0.25s, border-top-color 0.25s;
}
.faq-item.open {
  border-left-color: var(--accent);
  border-top-color: rgba(0,200,168,0.3);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.3px;
}
.faq-q .arrow {
  font-size: 10px;
  color: var(--accent);
  transition: transform 0.25s;
  flex-shrink: 0;
  opacity: 0.6;
}
.faq-item.open .arrow { transform: rotate(180deg); opacity: 1; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 20px 16px; }

/* ── Footer ── */
footer {
  text-align: center;
  padding-top: 48px;
  font-size: 11px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  letter-spacing: 0.5px;
}
footer a { color: var(--text-sec); text-decoration: none; }
footer a:hover { color: var(--accent); }

@media (max-width: 480px) {
  .tab        { padding: 10px 14px; font-size: 10px; letter-spacing: 1.5px; }
  .lang-btn   { padding: 6px 10px;  font-size: 11px; }
  .hero h1    { font-size: 24px; letter-spacing: -0.5px; }
  .logo-name  { font-size: 15px; letter-spacing: 1.5px; }
}

/* ── Black hole suck-in interaction ── */
@keyframes bhShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  10%  { transform: translate(-11px,  -7px) rotate(-0.4deg); }
  20%  { transform: translate(  9px,  12px) rotate( 0.5deg); }
  30%  { transform: translate(-14px,   4px) rotate(-0.3deg); }
  40%  { transform: translate( 10px, -10px) rotate( 0.4deg); }
  50%  { transform: translate( -7px,  13px) rotate(-0.5deg); }
  60%  { transform: translate( 13px,  -6px) rotate( 0.3deg); }
  70%  { transform: translate(-10px,   8px) rotate(-0.4deg); }
  80%  { transform: translate(  6px, -11px) rotate( 0.2deg); }
  90%  { transform: translate( -8px,   6px) rotate(-0.3deg); }
}
body.bh-shake {
  animation: bhShake 0.08s linear infinite;
}
