/* opendesk marketing site.
   Shape rule: panels 16px, controls 10px, chips 6px. One accent: gain green. */

:root {
  --bg: #08090a;
  --bg-raise: #0d0e10;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #eff0f1;
  --text-2: #a3a7ae;
  --text-3: #80858d;
  --pos: #4cc38a;
  --neg: #e8705a;
  --r-panel: 16px;
  --r-ctrl: 10px;
  --r-chip: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 30; padding: 8px 12px; border-radius: var(--r-ctrl); background: var(--text); color: var(--bg); }
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--r-ctrl);
  background: var(--text); color: #0a0b0c;
  font: inherit; font-size: 15px; font-weight: 550; letter-spacing: -0.01em; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.15s var(--ease), opacity 0.2s;
}
.btn:hover { background: #ffffff; }
.btn:active { transform: translateY(1px); }
.btn .ph { font-size: 16px; transition: transform 0.25s var(--ease); }
.btn:hover .ph-arrow-right { transform: translateX(2px); }
.btn:hover .ph-arrow-up { transform: translateY(-2px); }
.btn-ghost { height: 34px; padding: 0 14px; font-size: 14px; background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.22); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--nav-h);
  background: linear-gradient(to bottom, rgba(8, 9, 10, 0.82), rgba(8, 9, 10, 0.55));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.mark { width: 26px; height: 23px; }

/* Hero */
.hero { position: relative; isolation: isolate; padding-top: calc(var(--nav-h) + 136px); }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
h1 {
  max-width: 15ch;
  font-size: clamp(2.6rem, 1.2rem + 5.2vw, 5.4rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--text);
}
.lede { margin-top: 26px; max-width: 46ch; font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem); color: var(--text-2); line-height: 1.5; }

