:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --card: #16161f;
  --border: #222233;
  --white: #f0f0f5;
  --muted: #8888a0;
  --cyan: #00e5ff;
  --cyan-dark: #00b8d4;
  --violet: #7c4dff;
  --violet-dark: #651fff;
  --cyan-soft: rgba(0, 229, 255, 0.06);
  --violet-soft: rgba(124, 77, 255, 0.06);
  --glow-cyan: rgba(0, 229, 255, 0.25);
  --glow-violet: rgba(124, 77, 255, 0.25);
  --heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--heading);
  color: var(--white);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ──────────────────────────────── */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 0 30px rgba(0, 229, 255, .06); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(0, 229, 255, .06);
  border: 1px solid rgba(0, 229, 255, .2);
  border-radius: 6px;
}

.logo-text {
  font-family: var(--heading);
  font-size: .9375rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .08em;
}

.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
  letter-spacing: .02em;
}
.nav-links a:hover { color: var(--cyan); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
  transition: transform .3s, opacity .3s;
}

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative;
  padding: 150px 0 80px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, .03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.glow-1 {
  width: 500px; height: 500px;
  top: -10%; left: -5%;
  background: var(--glow-violet);
  animation: drift 12s ease-in-out infinite alternate;
}
.glow-2 {
  width: 400px; height: 400px;
  bottom: -15%; right: -5%;
  background: var(--glow-cyan);
  animation: drift 10s ease-in-out 2s infinite alternate-reverse;
}

@keyframes drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 30px); }
}

.hero-inner { position: relative; z-index: 1; max-width: 700px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, .2);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.pulse {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all .2s;
  letter-spacing: .03em;
}
.btn-neon {
  background: linear-gradient(135deg, var(--cyan-dark) 0%, var(--violet) 100%);
  color: var(--bg);
}
.btn-neon:hover {
  box-shadow: 0 0 20px var(--glow-cyan), 0 0 40px var(--glow-violet);
  transform: translateY(-1px);
}
.btn-wire {
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, .3);
}
.btn-wire:hover {
  background: rgba(0, 229, 255, .06);
  border-color: var(--cyan);
}

.hero-pillars {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.pillar-icon { color: var(--cyan); display: flex; }

/* ── Sections ────────────────────────────── */
.section { padding: 96px 0; }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.tag.light { color: var(--violet); }

.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }

.section-head h2 {
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  font-weight: 700;
  color: var(--white);
}

/* ── About ───────────────────────────────── */
.about { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}

.about-label h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}

.about-body { display: flex; flex-direction: column; gap: 16px; }

.mission-card {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.mc-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 8px;
}
.mission-card p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.7;
}

.about-desc {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 8px;
}

/* ── Core Tech ───────────────────────────── */
.core { background: var(--bg); }

.core-block {
  margin-bottom: 56px;
}
.core-block:last-child { margin-bottom: 0; }

.core-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.core-letter {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 229, 255, .25);
  border-radius: 6px;
  flex-shrink: 0;
}

.core-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
}

.core-intro {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 640px;
}

.core-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.core-cards.single { grid-template-columns: 1fr; }

.cc {
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color .25s, box-shadow .25s;
}
.cc:hover {
  border-color: rgba(0, 229, 255, .25);
  box-shadow: 0 0 24px rgba(0, 229, 255, .06);
}

.cc-icon {
  color: var(--cyan);
  margin-bottom: 16px;
}

.cc h4 {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.cc p {
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Edge ────────────────────────────────── */
.edge { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.edge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.edge-item {
  padding: 32px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color .25s;
}
.edge-item:hover { border-color: rgba(124, 77, 255, .3); }

.edge-num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: .4;
  display: block;
  margin-bottom: 14px;
}

.edge-item h3 {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.edge-item p {
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Outlook ─────────────────────────────── */
.outlook {
  padding: 80px 0;
  background: linear-gradient(145deg, #0d0d1a 0%, #1a0d2e 100%);
  text-align: center;
}

.outlook-inner { max-width: 680px; }

.outlook blockquote {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: rgba(240, 240, 245, .85);
  margin: 16px 0 28px;
}

.outlook-brand {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--violet);
}

/* ── Contact ─────────────────────────────── */
.contact {
  padding: 80px 0;
  background: var(--bg);
  text-align: center;
}

.contact-inner { max-width: 560px; }

.contact h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.contact p {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  padding: 14px 36px;
  border: 1px solid rgba(0, 229, 255, .3);
  border-radius: 4px;
  transition: all .2s;
}
.contact-link:hover {
  background: rgba(0, 229, 255, .08);
  border-color: var(--cyan);
  box-shadow: 0 0 20px var(--glow-cyan);
}

/* ── Footer ──────────────────────────────── */
.footer {
  padding: 24px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: .6875rem;
  color: rgba(136, 136, 160, .5);
}
.footer-name {
  font-weight: 600;
  color: var(--muted);
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .core-cards { grid-template-columns: 1fr; }
  .edge-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 15, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s, opacity .3s, visibility .3s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 14px 0; }

  .menu-toggle { display: flex; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 120px 0 64px; }
  .section { padding: 72px 0; }
  .outlook, .contact { padding: 60px 0; }
  .hero-pillars { gap: 8px; }
  .pillar { font-size: .625rem; padding: 6px 10px; }
  .footer-bar { flex-direction: column; text-align: center; }
}
