:root {
  --bg: #0b0810;
  --bg-2: #121017;
  --surface: rgba(24, 20, 31, 0.84);
  --surface-2: #18141f;
  --line: rgba(255,255,255,.09);
  --text: #f6f3f9;
  --muted: #a9a3b1;
  --purple: #8d4bd3;
  --purple-strong: #7338b3;
  --purple-soft: #c8a6ea;
  --green: #76db9b;
  --danger: #f27878;
  --shadow: 0 30px 80px rgba(0,0,0,.38);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(115,56,179,.14), transparent 33rem),
    linear-gradient(180deg, #0b0810 0%, #0c0911 55%, #0b0810 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
code {
  font: .92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #ddc8f4;
  background: rgba(141,75,211,.12);
  padding: .12rem .34rem;
  border-radius: 6px;
}
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.page-glow {
  position: fixed; pointer-events: none; z-index: -1; filter: blur(10px);
  border-radius: 999px; opacity: .42;
}
.page-glow-a { width: 460px; height: 460px; background: rgba(115,56,179,.13); top: 12vh; right: -160px; }
.page-glow-b { width: 360px; height: 360px; background: rgba(84,34,135,.1); bottom: 10vh; left: -150px; }

.topbar {
  height: 78px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -.02em; font-size: 1.1rem; }
.brand img { width: 30px; height: 30px; }
.topbar nav { display: flex; align-items: center; gap: 28px; color: #cfc9d6; font-size: .92rem; }
.topbar nav a { transition: color .2s ease; }
.topbar nav a:hover { color: white; }
.nav-github { border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; background: rgba(255,255,255,.025); }

.hero {
  min-height: 710px;
  padding: 94px 0 80px;
  display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 74px;
}
.eyebrow, .kicker {
  color: var(--purple-soft); text-transform: uppercase; letter-spacing: .12em;
  font-size: .76rem; font-weight: 750;
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 18px rgba(118,219,155,.7); }
.hero h1, .section-heading h2, .position-card h2, .open-source h2, .final-cta h2 {
  margin: 0; font-weight: 760; letter-spacing: -.045em; line-height: 1.04;
}
.hero h1 { font-size: clamp(3rem, 5.4vw, 5.4rem); max-width: 720px; }
.hero h1 em { font-style: normal; color: #b982eb; }
.hero-text { color: #bbb4c4; max-width: 650px; font-size: 1.09rem; margin: 26px 0 30px; }
.hero-text strong { color: #ede6f4; font-weight: 650; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  min-height: 54px; border-radius: 12px; padding: 10px 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 1px solid transparent; font-weight: 680; transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn small { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; opacity: .7; line-height: 1.1; }
.btn-primary { background: linear-gradient(135deg, #8d4bd3, #6f31ad); box-shadow: 0 12px 30px rgba(115,56,179,.25); }
.btn-secondary { background: rgba(255,255,255,.045); border-color: var(--line); color: #efeaf4; }
.btn-light { background: #fff; color: #171019; padding-inline: 22px; }
.btn-icon { font-size: 1.35rem; opacity: .9; }
.hero-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 18px; color: #77717e; font-size: .8rem; }
.hero-meta span + span::before { content: "•"; margin-right: 18px; color: #4a444f; }

.app-preview {
  border-radius: 20px; border: 1px solid rgba(255,255,255,.12);
  background: #110e15; box-shadow: var(--shadow), 0 0 0 1px rgba(115,56,179,.08);
  overflow: hidden; transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}
.window-bar {
  height: 48px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; background: #17131c; border-bottom: 1px solid var(--line);
}
.window-brand { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 650; color: #d9d2df; }
.window-brand img { width: 19px; height: 19px; }
.window-controls { display: flex; gap: 7px; }
.window-controls i { width: 10px; height: 10px; border-radius: 50%; background: #39343e; }
.app-body { min-height: 420px; display: grid; grid-template-columns: 152px 1fr; }
.profiles { border-right: 1px solid var(--line); padding: 17px 10px; background: #100d14; }
.profiles-title { display: block; padding: 0 9px 9px; color: #716a78; font-size: .62rem; letter-spacing: .13em; }
.profile, .add-profile {
  width: 100%; position: relative; display: block; border: 0; color: #eee8f3; text-align: left;
  background: transparent; border-radius: 9px; padding: 10px 24px 10px 10px; margin: 3px 0; font: inherit;
}
.profile.active { background: rgba(115,56,179,.18); }
.profile b { display: block; font-size: .78rem; font-weight: 650; }
.profile small { display: block; color: #7f7785; font-size: .63rem; margin-top: 2px; }
.dot { width: 7px; height: 7px; border-radius: 50%; position: absolute; right: 9px; top: 17px; }
.dot.running { background: var(--green); box-shadow: 0 0 8px rgba(118,219,155,.4); }
.dot.stopped { background: #5e5863; }
.add-profile { color: #8b838f; font-size: .7rem; margin-top: 9px; }
.workspace { padding: 22px; }
.workspace-head { display: flex; align-items: center; justify-content: space-between; }
.workspace-head small { color: #7f7886; text-transform: uppercase; font-size: .6rem; letter-spacing: .1em; }
.workspace-head h3 { margin: 2px 0 0; font-size: 1.2rem; }
.actions { display: flex; gap: 6px; }
.actions button { width: 30px; height: 30px; color: #bbb3c2; border: 1px solid var(--line); background: #17131c; border-radius: 8px; }
.actions button.danger { color: var(--danger); }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 20px 0; }
.stats div { padding: 12px; background: #16121b; border: 1px solid rgba(255,255,255,.06); border-radius: 10px; }
.stats small { display: block; color: #716b77; font-size: .54rem; letter-spacing: .1em; }
.stats strong { font-size: .76rem; font-weight: 640; }
.stats strong.ok { color: var(--green); }
.tabs { display: flex; gap: 17px; border-bottom: 1px solid var(--line); color: #6f6875; font-size: .68rem; }
.tabs span { padding: 8px 1px; }
.tabs .active { color: #d3b3ef; border-bottom: 2px solid var(--purple); }
.terminal {
  margin-top: 12px; min-height: 180px; padding: 14px; border-radius: 10px;
  background: #0b090e; border: 1px solid rgba(255,255,255,.055);
  font: .65rem/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #b9b0c0;
}
.terminal p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.terminal p span { color: #514b56; margin-right: 8px; }
.terminal b { color: #caa8e8; font-weight: 500; }
.terminal .success { color: #74cf94; }
.cursor { display: inline-block; width: 6px; height: 11px; background: #806099; opacity: .7; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .15; } }

.proof {
  display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 26px 0; margin-bottom: 130px;
}
.proof div { padding: 2px 24px; border-right: 1px solid var(--line); }
.proof div:first-child { padding-left: 0; }
.proof div:last-child { border: 0; }
.proof strong { display: block; font-size: .95rem; }
.proof span { color: #77717d; font-size: .76rem; }

.section { padding: 70px 0 110px; }
.section-heading { max-width: 750px; margin-bottom: 46px; }
.section-heading.compact { max-width: 620px; }
.section-heading h2, .position-card h2, .open-source h2 { margin-top: 10px; font-size: clamp(2.2rem, 4vw, 3.7rem); }
.section-heading p { color: var(--muted); max-width: 650px; margin: 18px 0 0; font-size: 1.02rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.feature {
  min-height: 245px; padding: 26px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(26,22,32,.85), rgba(18,15,23,.9));
  border: 1px solid var(--line);
}
.feature-wide { grid-column: span 2; display: grid; grid-template-columns: auto 1fr 190px; gap: 20px; align-items: start; }
.feature-icon {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  background: rgba(115,56,179,.16); color: #d1afea; font-weight: 800;
}
.feature h3 { font-size: 1.03rem; margin: 18px 0 8px; letter-spacing: -.015em; }
.feature-wide h3 { margin-top: 2px; }
.feature p { margin: 0; color: #8f8995; font-size: .89rem; }
.mini-stack { display: grid; gap: 7px; }
.mini-stack span {
  display: flex; justify-content: space-between; gap: 10px; padding: 10px 11px;
  border-radius: 9px; background: #0e0b12; border: 1px solid rgba(255,255,255,.06);
  font: .67rem ui-monospace, monospace; color: #b5aebd;
}
.mini-stack i { color: #716979; font-style: normal; }

.steps-section {
  max-width: 1180px; width: calc(100% - 40px); margin-inline: auto;
  background: rgba(115,56,179,.055); border: 1px solid rgba(141,75,211,.13);
  border-radius: 28px; padding: 58px;
}
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.steps article { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; }
.steps article > span { color: #8b6ca4; font: .7rem ui-monospace, monospace; }
.steps h3 { font-size: .98rem; margin: 14px 0 8px; }
.steps p { color: #908997; font-size: .84rem; margin: 0; }

.positioning { padding-top: 120px; }
.position-card {
  padding: 60px; border-radius: 28px; min-height: 380px;
  background:
    radial-gradient(circle at 82% 18%, rgba(141,75,211,.18), transparent 22rem),
    #15111a;
  border: 1px solid var(--line);
}
.position-card p { max-width: 760px; color: #aaa3b1; font-size: 1.03rem; }
.position-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.position-tags span { padding: 8px 11px; border-radius: 999px; border: 1px solid var(--line); color: #aaa3b1; font-size: .76rem; background: rgba(255,255,255,.025); }

.open-source {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  border-bottom: 1px solid var(--line);
}
.open-source > div { max-width: 710px; }
.open-source p { color: #918a98; max-width: 620px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 0 4px; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 620; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; color: #8d8494; font-size: 1.25rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: -6px 0 22px; color: #918a98; max-width: 780px; font-size: .92rem; }

.final-cta { margin-top: 70px; background: linear-gradient(135deg, #6f2fac, #8e4bd1); }
.final-cta-inner { min-height: 270px; display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.final-cta .kicker { color: rgba(255,255,255,.68); }
.final-cta h2 { margin-top: 12px; max-width: 760px; font-size: clamp(2rem, 4vw, 3.5rem); }

footer {
  min-height: 120px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  color: #6e6873; font-size: .78rem;
}
footer p { margin: 0; text-align: center; }
footer p a, footer > div:last-child a { color: #958d9b; }
footer > div:last-child { justify-self: end; display: flex; gap: 18px; }
.footer-brand { color: #d8d0de; font-size: .92rem; }
.footer-brand img { width: 24px; height: 24px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 55px; padding-top: 70px; }
  .hero-copy { max-width: 760px; }
  .app-preview { max-width: 700px; width: 100%; transform: none; }
  .proof { grid-template-columns: repeat(2,1fr); }
  .proof div:nth-child(2) { border-right: 0; }
  .proof div:nth-child(-n+2) { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 20px; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .feature-wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .open-source { align-items: flex-start; flex-direction: column; }
  footer { grid-template-columns: 1fr; padding: 35px 0; text-align: center; }
  footer p, footer > div:last-child, .footer-brand { justify-self: center; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 26px, 1180px); }
  .topbar { height: 66px; }
  .topbar nav a:not(.nav-github) { display: none; }
  .nav-github { padding: 8px 11px; }
  .hero { min-height: auto; padding: 64px 0 62px; }
  .hero h1 { font-size: clamp(2.65rem, 12vw, 4.2rem); }
  .hero-text { font-size: 1rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-meta { gap: 9px 14px; }
  .hero-meta span + span::before { margin-right: 14px; }
  .app-body { grid-template-columns: 1fr; }
  .profiles { display: none; }
  .workspace { padding: 17px; }
  .stats { gap: 5px; }
  .terminal { font-size: .58rem; min-height: 150px; }
  .proof { grid-template-columns: 1fr 1fr; margin-bottom: 75px; }
  .proof div { padding: 0 12px; }
  .proof div:first-child { padding-left: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature, .feature-wide { grid-column: auto; min-height: unset; }
  .feature-wide { display: block; }
  .mini-stack { margin-top: 22px; }
  .section { padding: 55px 0 75px; }
  .steps-section { width: calc(100% - 26px); padding: 34px 22px; }
  .steps { grid-template-columns: 1fr; }
  .position-card { padding: 34px 24px; }
  .final-cta-inner { min-height: 350px; align-items: flex-start; justify-content: center; flex-direction: column; }
  .final-cta .btn { width: auto; }
}
