/* ===== VARIANT 5: DEEP SIGNAL ===== */
/* V3 concept + V2 colors + boot screen + typewriter + canvas mesh */

:root {
  --bg: #020817;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(0, 212, 255, 0.2);
  --border-green: rgba(74, 222, 128, 0.22);
  --text: #f0f6ff;
  --muted: rgba(240, 246, 255, 0.65);
  --muted-2: rgba(240, 246, 255, 0.38);
  --cyan: #00d4ff;
  --cyan-dim: rgba(0, 212, 255, 0.1);
  --cyan-glow: rgba(0, 212, 255, 0.22);
  --green: #4ade80;
  --green-dim: rgba(74, 222, 128, 0.08);
  --purple: #7c3aed;
  --radius: 2px;
  --container: 1260px;
}

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

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.mono { font-family: "Share Tech Mono", monospace; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.t-cyan  { color: var(--cyan) !important; }
.t-green { color: var(--green) !important; }
.mt { margin-top: 16px; }

/* ═══════════════════════════════
   BOOT OVERLAY
═══════════════════════════════ */
#boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

#boot-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.boot-inner {
  width: min(520px, calc(100% - 40px));
  font-family: "Share Tech Mono", monospace;
}

.boot-logo {
  width: 80px;
  margin: 0 auto 20px;
  padding: 12px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.06);
}

.boot-logo img { width: 100%; filter: drop-shadow(0 0 10px rgba(0,212,255,0.3)); }

.boot-title {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--cyan);
  margin-bottom: 28px;
}

.boot-log {
  min-height: 140px;
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: rgba(240,246,255,0.55);
  margin-bottom: 20px;
  border-left: 1px solid rgba(0,212,255,0.2);
  padding-left: 12px;
}

.boot-log .bl-ok   { color: var(--green); }
.boot-log .bl-warn { color: #f5c84a; }
.boot-log .bl-info { color: var(--cyan); }

.boot-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.boot-bar-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.boot-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--cyan), var(--purple));
  width: 0%;
  transition: width 0.15s linear;
  box-shadow: 0 0 8px var(--cyan);
}

.boot-bar-pct {
  font-size: 12px;
  color: var(--cyan);
  min-width: 36px;
  text-align: right;
}

/* ═══════════════════════════════
   BACKGROUND
═══════════════════════════════ */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse at 8% 0%,   rgba(0, 100, 200, 0.28), transparent 45%),
    radial-gradient(ellipse at 92% 100%, rgba(124, 58, 237, 0.16), transparent 45%),
    radial-gradient(ellipse at 50% 30%,  rgba(0, 212, 255, 0.04), transparent 50%),
    #020817;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.07) 2px,
    rgba(0,0,0,0.07) 4px
  );
  pointer-events: none;
}

.corner {
  position: fixed;
  width: 22px;
  height: 22px;
  z-index: 100;
  pointer-events: none;
}
.tl { top:12px; left:12px;  border-top:  2px solid var(--cyan); border-left:  2px solid var(--cyan); opacity:0.35; }
.tr { top:12px; right:12px; border-top:  2px solid var(--cyan); border-right: 2px solid var(--cyan); opacity:0.35; }
.bl { bottom:12px; left:12px;  border-bottom:2px solid var(--cyan); border-left: 2px solid var(--cyan); opacity:0.35; }
.br { bottom:12px; right:12px; border-bottom:2px solid var(--cyan); border-right:2px solid var(--cyan); opacity:0.35; }

/* ═══════════════════════════════
   CONTAINER / HEADER
═══════════════════════════════ */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(2, 8, 23, 0.92);
  border-bottom: 1px solid var(--border-cyan);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 16px; }

.brand-logo-wrap {
  position: relative;
  width: 60px; height: 60px;
  border: 1px solid var(--border-cyan);
  background: var(--cyan-dim);
  padding: 6px;
  overflow: hidden;
}

.brand-logo { width:100%; height:100%; object-fit:contain; }

.logo-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,212,255,0.1) 50%, transparent 60%);
  animation: scan 3s linear infinite;
}

@keyframes scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

.brand-name {
  font-family: "Share Tech Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--text);
}

.brand-subtitle { margin-top:4px; font-size:11px; color:var(--cyan); letter-spacing:0.06em; }

.nav { display:flex; align-items:center; gap:28px; }
.nav a {
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 0.15s;
}
.nav a:hover { color: var(--cyan); }

