:root {
  --bg-dark: #0B1120;
  --text-main: #94A3B8;
  --text-header: #F8FAFC;
  --primary: #22C55E; /* Enterprise Green */
  --primary-dim: rgba(34, 197, 94, 0.1);
  --glass-bg: #1E293B;
  --glass-border: #334155;
  --glass-blur: 0px; /* Solid cards for enterprise feel */
  --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle at 50% 0%, #1e293b 0%, #0B1120 70%);
  color: var(--text-main);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Effects */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.07;
  z-index: 0;
}

.glass-overlay {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% -20%, #00ff9922, transparent 40%),
    radial-gradient(circle at 80% 80%, #00ccff11, transparent 40%);
  z-index: -1;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top-color: #475569; /* Highlight top border */
  border-bottom-color: #0F172A; /* Shadow bottom border */
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.4s var(--transition),
    border-color 0.4s var(--transition);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.glass-panel:hover {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-dim);
  transform: translateY(-2px);
}

/* Typography */
h1,
h2,
h3 {
  font-family: 'Cabinet Grotesk', system-ui, sans-serif;
  font-weight: 700;
  color: var(--text-header);
  letter-spacing: -0.02em;
}

h1.glitch-text {
  font-size: 4rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.highlight {
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-dim);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}

.slash-anim {
  animation: slashFlash 3s infinite;
}

@keyframes slashFlash {
  0%,
  90% {
    stroke: #00ff99;
    stroke-width: 3;
  }
  95% {
    stroke: #fff;
    stroke-width: 5;
    filter: drop-shadow(0 0 8px #fff);
  }
  100% {
    stroke: #00ff99;
    stroke-width: 3;
  }
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  text-decoration: none;
  color: #aaa;
  font-size: 0.95rem;
  transition: color 0.2s;
}

nav a:hover {
  color: #fff;
}

/* Buttons */
.btn-primary,
.btn-primary-sm,
.btn-primary-full {
  background: var(--primary);
  color: #000;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s var(--transition), box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover,
.btn-primary-sm:hover,
.btn-primary-full:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(0, 255, 153, 0.4);
}

.price-card .btn-secondary-full:hover,
.price-card .btn-primary-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 153, 0.2);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
    font-size: 0.9rem;
    color: #ccc;
}

.features-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-section {
    padding: 4rem 0;
    text-align: center;
}

.bmc-button img {
    transition: transform 0.2s ease;
}

.bmc-button:hover img {
    transform: scale(1.05);
}

.btn-primary-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-secondary,
.btn-secondary-full {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

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

.btn-primary-full,
.btn-secondary-full {
  display: block;
  text-align: center;
  margin-top: 16px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.subtitle {
  font-size: 1.1rem;
  color: #aaa;
  margin: 24px 0 32px 0;
  max-width: 500px;
}

/* Make the Hero CTA Button Sleeker */
.hero-text .btn-primary {
    padding: 12px 32px;
    font-size: 1.05rem;
    min-width: 180px;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.15);
}

.hero-visual {
  perspective: 1000px;
}

.terminal-window {
  background: #000; /* Deep black for terminal */
  font-family: "JetBrains Mono", monospace;
  border: 1px solid #333;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s var(--transition);
  min-height: 400px;
}

.terminal-window:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid #222;
  background: #111;
  border-radius: 16px 16px 0 0;
}

.dots {
  display: flex;
  gap: 6px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.red {
  background: #ff5f56;
}
.yellow {
  background: #ffbd2e;
}
.green {
  background: #27c93f;
}

.terminal-body {
  padding: 16px;
  color: #0f0;
  font-size: 0.9rem;
}

/* Typewriter Cursor */
.cursor::after {
  content: "▋";
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Features */
.features {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 64px;
}

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

.icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* Pricing */
.pricing {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  position: relative;
}

.price-card.featured {
  border-color: var(--glass-border);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
  position: relative;
  overflow: hidden;
}

.price-card.featured:hover {
    border-color: var(--primary);
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin: 16px 0;
}

.price span {
  font-size: 1rem;
  color: #888;
  font-weight: 400;
}

/* Download CTA */
.cta-section {
  padding: 100px 0;
  text-align: center;
}

.centered-panel {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px;
}

/* Install Widget */
.install-widget {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    display: block;
    max-width: 100%;
    margin: 0 auto 2rem auto;
    backdrop-filter: blur(10px);
}

.os-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    justify-content: center;
}

.os-tab {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    padding-bottom: 0.2rem;
    transition: all 0.3s ease;
}

.os-tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

.code-block {
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: border 0.3s;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

.code-block:hover {
    border-color: var(--primary);
}

.code-block code {
  font-family: "JetBrains Mono", monospace;
  color: var(--primary);
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.copy-btn:hover {
  opacity: 1;
}

.os-icons {
  display: flex;
  justify-content: center;
  gap: 32px;
  color: #888;
  font-size: 0.9rem;
}

/* Tech Stack / Trust Battery */
.tech-stack {
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.tech-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #475569;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.tech-logos {
    display: flex;
    justify-content: center;
    gap: 48px;
    align-items: center;
    flex-wrap: wrap;
}

.tech-logo {
    width: 40px;
    height: 40px;
    color: #94A3B8; /* Slate 400 - Brighter for visibility */
    transition: color 0.3s;
}

.tech-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: default;
}

.tooltip {
    position: absolute;
    bottom: -30px;
    background: #0F172A;
    color: #F8FAFC;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    border: 1px solid #334155;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.tech-item:hover .tech-logo {
    color: #F8FAFC; /* White on hover */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.tech-item:hover .tooltip {
    opacity: 1;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    display: none; /* Hidden on desktop */
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Vertical Stack for Mobile */
  .grid, .pricing-grid {
    grid-template-columns: 1fr; /* Force single column */
    gap: 32px;
  }

  .hero-visual {
    margin-top: 48px;
  }
  
  .terminal-window {
      min-height: 300px; /* Smaller terminal on mobile */
  }

  .subtitle {
    margin: 24px auto;
  }

  h1.glitch-text {
    font-size: 2.5rem;
  }
  
  /* Sticky Bottom CTA for Mobile */
  .mobile-sticky-cta {
      display: flex;
      position: fixed;
      bottom: 20px;
      left: 20px;
      right: 20px;
      z-index: 999;
      justify-content: center;
  }
  
  .mobile-sticky-cta .btn-primary {
      width: 100%;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
      border: 1px solid rgba(255,255,255,0.1);
      backdrop-filter: blur(10px);
      padding: 16px;
      font-size: 1.1rem;
  }
  
  /* Hide the nav download button on mobile to avoid clutter */
  nav .btn-primary-sm {
      display: none;
  }
  
  /* Adjust features padding for mobile stack */
  .features, .pricing {
      padding: 60px 0;
  }
}

/* SVG Icon Styles */
.icon svg {
    stroke: var(--primary);
    filter: none;
    transition: transform 0.3s ease;
}

.card:hover .icon svg {
    filter: drop-shadow(0 0 10px var(--primary-dim));
    transform: scale(1.1);
}

.copy-icon svg {
    stroke: #888;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-block:hover .copy-icon svg {
    stroke: var(--primary);
}
