/* ============================================================
   Work Studio — marketing site styles  v2 (premium)
   Domain: work-studio.mydeskbot.com
   Hosted on: Cloudflare Pages (static, no build step)
   ============================================================ */

:root {
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --panel: #111c33;
  --panel-2: #16233f;
  --border: #233252;
  --border-soft: #1b2946;
  --text: #e6edf7;
  --text-bright: #ffffff;
  --text-dim: #93a3bd;
  --text-faint: #5f7190;
  --accent: #6366f1;
  --accent-strong: #4f46e5;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --accent-glow: rgba(99, 102, 241, 0.28);
  --sky: #38bdf8;
  --danger: #f87171;
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1120px;
  --mono: 'SF Mono', 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header / Nav ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text-bright);
  letter-spacing: -0.2px;
}
.brand:hover {
  text-decoration: none;
}

.brand .logo {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.35),
    0 2px 10px rgba(0, 0, 0, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
}
.nav-links a {
  color: var(--text-dim);
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #047857);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.42);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--panel-2);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 16.5px;
  border-radius: 12px;
}

/* ---------------- Hero ---------------- */

.hero {
  padding: 96px 0 84px;
  text-align: center;
  background:
    radial-gradient(1100px 520px at 50% -140px, rgba(99, 102, 241, 0.16), transparent 68%),
    radial-gradient(900px 420px at 85% 120%, rgba(56, 189, 248, 0.06), transparent 70%), var(--bg);
  overflow: hidden;
}

/* 双列 hero（首页） */
.hero--split {
  text-align: left;
  padding-bottom: 110px;
}
.hero--split .container {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
  max-width: 1160px;
}

.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 15px;
  margin-bottom: 22px;
}
.kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(99, 102, 241, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
}

.hero h1 {
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.08;
  letter-spacing: -1.6px;
  font-weight: 800;
  max-width: 640px;
  margin: 0 0 22px;
  color: var(--text-bright);
}
.hero--center h1 {
  margin: 0 auto 22px;
}

.hero h1 .hl {
  background: linear-gradient(90deg, var(--accent), #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 0 32px;
}
.hero--center p.lead {
  margin: 0 auto 32px;
}

.hero .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero--center .cta-row {
  justify-content: center;
}

.hero .note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-faint);
}
.hero--center .note {
  text-align: center;
}

/* 信任点列表（hero 下） */
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-points svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------------- App window mock（首页右侧） ---------------- */

.app-window {
  background: #0d1526;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(99, 102, 241, 0.12),
    0 18px 60px rgba(99, 102, 241, 0.1);
  overflow: hidden;
  position: relative;
  text-align: left;
}
.app-window::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.7), transparent);
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(22, 35, 63, 0.35);
}
.win-bar .d {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #33415e;
}
.win-bar .d:nth-child(1) {
  background: #f87171;
}
.win-bar .d:nth-child(2) {
  background: #fbbf24;
}
.win-bar .d:nth-child(3) {
  background: #818cf8;
}
.win-bar .win-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--mono);
}

.term-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px 0;
  border-bottom: 1px solid var(--border-soft);
  background: #0b1220;
}
.term-tab {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  padding: 6px 14px 7px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: transparent;
}
.term-tab.active {
  color: var(--text);
  background: #0d1526;
  border-color: var(--border-soft);
  position: relative;
}
.term-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: #0d1526;
}
.term-tab .dot2 {
  color: var(--accent);
}

.term-body {
  padding: 16px;
  font-family: var(--mono);
  font-size: 12.4px;
  line-height: 1.75;
  color: #9fb2cd;
  min-height: 190px;
}
.term-body .prompt {
  color: var(--accent);
  font-weight: 600;
}
.term-body .cmd {
  color: #e6edf7;
}
.term-body .ok {
  color: #818cf8;
}
.term-body .err {
  color: #f87171;
}
.term-body .dim {
  color: var(--text-faint);
}
.term-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.ai-panel {
  border-top: 1px solid var(--border);
  background: rgba(99, 102, 241, 0.05);
  padding: 14px 16px;
}
.ai-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ai-avatar {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #047857);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}
.ai-row p {
  font-size: 12.6px;
  color: var(--text-dim);
  line-height: 1.65;
}
.ai-row strong {
  color: var(--text);
  font-weight: 600;
}
.ai-cmd {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  background: #0b1220;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 4px 9px;
  color: #6ee7b7;
}

/* ---------------- Sections ---------------- */

.section {
  padding: 78px 0;
}
.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 54px;
}
.section-head h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  letter-spacing: -0.9px;
  font-weight: 800;
  color: var(--text-bright);
}
.section-head p {
  color: var(--text-dim);
  margin-top: 14px;
  font-size: 16.5px;
}

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.icon-box {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
  border: 1px solid rgba(99, 102, 241, 0.22);
}
.icon-box svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 9px;
  letter-spacing: -0.2px;
  color: var(--text-bright);
}
.card p {
  color: var(--text-dim);
  font-size: 14.6px;
}
.card .tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.2px;
}

