:root {
  --bg: #07080B;
  --card-bg: rgba(17, 19, 26, 0.65);
  --border: rgba(255, 255, 255, 0.06);
  --border-focus: rgba(99, 102, 241, 0.4);
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --emerald: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.15);
  --indigo: #6366F1;
  --indigo-glow: rgba(99, 102, 241, 0.15);
  --blue: #3B82F6;
  --blue-glow: rgba(59, 130, 246, 0.15);
  --red: #EF4444;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Atmospheric Glowing Orbs */
body::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  top: -450px;
  left: -200px;
  background: radial-gradient(circle, var(--indigo-glow) 0%, rgba(7, 8, 11, 0) 70%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  top: 800px;
  right: -250px;
  background: radial-gradient(circle, var(--emerald-glow) 0%, rgba(7, 8, 11, 0) 70%);
  z-index: -2;
  pointer-events: none;
}

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

/* Navbar */
nav {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #FFF 0%, var(--emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.2s;
}

.logo:hover {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link {
  transition: color 0.2s;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--text);
}

.btn-cta-nav {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}

.btn-cta-nav:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

/* Sections */
section {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-badge {
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Hero Section */
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-text h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #FFF 30%, var(--indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--blue) 100%);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -3px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--text-muted);
}

.npm-install-box {
  background: rgba(15, 17, 23, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s;
}

.npm-install-box:hover {
  border-color: var(--indigo);
}

.npm-install-box code {
  color: var(--text);
}

.npm-install-box.install-merged-container:hover {
  border-color: var(--border);
}

.merged-install-col {
  transition: opacity 0.2s;
}

.merged-install-col:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .install-divider {
    display: none !important;
  }
  .merged-install-col {
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex: 1 1 100% !important;
  }
  .install-merged-container {
    flex-direction: column !important;
    gap: 1rem !important;
  }
}

/* Hero Visual / Mockup Card */
.hero-visual {
  position: relative;
}

.glowing-bg-effect {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(0,0,0,0) 60%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.mockup-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.mockup-dots {
  display: flex;
  gap: 0.4rem;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-title {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stats-shave-comparison {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bar-container {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.bar-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.bar-track {
  height: 24px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding-left: 1rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: white;
  transition: width 1s cubic-bezier(0.1, 0.8, 0.25, 1);
}

.bar-fill.raw {
  width: 100%;
  background: linear-gradient(90deg, #F43F5E, #E11D48);
}

.bar-fill.shaved {
  width: 30%;
  background: linear-gradient(90deg, var(--emerald), #059669);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.shave-badge {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald);
  color: var(--emerald);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.feature-icon.compaction {
  background: rgba(99, 102, 241, 0.1);
  color: var(--indigo);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.feature-icon.git {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.feature-icon.privacy {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.feature-icon.mcp {
  background: rgba(139, 92, 246, 0.1);
  color: #A78BFA;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.feature-card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Dashboard Segment */
.dashboard-comparison {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 4rem;
}

.dashboard-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dashboard-details h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
}

.dashboard-tab-trigger {
  display: flex;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 0.4rem;
  border-radius: 12px;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 0.6rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

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

.detail-bullets {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bullet-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.bullet-check {
  color: var(--emerald);
  font-weight: bold;
}

.bullet-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.bullet-text p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.dashboard-mockup-frame {
  position: relative;
}

.mockup-inner {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card-bg);
  padding: 1.5rem;
}

.mockup-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mockup-card-small {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem;
}

.mockup-card-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mockup-card-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--emerald);
  margin-top: 0.2rem;
}

.mockup-table {
  width: 100%;
  font-size: 0.75rem;
  border-collapse: collapse;
}

.mockup-table th {
  color: var(--text-muted);
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.mockup-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Interactive Pricing Section */
.pricing-section {
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.calculator-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.calc-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.slider-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.slider-header span strong {
  color: var(--text);
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--indigo);
  cursor: pointer;
  transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.pricing-result-box {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.price-tier-name {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--indigo);
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.price-value {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: white;
}

.price-billing-freq {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.price-cta-btn {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

/* Static Tier Card for Comparison */
.tiers-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tier-row-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s;
}

.tier-row-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.tier-info h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.tier-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.tier-cost {
  text-align: right;
}

.tier-price-number {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.tier-freq {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Setup Steps */
.setup-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-card {
  display: flex;
  gap: 1.25rem;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  flex-shrink: 0;
}

.step-details h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.step-details p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.code-terminal {
  background: #0B0D13;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  font-family: monospace;
  font-size: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.terminal-header {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

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

.terminal-code {
  color: #E2E8F0;
}

.terminal-code .comment { color: #64748B; }
.terminal-code .command { color: #818CF8; }
.terminal-code .output { color: #34D399; }

/* Contact Section */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  background: rgba(15, 17, 23, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--indigo);
}

.form-textarea {
  resize: vertical;
  height: 100px;
}

.form-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--blue) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.9rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.form-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 15px rgba(99, 102, 241, 0.25);
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .hero-container, .features-grid, .dashboard-comparison, .pricing-grid, .setup-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
}
