@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Onest:wght@600;700&display=swap");

:root {
  --bg: #0e0f12;
  --bg-2: #16171c;
  --paper: #f3f0e8;
  --ink: #161410;
  --fg: #f3f1ec;
  --muted: #9c9890;
  --faint: #6f6c66;
  --line: rgba(243, 241, 236, 0.1);
  --line-d: rgba(22, 20, 16, 0.1);
  --accent: #4c78f5;
  --accent-2: #7a9bff;
  --radius: 20px;
  --font: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "Onest", "Manrope", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.wrap { width: min(1100px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 15, 18, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; position: relative; }
.brand { display: flex; gap: 10px; align-items: center; font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 20px; align-items: center; font-size: 14px; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  height: 40px; padding: 0 16px; border-radius: 999px;
  display: inline-flex; align-items: center; font-weight: 600;
}
.menu-btn { display: none; background: none; border: 0; color: var(--fg); padding: 8px; }

.hero { padding: 64px 0 20px; }
.kicker {
  display: inline-block;
  color: var(--accent-2); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 16px;
}
h1, .section h2, .case h3, .auth h1, .page h1, .ind b, .price {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.12; margin: 0; max-width: 16ch;
}
.rotator { color: var(--accent-2); display: inline-block; min-width: 11ch; }
.lede { max-width: 38rem; color: var(--muted); font-size: 18px; margin: 16px 0 0; line-height: 1.55; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 20px; border-radius: 999px; border: 0;
  font-size: 15px; font-weight: 600;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #6388ff; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: rgba(255,255,255,.28); }
.btn-dark { background: var(--ink); color: var(--paper); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 32px; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 14px; }
.stat b { display: block; font-family: var(--display); font-size: 20px; }
.stat span { color: var(--muted); font-size: 13px; }

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 12px 0; margin: 12px 0 28px; }
.marquee-track {
  display: flex; gap: 32px; width: max-content; animation: slide 32s linear infinite;
  color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
@keyframes slide { to { transform: translateX(-50%); } }

.stage { margin: 0 0 72px; }
.seg {
  display: flex; gap: 4px; width: max-content; max-width: 100%;
  padding: 4px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 999px; margin: 0 0 14px;
}
.seg button {
  border: 0; background: transparent; color: var(--muted);
  height: 38px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.seg button.on { background: var(--accent); color: #fff; }

.stage-shell {
  background: #1a1b21;
  border: 1px solid var(--line);
  border-radius: 24px; padding: 10px;
}
.stage-grid { display: grid; grid-template-columns: 1fr; }
.panel { display: none; background: #101116; border-radius: 16px; overflow: hidden; min-height: 460px; }
.panel.on { display: block; }
.panel-bar {
  height: 44px; display: flex; align-items: center; gap: 8px;
  padding: 0 14px; color: var(--faint); font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 5px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #2c2d34; display: block; }
.files-body { display: grid; grid-template-columns: 168px 1fr; min-height: 416px; }
.side { padding: 10px 8px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.side button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  color: var(--muted); padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600;
}
.side button.is-on { color: var(--fg); background: #1c2233; }
.grid-files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; align-content: start; }
.tile {
  aspect-ratio: 1; border-radius: 14px; position: relative; overflow: hidden;
  width: 100%; border: 0; padding: 0; font: inherit; color: #fff; text-align: left; cursor: pointer;
  transition: transform 160ms ease;
}
.tile:hover { transform: translateY(-3px); }
.tile:active { transform: scale(0.96); }
.tile span { position: absolute; left: 10px; right: 8px; bottom: 10px; font-size: 12px; font-weight: 600; text-shadow: 0 1px 8px #0009; }
.p1 { background: linear-gradient(160deg, #6aa4e8, #234e8a); }
.p2 { background: linear-gradient(160deg, #d9a066, #6b3f1d); }
.p3 { background: linear-gradient(160deg, #4a4c56, #1a1b20); }
.p4 { background: linear-gradient(160deg, #5aa880, #1f5a3e); }
.p5 { background: linear-gradient(160deg, #9b7bb8, #3a2658); }
.p6 { background: linear-gradient(160deg, #e0b84c, #7a5a10); }

.board {
  position: relative; height: 460px; overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(79, 125, 255, .16), transparent 28%),
    #0c0d12;
}
.note {
  position: absolute; width: 138px; min-height: 108px; padding: 12px;
  border-radius: 6px; color: #14130f; font-size: 13px; font-weight: 600;
  box-shadow: 0 10px 22px rgba(0,0,0,.28);
  cursor: grab; user-select: none; touch-action: none;
}
.note:active, .note.dragging { cursor: grabbing; z-index: 5; transform: none; }
.n1 { background: #ffe56d; left: 8%; top: 14%; }
.n2 { background: #ffd1dc; left: 40%; top: 18%; }
.n3 { background: #c8f0ff; left: 62%; top: 42%; }
.n4 { background: #d8f5c8; left: 22%; top: 56%; width: 160px; }
.cursor { position: absolute; left: 54%; top: 30%; color: #ff5a7a; pointer-events: none; }
.cursor b {
  display: block; margin-left: 12px; font-size: 11px; font-weight: 600;
  background: #ff5a7a; color: #fff; padding: 2px 6px; border-radius: 6px; width: max-content;
}
.cursor.mouse { color: #4c78f5; }
.cursor.mouse b { background: #4c78f5; }
.board-tools { position: absolute; left: 12px; bottom: 12px; z-index: 4; display: flex; gap: 8px; }
.board-tools button {
  height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #16171c; color: var(--fg); font-size: 12px; font-weight: 600;
}

.light { background: var(--paper); color: var(--ink); }
.section { padding: 80px 0; }
.section h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; margin: 0 0 10px; }
.sub { color: var(--muted); max-width: 40rem; font-size: 17px; margin: 0; }
.light .sub { color: #5b574e; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.light .card { background: #fff; border-color: var(--line-d); }
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.02em; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.light .card p { color: #5b574e; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips button {
  border: 1px solid var(--line); background: var(--bg-2); color: var(--fg);
  height: 40px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.chips button.on { background: var(--paper); color: var(--ink); border-color: transparent; }
.case { margin-top: 22px; display: none; }
.case.on { display: block; }
.case h3 { font-size: 24px; margin: 0 0 10px; }
.case p { color: var(--muted); font-size: 16px; max-width: 42rem; margin: 0; }
.case ul { margin: 12px 0 0; padding: 0; list-style: none; }
.case li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.case li b { color: var(--fg); }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 28px; }
.step {
  background: #fff; border: 1px solid var(--line-d); border-radius: 16px; padding: 16px;
  cursor: pointer; transition: border-color 160ms ease, transform 160ms ease; text-align: left;
}
.step:hover, .step.on { border-color: var(--accent); transform: translateY(-2px); }
.step em { color: var(--accent); font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.step b { display: block; margin: 8px 0 6px; font-size: 15px; }
.step p { margin: 0; color: #5b574e; font-size: 13px; }
.step-detail {
  margin-top: 14px; background: #fff; border: 1px solid var(--line-d);
  border-radius: 16px; padding: 18px 20px; color: #5b574e; min-height: 72px; font-size: 15px;
}

.compare-wrap { overflow-x: auto; margin-top: 20px; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { color: var(--muted); font-weight: 600; }
.compare td.ok { color: #9be7a8; }
.compare td.no { color: var(--faint); }

.faq { margin-top: 12px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); margin: 8px 0 0; max-width: 42rem; font-size: 15px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.plan { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.plan.hot { background: var(--paper); color: var(--ink); border: 0; }
.price { font-size: 36px; margin: 8px 0 4px; letter-spacing: -0.04em; }
.price small { font-size: 14px; color: var(--muted); font-family: var(--font); font-weight: 500; }
.plan.hot .price small { color: #5b574e; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 18px; color: var(--muted); font-size: 14px; }
.plan.hot ul { color: #5b574e; }
.plan li { padding: 5px 0; }
.calc { display: flex; gap: 10px; align-items: center; margin: 12px 0 8px; }
.calc button {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-d);
  background: #fff; color: var(--ink); font-size: 18px;
}
#seats { min-width: 1.5ch; text-align: center; font-weight: 700; }

.page { padding: 56px 0 88px; }
.page h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.15; max-width: 16ch; }
.prose { max-width: 40rem; }
.prose p { color: var(--muted); font-size: 17px; }
.auth {
  width: min(400px, calc(100% - 32px)); margin: 64px auto; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 20px; padding: 32px 24px; text-align: center;
}
.auth h1 { font-size: 26px; }
.field { margin: 10px 0; }
.field input {
  width: 100%; height: 48px; border-radius: 12px; border: 1px solid #2c2d34;
  background: #101116; color: var(--fg); padding: 0 14px; font-size: 16px;
}
.notice { color: var(--muted); font-size: 13px; margin-top: 14px; }

.drawer {
  position: fixed; inset: 0; z-index: 80; display: none; place-items: center;
  background: rgba(8,9,12,.74); padding: 16px;
}
.drawer.on { display: grid; }
.drawer .sheet {
  width: min(480px, 100%); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 20px; padding: 24px;
}
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.meta div { background: #101116; border-radius: 12px; padding: 12px; font-size: 12px; color: var(--muted); }
.meta b { display: block; color: var(--fg); font-size: 14px; font-weight: 600; margin-top: 4px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--faint); font-size: 13px; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-2, .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; left: -16px; right: -16px; top: 64px;
    background: #0e0f12; flex-direction: column; align-items: flex-start;
    padding: 12px 20px 20px; border-bottom: 1px solid var(--line); gap: 12px;
  }
  .nav-links.open { display: flex; }
  .files-body { grid-template-columns: 1fr; }
  .side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .side button { width: auto; }
  .grid-files { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .section { padding: 56px 0; }
  h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .btn:active { transform: none; }
}
