/* TaskMind marketing site — dark, minimal, premium */
:root {
  --bg: #0a0b10;
  --bg-2: #0e1017;
  --surface: #12141c;
  --surface-2: #171a24;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e9ebf2;
  --muted: #9aa3b5;
  --faint: #6b7385;
  --accent: #7c8cff;
  --accent-2: #22d3ee;
  --grad: linear-gradient(135deg, #7c8cff 0%, #22d3ee 100%);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.65; letter-spacing: 0.005em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.wrap.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #0a0b10; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 100; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px; font-weight: 500; font-size: 14px; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn.primary { background: #f3f4f8; color: #0a0b10; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 8px 30px -12px rgba(124,140,255,.5); }
.btn.primary:hover { transform: translateY(-1px); background: #fff; }
.btn.ghost { border-color: var(--border-strong); color: var(--text); background: rgba(255,255,255,.02); }
.btn.ghost:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.05); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); background: rgba(10, 11, 16, 0.72); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.mark { width: 28px; height: 28px; }
.wordmark { font-weight: 650; letter-spacing: -0.02em; font-size: 17px; }
.links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--border); background: transparent; border-radius: 10px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.menu-btn span { width: 16px; height: 1.5px; background: var(--text); display: block; transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 8px 24px 20px; border-bottom: 1px solid var(--border); background: rgba(10,11,16,.96); }
.mobile-menu a { padding: 12px 0; font-size: 16px; color: var(--muted); border-bottom: 1px solid var(--border); }
.mobile-menu a.btn { margin-top: 12px; color: #0a0b10; border-bottom: 0; }
.mobile-menu:not([hidden]) { display: flex; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow.a { width: 640px; height: 640px; left: -160px; top: -240px; background: radial-gradient(closest-side, rgba(124,140,255,.55), transparent 70%); }
.glow.b { width: 720px; height: 720px; right: -260px; top: 40px; background: radial-gradient(closest-side, rgba(34,211,238,.35), transparent 70%); }
.grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 12px 6px 10px; background: rgba(255,255,255,.03); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(34,211,238,.15); }
.hero h1 { margin-top: 22px; font-size: clamp(34px, 4.6vw, 60px); font-weight: 650; }
.hero h1 .line { display: block; white-space: nowrap; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 22px; font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; font-size: 13px; color: var(--faint); }
.hero-facts li { position: relative; padding-left: 14px; }
.hero-facts li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* Product mock */
.mock { position: relative; perspective: 1400px; }
.mock-window { position: relative; border: 1px solid var(--border-strong); border-radius: 14px; background: linear-gradient(180deg, #141722, #0f1118); box-shadow: 0 40px 100px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06); overflow: hidden; transform: rotateY(-6deg) rotateX(3deg); transform-origin: left center; }
.mock-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.12); }
.mock-bar em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--faint); font-family: var(--mono); }
.mock-body { display: grid; grid-template-columns: 112px 1fr; min-height: 380px; }
.mock-rail { border-right: 1px solid var(--border); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.rail-item { font-size: 12px; color: var(--faint); padding: 8px 10px; border-radius: 8px; }
.rail-item.active { background: rgba(124,140,255,.12); color: var(--text); }
.mock-main { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.chat-user { align-self: flex-end; max-width: 92%; background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 12px 12px 4px 12px; padding: 10px 14px; font-size: 13px; color: var(--text); }
.trace { display: flex; flex-direction: column; gap: 8px; }
.step { position: relative; display: grid; grid-template-columns: 18px 1fr; column-gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.02); font-size: 12.5px; }
.step i { width: 14px; height: 14px; border-radius: 50%; margin-top: 2px; border: 1.5px solid rgba(255,255,255,.25); }
.step.done i { background: var(--accent-2); border-color: transparent; box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.step.wait i { border-color: var(--accent); animation: pulse 1.6s infinite; }
.step b { font-weight: 600; color: var(--text); }
.step span { grid-column: 2; color: var(--faint); margin-top: 2px; }
.pill { display: inline-block; justify-self: start; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(124,140,255,.15); color: #b9c2ff; font-size: 11px; }
.approve { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; }
.approve-btn { background: #f3f4f8; color: #0a0b10; padding: 7px 12px; border-radius: 8px; font-weight: 600; }
.approve-alt { color: var(--muted); padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; }
.audit { margin-left: auto; color: var(--faint); font-family: var(--mono); font-size: 11px; }
.mock-shadow { position: absolute; inset: auto 10% -30px 10%; height: 60px; background: radial-gradient(ellipse, rgba(124,140,255,.35), transparent 70%); filter: blur(20px); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(124,140,255,.35);} 50% { box-shadow: 0 0 0 6px rgba(124,140,255,0);} }

/* Strip */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.strip-inner { padding: 36px 0; font-size: 17px; line-height: 1.8; color: var(--muted); max-width: 900px; }
.strip strong { color: var(--text); font-weight: 600; }

/* Sections */
.section { padding: 104px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.kicker { font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); }
.sub { margin-top: 16px; font-size: 16.5px; color: var(--muted); line-height: 1.75; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; padding: 26px 24px 28px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(124,140,255,.12); border: 1px solid rgba(124,140,255,.25); margin-bottom: 18px; }
.icon svg { width: 20px; height: 20px; fill: none; stroke: #b9c2ff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { padding: 28px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.num { display: inline-block; font-family: var(--mono); font-size: 13px; color: var(--accent-2); margin-bottom: 18px; }
.steps h3 { font-size: 20px; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* Tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 28px; }
.tab { background: transparent; border: 1px solid transparent; color: var(--muted); font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.tab:hover { color: var(--text); }
.tab.active { background: rgba(255,255,255,.06); border-color: var(--border-strong); color: var(--text); }
.panel { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.panel[hidden] { display: none; }
.panel h3 { font-size: 24px; line-height: 1.3; }
.panel ul { display: flex; flex-direction: column; gap: 14px; }
.panel li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.panel li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 4px; background: var(--grad); opacity: .9; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Security */
.two-col { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.sec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sec-list li { padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.sec-list b { font-size: 15px; font-weight: 600; }
.sec-list span { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* Deploy */
.deploy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dcard { position: relative; padding: 28px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); }
.dcard h3 { font-size: 19px; margin-bottom: 10px; }
.dcard p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.tag { position: absolute; top: 20px; right: 20px; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(34,211,238,.12); color: #8be9f7; border: 1px solid rgba(34,211,238,.3); }
.models { margin-top: 28px; font-size: 14px; color: var(--faint); font-family: var(--mono); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 0 20px; }
summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 500; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--faint); font-size: 20px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* CTA */
.cta { position: relative; padding: 112px 0; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 100%, rgba(124,140,255,.22), transparent 60%); pointer-events: none; }
.cta-inner { position: relative; text-align: center; max-width: 720px; }
.cta h2 { font-size: clamp(30px, 4vw, 44px); }
.cta p { margin: 18px auto 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.cta-actions { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 40px 0; align-items: center; }
.footer-brand p { color: var(--faint); font-size: 13px; margin-top: 4px; }
.footer-links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }
.footer-contact { grid-column: 1 / -1; display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer-contact a { display: inline-flex; align-items: center; gap: 6px; }
.footer-contact a:hover { color: var(--text); }
.btn .ico, .footer-contact .ico { flex: none; }
.copy { grid-column: 1 / -1; color: var(--faint); font-size: 13px; border-top: 1px solid var(--border); padding-top: 20px; }

/* Legal pages */
.legal { padding: 72px 0 96px; }
.legal h1 { font-size: 36px; margin-bottom: 8px; }
.legal .meta { color: var(--faint); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 20px; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; line-height: 1.8; }
.legal ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound h1 { font-size: 80px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound-text { color: var(--muted); margin: 12px 0 28px; }

/* Reveal（只有 JS 可用时才先隐藏；无 JS 直接显示） */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .mock-window { transform: none; } }

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .mock-window { transform: none; }
  .cards, .steps, .deploy-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .links, .nav-cta { display: none; }
  .menu-btn { display: flex; }
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .section { padding: 72px 0; }
  .cards, .steps, .deploy-grid, .sec-list { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-rail { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 40px); }
}
