:root {
  color-scheme: dark;
  --bg: #070511;
  --panel: rgba(22, 15, 46, .82);
  --panel-strong: rgba(31, 22, 62, .96);
  --line: rgba(166, 139, 255, .18);
  --line-strong: rgba(166, 139, 255, .36);
  --text: #f5f0ff;
  --muted: #b1a5cc;
  --soft: #7e719f;
  --violet: #5d2cff;
  --violet-2: #b33cff;
  --gold: #f4ba4b;
  --green: #35e2a2;
  --danger: #ff6b8a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 8%, rgba(93,44,255,.26), transparent 34rem),
    radial-gradient(circle at 78% 22%, rgba(179,60,255,.18), transparent 30rem),
    linear-gradient(180deg, #0b061a 0%, #070511 42%, #090615 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), rgba(0,0,0,.12) 65%, transparent);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(7, 5, 17, .72);
  backdrop-filter: blur(18px);
}

.nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav.minimal { justify-content: space-between; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 58px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(93,44,255,.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a { padding: 10px 12px; border-radius: 10px; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255,255,255,.055);
  font-weight: 700;
}
.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--violet), #7b3cff 48%, #4b18db);
  box-shadow: 0 18px 44px rgba(93,44,255,.34);
}
.btn.disabled {
  cursor: not-allowed;
  color: rgba(245,240,255,.58);
  background: rgba(255,255,255,.06);
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  padding: 74px 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(440px, 1.08fr);
  gap: 54px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(52px, 7vw, 98px);
  line-height: .94;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 620px;
  margin: 0;
  color: #e7ddff;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
  font-weight: 800;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 14px;
  margin-top: 42px;
}
.metric {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}
.metric strong { display: block; font-size: 30px; }
.metric span { display: block; margin-top: 6px; color: var(--muted); }

.product-board {
  position: relative;
  min-height: 560px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(43,31,85,.96), rgba(13,9,30,.96)),
    radial-gradient(circle at 72% 18%, rgba(93,44,255,.44), transparent 20rem);
  box-shadow: 0 34px 100px rgba(0,0,0,.42);
  overflow: hidden;
}

