/* mAImate — Tech / Cyber landing theme */

:root {
  --cyber-bg: #05080f;
  --cyber-panel: #0a0a0a;
  --cyber-cyan: #00f0ff;
  --cyber-green: #39ff14;
  --cyber-violet: #c026d3;
  --cyber-text: #f8fafc;
  --cyber-muted: rgba(248, 250, 252, 0.65);
  --glass-bg: rgba(8, 12, 22, 0.72);
  --glass-border: rgba(0, 240, 255, 0.22);
  --glow-cyan: rgba(0, 240, 255, 0.35);
  --glow-green: rgba(57, 255, 20, 0.25);
  --glow-violet: rgba(192, 38, 211, 0.2);
  --circuit: rgba(0, 240, 255, 0.06);
}

html {
  scroll-behavior: smooth;
}

body.landing-cyber {
  background-color: var(--cyber-bg);
  color: var(--cyber-text);
  background-image:
    radial-gradient(ellipse 80% 50% at 15% 0%, rgba(0, 240, 255, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(192, 38, 211, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(57, 255, 20, 0.04), transparent 55%),
    linear-gradient(180deg, #05080f 0%, #0a0a0a 45%, #05080f 100%);
  background-attachment: fixed;
}

body.landing-cyber::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(var(--circuit) 1px, transparent 1px),
    linear-gradient(90deg, var(--circuit) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 20%, transparent 75%);
}

body.landing-cyber::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 240, 255, 0.015) 2px,
    rgba(0, 240, 255, 0.015) 4px
  );
  opacity: 0.4;
}

body.landing-cyber > * {
  position: relative;
  z-index: 1;
}

/* Typography */
.font-display {
  font-family: "Orbitron", "Inter", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.02em;
}

.font-body {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* Glass panels */
.glass {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 0 1px rgba(0, 240, 255, 0.05),
    0 20px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.04) 0%, transparent 40%, rgba(192, 38, 211, 0.03) 100%);
  pointer-events: none;
}

.glass:hover {
  border-color: rgba(0, 240, 255, 0.38);
  box-shadow:
    0 0 24px rgba(0, 240, 255, 0.12),
    0 24px 56px rgba(0, 0, 0, 0.5);
}

/* Dashboard panel */
.dashboard {
  border: 1px solid rgba(0, 240, 255, 0.28);
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.95) 0%, rgba(4, 6, 12, 0.88) 100%);
  box-shadow:
    0 0 0 1px rgba(57, 255, 20, 0.08),
    0 0 40px rgba(0, 240, 255, 0.08),
    inset 0 1px 0 rgba(0, 240, 255, 0.12);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  font-family: "Orbitron", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyber-cyan);
}

.live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.live-pulse::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cyber-green);
  box-shadow: 0 0 8px var(--cyber-green);
  animation: pulse-live 1.8s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.metric-chip {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.04);
  font-size: 0.7rem;
}

.metric-chip strong {
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
  color: var(--cyber-cyan);
  line-height: 1;
}

.dashboard-row {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 0.65rem;
  padding: 0.75rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.dashboard-row:hover {
  border-color: rgba(0, 240, 255, 0.25);
  background: rgba(0, 240, 255, 0.04);
}

.progress-bar {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyber-cyan), var(--cyber-green));
  box-shadow: 0 0 8px var(--glow-cyan);
  animation: progress-shimmer 2.5s ease-in-out infinite;
}

@keyframes progress-shimmer {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* Badges */
.badge-cyan {
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.08);
  color: #a5f3fc;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.1);
}

.badge-green {
  border: 1px solid rgba(57, 255, 20, 0.3);
  background: rgba(57, 255, 20, 0.06);
  color: #bbf7d0;
}

.badge-violet {
  border: 1px solid rgba(192, 38, 211, 0.35);
  background: rgba(192, 38, 211, 0.08);
  color: #f5d0fe;
}

/* Buttons */
.btn-neon-cyan {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.9) 0%, rgba(0, 200, 220, 0.95) 100%);
  color: #05080f;
  font-weight: 700;
  border: 1px solid rgba(0, 240, 255, 0.6);
  box-shadow:
    0 0 20px rgba(0, 240, 255, 0.35),
    0 0 40px rgba(0, 240, 255, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-neon-cyan:hover {
  transform: scale(1.03);
  filter: brightness(1.08);
  box-shadow:
    0 0 28px rgba(0, 240, 255, 0.5),
    0 0 50px rgba(0, 240, 255, 0.2);
}

.btn-neon-green {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.85) 0%, rgba(34, 197, 94, 0.9) 100%);
  color: #05080f;
  font-weight: 700;
  border: 1px solid rgba(57, 255, 20, 0.5);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-neon-green:hover {
  transform: scale(1.03);
  box-shadow: 0 0 26px rgba(57, 255, 20, 0.45);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cyber-text);
  transition: all 0.25s ease;
}

.btn-ghost:hover {
  border-color: rgba(192, 38, 211, 0.45);
  background: rgba(192, 38, 211, 0.08);
  box-shadow: 0 0 16px rgba(192, 38, 211, 0.15);
}

/* Scanline hover on interactive cards */
.hover-scan {
  position: relative;
  overflow: hidden;
}

.hover-scan::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    transparent 0%,
    rgba(0, 240, 255, 0.06) 50%,
    transparent 100%
  );
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hover-scan:hover::after {
  opacity: 1;
  animation: scan-sweep 0.8s ease-out;
}

