:root {
  --bg: #07080c;
  --bg2: #0c0e14;
  --panel: #12151e;
  --panel2: #171b27;
  --ink: #f0f2f6;
  --muted: #9aa1ae;
  --faint: #5f6674;
  --line: rgba(240, 242, 246, 0.08);
  --line2: rgba(240, 242, 246, 0.14);
  --accent: #6b8afc;
  --mint: #7dcea0;
  --warm: #e0b070;
  --coral: #e08a7a;
  --violet: #a78bfa;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", "Georgia", serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shell: min(1180px, calc(100% - 2rem));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mint); text-decoration: none; }
a:hover { color: var(--ink); }
code, pre { font-family: var(--mono); }
em { font-style: italic; color: var(--ink); }
.shell { width: var(--shell); margin-inline: auto; }

.noise {
  pointer-events: none; position: fixed; inset: 0; z-index: 90; opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow {
  pointer-events: none; position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 70% 10%, rgba(107, 138, 252, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 35% at 15% 20%, rgba(125, 206, 160, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(167, 139, 250, 0.06), transparent 55%);
}
main, .top, .foot { position: relative; z-index: 1; }

/* top */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 8, 12, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 3.6rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--display); font-weight: 600; font-size: 1.28rem;
  color: var(--ink); letter-spacing: -0.02em;
}
.brand-mark {
  width: 1.15rem; height: 1.15rem; border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), var(--mint));
  box-shadow: 0 0 22px rgba(107, 138, 252, 0.45);
}
.brand-mark.sm { width: 0.85rem; height: 0.85rem; border-radius: 3px; }
.nav { display: flex; gap: 1.15rem; align-items: center; font-size: 0.92rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); }
.pill {
  background: var(--accent) !important; color: #fff !important;
  padding: 0.4rem 0.9rem; border-radius: 999px; font-weight: 600;
}