.board-top {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  white-space: nowrap;
}
.window-dots { display: flex; gap: 8px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.window-dots i:first-child { background: #ff6a7a; }
.window-dots i:last-child { background: #35e2a2; }

.board-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding-top: 18px;
}
.sidebar-card, .workspace-card, .clip-card, .plan-card {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(9,6,24,.68);
  border-radius: 16px;
}
.sidebar-card { min-height: 452px; padding: 16px; }
.side-title { color: var(--soft); font-size: 12px; margin-bottom: 12px; }
.side-item {
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  margin-bottom: 8px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
}
.side-item.on { color: var(--text); background: rgba(93,44,255,.32); }

.workspace-card { padding: 18px; min-height: 452px; }
.workspace-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.workspace-head h3 { margin: 0; font-size: 21px; }
.workspace-meta { color: var(--muted); margin-top: 6px; font-size: 13px; }
.status {
  padding: 8px 12px;
  border: 1px solid rgba(53,226,162,.34);
  border-radius: 999px;
  color: #64f0bd;
  background: rgba(53,226,162,.08);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.stat { padding: 13px; border-radius: 14px; background: rgba(255,255,255,.055); color: var(--muted); font-size: 12px; }
.stat b { display: block; color: var(--text); font-size: 24px; margin-bottom: 4px; }

.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.clip-card { overflow: hidden; min-height: 174px; }
.thumb {
  height: 82px;
  background:
    radial-gradient(circle at 25% 38%, rgba(255,255,255,.92), transparent 12px),
    linear-gradient(135deg, rgba(93,44,255,.82), rgba(42,112,238,.85) 54%, rgba(53,226,162,.68));
}
.clip-card:nth-child(2) .thumb { background: linear-gradient(135deg, rgba(179,60,255,.82), rgba(230,74,130,.82), rgba(244,186,75,.72)); }
.clip-card:nth-child(3) .thumb { background: linear-gradient(135deg, rgba(33,161,127,.78), rgba(63,129,248,.88), rgba(93,44,255,.82)); }
.clip-body { padding: 12px; }
.clip-body b { display: block; margin-bottom: 8px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { display: inline-flex; padding: 4px 8px; margin: 4px 4px 0 0; border-radius: 999px; color: #f08cff; background: rgba(179,60,255,.13); border: 1px solid rgba(179,60,255,.35); font-size: 12px; }

.floating-plan {
  position: absolute;
  right: 28px;
  bottom: 32px;
  width: min(360px, calc(100% - 56px));
  padding: 16px;
  border: 1px solid rgba(244,186,75,.32);
  border-radius: 18px;
  background: rgba(11,8,26,.9);
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  font-size: 13px;
}
.floating-plan strong { font-size: 15px; }
.floating-meta { color: var(--muted); margin-top: 7px; }
.timeline { display: grid; grid-template-columns: 1.1fr .7fr 1.3fr .8fr; gap: 5px; margin-top: 12px; }
.timeline i { height: 28px; border-radius: 8px; background: linear-gradient(90deg, #5d2cff, #b33cff); }
.timeline i:nth-child(2) { background: #367de8; }
.timeline i:nth-child(3) { background: #35b981; }
.timeline i:nth-child(4) { background: #f4ba4b; }

.section { padding: 84px 0 46px; }
.section-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 28px; }
.section-head.compact { align-items: start; }
.section h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); letter-spacing: 0; }
.section-head p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.8; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.045);
}
.feature .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(93,44,255,.22);
  color: #d9c9ff;
  font-weight: 900;
}
.feature h3 { margin: 22px 0 10px; font-size: 22px; }
.feature p { margin: 0; color: var(--muted); line-height: 1.75; }

.cta {
  margin: 74px auto 92px;
  padding: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(93,44,255,.24), rgba(9,6,24,.86));
}
.cta-centered {
  justify-content: center;
  text-align: center;
}
.cta-main {
  min-height: 56px;
  padding: 0 30px;
  font-size: 18px;
}
.cta h2 { margin: 0 0 8px; font-size: 34px; }
.cta p { margin: 0; color: var(--muted); }

.footer { padding: 30px 0 42px; color: var(--soft); border-top: 1px solid rgba(255,255,255,.08); text-align: center; }
.footer .shell { display: block; }

.download-hero { padding: 92px 0; }
.download-hero h1 { margin: 0 0 16px; font-size: clamp(46px, 7vw, 82px); line-height: 1; letter-spacing: 0; }
.download-lead { max-width: 760px; color: var(--muted); font-size: 19px; line-height: 1.8; margin: 0; }
.download-lead span { display: block; }
.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }
.download-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  position: relative;
  transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
}
.download-card.recommended {
  border-color: rgba(244,186,75,.7);
  background:
    radial-gradient(circle at 88% 0%, rgba(244,186,75,.16), transparent 15rem),
    var(--panel-strong);
  box-shadow: 0 24px 72px rgba(93,44,255,.22);
}
.download-card.recommended .recommend-badge { opacity: 1; transform: none; }
.download-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.download-card h2 { margin: 0; font-size: 30px; }
.download-card p { margin: 0 0 28px; color: var(--muted); line-height: 1.8; }
.recommend-badge {
  opacity: 0;
  transform: translateY(-2px);
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(244,186,75,.36);
  background: rgba(244,186,75,.1);
  color: #ffd77a;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: opacity .18s, transform .18s;
}
@media (max-width: 980px) {
  .hero-grid, .download-grid { grid-template-columns: 1fr; }
  .product-board { min-height: 520px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1180px); }
  .nav-links { display: none; }
  .hero { padding-top: 46px; }
  .hero p { font-size: 17px; }
  .metric-row, .feature-grid, .stats, .clips, .board-layout { grid-template-columns: 1fr; }
  .sidebar-card { display: none; }
  .product-board { padding: 14px; }
  .section-head, .cta { display: block; }
  .cta .btn { margin-top: 22px; }
}
