@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=SF+Mono&display=swap');

/* ── Reset & Tokens ─────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-base: #000000;
  --bg-surface: #0a0a0a;
  --bg-card: linear-gradient(180deg, rgba(20,20,20,0.6) 0%, rgba(10,10,10,0.8) 100%);
  --bg-nav: rgba(0, 0, 0, 0.6);
  
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --text-subtlest: #6b7280;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  --accent-base: #f97316;
  --accent-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --accent-glow: rgba(249, 115, 22, 0.4);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-muted);
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* ── Geometry & Glows ──────────────────────────────── */
.ambient-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

/* ── Typography Enhancements ───────────────────────── */
h1, h2, h3, h4 {
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.section-badge::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-base);
  box-shadow: 0 0 10px var(--accent-base);
}

/* ── Navigation ────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

nav .nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-gradient);
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links .cta-link {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: 100px;
}
.nav-links .cta-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  padding: 4px;
  margin-left: 12px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--text-main);
  color: #000;
}

/* ── Buttons ───────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--text-main);
  color: #000;
  font-weight: 600;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 100px;
  transition: transform 0.2s, background 0.2s;
}

.btn-primary:hover {
  transform: scale(1.02);
  background: #f3f4f6;
  color: #000;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-weight: 500;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 100px;
  transition: all 0.2s;
}

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

/* ── Hero ──────────────────────────────────────────── */
.hero {
  padding: 220px 0 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 32px;
  max-width: 900px;
}

.hero h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ── Hero Dashboard Extracted View ─────────────────── */
.hero-dashboard-preview {
  margin-top: 80px;
  width: 100%;
  max-width: 1060px;
  background: rgba(10,10,10,0.8);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  box-shadow: 0 30px 100px -20px rgba(249, 115, 22, 0.2);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  display: block;
}

.hero-dashboard-preview::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  z-index: 2;
  pointer-events: none;
}

.real-dashboard-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  transition: transform 0.4s ease;
}

.hero-dashboard-preview:hover .real-dashboard-img {
  transform: scale(1.02);
}

/* ── Feature Grid ─────────────────────────────────── */
.problem {
  padding: 120px 0;
  text-align: center;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 24px;
}

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

.bento {
  padding: 0 0 160px;
}

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

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  position: relative;
}

/* Icon specific vivid backgrounds & glows */
.icon-orange { color: #f97316; background: rgba(249,115,22,0.15); border-color: rgba(249,115,22,0.3); box-shadow: 0 0 24px rgba(249,115,22,0.2); }
.icon-amber { color: #f59e0b; background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.3); box-shadow: 0 0 24px rgba(245,158,11,0.2); }
.icon-green { color: #22c55e; background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.3); box-shadow: 0 0 24px rgba(34,197,94,0.2); }
.icon-cyan { color: #06b6d4; background: rgba(6,182,212,0.15); border-color: rgba(6,182,212,0.3); box-shadow: 0 0 24px rgba(6,182,212,0.2); }
.icon-purple { color: #a855f7; background: rgba(168,85,247,0.15); border-color: rgba(168,85,247,0.3); box-shadow: 0 0 24px rgba(168,85,247,0.2); }
.icon-red { color: #ef4444; background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.3); box-shadow: 0 0 24px rgba(239,68,68,0.2); }

/* Make the whole card react to hover with a stronger glow of the icon's color */
.bento-card:has(.icon-orange):hover { border-color: rgba(249,115,22,0.5); box-shadow: 0 10px 50px rgba(249,115,22,0.2); }
.bento-card:has(.icon-amber):hover { border-color: rgba(245,158,11,0.5); box-shadow: 0 10px 50px rgba(245,158,11,0.2); }
.bento-card:has(.icon-green):hover { border-color: rgba(34,197,94,0.5); box-shadow: 0 10px 50px rgba(34,197,94,0.2); }
.bento-card:has(.icon-cyan):hover { border-color: rgba(6,182,212,0.5); box-shadow: 0 10px 50px rgba(6,182,212,0.2); }
.bento-card:has(.icon-purple):hover { border-color: rgba(168,85,247,0.5); box-shadow: 0 10px 50px rgba(168,85,247,0.2); }
.bento-card:has(.icon-red):hover { border-color: rgba(239,68,68,0.5); box-shadow: 0 10px 50px rgba(239,68,68,0.2); }

.bento-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.bento-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  flex-grow: 1;
}

/* Bento mini visuals restore */
.bento-visual {
  margin-top: 32px;
  background: #000;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  overflow: hidden;
}

.mini-terminal {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
}
.mini-terminal .prompt { color: #f97316; }
.mini-terminal .output { color: #9ca3af; }
.mini-terminal .success { color: #22c55e; }

.mock-chart {
  display: flex; align-items: flex-end; gap: 4px; height: 100%; width: 100%;
}
.mock-bar {
  flex: 1; border-radius: 4px 4px 0 0; background: var(--accent-gradient); opacity: 0.7; transition: opacity 0.3s ease;
}
.mock-bar:hover { opacity: 1; }
.mock-bar:nth-child(even) { background: rgba(255,255,255,0.15); }

/* ── Steps ─────────────────────────────────────────── */
.steps {
  padding: 160px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.step {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  position: relative;
}

.step-number {
  font-size: 48px;
  font-weight: 800;
  color: rgba(255,255,255,0.05);
  position: absolute;
  top: 20px;
  right: 32px;
  line-height: 1;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 16px;
  margin-top: 24px;
}

.step code {
  display: block;
  margin-top: 24px;
  background: #000;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-base);
  word-break: break-all;
}

/* ── CTA ───────────────────────────────────────────── */
.cta-section {
  padding: 160px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.cta-section h2 {
  font-size: clamp(40px, 6vw, 64px);
  margin-bottom: 24px;
}

.cta-section p {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* ── Install Page Specific ─────────────────────────── */
.install-container {
  max-width: 760px;
  padding: 160px 32px 100px;
}

.install-block, .prereq {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 24px;
}

.install-block h3, .prereq h3 {
  font-size: 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cmd-box {
  background: #000;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cmd-box code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 8px 20px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: rgba(255,255,255,0.1);
}

.prereq-list {
  list-style: none;
}

.prereq-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.prereq-list li:last-child {
  border-bottom: none;
}

.check-icon {
  color: var(--accent-base);
}

.prereq-list a {
  color: var(--accent-base);
  text-decoration: underline;
}

/* ── Footer ────────────────────────────────────────── */
footer {
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-subtlest);
  border-top: 1px solid rgba(255,255,255,0.05);
}

footer a {
  color: var(--text-muted);
  margin: 0 16px;
}

footer a:hover {
  color: var(--text-main);
}

.footer-links {
  margin-bottom: 24px;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  .hero h1 { font-size: 40px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.span-2 { grid-column: span 1; }
  .steps-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero-dashboard-preview { height: 200px; }
}
