/* ══════════════════════════════════════════════════════════════════════════════
   AI-WATCHER LANDING PAGE CSS
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #090b10;
  --card-bg: rgba(17, 22, 34, 0.65);
  --border-col: rgba(56, 139, 253, 0.15);
  --border-hover: rgba(163, 113, 247, 0.3);
  --text-main: #f0f3f8;
  --text-muted: #8b97a8;
  
  --accent-cyan: #388bfd;
  --accent-violet: #a371f7;
  --accent-green: #3fb950;
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Glowing Orbs ───────────────────────────────────────────────────────────── */

.glow-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.glow-cyan {
  background: var(--accent-cyan);
  top: 10%;
  left: -100px;
  animation: floatOrb 12s infinite alternate ease-in-out;
}

.glow-violet {
  background: var(--accent-violet);
  top: 40%;
  right: -100px;
  animation: floatOrb 16s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

/* ── Typography & Gradients ─────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  color: #fff;
  box-shadow: 0 4px 15px rgba(56, 139, 253, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(163, 113, 247, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ── Navbar ─────────────────────────────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(9, 11, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.github-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.git-icon {
  width: 16px;
  height: 16px;
}

/* ── Hero Section ───────────────────────────────────────────────────────────── */

.hero-section {
  padding: 150px 0 100px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(56, 139, 253, 0.15);
  border: 1px solid var(--border-col);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.badge-purple {
  background: rgba(163, 113, 247, 0.15);
  border-color: rgba(163, 113, 247, 0.25);
  color: var(--accent-violet);
}

.hero-title {
  font-size: 4rem;
  line-height: 1.15;
  margin-bottom: 24px;
  font-weight: 800;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 40px auto;
  font-weight: 400;
}

.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

/* ── Command Box ────────────────────────────────────────────────────────────── */

.cmd-box {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  border-radius: 8px;
  font-family: 'Space Grotesk', monospace;
  gap: 12px;
  font-size: 14px;
  position: relative;
}

.cmd-prefix {
  color: var(--accent-cyan);
  user-select: none;
}

.cmd-text {
  color: var(--text-main);
  font-weight: 500;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
  padding: 4px;
  border-radius: 4px;
}

.copy-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.copy-btn.copied {
  color: var(--accent-green);
}

/* ── Dashboard Preview ──────────────────────────────────────────────────────── */

.dashboard-preview-container {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
  overflow: hidden;
  max-width: 950px;
  margin: 0 auto;
  transform: perspective(1000px) rotateX(2deg);
  transition: transform 0.4s ease;
}

.dashboard-preview-container:hover {
  transform: perspective(1000px) rotateX(0deg) scale(1.01);
}

.window-chrome {
  height: 36px;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.window-chrome .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.window-chrome .dot.red { background: #ff5f56; }
.window-chrome .dot.yellow { background: #ffbd2e; }
.window-chrome .dot.green { background: #27c93f; }

.window-title {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  margin-left: 20px;
  font-family: var(--font-body);
}

.dashboard-img {
  width: 100%;
  display: block;
}

/* ── Features Section ───────────────────────────────────────────────────────── */

.features-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 800;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-col);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 30px rgba(163, 113, 247, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.icon-blue {
  background: rgba(56, 139, 253, 0.15);
  color: var(--accent-cyan);
}

.icon-purple {
  background: rgba(163, 113, 247, 0.15);
  color: var(--accent-violet);
}

.icon-cyan {
  background: rgba(56, 185, 80, 0.15);
  color: var(--accent-green);
}

.feature-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.feature-card-text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Terminal Section ───────────────────────────────────────────────────────── */

.terminal-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.terminal-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.terminal-info {
  flex: 1;
}

.steps-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-item {
  display: flex;
  gap: 16px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(56, 139, 253, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.step-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-item p {
  color: var(--text-muted);
  font-size: 14px;
}

.step-item code {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-main);
  font-family: monospace;
}

.terminal-window {
  flex: 1.2;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.terminal-header {
  height: 32px;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  position: relative;
}

.terminal-header .t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.t-red { background: #ff5f56; }
.t-yellow { background: #ffbd2e; }
.t-green { background: #27c93f; }

.t-title {
  color: var(--text-muted);
  font-size: 11px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 500;
}

.terminal-body {
  padding: 20px;
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.5;
}

.t-line {
  color: var(--text-main);
}

.t-user { color: #58a6ff; }
.t-dir { color: #3fb950; }
.t-blue { color: #58a6ff; }
.t-green { color: #56d364; }
.t-output { color: #8b949e; }

/* ── AI Brain Section ───────────────────────────────────────────────────────── */

.ai-brain-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.brain-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.brain-visual {
  flex: 1;
  height: 320px;
  position: relative;
  background: rgba(163, 113, 247, 0.03);
  border: 1px solid rgba(163, 113, 247, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.glowing-core {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--accent-violet);
  border-radius: 50%;
  filter: blur(40px);
  animation: pulseCore 3s infinite alternate ease-in-out;
}

@keyframes pulseCore {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 0.9; }
}

.graph-svg {
  position: relative;
  z-index: 1;
  max-width: 250px;
}

.brain-info {
  flex: 1.2;
}

.rules-block {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rule-item {
  border-left: 2px solid var(--accent-violet);
  padding-left: 16px;
}

.rule-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.rule-item p {
  color: var(--text-muted);
  font-size: 13.5px;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 40px 0;
  text-align: center;
  position: relative;
  z-index: 1;
  background: #06080c;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.copyright {
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-title { font-size: 2.75rem; }
  .terminal-container, .brain-container {
    flex-direction: column;
    gap: 40px;
  }
  .nav-links { display: none; } /* Hide navigation links on mobile */
  .terminal-window, .brain-visual {
    width: 100%;
  }
}