/* Waitlist form */
.waitlist { margin-top: 36px; width: 100%; max-width: 470px; }
.field { display: flex; gap: 8px; }
.field input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-ctrl);
  background: rgba(14, 15, 17, 0.8); color: var(--text);
  font: inherit; font-size: 15px;
  transition: border-color 0.2s, background-color 0.2s;
}
.field input::placeholder { color: #8a8f97; }
.field input:hover { border-color: rgba(255, 255, 255, 0.2); }
.field input:focus { outline: none; border-color: rgba(255, 255, 255, 0.55); background: rgba(18, 19, 21, 0.95); }
.field input[aria-invalid="true"] { border-color: var(--neg); }
.form-msg { min-height: 22px; margin-top: 10px; font-size: 14px; color: var(--text-2); }
.form-msg.is-error { color: #f08d79; }
.form-msg.is-ok { color: var(--pos); }
.waitlist.is-loading .btn { opacity: 0.7; cursor: progress; }
.waitlist.is-done .field { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Dashboard preview */
.preview { margin-top: 84px; perspective: 2200px; }
.shot {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--r-panel);
  background: #0a0a0b;
  box-shadow: 0 50px 140px -50px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
  transform-origin: 50% 0%;
}
.shot::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

/* The mock app is laid out at 1280px and scaled to fit by js/dashboard.js */
.app {
  position: absolute; top: 0; left: 0; width: 1280px; height: 1000px; overflow: hidden;
  transform-origin: 0 0;
  padding: 0 28px;
  color: #e6e7e9; font-size: 13px; line-height: 1.4; font-variant-numeric: tabular-nums;
  background: radial-gradient(70% 40% at 50% 0%, rgba(255, 255, 255, 0.035), transparent 70%), #0a0a0b;
}
.app .pos { color: var(--pos); }
.app .neg { color: var(--neg); }
.app .dim { color: #858a92; }
.app .sm { font-size: 13px; }
.app .xs { font-size: 12px; }
.app .mono { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.02em; color: #a9adb3; }
.app-top { height: 56px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, 0.06); margin: 0 -28px; padding: 0 28px; }
.tabs { display: flex; gap: 4px; }
.tab { padding: 6px 12px; border-radius: 7px; color: #8f949b; font-size: 14px; }
.tab.on { background: rgba(255, 255, 255, 0.07); color: #f2f3f4; }
.asof { display: flex; align-items: center; gap: 8px; color: #c9ccd0; font-size: 13px; }
.sync { display: inline-flex; align-items: center; gap: 7px; margin-right: 10px; padding: 3px 9px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px; color: #b9bdc2; font-size: 12px; }
.live { width: 6px; height: 6px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 3px rgba(76, 195, 138, 0.15); }
.app-grid { display: grid; grid-template-columns: 1fr 360px; gap: 14px; margin-top: 24px; }
.card { border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; background: #0d0d0f; padding: 22px 24px; }
.row-between { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.k { color: #c7cace; font-size: 14px; }
.nlv { margin-top: 8px; font-size: 44px; font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; color: #f5f6f7; }
.chg { display: flex; gap: 8px; margin-top: 8px; font-size: 14px; }
.toggles { display: flex; gap: 8px; }
.seg { display: flex; padding: 3px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; }
.seg span { padding: 4px 10px; border-radius: 6px; color: #9a9fa6; font-size: 12.5px; }
.seg .on { background: rgba(255, 255, 255, 0.09); color: #f2f3f4; }
.chart { margin-top: 18px; overflow: visible; }
.legend { display: flex; gap: 26px; margin-top: 8px; color: #a8acb2; font-size: 13px; }
.legend b { color: #e6e7e9; font-weight: 500; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw-solid { display: inline-block; width: 18px; height: 2px; background: #e6e7e9; }
.sw-dash { display: inline-block; width: 18px; height: 0; border-top: 2px dotted rgba(255, 255, 255, 0.55); }
.rule { height: 1px; background: rgba(255, 255, 255, 0.06); margin: 20px 0 18px; }
.side .big { margin-top: 12px; font-size: 34px; font-weight: 500; letter-spacing: -0.03em; }
.side .sub { margin-top: 6px; font-size: 14px; }
.stats { margin-top: 18px; }
.stats div { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 14px; }
.stats dt { color: #9ca1a8; }
.stats dd { color: #eceef0; }
.app-sub { margin: 32px 0 14px; color: #e0e2e5; font-size: 15px; }
.table { border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; overflow: hidden; background: #0c0c0e; }
.table table { width: 100%; border-collapse: collapse; }
.table th { padding: 14px 14px; text-align: left; font-weight: 400; color: #8b9097; font-size: 12.5px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.table td { padding: 15px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); white-space: nowrap; }
.table .table .sym { font-weight: 600; letter-spacing: 0.01em; }
.table .strong { font-weight: 600; }
.badge { margin-left: 8px; padding: 1px 7px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 5px; font-size: 11.5px; color: #d5d8db; }
.mm { position: relative; display: inline-block; width: 78px; height: 10px; vertical-align: middle; }
.mm::before { content: ""; position: absolute; left: 26px; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.18); }
.mm i { position: absolute; top: 4px; height: 2px; border-radius: 1px; }
.mm .a { right: 52px; background: var(--neg); opacity: 0.8; }
.mm .f { left: 26px; background: var(--pos); opacity: 0.8; }
.mm b { position: absolute; top: 1px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #f2f3f4; }

/* Footer */
.footer { margin-top: 120px; border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--text-3); font-size: 13px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand-sm { font-size: 15px; color: var(--text-2); }
.brand-sm .mark { width: 21px; height: 18px; }

/* Contact dialog */
.contact {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0;
  border: 1px solid var(--line-2); border-radius: var(--r-panel);
  background: #0d0e10; color: var(--text);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.contact::backdrop { background: rgba(4, 5, 6, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.contact-inner { padding: 22px; }
@media (max-width: 420px) { .contact-inner { padding: 18px; } .copy-btn { min-width: 0; } .cr-go { display: none; } }
.contact-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contact h2 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.02em; font-weight: 560; }
.contact-sub { margin-top: 6px; color: var(--text-2); font-size: 14px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none;
  border: 1px solid transparent; border-radius: var(--r-ctrl); background: transparent; color: var(--text-2);
  font-size: 17px; cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.contact-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.contact-list li { display: flex; gap: 8px; min-width: 0; }
.contact-row {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--r-ctrl); background: rgba(255, 255, 255, 0.02);
  transition: background-color 0.2s, border-color 0.2s;
}
.contact-row:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--line-2); }
.contact-row > .ph:first-child { font-size: 20px; color: var(--text); flex: none; }
.cr-text { display: flex; flex-direction: column; min-width: 0; }
.cr-label { font-size: 12px; color: var(--text-3); line-height: 1.3; }
.cr-value { font-size: 14.5px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-go { margin-left: auto; color: var(--text-3); flex: none; transition: color 0.2s, transform 0.2s var(--ease); }
.contact-row:hover .cr-go { color: var(--text); transform: translate(1px, -1px); }
.copy-btn {
  flex: none; min-width: 72px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctrl);
  background: transparent; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--line-2); color: var(--text); }
.copy-btn.is-done { color: var(--pos); }
@media (prefers-reduced-motion: no-preference) {
  .contact[open] { animation: pop 0.24s var(--ease); }
  .contact[open]::backdrop { animation: fade 0.24s ease; }
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes fade { from { opacity: 0; } }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(14px); animation: rise 0.9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
  @supports (animation-timeline: view()) {
    .shot { animation: untilt linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
  }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes untilt { from { transform: rotateX(16deg) scale(0.94); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: calc(var(--nav-h) + 84px); }
  .field { flex-direction: column; }
  .field input { flex: none; }
  .field .btn { width: 100%; }
  .preview { margin-top: 56px; }
}
@media (max-width: 420px) {
  h1 { font-size: clamp(2.2rem, 1.1rem + 4.6vw, 2.45rem); }
}
