/*
  AuraGuardian static landing CSS
  Extracted/adapted from the platform landing page styles (welcome.blade.php).
*/

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #0d1117;
  color: #ffffff;
  overflow-x: hidden;
}

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

/* Glass & Borders */
.glass-nav {
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(48, 54, 61, 0.4);
}
.border-subtle { border-color: rgba(48, 54, 61, 0.6); }
.glass-panel {
  background: rgba(22, 27, 34, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(48, 54, 61, 0.6);
}

/* Gradients */
.text-gradient-primary {
  background: linear-gradient(135deg, #c084fc 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animations */
.fade-up { opacity: 0; transform: translateY(20px); }

/* Utility helpers used in this page (Tailwind doesn't include rotateX/perspective by default) */
.up-perspective { perspective: 1000px; }
.up-tilt { transform: rotateX(6deg); transform-origin: top center; will-change: transform; }
.up-tilt:hover { transform: rotateX(0deg); }

/* Code Block */
.code-window {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Marquee */
.marquee-container {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; transform: none; }
}

/* Hive Animation */
.hive-container { position: relative; }
.hive-line {
  fill: none;
  stroke: #22c55e;
  stroke-width: 2;
  stroke-dasharray: 10;
  stroke-opacity: 0.2;
  animation: flow 1s linear infinite;
}
@keyframes flow {
  from { stroke-dashoffset: 20; }
  to { stroke-dashoffset: 0; }
}

.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid #22c55e;
  opacity: 0;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(2); opacity: 0; }
}

/* Bento Card Hover */
.bento-card {
  transition:
    border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  background: #161b22;
  border: 1px solid #30363d;
  will-change: transform;
}
.bento-card:hover {
  transform: translateY(-5px);
  border-color: #58a6ff;
  box-shadow: 0 10px 30px -10px rgba(88, 166, 255, 0.2);
}

/* Code Diff Styles */
.diff-line { display: flex; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; line-height: 1.6; }
.diff-num { width: 2rem; color: #484f58; text-align: right; padding-right: 0.8rem; user-select: none; }
.diff-code { flex: 1; }
.diff-add { background: rgba(31, 111, 235, 0.15); color: #c9d1d9; border-left: 2px solid #1f6feb; }
.diff-del { background: rgba(248, 81, 73, 0.15); color: #c9d1d9; border-left: 2px solid #f85149; }
.token-tag { color: #7ee787; }
.token-attr { color: #79c0ff; }
.token-val { color: #a5d6ff; }
.token-obscure { color: #d2a8ff; text-shadow: 0 0 5px rgba(210, 168, 255, 0.4); }

/* Widget Styles */
.widget-card {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
.widget-card:hover { border-color: #58a6ff; box-shadow: 0 0 20px rgba(88, 166, 255, 0.1); }
.toggle-switch {
  width: 40px; height: 22px; background: #30363d; border-radius: 99px; position: relative; transition: 0.3s;
}
.toggle-switch.active { background: #238636; }
.toggle-knob {
  width: 16px; height: 16px; background: white; border-radius: 50%; position: absolute; top: 3px; left: 3px; transition: 0.3s;
}
.toggle-switch.active .toggle-knob { transform: translateX(18px); }
