:root {
  --bg: #0c0c10;
  --surface: #15151c;
  --surface-2: #1e1e27;
  --text: #e8e8ec;
  --text-muted: #9e9ea8;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --brand-1: #ffd700;
  --brand-2: #ff7b00;
  --brand-3: #ff2a00;
  --brand-gradient: linear-gradient(135deg, #ffd700 0%, #ff7b00 50%, #ff2a00 100%);
  --accent: #ff7b00;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --font: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}



* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre { font-family: var(--mono); }

code {
  background: var(--surface-2);
  padding: 0.15em 0.35em;
  border-radius: 6px;
  font-size: 0.95em;
}

pre {
  background: var(--surface-2);
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.9rem;
}

.container {
  width: 92%;
  max-width: 1100px;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  flex-shrink: 0;
}

.logo-icon { width: 28px; height: 28px; }

.nav-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--brand-gradient);
  border-radius: 2px;
  transition: width 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-decoration: none;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.lang-switch {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  font-family: var(--font);
  font-size: 0.8rem;
  cursor: pointer;
}

.site-header {
  transition: transform 0.25s ease;
}

.site-header.nav-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #1a0f00;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; }
}

.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 123, 0, 0.18), transparent 60%);
  pointer-events: none;
}



.hero-inner {
  position: relative;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.2rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2rem;
}

.install {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  font-size: 1rem;
  box-shadow: var(--shadow);
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.copy:hover { color: var(--text); background: var(--surface); border-color: var(--border-strong); }
.copy.copied { color: #2dd4bf; }

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--brand-gradient);
  color: #1a0f00;
  box-shadow: 0 6px 24px rgba(255, 123, 0, 0.25);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.badges { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }

.badge {
  background: rgba(255, 123, 0, 0.1);
  color: var(--brand-2);
  border: 1px solid rgba(255, 123, 0, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.demo, #quickstart, #waste, #report, #links, #cli, .features, .page-section {
  padding: 4rem 0;
}

section h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  text-align: center;
}

.section-desc {
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.flamegraph {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.flamegraph-bars {
  display: flex;
  width: 100%;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
}

.flamegraph-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 0.4rem;
}

.flamegraph-bar:hover { filter: brightness(1.15); transform: scaleY(1.05); z-index: 2; }

.flamegraph-tooltip {
  position: absolute;
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 10;
  box-shadow: var(--shadow);
  white-space: nowrap;
  color: var(--text);
}

.flamegraph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin-top: 1rem;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.demo-total {
  text-align: center;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.features { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s;
}

.feature:hover { transform: translateY(-4px); border-color: rgba(255, 123, 0, 0.3); }

.feature h3 { margin: 0 0 0.6rem; font-size: 1.1rem; color: var(--text); }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.code-window {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

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

.filename {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.code-window pre { margin: 0; background: transparent; border-radius: 0; font-size: 0.88rem; line-height: 1.6; }

.code-copy {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.35rem;
}

.terminal { background: var(--surface-2); }
.terminal pre { max-width: 100%; overflow-x: auto; }
.prompt { color: var(--brand-2); font-weight: 700; margin-right: 0.5rem; }
.cmd { color: var(--text); }

.screenshot { background: var(--surface); }
.screenshot img {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 2rem auto 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.report-preview {
  position: relative;
  max-width: 900px;
  margin: 2rem auto 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0c0c10;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.report-header {
  padding: 1.25rem 1.5rem;
  background: #111118;
  border-bottom: 1px solid var(--border);
}
.report-header h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--text);
}
.report-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.report-meta strong { color: var(--text); }
.report-cost {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--brand-2);
}
.report-graph {
  padding: 1.25rem 1.5rem 1rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.report-graph::-webkit-scrollbar {
  height: 6px;
}
.report-graph::-webkit-scrollbar-track {
  background: transparent;
}
.report-graph::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
.report-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 100%;
}
.report-row {
  display: flex;
  gap: 3px;
  width: 100%;
}
.report-bar {
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 4px;
  min-width: 2px;
  flex: 0 1 auto;
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.45s ease, filter 0.15s;
  cursor: pointer;
}
.report-bar:hover { filter: brightness(1.2); }
.report-graph.is-visible .report-bar {
  transform: scaleX(1);
  opacity: 1;
}
.report-tooltip {
  display: none;
  position: absolute;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text);
  pointer-events: none;
  z-index: 50;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.report-tooltip strong { color: var(--brand-2); }
.report-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0.85rem 1.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.report-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.report-legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.report-footer {
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.report-footer code {
  background: var(--surface-2);
  padding: 0.15em 0.35em;
  border-radius: 6px;
}

.links { background: var(--bg); }

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.link-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s;
}

.link-card:hover { text-decoration: none; transform: translateY(-4px); border-color: rgba(255, 123, 0, 0.3); }

.link-card.soon { cursor: default; }
.link-card.soon:hover { transform: none; border-color: var(--border); }
.link-card.soon .link-arrow { color: var(--text-muted); }

.link-card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.link-card p { margin: 0 0 0.75rem; color: var(--text-muted); font-size: 0.95rem; }

.link-arrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--brand-2);
}

.page-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin: 0 0 0.8rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 { margin: 0 0 0.6rem; }
.card p { color: var(--text-muted); margin: 0 0 0.75rem; }
.card pre { margin: 0.75rem 0 0; font-size: 0.85rem; }

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--brand-2);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-top: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th { font-weight: 600; color: var(--text); background: var(--surface-2); }
tr:last-child td { border-bottom: none; }

.tabs {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  margin-top: 1.5rem;
}

.tabs [role="tablist"] {
  display: flex;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.tabs [role="tab"] {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.85rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] {
  color: var(--brand-2);
  border-bottom-color: var(--brand-2);
}

.tabs [role="tabpanel"] { padding: 1.25rem; }
.tabs [role="tabpanel"][hidden] { display: none; }
.tabs [role="tabpanel"] pre { margin: 0; font-size: 0.85rem; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem;
    gap: 0.9rem;
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s 0.25s;
    z-index: 99;
    align-items: flex-start;
  }
  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.25s ease;
  }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: 0.6rem 0; }
  .nav-actions { margin-left: auto; }
}

@media (max-width: 640px) {
  .report-bar { height: 26px; font-size: 11px; padding: 0 2px; }
  .report-meta { gap: 1rem; font-size: 0.82rem; }
  .report-graph { padding: 1rem; gap: 3px; }
  .report-header { padding: 1rem; }
  .report-footer { padding: 0.85rem 1rem; font-size: 0.78rem; }
  .hero { padding: 3rem 0; }
  .install { flex-direction: column; align-items: stretch; width: 100%; }
  .demo, #quickstart, #waste, #report, #links, #cli, .features, .page-section { padding: 2.5rem 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .two-col { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; }
  .page-hero { padding: 3rem 0 2.5rem; }
  .code-window pre, .terminal pre { font-size: 0.78rem; }
  .flamegraph-bars { height: 44px; }
}
