/* Rapidesk — marketing site
   Design system. Single source of truth.
   ------------------------------------------------------------- */

:root {
  --bg: #161819;
  --bg-2: #1c1f20;
  --surface: #232629;
  --surface-2: #2a2d30;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --ink: #ffffff;
  --ink-dim: #f6f6f6;
  --muted: #9aa0a6;
  --muted-2: #6e7378;
  --accent: #00c6ba;
  --accent-soft: rgba(0, 198, 186, 0.12);
  --accent-line: rgba(0, 198, 186, 0.32);
  --cyan: #5fb8d6;
  --blue: #6f8ed6;
  --purple: #8b7cd6;
  --teal-deep: #1f5a55;
  --amber: #d6a55f;
  --red: #d66f6f;
  --green: #6fd699;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 18px;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --shell-w: 1280px;
  --shell-px: 32px;

  --t-fast: 140ms cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-med: 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-slow: 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--bg);
  color: var(--ink-dim);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 800px at 50% -200px, rgba(0,198,186,0.05), transparent 60%),
    var(--bg);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: rgba(0,198,186,0.32); color: #fff; }

/* ---------- Type ---------- */

h1, h2, h3, h4, h5, h6 { color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(48px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: clamp(34px, 3.4vw, 52px); line-height: 1.05; letter-spacing: -0.028em; font-weight: 500; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; color: var(--ink-dim); }

.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .num { color: var(--accent); margin-right: 10px; }
.eyebrow .bar {
  display: inline-block;
  width: 22px; height: 1px; background: var(--accent); vertical-align: middle;
  margin: 0 10px 2px 0;
}
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }

/* ---------- Shell ---------- */

.shell {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 var(--shell-px);
}

section { padding: 120px 0; position: relative; }
section.tight { padding: 80px 0; }

.hr {
  border: 0; border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22,24,25,0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--shell-px);
  max-width: var(--shell-w); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 0; color: var(--ink); }
.brand .logo { height: 32px; width: auto; display: block; }
.foot-brand .logo { height: 30px; width: auto; display: block; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-link {
  font-size: 13.5px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.nav-link.active { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-divider { width: 1px; height: 18px; background: var(--line); }
.nav-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.nav-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,198,186,0.16);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0,198,186,0.16); }
  50%      { box-shadow: 0 0 0 5px rgba(0,198,186,0.06); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500;
  padding: 9px 14px;
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #0a1716;
  box-shadow: 0 0 0 1px rgba(0,198,186,0.5), 0 8px 24px -8px rgba(0,198,186,0.4);
}
.btn-primary:hover { background: #14d6cb; transform: translateY(-1px); }
.btn-ghost {
  color: var(--ink); border-color: var(--line-strong);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }
.btn-link {
  color: var(--ink); padding: 9px 4px;
  border-bottom: 1px solid transparent;
}
.btn-link:hover { color: var(--accent); }
.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.card-pad { padding: 24px; }

/* ---------- Footer ---------- */

footer.foot {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.25));
  padding: 64px 0 32px;
  margin-top: 60px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
}
.foot-brand { max-width: 280px; }
.foot-brand p { color: var(--muted); font-size: 13px; margin-top: 16px; }
.foot-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}
.foot-col a {
  display: block; color: var(--ink-dim); font-size: 13.5px;
  padding: 5px 0; opacity: 0.85;
  transition: opacity var(--t-fast), color var(--t-fast);
}
.foot-col a:hover { color: var(--accent); opacity: 1; }
.foot-bar {
  margin-top: 56px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted-2);
}
.foot-bar .stat { display: flex; align-items: center; gap: 8px; }
.foot-bar .stat .dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
}

/* ---------- Section headers ---------- */

.section-head {
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap: 64px;
  align-items: end;
  padding-bottom: 56px;
}
.section-head .lede { color: var(--muted); font-size: 16px; max-width: 460px; }
.section-head .h2-stack { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Tiles / chips ---------- */

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; color: var(--ink-dim);
  background: rgba(255,255,255,0.02);
}
.chip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.chip.amber .dot { background: var(--amber); }
.chip.blue .dot { background: var(--blue); }
.chip.purple .dot { background: var(--purple); }
.chip.red .dot { background: var(--red); }
.chip.green .dot { background: var(--green); }

/* ---------- Common UI panel mocks ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.06em;
  text-transform: uppercase;
}
.panel-head .lights {
  display: flex; gap: 6px;
}
.panel-head .lights span {
  width: 9px; height: 9px; border-radius: 50%;
  background: #34383c;
}
.panel-head .title { color: var(--ink-dim); }
.panel-head .right { margin-left: auto; }

/* ---------- Utilities ---------- */

.grid-lines {
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
}
.no-select { user-select: none; }

@media (max-width: 980px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 24px; align-items: start; padding-bottom: 40px; }
  section { padding: 80px 0; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}