@keyframes scan-sweep {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

/* Hero visual — second brain merge */
.hero-visual {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 240, 255, 0.22);
  background: #05080f;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(57, 255, 20, 0.06),
    0 0 48px rgba(0, 240, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-visual__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 45% at 35% 50%, rgba(255, 140, 60, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 65% 50%, rgba(0, 240, 255, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 30% 20% at 50% 55%, rgba(192, 38, 211, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-visual__scanline {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 240, 255, 0.02) 3px,
    rgba(0, 240, 255, 0.02) 4px
  );
  pointer-events: none;
  opacity: 0.5;
}

.hero-visual__frame {
  position: relative;
  z-index: 2;
  line-height: 0;
}

/* Canvas brain merge — cinematic particle field */
.brain-merge-canvas-wrap {
  position: relative;
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #0a1520 0%, #05080f 70%);
  mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
  transition: box-shadow 0.5s ease-out, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.brain-merge-canvas-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    ellipse 45% 40% at 50% 46%,
    rgba(0, 240, 255, 0.18) 0%,
    rgba(192, 38, 211, 0.08) 40%,
    transparent 70%
  );
  transition: opacity 0.45s ease-out;
}

.brain-merge--peak {
  transform: scale(1.012);
  box-shadow:
    0 0 0 1px rgba(0, 240, 255, 0.25),
    0 0 40px rgba(0, 240, 255, 0.18),
    inset 0 0 30px rgba(0, 240, 255, 0.06);
}

.brain-merge--peak::after {
  opacity: 1;
}

.hero-visual--peak {
  border-color: rgba(0, 240, 255, 0.38) !important;
  box-shadow:
    0 0 0 1px rgba(57, 255, 20, 0.08),
    0 0 55px rgba(0, 240, 255, 0.14) !important;
}

.hero-visual--peak .hero-visual__title {
  text-shadow:
    0 0 28px rgba(0, 240, 255, 0.65),
    0 0 50px rgba(192, 38, 211, 0.25);
  transition: text-shadow 0.45s ease-out;
}

.brain-merge-canvas-wrap canvas {
  display: block;
  width: 100%;
  vertical-align: top;
}

.brain-merge-fallback {
  display: none;
  width: 100%;
  max-height: min(360px, 42vh);
  object-fit: cover;
  object-position: center 42%;
}

.hero-visual__caption {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  z-index: 4;
  text-align: center;
  padding: 0 1rem;
  pointer-events: none;
}

.hero-visual__title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 0 24px rgba(0, 240, 255, 0.5),
    0 0 48px rgba(0, 240, 255, 0.2);
}

.hero-visual__stats {
  position: absolute;
  bottom: 0.65rem;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  padding: 0 0.5rem;
}

.hero-stat {
  font-family: "Orbitron", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 240, 255, 0.75);
}

.hero-stat em {
  font-style: normal;
  color: var(--cyber-cyan);
}

.hero-stat--green {
  color: rgba(57, 255, 20, 0.8);
}

.hero-stat--green em {
  color: var(--cyber-green);
}

.hero-stat--warm {
  color: rgba(251, 191, 136, 0.85);
}

.hero-stat--warm em {
  color: #fb923c;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.logo-core {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--cyber-cyan);
  box-shadow:
    0 0 10px var(--cyber-cyan),
    0 0 20px rgba(0, 240, 255, 0.35);
  animation: logo-pulse 2s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.92); }
}

/* Nav */
.nav-cyber {
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(20px);
}

.nav-link {
  color: var(--cyber-muted);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-link:hover {
  color: var(--cyber-cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

/* Section titles */
.section-kicker {
  font-family: "Orbitron", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyber-cyan);
}

.section-title {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 0 40px rgba(0, 240, 255, 0.15);
}

.text-cyber-cyan { color: var(--cyber-cyan); }
.text-cyber-green { color: var(--cyber-green); }
.text-cyber-violet { color: #e879f9; }

/* Timeline */
.timeline-dot {
  background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-violet));
  box-shadow: 0 0 14px var(--glow-cyan);
}

/* Phone mock */
.phone-frame {
  border: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow:
    0 0 30px rgba(0, 240, 255, 0.1),
    inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Table cyber */
.table-cyber thead {
  background: rgba(0, 240, 255, 0.08);
  font-family: "Orbitron", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-cyber td.highlight {
  color: var(--cyber-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Input */
.input-cyber {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 240, 255, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-cyber:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15), 0 0 20px rgba(0, 240, 255, 0.1);
}

/* Toast */
.toast-cyber {
  border: 1px solid rgba(57, 255, 20, 0.4);
  background: rgba(57, 255, 20, 0.12);
  color: #bbf7d0;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

/* Language selector */
.lang-selector {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(0, 240, 255, 0.06);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lang-toggle:hover {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.15);
  background: rgba(0, 240, 255, 0.1);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 9.5rem;
  padding: 0.35rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(0, 240, 255, 0.22);
  background: rgba(6, 12, 22, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}

.lang-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: none;
  border-radius: 0.45rem;
  background: transparent;
  color: #e2e8f0;
  text-align: left;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .live-pulse::before,
  .progress-bar span,
  .logo-core { animation: none; }
  .hover-scan:hover::after { animation: none; }
  .brain-merge-canvas-wrap canvas { display: none; }
  .brain-merge-fallback { display: block; }
}