/* ═══════════════════════════════
   BUTTONS
═══════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-family: "Share Tech Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--cyan);
  color: #020817;
  border-color: var(--cyan);
  font-weight: 700;
}
.btn-primary:hover {
  background: #33ddff;
  border-color: #33ddff;
  box-shadow: 0 0 20px var(--cyan-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-cyan);
}
.btn-secondary:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
}

/* ═══════════════════════════════
   HERO
═══════════════════════════════ */
.hero { padding: 60px 0 40px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.terminal-header {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}

.t-prompt { color: var(--cyan); }
.t-path   { color: var(--green); }
.t-blink  {
  color: var(--cyan);
  animation: blink-caret 1s step-end infinite;
}

@keyframes blink-caret { 0%,100%{opacity:1} 50%{opacity:0} }

.terminal-line {
  font-size: 12px;
  color: var(--muted-2);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-top: none;
  background: rgba(0,0,0,0.2);
  margin-bottom: 28px;
}

/* TYPEWRITER H1 */
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  min-height: 2.3em;
}

.tw-line { color: var(--text); }
.tw-cursor {
  color: var(--cyan);
  font-weight: 400;
  animation: blink-caret 0.8s step-end infinite;
  font-size: 0.75em;
}

.hero p {
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 560px;
}

.hero-actions { display:flex; gap:12px; margin-top:28px; flex-wrap:wrap; }

/* CANVAS MESH WRAPPER */
.hero-mesh-wrap {
  position: relative;
  border: 1px solid var(--border-cyan);
  background: rgba(0,0,0,0.3);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,212,255,0.06);
}

#mesh-canvas {
  display: block;
  width: 100%;
  height: 340px;
}

.mesh-overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border-cyan);
  background: rgba(2,8,23,0.82);
  backdrop-filter: blur(8px);
}

.moi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.moi-row:nth-child(even) { border-right: none; }
.moi-row:nth-last-child(-n+2) { border-bottom: none; }

.moi-k { color: var(--muted-2); }
.moi-v { font-weight: 600; }

/* ═══════════════════════════════
   TICKER
═══════════════════════════════ */
.ticker-wrap {
  border-top: 1px solid var(--border-cyan);
  border-bottom: 1px solid var(--border-cyan);
  background: rgba(0,212,255,0.025);
  padding: 11px 0;
  overflow: hidden;
}

.ticker {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  animation: ticker-scroll 30s linear infinite;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════
   SECTIONS (shared)
═══════════════════════════════ */
.section { padding: 64px 0; }
.section-last { padding-bottom: 80px; }

.section-label {
  display: block;
  margin-bottom: 12px;
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--cyan);
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-text { margin:0; font-size:16px; line-height:1.85; color:var(--muted); }

/* ═══════════════════════════════
   ABOUT
═══════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.spec-table { border: 1px solid var(--border-cyan); overflow: hidden; }

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: background 0.15s;
}
.spec-row:last-child { border-bottom: none; }
.spec-row:hover { background: var(--cyan-dim); }

.sp-key { color: var(--muted-2); font-size:11px; letter-spacing:0.16em; min-width:140px; }
.sp-val { color: var(--text); text-align:right; }

/* ═══════════════════════════════
   METRICS — count-up animation
═══════════════════════════════ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-cyan);
  border: 1px solid var(--border-cyan);
  margin-top: 28px;
}

.metric-card {
  position: relative;
  background: var(--bg);
  padding: 28px 24px;
  transition: background 0.15s;
}
.metric-card:hover { background: rgba(0,212,255,0.04); }

.mc-border-tl {
  position: absolute; top:8px; left:8px;
  width:16px; height:16px;
  border-top:1px solid var(--cyan); border-left:1px solid var(--cyan);
  opacity:0.45;
}
.mc-border-br {
  position: absolute; bottom:8px; right:8px;
  width:16px; height:16px;
  border-bottom:1px solid var(--cyan); border-right:1px solid var(--cyan);
  opacity:0.45;
}

.mc-label { font-size:10px; letter-spacing:0.24em; color:var(--muted-2); margin-bottom:10px; }

.mc-val {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}
.mc-val small { font-size:16px; letter-spacing:0; opacity:0.8; }

.mc-desc { margin-top:8px; font-size:13px; color:var(--muted-2); }

/* ═══════════════════════════════
   ADVANTAGES
═══════════════════════════════ */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 28px;
}

.adv-card { background:var(--bg); padding:28px 22px; transition:background 0.15s; }
.adv-card:hover { background:rgba(0,212,255,0.03); }

