/* =========================================
   CSS reset and Variables
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Core Obsidian Theme */
  --bg-core: #03040b;
  --bg-elevated: #080a15;

  /* Vibrant Accents */
  --accent-cyan: #00f2fe;
  --accent-violet: #7c3aed;
  --accent-emerald: #43e97b;
  --accent-bright: #4facfe;

  /* Text Tokens */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #475569;

  /* UI Tokens */
  --border-op: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.02);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-core);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================
   Background Meshes & Orbs
   ========================================= */
.orb-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: float 20s infinite ease-in-out alternate;
}
.orb.cyan {
  width: 40vw; height: 40vw;
  background: var(--accent-cyan);
  top: -10vw; left: -10vw;
  animation-delay: 0s;
}
.orb.violet {
  width: 50vw; height: 50vw;
  background: var(--accent-violet);
  bottom: -20vw; right: -10vw;
  animation-delay: -5s;
}
.orb.emerald {
  width: 30vw; height: 30vw;
  background: var(--accent-emerald);
  top: 40vh; left: 40vw;
  opacity: 0.2;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(40px) scale(1.1); }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
}

/* =========================================
   Layout & Glassmorphism Utilities
   ========================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-op);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}

.glass-hover:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 242, 254, 0.15);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.btn {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 100px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-size: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-bright));
  color: var(--bg-core);
  border: none;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
  transform: scale(1.02);
}

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

/* =========================================
   Header
   ========================================= */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}
header.scrolled {
  padding: 12px 0;
  background: rgba(3, 4, 11, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-op);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
}
.brand i {
  color: var(--accent-cyan);
  font-size: 24px;
  filter: drop-shadow(0 0 10px var(--accent-cyan));
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent-cyan);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 60px;
  position: relative;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(0, 242, 254, 0.2);
  background: rgba(0, 242, 254, 0.05);
  color: var(--accent-cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 30px;
  box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.05);
}
.badge i {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 5px var(--accent-cyan)); }
  50% { opacity: 0.4; filter: none; }
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  max-width: 900px;
}
.hero p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

/* =========================================
   Interactive Terminal
   ========================================= */
.terminal-wrapper {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8), 0 0 0 1px var(--border-op);
  background: #060714;
  text-align: left;
  transition: transform 0.3s ease;
}
.terminal-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 40px 80px -20px rgba(0, 242, 254, 0.15), 0 0 0 1px rgba(0, 242, 254, 0.3);
}
.term-header {
  background: #0c0e22;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-op);
}
.term-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.term-title {
  margin-left: 10px;
  font-size: 12px;
  color: var(--text-subtle);
  font-family: 'JetBrains Mono', monospace;
}
.term-body {
  padding: 24px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}
.t-user { color: var(--accent-emerald); }
.t-cmd { color: var(--text-main); }
.t-sys { color: var(--accent-cyan); font-style: italic; }
.t-wait { color: var(--accent-violet); }
.t-out { color: var(--text-muted); }

.cursor {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--accent-cyan);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* =========================================
   Marquee
   ========================================= */
.marquee {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02) 20%, rgba(255,255,255,0.02) 80%, transparent);
  border-top: 1px solid var(--border-op);
  border-bottom: 1px solid var(--border-op);
  position: relative;
}
.marquee-label {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-subtle);
}
.marquee-content {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scroll 30s linear infinite;
  margin-top: 20px;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
}

/* =========================================
   Section Base
   ========================================= */
.sec {
  padding: 120px 0;
}
.sec-head {
  text-align: center;
  margin-bottom: 60px;
}
.sec-label {
  color: var(--accent-cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.sec-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}
.sec-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================
   Bento Grid (Features)
   ========================================= */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
}
.bento-card.wide {
  grid-column: span 2;
}
.bento-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid rgba(0, 242, 254, 0.2);
}
.bento-card h3 {
  font-size: 22px;
  color: var(--text-main);
}
.bento-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* =========================================
   Comparison Table
   ========================================= */
