:root {
  --night: #25253b;
  --night-2: #303052;
  --violet: #8664cd;
  --violet-deep: #6c4bb8;
  --lilac: #c9b8ef;
  --lavender: #eeebf6;
  --paper: #fcfbff;
  --ink: #2e2b42;
  --mist: #615d7a;
  --line: #dedaea;
  --ok: #2f8f6b;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans KR', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--lilac);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Header sits on the night hero so the page opens as one dark band. */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(16px, 5vw, 64px);
  background: var(--night);
  color: #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--violet);
  font-size: 24px;
  line-height: 1;
}
.mark i {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lilac);
}
.top nav {
  display: flex;
  gap: 24px;
  font-size: 17px;
}
.top nav a {
  text-decoration: none;
  color: #d9d4ec;
}
.top nav a:hover {
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 5vw, 64px) clamp(56px, 8vw, 112px);
  background: var(--night);
  color: #fff;
}
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lede {
  max-width: 30em;
  margin: 0 0 36px;
  font-size: 20px;
  color: #d9d4ec;
}
.get {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 34px;
  border-radius: 16px;
  background: var(--violet);
  color: #fff;
  font-weight: 600;
  font-size: 21px;
  text-decoration: none;
  transition: background 0.15s;
}
.get:hover {
  background: var(--violet-deep);
}
.get.quiet {
  background: transparent;
  border: 2px solid #6f6a96;
}
.primary-note {
  margin: 14px 0 0;
  font-size: 16px;
  color: #b9b3d3;
}

/* The one memorable moment: a message turns into a task card. */
.scene {
  margin: 0;
}
.chat {
  position: relative;
  max-width: 460px;
  margin-left: auto;
  padding: 28px;
  border-radius: 28px;
  background: var(--night-2);
}
.bubble {
  position: relative;
  padding: 18px 20px 22px;
  border-radius: 6px 20px 20px 20px;
  background: #fff;
  color: var(--ink);
}
.who {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--mist);
}
.bubble p {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
}
.turn {
  position: absolute;
  right: 16px;
  bottom: -18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  animation: press 0.5s 0.9s ease-out both;
}
.thread {
  width: 2px;
  height: 34px;
  margin: 8px 0 8px 34px;
  background: var(--lilac);
  transform-origin: top;
  animation: grow 0.35s 1.35s ease-out both;
}
.task {
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--lavender);
  color: var(--ink);
  animation: unfold 0.55s 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.task-kind {
  font-size: 15px;
  font-weight: 600;
  color: var(--violet-deep);
}
.task b {
  display: block;
  margin: 2px 0 10px;
  font-size: 22px;
}
.task dl {
  display: flex;
  gap: 28px;
  margin: 0 0 12px;
}
.task dt {
  font-size: 14px;
  color: var(--mist);
}
.task dd {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
}
.accept {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--ok);
  font-size: 15px;
  font-weight: 600;
}
@keyframes press {
  0% { transform: scale(1); }
  45% { transform: scale(0.88); }
  100% { transform: scale(1); }
}
@keyframes grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@keyframes unfold {
  from { opacity: 0; transform: translateY(-14px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .turn, .thread, .task { animation: none; }
  html { scroll-behavior: auto; }
}

/* Devices are a list with one row per platform, not a grid of identical cards. */
.devices,
.help,
.trust {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(16px, 5vw, 48px) 0;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 20px;
}
h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.section-head p {
  margin: 0;
  color: var(--mist);
  font-size: 17px;
}
.device-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.device {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
}
.device.loading {
  display: block;
  color: var(--mist);
}
.device.mine {
  background: linear-gradient(90deg, var(--lavender), transparent 70%);
}
.glyph svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.device.pending .glyph svg {
  stroke: #a9a4bf;
}
.info h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
}
.info h3 em {
  margin-left: 8px;
  font-style: normal;
  font-size: 15px;
  font-weight: 600;
  color: var(--violet-deep);
}
.req {
  margin: 2px 0 6px;
  color: var(--mist);
  font-size: 16px;
}
.note {
  margin: 0;
  max-width: 34em;
  font-size: 17px;
}
.act {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}
.badge {
  font-size: 15px;
  font-weight: 600;
  color: var(--mist);
}
.badge.preview {
  color: var(--violet-deep);
}
.badge.ready {
  color: var(--ok);
}
.get.small {
  min-height: 52px;
  padding: 0 24px;
  font-size: 18px;
  border-radius: 13px;
}
.size {
  font-size: 15px;
  color: var(--mist);
}
.wait {
  max-width: 12em;
  font-size: 16px;
  color: var(--mist);
}
.hash {
  margin-top: 10px;
  font-size: 15px;
}
.hash summary {
  cursor: pointer;
  color: var(--violet-deep);
}
.hash code {
  display: block;
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--lavender);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.hash button {
  font: inherit;
  font-size: 15px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.help-lede {
  max-width: 40em;
  margin: 14px 0 26px;
  color: var(--mist);
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}
.help details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.help summary {
  cursor: pointer;
  font-size: 21px;
  font-weight: 600;
}
.help ol {
  margin: 14px 0 0;
  padding-left: 1.4em;
}
.help li {
  margin-bottom: 6px;
}
code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9em;
}
.verify {
  margin-top: 40px;
  padding: 26px 28px;
  border-radius: 18px;
  background: var(--lavender);
}
.verify h3 {
  margin: 0 0 6px;
  font-size: 22px;
}
.verify p {
  margin: 0 0 14px;
  max-width: 40em;
}
.verify pre {
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--night);
  color: #fff;
  overflow-x: auto;
  font-size: 16px;
}

.trust ul {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.trust li {
  border-left: 3px solid var(--violet);
  padding-left: 18px;
}
.trust b {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}
.trust span {
  color: var(--mist);
  font-size: 17px;
}
.noscript {
  font-size: 18px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  max-width: 1080px;
  margin: 96px auto 0;
  padding: 28px clamp(16px, 5vw, 48px) 40px;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 16px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .chat {
    margin: 0;
  }
  .help-grid,
  .trust ul {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 17px;
  }
  .top {
    padding: 16px;
  }
  .top nav {
    gap: 14px;
    font-size: 16px;
  }
  .lede {
    font-size: 18px;
  }
  .get {
    width: 100%;
  }
  .device {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .glyph svg {
    width: 36px;
    height: 36px;
  }
  .act {
    grid-column: 2;
    align-items: flex-start;
    text-align: left;
  }
  .get.small {
    width: auto;
  }
  .chat {
    padding: 20px;
  }
}
