/* Taskbar landing page. Organized by section. */
/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* --- Design tokens (light) --- */
:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --border: #e5e5ea;
  --accent: #0a84ff;
  --accent-hover: #0066d6;
  --accent-ring: color-mix(in oklab, var(--accent) 40%, transparent);
  --shadow-hero: 0 30px 80px -20px rgba(0, 0, 0, 0.25);
  --shadow-card: none;
  --rim-light: none;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --container: 1120px;
  --container-hero: 1280px;
  --radius-card: 16px;
  --radius-hero: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --surface: #161618;
    --text: #f5f5f7;
    --text-muted: #a1a1a6;
    --border: #2a2a2e;
    --accent-hover: #3aa0ff;
    --shadow-hero: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 100px -30px rgba(10, 132, 255, 0.25);
    --rim-light: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  }
}

/* --- Base typography --- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0 0 0.4em; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; line-height: 1.1; }
h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; }

/* --- Layout primitives --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--hero { max-width: var(--container-hero); }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}
.nav__logo { width: 24px; height: 24px; }
.nav__links { display: inline-flex; align-items: center; gap: 28px; font-size: 15px; }
.nav__links a { color: var(--text-muted); transition: color 150ms ease-out; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  color: var(--accent) !important;
  font-weight: 600;
}
.nav__links a:focus-visible {
  outline: 3px solid var(--accent-ring);
  outline-offset: 4px;
  border-radius: 4px;
}

/* --- Hero --- */
.hero { padding: 80px 0 60px; text-align: center; }
.hero__headline { max-width: 16ch; margin: 0 auto 0.4em; }
.hero__sub {
  max-width: 36ch;
  margin: 0 auto 36px;
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1.4;
}

.download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: white !important;
  font-size: 17px;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 8px 24px -8px color-mix(in oklab, var(--accent) 70%, transparent);
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, background 150ms ease-out;
}
.download:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -10px color-mix(in oklab, var(--accent) 80%, transparent);
}
.download:focus-visible {
  outline: 3px solid var(--accent-ring);
  outline-offset: 4px;
}
.download__icon { width: 18px; height: 18px; }
.download__meta {
  margin: 18px 0 60px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.hero__shot {
  margin: 0 auto;
  max-width: 1280px;
}

/* --- Features --- */
.features { padding: 100px 0; }
.features__title { text-align: center; max-width: 18ch; margin: 0 auto 0.4em; }
.features__intro {
  max-width: 50ch;
  margin: 0 auto 60px;
  text-align: center;
  font-size: 19px;
  color: var(--text-muted);
}
.features__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.feature {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card), var(--rim-light);
}
.feature__icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--text-muted); font-size: 15.5px; }
.feature code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* --- Deep-dive blocks --- */
.dive { padding: 80px 0; }
.dive__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.dive--left .dive__inner { grid-template-areas: "shot copy"; }
.dive--right .dive__inner { grid-template-areas: "copy shot"; }
.dive--left .dive__copy, .dive--right .dive__copy { grid-area: copy; }
.dive--left .dive__shot, .dive--right .dive__shot { grid-area: shot; }
.dive__copy h2 { max-width: 14ch; }
.dive__copy p { font-size: 18px; color: var(--text-muted); line-height: 1.5; }
.dive__shot {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
@media (max-width: 800px) {
  .dive__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "shot" !important;
    gap: 32px;
  }
}

/* --- Install --- */
.install { padding: 100px 0; }
.install__title { text-align: center; margin-bottom: 60px; }
.install__steps {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
}
.step {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--rim-light);
}
.step__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--text-muted); font-size: 15.5px; }
.step code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.install__callout {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text-muted);
}
.install__callout strong { color: var(--text); margin-right: 6px; }
.install__callout code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.95em;
}

@media (max-width: 800px) {
  .install__steps { grid-template-columns: 1fr; }
}

/* --- FAQ --- */
.faq { padding: 80px 0 100px; }
.faq__title { text-align: center; margin-bottom: 40px; }
.faq__item {
  max-width: 720px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 36px 22px 0;
  font-size: 18px;
  font-weight: 600;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 200ms ease-out;
}
.faq__item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq__item summary:focus-visible {
  outline: 3px solid var(--accent-ring);
  outline-offset: 4px;
  border-radius: 4px;
}
.faq__item p {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 16.5px;
  max-width: 60ch;
}
.faq__item code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  background: var(--surface);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* --- Footer --- */
.footer {
  padding: 60px 0 80px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
.footer__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-muted);
}
.footer a { color: var(--text-muted); transition: color 150ms ease-out; }
.footer a:hover { color: var(--text); }
.footer__sep { opacity: 0.5; }

/* --- Scroll reveal --- */
[data-reveal] {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* --- Responsive (narrow viewports) --- */
@media (max-width: 720px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .nav__inner { height: 52px; }

  .hero { padding: 48px 0 40px; }
  .hero__sub { font-size: 17px; }
  .download { padding: 12px 22px; font-size: 16px; }

  .features { padding: 60px 0; }
  .features__intro { margin-bottom: 40px; font-size: 17px; }

  .dive { padding: 48px 0; }
  .dive__copy p { font-size: 16.5px; }

  .install { padding: 60px 0; }
  .install__title { margin-bottom: 40px; }

  .faq { padding: 48px 0 60px; }
  .faq__item summary { font-size: 16.5px; padding: 18px 32px 18px 0; }
}
