/* Margin's site: quiet, type-led, one product shown up close. System fonts only. */
:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --paper: #fbfbfd;
  --paper-2: #f5f5f7;
  --night: #000;
  --night-ink: #f5f5f7;
  --night-ink-2: #a1a1a6;
  --link: #0066cc;
  --night-link: #2997ff;
  --button: #0071e3;
  --button-hover: #0077ed;
  --green: #30d158;
  --amber: #ffd60a;
  --radius: 18px;
  --max: 980px;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.6);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 52px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.wordmark {
  color: var(--ink);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.wordmark:hover {
  text-decoration: none;
}
.nav nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 12px;
}
.nav nav a {
  color: var(--ink);
  opacity: 0.8;
}
.nav nav a:hover {
  opacity: 1;
  text-decoration: none;
}

/* Buttons and links */
.pill {
  display: inline-block;
  background: var(--button);
  color: #fff;
  padding: 11px 22px;
  border-radius: 980px;
  font-size: 17px;
  line-height: 1.2;
}
.pill:hover {
  background: var(--button-hover);
  text-decoration: none;
}
.pill.small {
  padding: 5px 12px;
  font-size: 12px;
}
.pill.large {
  padding: 16px 34px;
  font-size: 19px;
}
.link::after {
  content: " ›";
}
.ctas {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* Shared section type */
section {
  padding: 110px 22px;
  text-align: center;
}
.eyebrow {
  font-size: 21px;
  font-weight: 600;
  color: #bf4800;
  margin-bottom: 8px;
}
.dark .eyebrow {
  color: #f56300;
}
h1 {
  font-size: clamp(56px, 11vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.07;
  max-width: 900px;
  margin: 0 auto;
}
h3 {
  font-size: 21px;
  line-height: 1.2;
}
.lede {
  font-size: clamp(22px, 3.2vw, 28px);
  line-height: 1.2;
  margin-top: 10px;
}
.body {
  font-size: 21px;
  line-height: 1.38;
  color: var(--ink-2);
  max-width: 760px;
  margin: 28px auto 0;
  text-align: left;
}
.body.center {
  text-align: center;
}
.soft {
  color: var(--night-ink-2);
}
.dark {
  background: var(--night);
  color: var(--night-ink);
}
.dark .body,
.dark p {
  color: var(--night-ink-2);
}
.dark h3 {
  color: var(--night-ink);
}
.dark a {
  color: var(--night-link);
}

/* Hero and the product shot */
.hero {
  padding-top: 80px;
  padding-bottom: 90px;
  background: var(--paper);
  overflow: hidden;
}
.hero .eyebrow {
  font-size: 17px;
}
.app-icon {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 12px;
}
.stage {
  margin: 60px auto 0;
  max-width: 1080px;
  perspective: 1600px;
}
.screen {
  position: relative;
  height: 560px;
  border-radius: 22px;
  overflow: hidden;
  text-align: left;
  background: radial-gradient(120% 90% at 70% 10%, #4b4f5c 0%, #262931 45%, #15171c 100%);
  box-shadow:
    0 0 0 10px #1d1d1f,
    0 0 0 11px #3a3a3c,
    0 40px 80px rgba(0, 0, 0, 0.25);
}
.menubar {
  height: 26px;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 0 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.32);
}
.menubar .clock {
  margin-left: auto;
}
.terminal {
  position: absolute;
  left: 4%;
  top: 52px;
  width: 64%;
  bottom: 36px;
  background: rgba(16, 17, 20, 0.96);
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.tbar {
  height: 30px;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tbar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}
.tbar i:nth-child(2) {
  background: #febc2e;
}
.tbar i:nth-child(3) {
  background: #28c840;
}
.tbar span {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #8e8e93;
  margin-right: 50px;
}
.terminal pre {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: #d1d1d6;
  white-space: pre-wrap;
  letter-spacing: 0;
}
.dim {
  color: #6e6e73;
}
.ok {
  color: var(--green);
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #d1d1d6;
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.drawer {
  position: absolute;
  right: 0;
  top: 70px;
  width: 262px;
  padding-bottom: 14px;
  background: rgba(28, 28, 30, 0.92);
  color: #f5f5f7;
  font-size: 13px;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 0;
  border-radius: 13px 0 0 13px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.drawer-head {
  padding: 14px 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tokens {
  display: flex;
  gap: 6px;
  align-items: baseline;
}
.tokens span {
  font-size: 11px;
  color: #8e8e93;
}
.tabs {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 12px;
  color: #a1a1a6;
}
.tabs b {
  color: #f5f5f7;
  border-bottom: 2px solid #f5f5f7;
  padding-bottom: 8px;
}
.tabs .gear {
  margin-left: auto;
}
.friends {
  list-style: none;
  margin: 0;
  padding: 8px;
}
.friends li {
  display: flex;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 7px;
}
.friends li:first-child {
  background: rgba(255, 255, 255, 0.07);
}
.friends li .dot {
  margin-top: 6px;
}
.friends li div {
  flex: 1;
  min-width: 0;
}
.friends p {
  color: #a1a1a6;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.friends p:first-child {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #f5f5f7;
  font-size: 13px;
}
.friends em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: #a1a1a6;
  letter-spacing: 0;
}
.friends .mono {
  font-family: var(--mono);
  font-size: 11px;
  color: #8e8e93;
  letter-spacing: 0;
}
.badge {
  background: var(--amber);
  color: #1c1c1e;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  padding: 0 5px;
  line-height: 16px;
}
.drawer .section {
  padding: 6px 16px 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8e8e93;
}
.offline {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 2px 16px;
  font-size: 12px;
  color: #a1a1a6;
}
.offline span {
  margin-left: auto;
  font-size: 11px;
  color: #8e8e93;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.dot.on {
  background: var(--green);
}
.dot.idle {
  border: 1px solid var(--amber);
  background: linear-gradient(90deg, var(--amber) 50%, transparent 50%);
}
.dot.off {
  border: 1px solid #8e8e93;
}

/* Statement tiles */
.statement h2 {
  font-size: clamp(40px, 6.4vw, 64px);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: var(--max);
  margin: 70px auto 0;
  text-align: left;
}
.tile {
  background: #1d1d1f;
  border-radius: var(--radius);
  padding: 30px;
}
.tile h3 {
  margin-top: 26px;
}
.tile p {
  margin-top: 10px;
  font-size: 15px;
}
.tile-art {
  height: 150px;
  border-radius: 12px;
  background: #111113;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}
.s {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  width: 14px;
  background: rgba(44, 44, 46, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 0;
  border-radius: 6px 0 0 6px;
}
.s .dot {
  width: 6px;
  height: 6px;
}
.s b {
  font-size: 9px;
  color: var(--amber);
}
.pulse {
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  60%,
  100% {
    box-shadow: none;
  }
  70% {
    box-shadow:
      0 0 0 3px rgba(255, 214, 10, 0.5),
      0 0 22px rgba(255, 214, 10, 0.45);
  }
}
.chat-art {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
}
.bubble {
  font-size: 13px;
  padding: 7px 11px;
  border-radius: 13px;
  max-width: 80%;
  letter-spacing: -0.01em;
}
.bubble.in {
  align-self: flex-start;
  background: #2c2c2e;
  color: #f5f5f7;
  border-bottom-left-radius: 4px;
}
.bubble.out {
  align-self: flex-end;
  background: #0a84ff;
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Tokens */
.tokens-section {
  background: var(--paper-2);
}
.big-number {
  font-size: clamp(88px, 18vw, 200px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-top: 34px;
  background: linear-gradient(180deg, #1d1d1f 30%, #6e6e73 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

/* Privacy */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 36px;
  max-width: var(--max);
  margin: 70px auto 0;
  text-align: left;
}
.cell p {
  margin-top: 10px;
  font-size: 17px;
}

/* Themes */
.themes {
  background: var(--paper);
}
.switch {
  display: inline-flex;
  border: 0;
  min-inline-size: 0;
  margin: 34px auto 0;
  padding: 3px;
  border-radius: 980px;
  background: #e8e8ed;
}
.switch button {
  font: inherit;
  font-size: 14px;
  border: 0;
  background: none;
  padding: 6px 18px;
  border-radius: 980px;
  color: var(--ink);
  cursor: pointer;
}
.switch button.on {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.theme-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  max-width: 1080px;
  margin: 46px auto 0;
}
.theme {
  margin: 0;
}
.theme figcaption {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 500;
}
.mini {
  text-align: left;
  padding: 16px 14px;
  border-radius: var(--tr, 12px);
  height: 150px;
  background: var(--tb);
  color: var(--tt);
  border: var(--bw, 1px) solid var(--tl);
  font-family: var(--tf, var(--font));
  font-size: 12px;
  letter-spacing: 0;
  transition:
    background 0.3s,
    color 0.3s;
}
.mini b {
  display: block;
  font-family: var(--th, var(--tf, var(--font)));
  font-weight: var(--tw, 600);
  margin-bottom: 12px;
}
.mini p {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  color: var(--ts);
}
.mini .dot {
  width: 6px;
  height: 6px;
}
.theme-row[data-mode="light"] .t-graphite {
  --tb: #f6f6f8;
  --tt: #1d1d1f;
  --ts: #636368;
  --tl: rgba(0, 0, 0, 0.12);
}
.theme-row[data-mode="dark"] .t-graphite {
  --tb: #1c1c1e;
  --tt: #f5f5f7;
  --ts: #a1a1a6;
  --tl: rgba(255, 255, 255, 0.12);
}
.t-glass .mini {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  --tr: 14px;
}
.theme-row[data-mode="light"] .t-glass {
  --tb:
    linear-gradient(140deg, rgba(255, 255, 255, 0.75), rgba(230, 236, 248, 0.6)),
    linear-gradient(140deg, #b6c4e3, #e9c7d6);
  --tt: rgba(0, 0, 0, 0.88);
  --ts: rgba(0, 0, 0, 0.62);
  --tl: rgba(0, 0, 0, 0.12);
}
.theme-row[data-mode="dark"] .t-glass {
  --tb:
    linear-gradient(140deg, rgba(30, 30, 40, 0.55), rgba(20, 20, 26, 0.7)),
    linear-gradient(140deg, #3d4b78, #6b3c5a);
  --tt: #fff;
  --ts: rgba(255, 255, 255, 0.72);
  --tl: rgba(255, 255, 255, 0.2);
}
.t-paper .mini {
  --th: "New York", "Iowan Old Style", Georgia, serif;
  --tr: 10px;
}
.theme-row[data-mode="light"] .t-paper {
  --tb: #f7f3ea;
  --tt: #2b2722;
  --ts: #665e54;
  --tl: #d9d0bf;
}
.theme-row[data-mode="dark"] .t-paper {
  --tb: #23201c;
  --tt: #ede6da;
  --ts: #b5ac9e;
  --tl: rgba(255, 255, 255, 0.12);
}
.t-terminal .mini {
  --tf: var(--mono);
  --tr: 3px;
}
.theme-row[data-mode="light"] .t-terminal {
  --tb: #fafaf7;
  --tt: #1f2328;
  --ts: #57606a;
  --tl: rgba(0, 0, 0, 0.14);
}
.theme-row[data-mode="dark"] .t-terminal {
  --tb: #0c0e10;
  --tt: #d7dde2;
  --ts: #8e9aa4;
  --tl: rgba(255, 255, 255, 0.14);
}
.t-contrast .mini {
  --tw: 700;
  --bw: 1.5px;
}
.theme-row[data-mode="light"] .t-contrast {
  --tb: #fff;
  --tt: #000;
  --ts: #282828;
  --tl: rgba(0, 0, 0, 0.7);
}
.theme-row[data-mode="dark"] .t-contrast {
  --tb: #000;
  --tt: #fff;
  --ts: #e6e6e6;
  --tl: rgba(255, 255, 255, 0.7);
}

/* Tools */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.chips span {
  padding: 12px 22px;
  border-radius: 980px;
  background: #1d1d1f;
  color: var(--night-ink);
  font-size: 19px;
  font-weight: 500;
}

/* Drag */
.drag {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  text-align: left;
}
.drag h2 {
  font-size: clamp(34px, 5vw, 48px);
  margin: 0;
}
.drag .body {
  margin-top: 20px;
}
.drag-art {
  height: 340px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #2b2f3a, #15171c);
  position: relative;
  overflow: hidden;
}
.edge {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
}
.glide {
  position: absolute;
  right: 0;
  top: 30px;
  animation: glide 6s ease-in-out infinite;
}
@keyframes glide {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(190px);
  }
}

/* Download */
.download {
  background: var(--paper-2);
}
.download h2 {
  font-size: clamp(48px, 9vw, 80px);
}
.fine {
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-2);
}
.install {
  max-width: 560px;
  margin: 34px auto 0;
  text-align: left;
  font-size: 15px;
  color: var(--ink-2);
}
.install summary {
  cursor: pointer;
  color: var(--link);
  text-align: center;
  list-style: none;
}
.install summary::-webkit-details-marker {
  display: none;
}
.install summary::after {
  content: " ›";
}
.install ol {
  margin: 18px 0 0;
  padding-left: 22px;
  line-height: 1.6;
}
.install b {
  color: var(--ink);
  font-weight: 600;
}

.footer {
  background: var(--paper-2);
  border-top: 1px solid #d2d2d7;
  padding: 22px;
}
.footer p {
  max-width: var(--max);
  margin: 0 auto;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cursor,
  .pulse,
  .glide {
    animation: none;
  }
}

/* Smaller screens */
@media (max-width: 900px) {
  .tiles,
  .grid {
    grid-template-columns: 1fr;
  }
  .theme-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .drag {
    grid-template-columns: 1fr;
  }
  .screen {
    height: 500px;
  }
  .terminal {
    width: 92%;
  }
  .drawer {
    top: 130px;
  }
}
@media (max-width: 600px) {
  section {
    padding: 80px 16px;
  }
  .nav nav {
    display: none;
  }
  .nav-inner {
    justify-content: space-between;
    padding: 0 16px;
  }
  .body {
    font-size: 19px;
  }
  .screen {
    height: 460px;
  }
  .terminal pre {
    font-size: 11px;
    padding: 12px;
  }
  .drawer {
    width: 230px;
    top: 150px;
  }
  .app-icon {
    width: 96px;
    height: 96px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The Terminal install command */
.install-cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  margin: 34px auto 0;
  padding: 14px 14px 14px 20px;
  border-radius: 14px;
  background: #1d1d1f;
  text-align: left;
}
.install-cmd code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0;
  color: #f5f5f7;
}
.install-cmd .copy {
  font: inherit;
  font-size: 14px;
  border: 0;
  border-radius: 980px;
  padding: 7px 16px;
  background: var(--button);
  color: #fff;
  cursor: pointer;
}
.install-cmd .copy:hover {
  background: var(--button-hover);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