.adv-num { font-size:13px; color:var(--cyan); opacity:0.65; margin-bottom:12px; letter-spacing:0.1em; }
.adv-title { font-size:14px; font-weight:600; color:var(--text); margin-bottom:8px; line-height:1.4; }
.adv-desc  { font-size:13px; color:var(--muted); line-height:1.7; }

/* ═══════════════════════════════
   PRODUCTS
═══════════════════════════════ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-side-text {
  max-width: 300px;
  margin: 0;
  color: var(--cyan);
  font-family: "Share Tech Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-align: right;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-cyan);
  border: 1px solid var(--border-cyan);
}

.product-card { background:var(--bg); overflow:hidden; transition:background 0.15s; }
.product-card:hover { background:#030c1a; }

.product-image-wrap { position:relative; aspect-ratio:16/10; overflow:hidden; }

.product-image {
  width:100%; height:100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: saturate(0.5) brightness(0.78);
}
.product-card:hover .product-image {
  transform: scale(1.04);
  filter: saturate(0.75) brightness(0.88);
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,8,23,0.96), rgba(2,8,23,0.28), transparent);
}

.product-badge {
  position: absolute;
  top:10px; left:10px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  border: 1px solid var(--border-cyan);
  background: rgba(2,8,23,0.82);
  padding: 3px 8px;
}

.over-image { position:absolute; left:14px; right:14px; bottom:14px; z-index:2; }

.product-title { margin:0; font-size:16px; font-weight:700; line-height:1.3; color:var(--text); }

.product-body { padding:18px; }
.product-body p { margin:0 0 12px; font-size:13px; line-height:1.65; color:var(--muted); }

.specs-row { display:flex; gap:8px; flex-wrap:wrap; }
.spec {
  font-size:11px; letter-spacing:0.12em;
  color:var(--green);
  border:1px solid var(--border-green);
  background:var(--green-dim);
  padding:3px 8px;
}

/* ═══════════════════════════════
   INVEST
═══════════════════════════════ */
.invest-box {
  border: 1px solid var(--border-cyan);
  background: rgba(0,212,255,0.02);
  box-shadow: 0 0 60px rgba(0,212,255,0.04);
}

.ib-header {
  padding: 12px 28px;
  border-bottom: 1px solid var(--border-cyan);
  background: rgba(0,212,255,0.05);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.ib-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 28px;
}

.ib-left h2 { margin-bottom:16px; }

.invest-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:24px; }

.ib-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-cyan);
  border: 1px solid var(--border-cyan);
}

.ib-stat { background:var(--bg); padding:24px 20px; text-align:center; }

.ibs-val { font-size:36px; font-weight:700; letter-spacing:-0.02em; margin-bottom:6px; }
.ibs-lab { font-size:10px; letter-spacing:0.2em; color:var(--muted-2); line-height:1.4; }

/* ═══════════════════════════════
   CONTACT
═══════════════════════════════ */
.contact-box {
  border: 1px solid var(--border-cyan);
  background: rgba(0,0,0,0.25);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.contact-cards { display:flex; flex-direction:column; gap:10px; min-width:320px; }

.contact-card {
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  padding: 14px 18px;
  transition: border-color 0.15s;
}
.contact-card:hover { border-color: var(--border-cyan); }

.cc-key { font-size:10px; letter-spacing:0.24em; color:var(--cyan); margin-bottom:6px; }
.cc-val { font-size: clamp(11px, 3.2vw, 14px); color:var(--text); white-space: nowrap; }

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (max-width: 1100px) {
  .hero-grid      { grid-template-columns: 1fr; }
  .about-grid     { grid-template-columns: 1fr; }
  .metrics-grid   { grid-template-columns: repeat(2, 1fr); }
  .adv-grid       { grid-template-columns: repeat(2, 1fr); }
  .cards-grid     { grid-template-columns: repeat(2, 1fr); }
  .ib-grid        { grid-template-columns: 1fr; }
  .contact-box    { grid-template-columns: 1fr; }
  #mesh-canvas    { height: 260px; }
}

@media (max-width: 860px) {
  .nav { display:none; }
  .nav-cta { display:none; }
  .corner { display:none; }
  .metrics-grid   { grid-template-columns: 1fr 1fr; }
  .adv-grid       { grid-template-columns: 1fr; }
  .cards-grid     { grid-template-columns: 1fr; }
  .ib-right       { grid-template-columns: 1fr 1fr; }
  .section-head   { flex-direction:column; align-items:flex-start; }
  .section-side-text { text-align:left; }
  .contact-cards  { min-width:0; }
}

@media (max-width: 480px) {
  .contact-box  { padding: 24px 20px; }
  .contact-card { padding-left: 14px; padding-right: 14px; }
}