/* ---------------- Steps (How it works) ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 34px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 8px;
}
.step .step-no {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}
.step .step-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.4), var(--border-soft));
  margin: 10px 0 18px;
}
.step h3 {
  font-size: 18px;
  color: var(--text-bright);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.step p {
  color: var(--text-dim);
  font-size: 14.6px;
  max-width: 320px;
}

/* ---------------- Check list（信任/隐私区） ---------------- */

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
.check-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px 22px;
}
.check-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}
.check-item strong {
  display: block;
  color: var(--text);
  font-size: 15.5px;
  margin-bottom: 3px;
}
.check-item p {
  color: var(--text-dim);
  font-size: 13.8px;
}

/* ---------------- FAQ ---------------- */

.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 24px;
  font-weight: 600;
  color: var(--text);
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .chev {
  color: var(--text-faint);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq details[open] summary .chev {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq details[open] summary {
  border-bottom: 1px solid var(--border-soft);
}
.faq details p {
  padding: 6px 24px 20px;
  color: var(--text-dim);
  font-size: 14.6px;
}

/* ---------------- Pricing ---------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  align-items: stretch;
  max-width: 860px;
  margin: 0 auto;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
}
.plan.featured {
  border-color: rgba(99, 102, 241, 0.65);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.3),
    0 22px 60px rgba(99, 102, 241, 0.14);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), var(--panel) 40%);
}
.plan .plan-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.plan.featured .plan-name {
  color: var(--accent);
}

.plan-popular {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, #4f46e5, #047857);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 5px 13px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.plan .price {
  font-size: 46px;
  font-weight: 800;
  margin: 16px 0 2px;
  letter-spacing: -1.5px;
  color: var(--text-bright);
}
.plan .price .cur {
  font-size: 24px;
  vertical-align: 12px;
  font-weight: 600;
  color: var(--text-dim);
}
.plan .billing {
  font-size: 13.5px;
  color: var(--text-faint);
  margin-bottom: 24px;
}

.plan ul {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}
.plan ul li {
  padding: 7.5px 0 7.5px 28px;
  position: relative;
  font-size: 14.6px;
  color: var(--text-dim);
}
.plan ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.plan .btn {
  text-align: center;
  width: 100%;
}

.pricing-foot {
  text-align: center;
  color: var(--text-faint);
  font-size: 13.5px;
  margin-top: 26px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ---------------- CTA band / download ---------------- */

.band {
  text-align: center;
  background:
    radial-gradient(900px 360px at 50% -40px, rgba(99, 102, 241, 0.16), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  padding: 88px 0;
}
.band h2 {
  font-size: clamp(28px, 3.8vw, 40px);
  letter-spacing: -0.9px;
  font-weight: 800;
  color: var(--text-bright);
}
.band p {
  color: var(--text-dim);
  margin: 14px auto 30px;
  max-width: 560px;
  font-size: 16px;
}
.band .os-tags {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 16px;
}
/* 下载按钮下方的版本/体积元信息 */
.band .dl-meta {
  font-size: 13px;
  color: var(--text-faint);
  margin: 4px auto 26px;
}
.band .dl-meta code {
  font-family: var(--mono);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--text-dim);
  margin: 0 3px;
}
.band .os-tags code {
  font-family: var(--mono);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--text-dim);
  margin: 0 3px;
  font-size: 12px;
}

/* 状态徽标（Coming soon / waitlist） */
.state-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.7);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 22px;
}
.state-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fbbf24;
}

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
  padding: 60px 0 72px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 46px;
}
.footer-brand .logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  margin-bottom: 14px;
}
.footer-brand p {
  color: var(--text-faint);
  font-size: 13.5px;
  max-width: 260px;
  margin-top: 10px;
}
.footer-col h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  padding: 5px 0;
}
.footer-col a:hover {
  color: var(--text);
  text-decoration: none;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid var(--border-soft);
  padding-top: 26px;
  color: var(--text-faint);
  font-size: 13px;
}
.footer-bottom .links {
  display: flex;
  gap: 22px;
}
.footer-bottom a {
  color: var(--text-faint);
}
.footer-bottom a:hover {
  color: var(--text);
}

/* ---------------- Legal pages ---------------- */

.legal {
  padding: 64px 0 96px;
  max-width: 800px;
}
.legal h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 6px;
  color: var(--text-bright);
}
.legal .updated {
  color: var(--text-faint);
  font-size: 13.5px;
  margin-bottom: 30px;
}
.legal h2 {
  font-size: 20px;
  margin: 32px 0 12px;
  font-weight: 700;
  color: var(--text);
}
.legal p,
.legal li {
  color: var(--text-dim);
  font-size: 15px;
}
.legal p {
  margin-bottom: 12px;
}
.legal ul,
.legal ol {
  padding-left: 22px;
  margin-bottom: 14px;
}
.legal li {
  margin: 5px 0;
}
.legal code,
.legal .field {
  font-family: var(--mono);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 13.5px;
  color: var(--text);
}

/* ---------------- Misc ---------------- */

.muted {
  color: var(--text-faint);
}
.mt-8 {
  margin-top: 8px;
}
.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 11px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  margin: 2px 2px;
}

@media (max-width: 960px) {
  .hero--split {
    text-align: center;
    padding-bottom: 80px;
  }
  .hero--split .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero--split h1,
  .hero--split p.lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero--split .cta-row,
  .hero--split .hero-points {
    justify-content: center;
  }
  .app-window {
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .nav-links {
    gap: 16px;
  }
  .hero {
    padding: 64px 0 56px;
  }
  .section {
    padding: 56px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .brand {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
