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

:root {
  --bg: #09090b;
  --bg2: #0e0f12;
  --card: #131417;
  --card2: #1a1b1f;
  --border: rgba(255,255,255,.08);
  --border2: rgba(255,255,255,.13);
  --text: #f0f0f2;
  --text2: #a1a1aa;
  --muted: #71717a;
  --accent: #7b6cff;
  --accent2: #9b8fff;
  --success: #10b981;
  --danger: #ef4444;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.siteNav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(9,9,11,.86);
  backdrop-filter: blur(16px);
}
.navInner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: -.02em;
}
.logoMark {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(123,108,255,.4));
}
.navLinks { display: flex; gap: 4px; }
.navLinks a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text2);
  font-size: 14px;
  font-weight: 600;
}
.navLinks a:hover { color: var(--text); background: rgba(255,255,255,.045); }
.navActions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}
.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 38px rgba(123,108,255,.28);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 72px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -220px auto auto 50%;
  width: 900px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(123,108,255,.16), transparent 68%);
  pointer-events: none;
}
.badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(123,108,255,.22);
  border-radius: 999px;
  background: rgba(123,108,255,.12);
  color: var(--accent2);
  font-size: 12px;
  font-weight: 750;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
.hero h1 {
  position: relative;
  margin: 20px auto 18px;
  max-width: 820px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.gradientText {
  background: linear-gradient(135deg, #fff, var(--accent2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  position: relative;
  max-width: 680px;
  margin: 0 auto 32px;
  color: var(--text2);
  font-size: 18px;
  line-height: 1.65;
}
.heroActions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

section { padding: 72px 0; }
.sectionHeader { text-align: center; margin-bottom: 34px; }
.sectionHeader h2 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.035em; }
.sectionHeader p { margin: 0 auto; max-width: 580px; color: var(--text2); line-height: 1.6; }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature {
  min-height: 210px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 22px;
}
.featureIcon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(123,108,255,.12);
  color: var(--accent2);
  font-weight: 900;
}
.feature h3 { margin: 16px 0 8px; font-size: 17px; }
.feature p { margin: 0; color: var(--text2); line-height: 1.55; font-size: 14px; }

/* ============================================================
   1:1 desktop app preview — mirrors the real Electron app
   (tokens copied from src/styles.css)
   ============================================================ */
.appPreview {
  --bg: #0e0f10;
  --sidebar: #070708;
  --card: #191a1b;
  --border: #2a2b2c;
  --muted: #7c7e81;
  --text: #e8e9ea;
  --text2: #a3a4a6;
  --accent: #7b6cff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  border: 1px solid #1c1d1f;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0b0c;
  box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 130px rgba(123,108,255,.07);
  font-size: 14px;
}
.appTitlebar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: #050506;
  border-bottom: 1px solid #161718;
}
.appDot { width: 11px; height: 11px; border-radius: 50%; background: #303134; }
.appTitlebar .appTitle { margin-left: 6px; color: #8a8c90; font-size: 12px; font-weight: 600; }

.appWindow {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  height: 660px;
  background: var(--bg);
}

/* Sidebar */
.appSidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px 0 0;
  background: var(--sidebar);
  border-right: 1px solid #111;
}
.appBrand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 14px;
}
.appBrandMark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), #a89fff);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(123,108,255,.25);
}
.appBrand strong { display: block; font-size: 14px; font-weight: 800; color: var(--text); letter-spacing: .2px; }
.appBrand small { display: block; margin-top: 1px; font-size: 11px; color: var(--muted); }

.appNav { flex: 1; overflow: auto; padding: 0 8px; }
.appNav::-webkit-scrollbar { width: 6px; }
.appNav::-webkit-scrollbar-thumb { background: rgba(123,108,255,.52); border-radius: 999px; }
.appNavGroup { margin-top: 10px; }
.appNavHeading {
  padding: 0 8px 6px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
}
.appNavItem {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text2);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.appNavItem svg { width: 16px; height: 16px; flex: 0 0 auto; }
.appNavItem:hover { background: rgba(255,255,255,.06); color: var(--text); }
.appNavItem.active { background: rgba(123,108,255,.12); color: var(--text); font-weight: 600; }
.appNavItem.active svg { color: var(--accent); }

.appStatusbar {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}
.appUserTag { display: inline-flex; align-items: center; gap: 7px; color: var(--text2); }
.appUserAvatar {
  width: 20px; height: 20px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #a89fff);
  color: #fff; font-size: 10px; font-weight: 800;
}
.appStatusPills { display: flex; gap: 8px; }
.appStatusPills .ok { color: var(--success); }
.appStatusPills .bad { color: var(--warning); }

