@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --bg-color: #0b0f1a;
  --bg-grid: #131b2d;
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.5);
  --secondary: #a855f7;
  --secondary-glow: rgba(168, 85, 247, 0.5);
  --accent: #4ade80;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --card-bg: rgba(17, 24, 39, 0.7);
  --border: rgba(255, 255, 255, 0.1);
  --terminal-header: #1f2937;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 2px 2px, var(--bg-grid) 1px, transparent 0);
  background-size: 40px 40px;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.mono { font-family: 'JetBrains+Mono', monospace; }

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(11, 15, 26, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--text-main);
  -webkit-text-fill-color: var(--text-main);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover { color: var(--primary); }

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-login {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
}

.btn-get-started {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 20px var(--primary-glow);
  transition: transform 0.3s;
}

.btn-get-started:hover {
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 5% 60px;
  margin-top: 60px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: var(--primary);
  filter: blur(150px);
  opacity: 0.2;
  z-index: -1;
}

.badge {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 1000px;
  padding: 0 10%;
  background: linear-gradient(to bottom, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.2));
}

.hero p {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* Cyber Cat Illustration (The Zen Master / Coder) */
.hero-decor {
  position: absolute;
  right: -5%;
  top: 35%;
  transform: translateY(-50%);
  width: 320px;
  max-width: 25vw;
  filter: drop-shadow(0 0 65px rgba(168, 85, 247, 0.4));
  animation: float-zen 8s ease-in-out infinite;
  z-index: 5;
  pointer-events: none;
}

.hero-decor img {
  width: 100%;
  height: auto;
  opacity: 0.9;
}

@keyframes float-zen {
  0%, 100% { transform: translateY(-50%) rotate(2deg); }
  50% { transform: translateY(-54%) rotate(-2deg); }
}

/* Cyber Badger Illustration (The Bug - Aggressive & Glitchy) */
.hero-decor-left {
  position: absolute;
  left: -2%;
  top: 70%;
  transform: translateY(-50%);
  width: 280px;
  max-width: 28vw;
  filter: drop-shadow(0 0 50px rgba(239, 68, 68, 0.4));
  animation: float-brute 3.5s ease-in-out infinite alternate, badger-glitch 5s infinite;
  z-index: 5;
  pointer-events: none;
}

.hero-decor-left img {
  width: 100%;
  height: auto;
}

@keyframes float-brute {
  0% { transform: translateY(-50%) rotate(-5deg); }
  100% { transform: translateY(-58%) rotate(5deg) scale(1.05); }
}

@keyframes badger-glitch {
  0%, 95%, 100% { filter: drop-shadow(0 0 50px rgba(239, 68, 68, 0.5)); }
  96% { filter: drop-shadow(-5px 0 red) drop-shadow(5px 0 blue); opacity: 0.8; }
  97% { filter: drop-shadow(5px 0 green); opacity: 1; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Terminal Window */
.terminal {
  width: 100%;
  max-width: 650px;
  background: #111827;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: left;
  overflow: hidden;
}

.terminal-header {
  background: var(--terminal-header);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-title {
  margin-left: 10px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
}

.code-comment { color: #6b7280; }
.code-keyword { color: #c084fc; }
.code-string { color: #fbbf24; }
.code-variable { color: #38bdf8; }

/* Sections */
section { padding: 100px 5%; }

.section-label {
  text-align: center;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 4rem;
}

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

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 16px;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
}

.card:hover::before { transform: translateX(100%); }

.card:hover { border-color: var(--primary); box-shadow: 0 0 30px rgba(59, 130, 246, 0.1); }

.card-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.card h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Tech Trust Bar */
.tech-trust-bar {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0.6;
  transition: 0.3s;
}

.tech-trust-bar:hover { opacity: 1; }

.tech-trust-bar span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.tech-logos img {
  height: 40px;
  filter: grayscale(1) invert(1);
  opacity: 0.8;
}

/* Live Toast */
.live-toast {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 2000;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: translateX(-150%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.live-toast.show {
  transform: translateX(0);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-icon { font-size: 1.5rem; }

.toast-text {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

.toast-text span#toast-name {
  font-weight: 800;
  color: var(--primary);
}

.toast-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3rem; padding: 0 5%; }
  .hero-decor, .hero-decor-left { width: 220px; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .logo { font-size: 1.4rem; }
  .nav-links { display: none; }
  .hero-decor, .hero-decor-left { 
    position: relative;
    top: auto; left: auto; right: auto;
    width: 200px;
    margin: 20px auto;
    max-width: 100%;
    transform: none;
    animation: float-zen 8s ease-in-out infinite;
  }
  .hero-decor-left { animation: float-brute 3.5s ease-in-out infinite alternate; }
  .section-title { font-size: 2rem; margin-bottom: 2rem; }
  .tech-logos img { height: 30px; }
}

#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.12;
}