.cmp-wrapper {
  overflow-x: auto;
}
.cmp-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  text-align: left;
}
.cmp-table th, .cmp-table td {
  padding: 24px;
  border-bottom: 1px solid var(--border-op);
}
.cmp-table th {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
}
.cmp-table th.highlight {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.05);
  border-radius: 12px 12px 0 0;
}
.cmp-table td.highlight {
  background: rgba(0, 242, 254, 0.05);
}
.cmp-table tr:last-child td.highlight {
  border-radius: 0 0 12px 12px;
}
.cmp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
}
.cmp-yes { background: rgba(67, 233, 123, 0.2); color: var(--accent-emerald); }
.cmp-no { color: var(--text-subtle); }

/* =========================================
   Reviews Carousel
   ========================================= */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stars { color: #f59e0b; font-size: 12px; }
.review-text { font-size: 15px; color: var(--text-main); font-style: italic; }
.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: 'Outfit';
}
.r-info strong { display: block; font-size: 14px; font-family: 'Outfit'; }
.r-info span { font-size: 12px; color: var(--text-subtle); }

/* =========================================
   CTA & Footer
   ========================================= */
.cta-box {
  text-align: center;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 242, 254, 0.1), transparent 60%);
  z-index: -1;
}
.cta-box h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

footer {
  border-top: 1px solid var(--border-op);
  padding: 40px 0;
  text-align: center;
  color: var(--text-subtle);
  font-size: 14px;
}
.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.socials { display: flex; gap: 20px; font-size: 18px; }
.socials a:hover { color: var(--text-main); }

/* Reveal API */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media(max-width: 900px) {
  .bento, .reviews-grid { grid-template-columns: 1fr; }
  .bento-card.wide { grid-column: span 1; }
  .nav-links { display: none; }
  .hero h1 { font-size: 2.5rem; }
}

/* Tabs */
.tab-btn {
  flex: 1; padding: 16px; background: transparent; color: var(--text-muted); border: none; font-family: 'Outfit'; font-weight: 600; cursor: pointer; transition: 0.3s;
}
.tab-btn:hover { background: rgba(255,255,255,0.05); }
.tab-btn.active { color: var(--accent-cyan); background: rgba(0, 242, 254, 0.05); border-bottom: 2px solid var(--accent-cyan); }

/* Ghost Rider Skull - Ambient Pulse & Dedicated Wind Particles */
.ghost-rider {
  position: relative;
  display: inline-block;
  color: #fff;
  text-shadow: 0 0 10px #ff9800, 0 -8px 15px #ff5722, 0 -15px 25px #ff0000;
  animation: skullBreathe 1.5s infinite alternate ease-in-out;
}
@keyframes skullBreathe {
  0% { text-shadow: 0 0 8px #ff9800, 0 -8px 15px #ff5722, 0 -15px 25px #ff0000; }
  100% { text-shadow: 0 0 16px #ffeb3b, 0 -15px 25px #ff9800, 0 -25px 40px #ff0000; }
}

.ghost-rider::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  background: rgba(255, 235, 59, 0);
  box-shadow:
    -10px  10px 5px 2px #ff9800,
     10px   5px 4px 1px #ff5722,
    -5px  -10px 6px 3px #f44336,
     5px  -15px 5px 2px #ff9800;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(1px);
  pointer-events: none;
  animation: fireWindParticles 1.2s infinite linear;
  z-index: 3;
}
@keyframes fireWindParticles {
  0% { transform: translate(-50%, 5px) scale(0.6); opacity: 0; }
  20% { opacity: 0.8; }
  100% { transform: translate(-30%, -35px) scale(0.1); opacity: 0; }
}

.ghost-rider::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  background: rgba(255, 152, 0, 0);
  box-shadow:
    15px   8px 4px 2px #ff5722,
   -15px  -5px 5px 1px #ff0000,
     8px -15px 5px 3px #ff9800,
   -10px  -5px 4px 1px #ffeb3b;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(2px);
  pointer-events: none;
  animation: fireWindParticles2 1.6s infinite linear 0.6s;
  z-index: 3;
  opacity: 0;
}
@keyframes fireWindParticles2 {
  0% { transform: translate(-50%, 0px) scale(0.8); opacity: 0; }
  20% { opacity: 0.9; }
  100% { transform: translate(15%, -45px) scale(0.2); opacity: 0; }
}