/* DotDeck landing page. Smoked glass, amber dots, a brass lever and a copper dial: the same
   materials as the app. System fonts only, so the page loads no font files and calls no font
   service. */

:root {
  --ink: #f3ece4;
  --ink-soft: rgba(243, 236, 228, .66);
  --ink-faint: rgba(243, 236, 228, .4);
  --amber: #ff9a3e;
  --amber-soft: #ffb877;
  --brass: #d4ae5c;
  --copper: #c47a4e;
  --glass: #0c0b0a;
  --panel: #151311;
  --line: rgba(255, 255, 255, .07);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: #070605; scroll-behavior: smooth; }
body {
  font-family: var(--sans); color: var(--ink); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
  background:
    radial-gradient(70% 40% at 50% 0%, rgba(255, 154, 62, .10), transparent 70%),
    radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, .05) 99%, transparent) 0 0 / 14px 14px,
    #070605;
}
a { color: var(--amber-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, video { display: block; max-width: 100%; height: auto; }

/* Labels engraved like the ones on the device: small mono capitals with a dot between. */
.label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint);
}
.label b { color: var(--amber); font-weight: 500; }
.led { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); margin-right: 8px; vertical-align: 1px; }

/* ---------- Header ---------- */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(22px, env(safe-area-inset-top)) clamp(20px, 5vw, 56px) 0;
}
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
.mark img { width: 26px; height: 26px; border-radius: 7px; }
.top nav { display: flex; gap: clamp(14px, 3vw, 30px); }
.top nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; }
.top nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(120px, 16vw, 170px) 22px 40px; text-align: center; }
.hero h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: .98;
  font-size: clamp(48px, 9vw, 112px); margin-top: 18px;
}
.hero h1 em { font-style: normal; color: var(--amber); text-shadow: 0 0 28px rgba(255, 154, 62, .45); }
.lead { margin: 24px auto 0; max-width: 600px; font-size: clamp(17px, 2.1vw, 20px); color: var(--ink-soft); }
.cta { margin-top: 34px; display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; }
.link { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.link:hover { color: var(--ink); }
.fine { margin-top: 18px; font-size: 13px; color: var(--ink-faint); }

/* A key cap, like the ✓ key: dark, raised, with a brass rim. */
.btn {
  display: inline-block; padding: 15px 28px; border-radius: 14px; font-size: 15px; font-weight: 500;
  color: var(--ink); text-decoration: none;
  background: linear-gradient(180deg, #2a2724, #161412);
  border: 1px solid rgba(212, 174, 92, .45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 -3px 0 rgba(0, 0, 0, .5) inset, 0 14px 30px rgba(0, 0, 0, .55);
}
a.btn:hover { border-color: var(--brass); }
.btn[aria-disabled="true"] { cursor: default; }
.btn .key { color: var(--amber); margin-right: 8px; }

/* ---------- The display ---------- */
/* A bezel of smoked glass around the dots, with the amber underglow the device casts. */
.display { position: relative; border-radius: 26px; padding: clamp(10px, 1.6vw, 18px); background: linear-gradient(180deg, #23201d, #0f0e0d); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 30px 70px rgba(0, 0, 0, .7); }
.display::after {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -26px; height: 28px; z-index: -1;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255, 154, 62, .45), transparent 75%); filter: blur(10px);
}
.display .screen { border-radius: 14px; overflow: hidden; background: #050404; box-shadow: 0 0 0 1px rgba(0, 0, 0, .8), 0 2px 18px rgba(0, 0, 0, .9) inset; }
.display .screen > * { width: 100%; aspect-ratio: 864 / 312; object-fit: cover; }
.hero .display { max-width: 980px; margin: 56px auto 0; }
.status { margin-top: 26px; text-align: left; max-width: 980px; margin-inline: auto; padding-left: 8px; }

/* ---------- Motion ---------- */
.rise { opacity: 0; transform: translateY(14px); animation: rise 1s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--d) * 120ms + 150ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
section { padding: clamp(80px, 12vw, 150px) clamp(20px, 5vw, 56px) 0; }
.wrap { max-width: var(--max); margin: 0 auto; }
.section-title { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; font-size: clamp(36px, 5.4vw, 64px); }
.section-lead { margin-top: 18px; max-width: 620px; color: var(--ink-soft); font-size: clamp(16px, 1.8vw, 19px); }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }

/* Modes: one card per lever position. */
.modes { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 34px); }
.mode .display { border-radius: 20px; }
.mode .display .screen { border-radius: 10px; }
.mode .label { margin-top: 26px; display: block; }
.mode h3 { margin-top: 8px; }
.mode p { margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; max-width: 480px; }

/* Hardware: the device beside what each control does. */
.hardware { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hardware figure img { border-radius: 30px; box-shadow: 0 40px 90px rgba(0, 0, 0, .7); }
.controls { margin-top: 34px; display: grid; gap: 22px; list-style: none; }
.controls li { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start; }
.controls p { color: var(--ink-soft); font-size: 15.5px; margin-top: 3px; }
.cap {
  width: 54px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  font-size: 18px; color: var(--amber);
  background: linear-gradient(180deg, #2a2724, #141211);
  border: 1px solid rgba(212, 174, 92, .35);
  box-shadow: 0 -3px 0 rgba(0, 0, 0, .55) inset, 0 8px 18px rgba(0, 0, 0, .5);
}
.cap.dial { border-radius: 50%; width: 46px; margin-left: 4px; background: repeating-linear-gradient(90deg, #a9643d 0 2px, #d08a5f 2px 4px); border: none; color: transparent; }
.cap.lever { background: linear-gradient(180deg, #1a1816, #0d0c0b); border-color: rgba(212, 174, 92, .55); position: relative; }
.cap.lever::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f4d891, #a27a2c); box-shadow: 0 0 0 7px rgba(212, 174, 92, .18); }
.devices { margin-top: 30px; }

/* Scenes: small looping displays. */
.scenes { margin-top: 50px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.scene .display { padding: 7px; border-radius: 14px; }
.scene .display::after { display: none; }
.scene .display .screen { border-radius: 8px; }
.scene .display .screen > * { aspect-ratio: 1 / 1; }
.scene .label { margin-top: 14px; display: block; text-align: center; }

/* Agents. */
.agents { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 70px); align-items: start; }
.chips { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-family: var(--mono); font-size: 12.5px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); background: rgba(255, 255, 255, .02); }
.terminal { border-radius: 16px; background: #0d0c0b; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0, 0, 0, .6); overflow: hidden; }
.terminal .bar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.terminal .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c2926; }
.terminal pre { padding: 20px 20px 24px; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: var(--ink-soft); white-space: pre-wrap; word-break: break-word; }
.terminal .p { color: var(--amber); }
.terminal .c { color: var(--ink-faint); }
.terminal .out { color: var(--ink); }
.voice { margin-top: 30px; padding: 22px 24px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.voice p { color: var(--ink-soft); font-size: 15px; margin-top: 6px; }

/* Mac companion. */
.mac { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 44px); align-items: center; padding: clamp(26px, 4vw, 44px); border-radius: 26px; background: linear-gradient(180deg, #181614, #0f0e0d); border: 1px solid var(--line); }
.mac img { width: 120px; height: 120px; }
.mac p { color: var(--ink-soft); margin-top: 8px; max-width: 560px; }

/* Privacy points. */
.points { margin-top: 50px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; list-style: none; }
.points li { border-top: 1px solid var(--line); padding-top: 20px; }
.points p { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }

/* FAQ. */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq details:first-of-type { margin-top: 40px; border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 17px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-family: var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--ink-soft); }

/* Last call. */
.last { text-align: center; padding-bottom: clamp(90px, 12vw, 150px); }
.last .clock { font-family: var(--mono); font-size: 14px; letter-spacing: .3em; color: var(--amber); }
.last h2 { margin-top: 16px; }

/* ---------- Footer ---------- */
.bottom { border-top: 1px solid var(--line); padding: 34px clamp(20px, 5vw, 56px) max(34px, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--ink-faint); font-size: 14px; }
.bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.bottom a { color: var(--ink-soft); text-decoration: none; }
.bottom a:hover { color: var(--ink); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .modes, .hardware, .agents { grid-template-columns: minmax(0, 1fr); }
  .hardware figure { max-width: 420px; margin: 0 auto; }
  .scenes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mac { grid-template-columns: 80px minmax(0, 1fr); }
  .mac img { width: 80px; height: 80px; }
  .mac .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 560px) {
  .top nav a:not(.keep) { display: none; }
  .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points { grid-template-columns: minmax(0, 1fr); }
  .status { text-align: center; padding-left: 0; }
}
