/* ── Variables ─────────────────────────────── */
:root {
  --bg:         #03060a;
  --bg2:        #060d14;
  --panel:      rgba(0, 200, 160, 0.03);
  --border:     rgba(0, 200, 160, 0.15);
  --accent:     #00c8a0;
  --accent2:    #00e8b8;
  --dim:        rgba(0, 200, 160, 0.4);
  --text:       #e8f4f0;
  --text-dim:   rgba(232, 244, 240, 0.45);
  --red:        #ff4444;
  --mono:       'Share Tech Mono', monospace;
  --condensed:  'Barlow Condensed', sans-serif;
  --body:       'Barlow', sans-serif;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  overflow-x: hidden;
}

/* ── Scanline overlay ───────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

/* ── Grain overlay ──────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.6;
}

/* ── Grid background ────────────────────────── */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,160,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,160,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}

/* ── Glow orb ───────────────────────────────── */
.glow-orb {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,160,0.06) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: orb-pulse 6s ease-in-out infinite;
}

@keyframes orb-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50%       { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* ── Top accent bar ─────────────────────────── */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
  z-index: 200;
  animation: bar-scan 3s ease-in-out infinite;
}

@keyframes bar-scan {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

/* ── NAV ────────────────────────────────────── */
.nav {
  position: fixed;
  top: 2px; left: 0; right: 0;
  height: 56px;
  background: rgba(3, 6, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 150;
}

.nav-logo {
  font-family: var(--condensed);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  text-transform: uppercase;
}

.nav-logo span { color: var(--accent); text-shadow: 0 0 20px rgba(0,200,160,0.4); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--dim);
  text-transform: uppercase;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-btn:hover,
.nav-btn.open { color: var(--accent); }

.chevron {
  font-size: 8px;
  transition: transform 0.2s;
  display: inline-block;
}

.nav-btn.open .chevron { transform: rotate(180deg); }

/* Dropdown — hidden by default, shown via .open class (JS click-toggle) */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: rgba(6, 13, 20, 0.99);
  border: 1px solid var(--border);
  padding: 8px 0;
  z-index: 300;
  display: none;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -1px; left: 20%; right: 40%;
  height: 1px;
  background: var(--accent);
}

.nav-dropdown.open { display: block; }

.nav-dropdown a {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-decoration: none;
  text-transform: uppercase;
  padding: 10px 20px;
  transition: color 0.15s, background 0.15s;
}

.nav-dropdown a:hover {
  color: var(--accent);
  background: rgba(0,200,160,0.05);
}

.nav-dropdown .dd-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(0,200,160,0.25);
  text-transform: uppercase;
  padding: 8px 20px 4px;
  pointer-events: none;
}

.nav-cta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  padding: 9px 18px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  margin-left: 8px;
}

.nav-cta:hover { background: var(--accent2); }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  width: 22px; height: 1px;
  background: var(--accent);
  transition: all 0.2s;
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 58px; left: 0; right: 0;
  background: rgba(3,6,10,0.98);
  border-bottom: 1px solid var(--border);
  padding: 16px 0 24px;
  z-index: 149;
  flex-direction: column;
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-menu a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--dim);
  text-decoration: none;
  text-transform: uppercase;
  padding: 12px 32px;
  transition: color 0.15s;
}

.nav-mobile-menu a:hover { color: var(--accent); }

.nav-mobile-menu .mobile-section {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: rgba(0,200,160,0.25);
  padding: 16px 32px 6px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav { padding: 0 20px; }
}

/* ── Corner decorations ─────────────────────── */
.corner {
  position: fixed;
  width: 20px; height: 20px;
  z-index: 50;
}

.corner--tl { top: 72px; left: 16px; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.corner--tr { top: 72px; right: 16px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.corner--bl { bottom: 52px; left: 16px; border-bottom: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.corner--br { bottom: 52px; right: 16px; border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent); }

/* ── Ticker ─────────────────────────────────── */
.ticker-wrap {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 36px;
  background: rgba(0,200,160,0.05);
  border-top: 1px solid var(--border);
  overflow: hidden;
  z-index: 50;
  display: flex;
  align-items: center;
}

.ticker-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--bg);
  background: var(--accent);
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-track {
  display: flex;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
  padding: 0 40px;
}

.ticker-item span { color: var(--accent); }

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

/* ── Page wrapper ───────────────────────────── */
.page-wrap {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 120px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Section headings ───────────────────────── */
.section-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--condensed);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
}

.section-title span { color: var(--accent); }

.section-body {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 640px;
}

/* ── Divider line ───────────────────────────── */
.divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 32px 0;
}

/* ── Panel / card ───────────────────────────── */
.panel {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 32px;
  position: relative;
}

.panel::before {
  content: '';
  position: absolute;
  top: -1px; left: 20%; right: 60%;
  height: 1px;
  background: var(--accent);
}

/* ── Animations ─────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { opacity: 0; animation: fade-up 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
