:root {
  --bg: #05080e;
  --panel: rgba(12, 18, 30, 0.65);
  --neon-cyan: #00f2fe;
  --neon-purple: #9d4edd;
  --text: #e2e8f0;
  --text-muted: #8b9bb4;
  --border: rgba(0, 242, 254, 0.15);
  --glow: 0 0 15px rgba(0, 242, 254, 0.2);
}

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

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body.dark-future {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, .brand, .btn, .eyebrow {
  font-family: 'Space Grotesk', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

/* -----------------------------
   Sci-Fi Background Elements
------------------------------ */
.matrix-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -2;
  background: 
    linear-gradient(rgba(0, 242, 254, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 254, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(500px) rotateX(20deg) scale(1.5) translateY(-50px);
  animation: gridMove 20s linear infinite;
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 80%, transparent);
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 50px; }
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}

.orb-1 {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, var(--neon-cyan), transparent 70%);
  top: -10vw; left: -10vw;
  animation: float1 15s ease-in-out infinite alternate;
}

.orb-2 {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, var(--neon-purple), transparent 70%);
  bottom: -20vw; right: -10vw;
  animation: float2 20s ease-in-out infinite alternate;
}

@keyframes float1 { 100% { transform: translate(5vw, 10vw); opacity: 0.6; } }
@keyframes float2 { 100% { transform: translate(-10vw, -5vw); opacity: 0.5; } }


/* -----------------------------
   Navigation
------------------------------ */
.floating-nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 3rem;
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  box-shadow: var(--glow);
  width: max-content;
  max-width: 90vw;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand .highlight {
  color: var(--neon-cyan);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--neon-cyan);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; width: 0%; height: 2px;
  background: var(--neon-cyan);
  transition: 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* -----------------------------
   Global Components
------------------------------ */
.container {
  width: min(1100px, 90%);
  margin-inline: auto;
}

.glass-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.outline-glow:hover {
  box-shadow: var(--glow), 0 10px 40px rgba(0,0,0,0.6);
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.4);
}

.cyber-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: 0.3s ease;
  cursor: pointer;
  box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.1);
}

.cyber-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 20px var(--neon-cyan);
}

.system-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.pulse-dot {
  width: 8px; height: 8px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: pulse 2s infinite;
}

.pulse-dot.critical {
  background: #ff3366;
  box-shadow: 0 0 10px #ff3366;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.section {
  padding: 6rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title .highlight {
  color: var(--neon-cyan);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 3rem;
}

.link-hl {
  color: var(--neon-cyan);
  border-bottom: 1px dashed var(--neon-cyan);
}

.link-hl:hover {
  color: var(--neon-purple);
  border-bottom-color: var(--neon-purple);
}

/* -----------------------------
   Hero
------------------------------ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.glitch {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
  position: relative;
  display: inline-block;
}

.glitch.delay {
  background: -webkit-linear-gradient(0deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin: 2rem 0 3rem;
  max-width: 700px;
}

.hl-text {
  color: #fff;
  font-weight: 600;
}

/* -----------------------------
   Focus Areas
------------------------------ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* -----------------------------
   MagenSec Cyber Section
------------------------------ */
.magensec-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  border-color: rgba(255, 51, 102, 0.3);
  box-shadow: 0 10px 40px rgba(255,51,102,0.05);
}

.magensec-banner:hover {
  border-color: #ff3366;
  box-shadow: 0 10px 50px rgba(255,51,102,0.15);
}

.magensec-content h2 {
  font-size: 3rem;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.large-text {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1rem;
}

.radar {
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255,51,102,0.3);
  position: relative;
  margin: 0 auto;
  background: 
    linear-gradient(90deg, transparent 49%, rgba(255,51,102,0.2) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255,51,102,0.2) 50%, transparent 51%);
  overflow: hidden;
}

.sweep {
  position: absolute;
  top: 0; left: 50%;
  width: 50%; height: 50%;
  background: linear-gradient(45deg, rgba(255,51,102,0.5), transparent);
  transform-origin: bottom left;
  animation: radar-sweep 2s linear infinite;
  border-right: 2px solid #ff3366;
}

@keyframes radar-sweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.dot {
  position: absolute; width: 6px; height: 6px;
  background: #ff3366; border-radius: 50%;
  box-shadow: 0 0 8px #ff3366;
  opacity: 0;
  animation: dot-flash 2s infinite;
}

.d1 { top: 30%; left: 60%; animation-delay: 0.5s; }
.d2 { top: 60%; left: 20%; animation-delay: 1.2s; }
.d3 { top: 70%; left: 70%; animation-delay: 1.8s; }

@keyframes dot-flash {
  0% { opacity: 0; transform: scale(0.5); }
  10% { opacity: 1; transform: scale(1.5); }
  20% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}

@media (max-width: 900px) {
  .magensec-banner { grid-template-columns: 1fr; }
  .radar { width: 200px; height: 200px; margin-top: 2rem; }
}

/* -----------------------------
   Innovation Portfolio Timeline
------------------------------ */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 1px dashed var(--neon-cyan);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.t-node {
  position: absolute;
  left: -2.35rem; top: 0;
  width: 12px; height: 12px;
  background: var(--bg);
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-cyan);
}

.t-content {
  padding: 1.5rem 2rem;
}

.t-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--neon-purple);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.t-content h4 {
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
  color: #fff;
}

/* -----------------------------
   DNA / Team Section
------------------------------ */
.dna-grid {
  margin-top: 2rem;
}

.mt-4 { margin-top: 2rem; }
.mt-3 { margin-top: 1.5rem; }

.minimal {
  padding: 1.5rem 2rem;
}

.minimal h3 {
  margin-top: 0;
  color: #fff;
}

/* -----------------------------
   Footer
------------------------------ */
.site-footer {
  margin-top: 5rem;
  margin-bottom: 2rem;
  border-radius: 20px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links a {
  margin: 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--neon-cyan); }
.copy { font-size: 0.8rem; color: #556677; }

/* -----------------------------
   Animations / Reveals
------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
