/* 셀로라 업데이트 — brand page on top of tokens.css + components.css (AI 오피스 family design system).
   Only tokens here: no hex values. The scene colors come from the pixel-* tokens in site.js. */
@font-face {
  font-family: 'Pretendard Variable';
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url('fonts/PretendardVariable.woff2') format('woff2-variations');
}

[hidden] {
  display: none !important;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h1, h2, h3, p, ol, dl, dd, figure {
  margin: 0;
}

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.site-nav {
  display: none;
  gap: var(--space-1);
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-h-sm);
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.site-nav a:hover {
  background: var(--bg-soft);
  color: var(--ink);
}
@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }
}

.site-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
}

/* hero: text + the pixel office */
.hero {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding-top: var(--space-5);
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.hero-lead {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 34em;
}
.hero .button-row {
  margin-top: var(--space-2);
}
.hero-art {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}
.scene-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--pixel-baseboard);
  line-height: 0;
}
#scene {
  image-rendering: pixelated;
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
  }
}

/* the latest release, as a scene-side info panel (fixed colors like the scene) */
.latest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.latest-grid div {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.latest-tags {
  color: var(--pixel-baseboard);
}

.site-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}
.section-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 44em;
}
.site-section h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* how it updates: four steps */
.steps {
  display: grid;
  gap: var(--space-4);
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  counter-increment: step;
}
.step h3::before {
  content: counter(step) ". ";
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.step-icon,
.trust-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-1);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent-strong);
}
@media (min-width: 640px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust {
  display: grid;
  gap: var(--space-5);
}
.trust-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.trust-item > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.trust-icon {
  flex: none;
  margin: 0;
}
@media (min-width: 960px) {
  .trust {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* device setup */
.setup {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin: 0;
  list-style: none;
  counter-reset: setup;
}
.setup li {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  counter-increment: setup;
}
.setup h3::before {
  content: counter(setup) ". ";
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.cmd {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.cmd pre {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 6px 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}
.cmd .btn {
  flex: none;
}
@media (max-width: 480px) {
  .cmd {
    flex-direction: column;
    align-items: stretch;
  }
}
.more-cmds dt {
  color: var(--muted);
  font-size: 0.875rem;
}
.more-cmds dd {
  font-size: 0.8125rem;
  text-align: right;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-5) var(--space-4) calc(var(--space-5) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--muted);
}
