/* ============ Watchwall site — monochrome, boxed (bordered sheet) ============ */
:root {
  --grad: linear-gradient(120deg, #7b4bc4, #b57bd6 45%, #f3b58c);
  --grad-btn: linear-gradient(95deg, #7b4bc4, #b45fa8 52%, #f3b58c);
  --accent: #8a5cd1;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
  --pad: clamp(20px, 4vw, 44px);
}
[data-theme='light'] {
  --bg: #f4f3ef;
  --ink: #101012;
  --muted: #78756d;
  --line: #e2ded4;
  --tint: rgba(138, 92, 209, 0.05);
  --dot: rgba(16, 16, 18, 0.05);
}
[data-theme='dark'] {
  --bg: #0b0b0d;
  --ink: #f1f0eb;
  --muted: #837f78;
  --line: rgba(241, 240, 235, 0.13);
  --tint: rgba(138, 92, 209, 0.09);
  --dot: rgba(241, 240, 235, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 28px 28px;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.12; font-weight: 800; }
a { color: inherit; text-decoration: none; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- the bordered sheet ---------- */
.sheet { max-width: var(--maxw); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 100vh; }

/* ---------- kicker / labels ---------- */
.kicker { font-family: 'Space Mono', monospace; text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; color: var(--muted); }
.kicker .idx { color: var(--accent); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 13px 21px; border-radius: 8px; border: 0; cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease); }
.btn--primary { background: var(--grad-btn); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22); }
.btn--primary:hover { filter: brightness(1.07); transform: translateY(-2px); }
.btn--ghost { box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--sm { padding: 9px 15px; font-size: 14px; }
.btn--lg { padding: 15px 24px; font-size: 16px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px var(--pad); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: 0.02em; }
.brand__mark { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; display: block; }
.nav__links { display: flex; gap: 26px; font-weight: 500; font-size: 15px; }
.nav__links a { color: var(--muted); transition: color 0.2s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 17px; cursor: pointer; }
.nav__toggle:hover { border-color: var(--accent); }
.clock { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.themebtn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 14px; transition: border-color 0.2s var(--ease); }
.themebtn:hover { border-color: var(--accent); }
[data-theme='dark'] .themebtn::before { content: '☾'; }
[data-theme='light'] .themebtn::before { content: '☀'; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; border-bottom: 1px solid var(--line); }
.hero__text { padding: clamp(40px, 6vw, 76px) var(--pad); }
.hero__title { font-size: clamp(32px, 4.6vw, 56px); margin: 22px 0 0; }
.hero__sub { margin: 22px 0 30px; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; font-size: 14px; color: var(--muted); font-weight: 500; }
.hero__trust li::before { content: '✓ '; color: var(--accent); font-weight: 700; }
.hero__app { border-left: 1px solid var(--line); padding: clamp(28px, 4vw, 50px); display: grid; place-items: center; background: var(--tint); }

/* ---------- app mockup ---------- */
.mock { width: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28); border: 1px solid #241f30; background: #14121a; }
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 10px 13px; background: #100e15; border-bottom: 1px solid #241f30; }
.mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: #35303f; }
.mock__bar b { margin-left: 8px; color: #8a8397; font-size: 11px; font-weight: 600; }
.mock__body { display: flex; height: 268px; }
.mock__side { width: 56px; background: #0d0b12; border-right: 1px solid #241f30; padding: 11px 9px; display: flex; flex-direction: column; gap: 8px; }
.mock__logo { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; display: block; }
.mock__nav { height: 8px; border-radius: 4px; background: #2a2438; }
.mock__nav.is-on { background: var(--grad); opacity: 0.85; }
.mock__grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 7px; padding: 9px; }
.mtile { position: relative; border-radius: 7px; background: radial-gradient(120% 120% at 40% 25%, #2a2036, #100e15 72%); border: 1px solid #241f30; }
.mtile.is-on { border-color: transparent; box-shadow: 0 0 0 2px #8a5cd1; }
.mtile__live { position: absolute; top: 6px; left: 6px; font-size: 8px; font-weight: 800; color: #fff; background: rgba(0, 0, 0, 0.5); padding: 2px 5px; border-radius: 4px; letter-spacing: 0.04em; }
.mtile__live::before { content: '● '; color: #f8395a; }
.mtile__name { position: absolute; bottom: 6px; left: 7px; font-size: 9.5px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); }

/* ---------- stats (boxed by vertical rules) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: clamp(28px, 3.5vw, 44px) var(--pad); border-left: 1px solid var(--line); transition: background 0.25s var(--ease); }
.stat:first-child { border-left: 0; }
.stat:hover { background: var(--tint); }
.stat__num { font-size: clamp(30px, 4vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat:hover .stat__num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { margin-top: 12px; font-family: 'Space Mono', monospace; text-transform: uppercase; letter-spacing: 0.14em; font-size: 10.5px; color: var(--muted); }

/* ---------- blocks ---------- */
.block { border-bottom: 1px solid var(--line); scroll-margin-top: 78px; }
.block__head { padding: clamp(44px, 6vw, 84px) var(--pad) clamp(26px, 3vw, 40px); }
.block__head h2 { font-size: clamp(25px, 3.2vw, 40px); margin-top: 14px; max-width: 20ch; }

/* ---------- features bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.cell { position: relative; padding: clamp(24px, 3vw, 36px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.25s var(--ease); }
.cell:nth-child(3n) { border-right: 0; }
.cell:nth-last-child(-n + 3) { border-bottom: 0; }
.cell::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.cell:hover { background: var(--tint); }
.cell:hover::before { transform: scaleX(1); }
.cell__ic { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px; display: grid; place-items: center; margin-bottom: 18px; transition: border-color 0.25s var(--ease), color 0.25s var(--ease); color: var(--ink); }
.cell__ic svg { width: 22px; height: 22px; }
.cell:hover .cell__ic { border-color: var(--accent); color: var(--accent); }
.cell h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 8px; }
.cell p { color: var(--muted); font-size: 14.5px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.step { padding: clamp(28px, 3.5vw, 46px) var(--pad); border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; }
.step__n { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 26px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 19px; font-weight: 700; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 14.5px; max-width: 32ch; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 20px var(--pad); font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: background 0.2s var(--ease); }
.faq summary:hover { background: var(--tint); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; font-weight: 400; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 var(--pad) 22px; color: var(--muted); font-size: 15px; max-width: 76ch; }

/* ---------- download ---------- */
.download__inner { padding: clamp(52px, 7vw, 96px) var(--pad); text-align: center; }
.download__icon { width: 76px; height: 76px; border-radius: 18px; object-fit: cover; display: block; margin: 0 auto 24px; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28); border: 1px solid var(--line); }
.download__inner .kicker { display: block; }
.download__inner h2 { font-size: clamp(28px, 4vw, 46px); margin: 14px 0; }
.download__inner p { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); margin: 0 auto 26px; max-width: 44ch; }
.download__meta { margin-top: 18px; font-family: 'Space Mono', monospace; text-transform: uppercase; letter-spacing: 0.12em; font-size: 10.5px; color: var(--muted); }

/* ---------- footer ---------- */
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding: 46px var(--pad) 30px; }
.footer__brand .brand { font-size: 18px; }
.footer__links { display: flex; gap: 56px; }
.footer__links h4 { font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.footer__links a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--ink); }
.footer__fine { padding: 0 var(--pad) 24px; color: var(--muted); font-size: 12.5px; line-height: 1.7; max-width: 80ch; }
.footer__bar { display: flex; justify-content: space-between; gap: 16px; padding: 20px var(--pad); border-top: 1px solid var(--line); font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }

/* ---------- use cases ---------- */
.usecases { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.usecase { padding: clamp(24px, 3vw, 38px) var(--pad); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.25s var(--ease); }
.usecase:nth-child(2n) { border-right: 0; }
.usecase:nth-last-child(-n + 2) { border-bottom: 0; }
.usecase:hover { background: var(--tint); }
.usecase h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.usecase p { color: var(--muted); font-size: 14.5px; max-width: 42ch; }

/* ---------- roadmap ---------- */
.roadmap { border-top: 1px solid var(--line); }
.roadmap__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px var(--pad); border-bottom: 1px solid var(--line); transition: background 0.2s var(--ease); }
.roadmap__row:last-child { border-bottom: 0; }
.roadmap__row:hover { background: var(--tint); }
.roadmap__row h3 { font-size: 16.5px; font-weight: 600; }
.roadmap__row p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.tag { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); white-space: nowrap; }
.tag--accent { border-color: transparent; background: var(--tint); color: var(--accent); }

/* ---------- legal pages ---------- */
.legal-intro { margin-top: 14px; color: var(--muted); font-size: 15px; }
.legal-doc { padding: clamp(34px, 5vw, 58px) var(--pad); border-bottom: 1px solid var(--line); scroll-margin-top: 78px; }
.legal-doc > * { max-width: 76ch; }
.legal-doc h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 10px; }
.legal-doc h3 { font-size: 16px; font-weight: 700; margin: 22px 0 6px; }
.legal-doc p { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.legal-doc ul { color: var(--muted); font-size: 15px; margin: 6px 0 12px; padding-left: 20px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc b { color: var(--ink); }
.footer__bar a { color: var(--muted); }
.footer__bar a:hover { color: var(--ink); }

/* ---------- scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--grad); z-index: 100; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__app { border-left: 0; border-top: 1px solid var(--line); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .cell:nth-child(2n) { border-right: 0; }
  .cell:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .cell:nth-last-child(-n + 2) { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
}
@media (max-width: 640px) {
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open .nav__links { display: flex; }
  .nav__links a { padding: 14px var(--pad); border-top: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr; }
  .cell { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .cell:last-child { border-bottom: 0 !important; }
  .footer__top { flex-direction: column; gap: 28px; }
  .usecases { grid-template-columns: 1fr; }
  .usecase { border-right: 0; }
  .usecase:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .usecase:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  * { transition: none !important; }
}