/* hero */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2.5rem 2rem;
  align-items: center;
}
.kicker {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mint); margin: 0 0 1rem;
}
.hero h1, .sec-head h2, .ai-split h2, .install-wrap h2 {
  font-family: var(--display); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.08; margin: 0;
}
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 3.85rem); }
.grad {
  background: linear-gradient(115deg, var(--mint) 0%, var(--accent) 48%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub, .sec-sub {
  color: var(--muted); margin: 1.1rem 0 0; max-width: 34rem; font-size: 1.08rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.72rem 1.2rem; border-radius: 999px; font-weight: 600;
  font-size: 0.95rem; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), filter 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn.lg { padding: 0.9rem 1.4rem; font-size: 1rem; }
.btn.solid { background: var(--accent); color: #fff; }
.btn.solid:hover { filter: brightness(1.08); color: #fff; }
.btn.line { border-color: var(--line2); color: var(--ink); background: transparent; }
.btn.line:hover { border-color: var(--muted); color: var(--ink); }

.hero-tags {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  list-style: none; margin: 1.5rem 0 0; padding: 0;
}
.hero-tags li {
  font-family: var(--mono); font-size: 0.72rem;
  padding: 0.35rem 0.65rem; border-radius: 999px;
  border: 1px solid rgba(107, 138, 252, 0.28);
  color: #b8c6ff; background: rgba(107, 138, 252, 0.08);
}

/* dashboard mock in hero */
.hero-stage { position: relative; min-height: 420px; }
.dash-frame {
  border-radius: 16px; border: 1px solid var(--line2);
  background: var(--panel);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 30px 80px rgba(0,0,0,0.55),
    0 0 60px rgba(107, 138, 252, 0.12);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-4deg) rotateX(3deg);
  transition: transform 0.5s var(--ease);
}
.hero-stage:hover .dash-frame {
  transform: perspective(1200px) rotateY(-1deg) rotateX(1deg);
}
.dash-chrome {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  background: #0a0c12; border-bottom: 1px solid var(--line);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3a3f4d; }
.dot:nth-child(1) { background: #ff5f57; }
.dot:nth-child(2) { background: #febc2e; }
.dot:nth-child(3) { background: #28c840; }
.dash-url {
  margin-left: 0.6rem; font-family: var(--mono); font-size: 0.68rem; color: var(--faint);
}
.dash-body { padding: 0.85rem; display: grid; gap: 0.75rem; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45rem; }
.kpi {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.55rem 0.6rem; display: flex; flex-direction: column; gap: 0.15rem;
}
.kpi-l { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); }
.kpi-v { font-family: var(--display); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.kpi-h { font-size: 0.62rem; color: var(--muted); }

.ai-strip {
  display: grid; grid-template-columns: auto 1fr; gap: 0.75rem;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem;
}
.ai-ring {
  width: 64px; height: 64px; border-radius: 50%;
  background: conic-gradient(var(--accent) 0 72%, #222836 0);
  display: grid; place-items: center; position: relative;
}
.ai-ring::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg2);
}
.ai-ring span, .ai-ring small { position: relative; z-index: 1; text-align: center; }
.ai-ring span { font-family: var(--display); font-weight: 600; font-size: 0.95rem; display: block; line-height: 1; }
.ai-ring small { display: block; font-size: 0.52rem; color: var(--faint); margin-top: 0.15rem; }
.ai-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem 0.6rem; }
.ai-cells .lbl { font-size: 0.58rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; }
.ai-cells .val { font-weight: 600; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.ai-cells .val.sm { font-size: 0.72rem; }
.ai-cells .meta { font-size: 0.58rem; color: var(--faint); }
.ai-cells .bar {
  height: 4px; border-radius: 99px; background: #222836; margin-top: 0.25rem; overflow: hidden;
}
.ai-cells .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.ai-cells .bar.human i { background: var(--mint); }

.chart-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.55rem; }
.pane {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 0.55rem 0.65rem;
}
.pane-t { font-size: 0.65rem; color: var(--faint); margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.05em; }
.stream-svg { width: 100%; height: 72px; display: block; }
.lang-list { font-size: 0.72rem; color: var(--muted); display: grid; gap: 0.28rem; }
.lang-list b { float: right; color: var(--ink); font-weight: 600; }
.lang-list .sw {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 0.35rem;
}
.sw.ts { background: #6b8afc; } .sw.md { background: #8eb8a8; }
.sw.js { background: #c4a574; } .sw.ot { background: #85929e; }
.langs { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; align-items: center; }
.donut {
  width: 56px; height: 56px; border-radius: 50%;
  background: conic-gradient(#6b8afc 0 66%, #8eb8a8 0 86%, #c4a574 0 94%, #85929e 0);
  position: relative;
}
.donut::after {
  content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--bg2);
}

.float-card {
  position: absolute;
  background: rgba(18, 21, 30, 0.92);
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  animation: float 6s ease-in-out infinite;
}
.float-card .fc-l { display: block; font-size: 0.65rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.float-card strong { display: block; font-size: 0.95rem; margin: 0.15rem 0; }
.float-card .fc-m { font-size: 0.72rem; color: var(--mint); }
.f1 { top: 8%; left: -6%; animation-delay: 0s; }
.f2 { bottom: 6%; right: -4%; animation-delay: 1.2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* sections */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--bg2); border-block: 1px solid var(--line); }
.sec-head { max-width: 40rem; margin-bottom: 2rem; }
.sec-head h2, .ai-split h2, .install-wrap h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem); margin-top: 0.35rem;
}
.sec-sub { margin-top: 0.75rem; }

/* showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.show-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.show-card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; }
.show-mock { padding: 1rem 1.1rem; background: #0a0c12; min-height: 160px; }
.show-mock-h {
  font-size: 0.7rem; color: var(--faint); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 0.75rem;
}
.show-copy { padding: 1.25rem 1.35rem; display: flex; flex-direction: column; justify-content: center; }
.show-copy h3 { margin: 0 0 0.45rem; font-size: 1.15rem; letter-spacing: -0.02em; }
.show-copy p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* timeline mock */
.tl-row {
  display: grid; grid-template-columns: 4.5rem 1fr 2.2rem;
  gap: 0.5rem; align-items: center; margin-bottom: 0.45rem;
  font-size: 0.75rem;
}
.tl-row span { color: var(--muted); truncate: true; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-row em { font-style: normal; color: var(--faint); font-family: var(--mono); font-size: 0.68rem; text-align: right; }
.tl-track {
  position: relative; height: 14px; background: rgba(255,255,255,0.03);
  border-radius: 3px;
}
.tl-track i {
  position: absolute; top: 2px; bottom: 2px; border-radius: 2px;
  background: #7eb8f7; opacity: 0.85;
}
.tl-track i.c2 { background: #7dcea0; }
.tl-track i.c3 { background: #f0b27a; }
.tl-track i.c4 { background: #af7ac5; }
.tl-hours {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 0.6rem; color: var(--faint);
  margin-top: 0.5rem; padding-left: 5rem; padding-right: 2.4rem;
}

/* categories mock */
.cat-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin-bottom: 0.85rem; }
.cat-bar i { background: #5dade2; height: 100%; }
.cat-bar i.b2 { background: #2e86c1; }
.cat-bar i.b3 { background: #1a5276; }
.cat-bar i.b4 { background: #7fb3d5; }
.mini-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 80px;
}
.mini-bars span {
  flex: 1; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #6b8afc, #2e3a6b);
  opacity: 0.9;
}

/* donuts row */
.mini-donut-row { display: flex; gap: 0.75rem; justify-content: space-around; margin-bottom: 0.75rem; }
.md { text-align: center; }
.md-ring {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 0.35rem;
  background: conic-gradient(var(--c) 0 calc(var(--p) * 1%), #222836 0);
  position: relative;
}
.md-ring::after {
  content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #0a0c12;
}
.md span { font-size: 0.65rem; color: var(--faint); }
.md-legend { list-style: none; margin: 0; padding: 0; font-size: 0.72rem; color: var(--muted); display: grid; gap: 0.3rem; }
.md-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 0.35rem; }

/* project cards mock */
.projects {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem;
}
.pcard {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem;
}
.pc-top { display: flex; gap: 0.5rem; align-items: flex-start; margin-bottom: 0.55rem; }
.pc-top b { display: block; font-size: 0.85rem; }
.pc-top small { color: var(--faint); font-size: 0.7rem; }
.folder {
  width: 1.4rem; height: 1.4rem; border-radius: 6px; flex-shrink: 0;
  background: rgba(107, 138, 252, 0.2);
  box-shadow: inset 0 0 0 1px rgba(107, 138, 252, 0.35);
}
.folder.g { background: rgba(61, 154, 92, 0.2); box-shadow: inset 0 0 0 1px rgba(61, 154, 92, 0.35); }
.folder.o { background: rgba(155, 142, 196, 0.2); box-shadow: inset 0 0 0 1px rgba(155, 142, 196, 0.35); }
.pc-bar { height: 4px; border-radius: 99px; background: #222836; margin-bottom: 0.65rem; overflow: hidden; }
.pc-bar i { display: block; height: 100%; border-radius: 99px; }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.pc-grid span { display: block; font-size: 0.58rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; }
.pc-grid strong { font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.pc-grid em { font-style: normal; font-size: 0.65rem; color: var(--muted); margin-left: 0.25rem; }

/* metric wall */
.metric-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}
.mw {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 1rem 1.05rem;
  transition: border-color 0.2s, transform 0.25s var(--ease);
}
.mw:hover { border-color: rgba(107, 138, 252, 0.35); transform: translateY(-2px); }
.mw strong { display: block; font-size: 0.95rem; margin-bottom: 0.3rem; letter-spacing: -0.01em; }
.mw span { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

/* ai split */
.ai-split {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center;
}
.check { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.check li {
  padding-left: 1.5rem; position: relative; color: var(--muted); font-size: 0.98rem;
}
.check li::before {
  content: ""; position: absolute; left: 0; top: 0.45rem;
  width: 0.65rem; height: 0.65rem; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 12px rgba(125, 206, 160, 0.5);
}
.check.sm li { font-size: 0.9rem; }
.ai-panel {
  border-radius: 20px; border: 1px solid var(--line2);
  background: linear-gradient(160deg, #151a28 0%, #0e111a 100%);
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba(107, 138, 252, 0.1);
}
.ai-panel-h { font-size: 0.75rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.ai-big {
  font-family: var(--display); font-size: 5rem; font-weight: 600;
  letter-spacing: -0.04em; line-height: 1; margin: 0.4rem 0 0.2rem;
  background: linear-gradient(135deg, var(--accent), var(--mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ai-big span { font-size: 0.45em; }
.ai-sub { color: var(--muted); margin-bottom: 1.25rem; }
.ai-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.ai-stats div {
  background: rgba(0,0,0,0.25); border-radius: 12px; padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
}
.ai-stats b { display: block; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.ai-stats span { font-size: 0.75rem; color: var(--faint); }

/* three cards */
.three {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem;
}
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.25rem 1.35rem;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card code {
  font-size: 0.85em; color: var(--mint);
  background: rgba(125, 206, 160, 0.08); padding: 0.1em 0.35em; border-radius: 4px;
}

/* install */
.install-sec { padding-bottom: 4rem; }
.install-wrap { max-width: 44rem; }
.install-block {
  margin-top: 1.5rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(107, 138, 252, 0.35);
  background: linear-gradient(180deg, #141a28, #0f121c);
  box-shadow: 0 0 0 1px rgba(107, 138, 252, 0.08), 0 20px 50px rgba(0,0,0,0.35);
}
.install-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mint); margin-bottom: 0.55rem;
}
.install-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.install-cmd {
  flex: 1 1 240px; margin: 0; padding: 0.9rem 1rem;
  border-radius: 12px; background: #07080c; border: 1px solid var(--line);
  overflow-x: auto; color: #c8d6cc; font-size: 0.88rem;
}
.install-cmd code { white-space: nowrap; }
.copy { min-width: 5.5rem; border-radius: 12px !important; }
.install-hint { margin: 0.75rem 0 0; font-size: 0.88rem; color: var(--faint); }

.after {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem;
  margin-top: 1.75rem;
}
.after h4 { margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.term {
  margin: 0; padding: 1rem 1.1rem; border-radius: 12px;
  background: #0a0c12; border: 1px solid var(--line);
  color: #b8c4b8; font-size: 0.82rem; line-height: 1.65; overflow-x: auto;
}

.foot-note { padding: 2rem 0 3rem; }
.foot-note p {
  margin: 0; font-size: 0.88rem; color: var(--faint); max-width: 48rem; line-height: 1.6;
}

.foot {
  border-top: 1px solid var(--line); padding: 1.25rem 0 2rem;
  font-size: 0.88rem; color: var(--faint);
}
.foot-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.brand-mini {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--ink); font-family: var(--display); font-weight: 600;
}
.muted { color: var(--faint); }

/* responsive */
@media (max-width: 960px) {
  .hero-grid, .show-card.wide, .ai-split, .after { grid-template-columns: 1fr; }
  .dash-frame { transform: none; }
  .f1, .f2 { display: none; }
  .hero-stage { min-height: 0; }
  .metric-wall { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: 1fr; }
  .three { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav a:not(.pill) { display: none; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .chart-row, .showcase-grid { grid-template-columns: 1fr; }
  .ai-cells { grid-template-columns: 1fr 1fr; }
  .metric-wall { grid-template-columns: 1fr; }
}
