:root {
  --bg: #111217; /* Grafana Background */
  --surface: #161719; /* Grafana Panel */
  --surface-hover: #22252b;
  --border: #24272e; /* Grafana Border */
  --text: #f0f0f2;
  --text-muted: #ccccdc;
  --pink: #ff4794; /* Kiroo Brand */
  --orange: #ff9830; /* Grafana Orange */
  --blue: #3274d9; /* Grafana Blue */
  --green: #73bf69; /* Grafana Green */
  --red: #f2495c; /* Grafana Red */
  --mono: "JetBrains Mono", monospace;
  --sans: "Inter", -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: min(1100px, calc(100% - 100px));
  margin: 0 auto;
}

/* TOPBAR (Notion Style) */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-mark { color: var(--pink); font-size: 1.5rem; }
.nav-logo { height: 45px; width: auto; }
.brand-text { font-weight: 800; font-size: 1.1rem; }

.topbar-nav {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.topbar-nav a:hover { color: #fff; }

.topbar-cta {
  background: var(--blue);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
}

/* HERO (Dashboard Style) */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 20%, rgba(255, 71, 148, 0.15), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(50, 116, 217, 0.1), transparent 40%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  text-align: left;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 24px 0 32px;
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.eyebrow {
  display: inline-block;
  color: var(--pink);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.accent { color: var(--pink); }

.btn {
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
}

.btn-primary { background: var(--pink); color: #fff; border: none; }
.btn-primary:hover { background: #ff5e9f; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255, 71, 148, 0.3); }

.btn-ghost { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: var(--surface); border-color: var(--text-muted); }

/* STORY SECTIONS */
.story-section {
    padding: 140px 0;
    position: relative;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-content h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.story-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.story-visual {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
}

.story-visual img {
    width: 100%;
    display: block;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.story-visual:hover img {
    transform: scale(1.05);
}

.story-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17,18,23,0.4), transparent);
    pointer-events: none;
}

.bg-nightmare {
    background: linear-gradient(to bottom, var(--bg), #1a0b14, var(--bg));
}

.bg-magic {
    background: linear-gradient(to bottom, var(--bg), #0b0e1a, var(--bg));
}

/* GLASSMORPHISM */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* PREMIUM ANIMATIONS */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* TERMINAL PANEL (Grafana Panel Style) */
.hero-panel {
  margin-top: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  position: relative;
}

.hero-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--pink), transparent);
    opacity: 0.5;
}

.terminal-head {
  height: 34px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  background: #202226;
  border-bottom: 1px solid var(--border);
}

.terminal-head span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  background: #333;
}

.terminal-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #ccc;
  min-height: 200px;
  line-height: 1.5;
}

.dim { color: #666; }
.ok { color: var(--green); }
.warn { color: var(--orange); }

/* METRIC STRIP */
.metric-strip {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 4px;
}

.metric-strip div {
  padding: 20px;
  border-right: 1px solid var(--border);
  text-align: left;
}

.metric-strip div:last-child { border-right: none; }

.metric-strip strong { display: block; font-size: 1rem; color: #fff; }
.metric-strip span { font-size: 0.8rem; color: var(--text-muted); }

/* GRID SECTIONS (Notion layout with Grafana Panels) */
section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-head h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -1px;
}

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

.step, .feature-grid article {
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 4px;
  transition: border-color 0.2s;
}

.step:hover { border-color: var(--blue); }

.step span {
  font-size: 0.75rem;
  color: var(--blue);
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}

.step h3, .feature-grid h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.step p, .feature-grid p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* COMMANDS LIST (Dashboard Table Style) */
.command-list {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 4px;
}

.command-list > div {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
}

.command-list > div:last-child { border-bottom: none; }

.command-list code {
  color: var(--blue);
  font-weight: 600;
  background: #090b0e;
  padding: 4px 8px;
  border-radius: 2px;
}

.command-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex: 1;
}

.cmd-copy {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 8px;
  font-size: 0.7rem;
  border-radius: 2px;
  cursor: pointer;
}

.cmd-copy:hover { border-color: #fff; color: #fff; }

/* FOOTER */
.footer { padding: 60px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer p { font-weight: 600; font-size: 0.85rem; }
.footer-links a { margin-left: 20px; font-size: 0.85rem; color: var(--text-muted); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .steps, .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .topbar-nav { display: none; }
}
