/* ========================================
   OnionProbe - Static Landing Page
   Dark Cyber-Intelligence Theme
   ======================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/* ---- CSS Variables / Design Tokens ---- */
:root {
  /* Refined Dark Theme Palette */
  --bg-primary: #07070a;    /* Even deeper dark */
  --bg-secondary: #0f0f15;  /* Subtle darker blue/gray */
  --bg-card: #14141d;       /* Card background */
  --bg-card-hover: #1c1c28;

  --text-primary: #f1f5f9;  /* Crisp white-blue */
  --text-secondary: #94a3b8; /* Muted slate */
  --text-muted: #64748b;

  /* Purple Theme - Matched to Logo (#834c9d) */
  --accent: #834c9d;      /* Logo Purple */
  --accent-light: #9d6cb4; /* Slightly lighter for hover */
  --accent-glow: rgba(131, 76, 157, 0.2); 

  --cyan: #38bdf8;        
  --cyan-glow: rgba(56, 189, 248, 0.1);

  --green: #22c55e;       
  --green-glow: rgba(34, 197, 94, 0.1);

  --border-subtle: #1e293b;
  --border-card: #2d3748;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-glow: 0 4px 25px rgba(131, 76, 157, 0.25);
  --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1200px;
  --section-padding: 100px 0;
}

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--accent-light); }

img { max-width: 100%; display: block; }

ul { list-style: none; }

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ---- Animated Background Grid (Light) ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(131, 76, 157, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(131, 76, 157, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ---- Glow Orbs (Subtle) ---- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.glow-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -200px; left: -200px;
}
.glow-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  top: 100px; right: -200px;
}
.glow-orb-3 {
  display: none;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.4s ease;
  background: rgba(7, 7, 10, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.navbar.scrolled {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  /* Removed background for light theme */
}

.footer-logo {
  height: 36px;
  width: auto;
  opacity: 1;
  /* Removed background for light theme */
  transition: all 0.3s ease;
}
.footer-logo:hover { 
  opacity: 0.8; 
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover {
  color: var(--text-primary);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent), #7a4194);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--accent-glow);
}
.nav-cta::after {
  display: none !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.8rem;
  color: var(--accent-light);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 var(--green-glow);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 8px transparent;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent-light), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), #7a4194);
  color: #fff;
  padding: 15px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px var(--accent-glow);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 15px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-card);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--text-primary);
}

/* Hero Visual */
.hero-visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  max-width: 600px;
  z-index: 0;
  opacity: 0.6;
}

.hero-grid {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 40%, var(--accent-glow) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, var(--cyan-glow) 0%, transparent 50%);
  animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ========================================
   SECTION COMMON
   ======================================== */
section {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-label .line {
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   CAPABILITIES (Cards Grid)
   ======================================== */
#capabilities {
  padding: var(--section-padding);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.capability-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  backdrop-filter: blur(12px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.capability-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.capability-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(108, 92, 231, 0.2);
}
.capability-card:hover::before {
  opacity: 1;
}

.capability-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.15);
}

.capability-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.capability-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.capability-card li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
}
.capability-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Card color variants */
.capability-card.cyan .capability-icon {
  background: rgba(0, 206, 201, 0.1);
  border-color: rgba(0, 206, 201, 0.15);
}
.capability-card.cyan li::before {
  background: var(--cyan);
}
.capability-card.cyan::before {
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.capability-card.green .capability-icon {
  background: rgba(0, 184, 148, 0.1);
  border-color: rgba(0, 184, 148, 0.15);
}
.capability-card.green li::before {
  background: var(--green);
}
.capability-card.green::before {
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

/* ========================================
   USE CASES
   ======================================== */
#use-cases {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  backdrop-filter: blur(12px);
  transition: all 0.4s ease;
}
.use-case-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  border-color: rgba(108, 92, 231, 0.15);
}

.use-case-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(108, 92, 231, 0.1);
  padding: 6px 14px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.use-case-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.use-case-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.use-case-card li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
}
.use-case-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

/* ========================================
   PLATFORM HIGHLIGHTS
   ======================================== */
#platform {
  padding: var(--section-padding);
}

.highlights-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.highlights-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  transition: all 0.3s ease;
}
.highlight-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.highlight-check {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(0, 184, 148, 0.12);
  border: 1px solid rgba(0, 184, 148, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 0.85rem;
  margin-top: 2px;
}

.highlight-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.highlights-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(12px);
  text-align: center;
}

.visual-stat {
  margin-bottom: 24px;
}

.visual-stat .number {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-light), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.visual-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

.visual-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bar-item .bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.bar-track {
  height: 6px;
  background: #1e293b;
  border-radius: 10px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: width 1.5s ease;
}

/* ========================================
   CAI & dSaaS SECTIONS
   ======================================== */
#differentiators {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.diff-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  backdrop-filter: blur(12px);
  transition: all 0.4s ease;
}
.diff-card:hover {
  border-color: rgba(108, 92, 231, 0.2);
  transform: translateY(-3px);
}

.diff-card .diff-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.diff-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.diff-card > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.diff-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diff-card li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 22px;
  position: relative;
}
.diff-card li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-size: 0.65rem;
  top: 3px;
}

/* ========================================
   CTA / DEMO SECTION
   ======================================== */
#cta {
  padding: var(--section-padding);
}

.cta-box {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(56, 189, 248, 0.05));
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    var(--accent-glow) 0%,
    transparent 50%
  );
  opacity: 0.3;
  animation: rotateGlow 30s linear infinite;
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-box > p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.cta-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 36px;
}

.cta-option {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: left;
  transition: all 0.3s ease;
}
.cta-option:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cta-option h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.cta-option p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-left .logo-icon {
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
}

.footer-left span {
  font-weight: 700;
  font-size: 1rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--accent-light);
}

/* ========================================
   ANIMATIONS (Scroll Reveal)
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) {
  transition-delay: 0s;
}
.stagger-children .reveal:nth-child(2) {
  transition-delay: 0.1s;
}
.stagger-children .reveal:nth-child(3) {
  transition-delay: 0.2s;
}
.stagger-children .reveal:nth-child(4) {
  transition-delay: 0.3s;
}
.stagger-children .reveal:nth-child(5) {
  transition-delay: 0.4s;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
  .highlights-wrap {
    grid-template-columns: 1fr;
  }
  .diff-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;
  }
  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(7, 8, 10, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 999;
  }
  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary,
  .btn-secondary {
    justify-content: center;
    width: 100%;
  }

  .capabilities-grid,
  .use-cases-grid,
  .cta-options {
    grid-template-columns: 1fr;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .capability-card,
  .use-case-card,
  .diff-card {
    padding: 28px 22px;
  }
  .cta-box {
    padding: 40px 24px;
  }
}