/* Content area */
.appContent {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(123,108,255,.08), transparent 34%), var(--bg);
}
.appPage {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px;
  gap: 14px;
  min-height: 0;
  overflow: hidden;
  animation: appFade .18s ease;
}
.appPage[hidden] { display: none; }
@keyframes appFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.appPageHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.appPageHeader h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; color: var(--text); }
.appPageHeader p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.appHeaderActions { display: flex; gap: 8px; }

.appBtn {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #30312e;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.appBtn:hover { background: #3a3b36; }
.appBtn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 10px 30px rgba(123,108,255,.25); }
.appBtn.primary:hover { background: #8a7cff; }
.appBtn.danger { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.38); color: #ff6b6b; }

/* Profiles layout: wide list + narrow editor (matches app) */
.appProfileLayout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 14px;
}
.appProfileList {
  overflow: auto;
  padding-right: 4px;
}
.appProfileList::-webkit-scrollbar,
.appProfileEditor::-webkit-scrollbar { width: 6px; }
.appProfileList::-webkit-scrollbar-thumb,
.appProfileEditor::-webkit-scrollbar-thumb { background: rgba(123,108,255,.52); border-radius: 999px; }

.appProfileCard {
  position: relative;
  margin-bottom: 12px;
  padding: 16px 42px 16px 16px;
  border-radius: 10px;
  background: #0f1011;
  border: 1px solid rgba(255,255,255,.09);
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.appProfileCard:hover { border-color: rgba(123,108,255,.5); }
.appProfileCard.selected {
  background: #101112;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(123,108,255,.3);
}
.appProfileBody { min-width: 0; display: grid; align-content: center; gap: 12px; }
.appProfileTop { display: flex; align-items: center; gap: 10px; }
.appProfileTop strong { flex: 0 1 auto; font-size: 18px; font-weight: 800; color: #fbfbfc; }
.appHealth {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.appHealth::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--muted); }
.appHealth.healthy { color: var(--success); border-color: rgba(16,185,129,.25); }
.appHealth.healthy::before { background: var(--success); }
.appHealth.warning { color: var(--warning); border-color: rgba(245,158,11,.25); }
.appHealth.warning::before { background: var(--warning); }
.appProfileNote { color: var(--text2); font-size: 12px; line-height: 1.35; }

.appMetaGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(96px, 1fr));
  gap: 10px 16px;
}
.appMeta {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}
.appMeta svg { width: 15px; height: 15px; color: #82858c; }
.appMeta em, .appMeta strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
  line-height: 1.1;
}
.appMeta em { color: #a6a8af; font-size: 11px; }
.appMeta strong { margin-top: 2px; color: #fff; font-size: 11px; font-weight: 700; }
.appCardMenu { position: absolute; top: 14px; right: 16px; color: #7f8289; letter-spacing: 1px; font-weight: 800; font-size: 13px; }

/* Editor panel */
.appProfileEditor {
  overflow: auto;
  border-radius: 12px;
  background: #090a0b;
  border: 1px solid #1c1d1f;
}
.appEditorHeader {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid #202124;
}
.appEditorIcon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: #161719;
  color: #8d82ff;
}
.appEditorIcon svg { width: 16px; height: 16px; }
.appEditorHeader h2 { margin: 0; font-size: 16px; line-height: 1.1; color: var(--text); }
.appEditorHeader p { margin: 4px 0 0; color: #85888f; font-size: 12px; }
.appEditorSection { padding: 15px 16px 16px; border-bottom: 1px solid #202124; }
.appEditorSection:last-child { border-bottom: 0; }
.appEditorSection h3 {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 12px;
  color: #fff; font-size: 13px; font-weight: 700;
}
.appEditorSection h3 svg { width: 15px; height: 15px; color: var(--accent); }
.appEditorSection label {
  display: block;
  margin: 0 0 11px;
  color: #777b83;
  font-size: 11px;
  font-weight: 700;
}
.appEditorSection label:last-child { margin-bottom: 0; }
.appEditorSection input {
  width: 100%;
  min-height: 34px;
  margin-top: 6px;
  padding: 0 10px;
  border-radius: 7px;
  background: #121314;
  border: 1px solid #2a2b2e;
  color: #f5f5f6;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}
.appEditorSection input.appMono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .02em; }
.appEditorTwoCol { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Bottom action bar */
.appBottomBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--sidebar);
  border: 1px solid var(--border);
  color: #85888f;
  font-size: 13px;
}
.appBottomBar strong { color: #fff; }
.appBottomBar div { display: flex; gap: 8px; }

/* Generic file lists + empty states for the other pages */
.appFileList { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.appFileRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(25,26,27,.6);
}
.appFileRow strong { display: block; font-size: 14px; color: var(--text); }
.appFileRow small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.appEmpty {
  flex: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 14px;
  color: var(--text2);
}
.appEmptyIcon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgba(123,108,255,.10);
  color: var(--accent);
}
.appEmptyIcon svg { width: 30px; height: 30px; }
.appEmpty p { max-width: 380px; margin: 0; line-height: 1.6; font-size: 14px; }

@media (max-width: 980px) {
  .appWindow { grid-template-columns: 168px minmax(0, 1fr); height: 600px; }
  .appProfileLayout { grid-template-columns: 1fr; }
  .appProfileEditor { display: none; }
  .appMetaGrid { grid-template-columns: repeat(3, minmax(90px, 1fr)); }
}
@media (max-width: 680px) {
  .appSidebar { display: none; }
  .appWindow { grid-template-columns: 1fr; }
  .appMetaGrid { grid-template-columns: repeat(2, minmax(90px, 1fr)); }
}

.purchaseBtn {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  cursor: pointer;
}

.pricingHero { padding-bottom: 36px; }
.pricingWrap { display: flex; justify-content: center; padding-top: 12px; }
.pricingCard {
  width: min(460px, 100%);
  border: 1px solid var(--border2);
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
}
.pricingTop { padding: 34px; text-align: center; border-bottom: 1px solid var(--border); }
.price { display: flex; justify-content: center; align-items: baseline; gap: 4px; margin: 16px 0 8px; }
.price strong { font-size: 62px; letter-spacing: -.04em; }
.pricingBody { padding: 28px 34px 34px; }
.checkList { display: grid; gap: 12px; margin-bottom: 26px; }
.check { display: flex; gap: 10px; color: var(--text2); font-size: 14px; }
.check::before { content: "✓"; color: var(--success); font-weight: 900; }
.compare {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
}
.compareCol { padding: 26px; }
.compareCol + .compareCol { border-left: 1px solid var(--border); background: rgba(123,108,255,.035); }
.compareRow { padding: 8px 0; color: var(--text2); font-size: 14px; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.faqCard { border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 20px; }
.faqCard strong { display: block; margin-bottom: 8px; }
.faqCard p { color: var(--text2); margin: 0; line-height: 1.55; }

.cta {
  text-align: center;
  padding: 72px 0 92px;
}
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 13px;
}
.footerInner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

.downloadPage {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 16%, rgba(123,108,255,.18), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(16,185,129,.10), transparent 28%),
    var(--bg);
}
.downloadShell { min-height: calc(100vh - 64px); }
.downloadHero { padding: 92px 0 78px; }
.downloadGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 52px;
  align-items: center;
}
.downloadCopy h1 {
  margin: 18px 0;
  max-width: 680px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.downloadCopy p {
  max-width: 610px;
  color: var(--text2);
  font-size: 18px;
  line-height: 1.65;
}
.downloadChecks {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  color: var(--text2);
  font-size: 14px;
}
.downloadChecks span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.downloadChecks span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16,185,129,.12);
}
.downloadChecks strong { color: var(--text); }
.downloadCard {
  border: 1px solid var(--border2);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: 0 24px 80px rgba(0,0,0,.36), 0 0 0 1px rgba(123,108,255,.05);
  padding: 28px;
}
.downloadCardHead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.downloadIcon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}
.downloadCardHead strong { display: block; font-size: 17px; }
.downloadCardHead small { display: block; margin-top: 3px; color: var(--muted); }
.downloadCard label {
  display: block;
  margin-bottom: 8px;
  color: var(--text2);
  font-size: 13px;
  font-weight: 700;
}
.downloadCard input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border2);
  border-radius: 10px;
  background: rgba(9,9,11,.78);
  color: var(--text);
  font: 700 14px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  outline: 0;
  padding: 0 14px;
}
.downloadCard input:focus {
  border-color: rgba(123,108,255,.78);
  box-shadow: 0 0 0 4px rgba(123,108,255,.16);
}
.downloadSubmit {
  width: 100%;
  margin-top: 14px;
}
.downloadError {
  margin-top: 12px;
  border: 1px solid rgba(239,68,68,.24);
  border-radius: 10px;
  background: rgba(239,68,68,.12);
  color: #fecaca;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
}
.downloadFinePrint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 900px) {
  .navLinks { display: none; }
  .features, .faq, .compare, .downloadGrid { grid-template-columns: 1fr; }
  .compareCol + .compareCol { border-left: 0; border-top: 1px solid var(--border); }
  .previewApp { grid-template-columns: 1fr; }
  .previewSide, .previewEditor { display: none; }
  .downloadHero { padding-top: 58px; }
  .downloadCard { padding: 22px; }
}
