/* Shyobox Add Text landing: dark manga, single primary (app blue) */
:root {
  --ink: #ece8e1;
  --ink-soft: #b8b2a9;
  --muted: #857f78;
  --paper: #050408;
  --surface: rgba(16, 18, 24, 0.9);
  --line: rgba(91, 156, 245, 0.22);
  --line-strong: rgba(91, 156, 245, 0.48);
  /* Match app .dark --primary oklch(0.65 0.18 250) */
  --primary: #5b9cf5;
  --primary-fg: #0b1220;
  --primary-soft: rgba(91, 156, 245, 0.16);
  --radius: 4px;
  --font-display: "Lexend Deca", "Noto Sans KR", "Segoe UI", sans-serif;
  --font-body: "Lexend", "Noto Sans KR", "Segoe UI", sans-serif;
  --max: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[lang="ko"] {
  --font-display: "Noto Sans KR", "Lexend Deca", "Segoe UI", sans-serif;
  --font-body: "Noto Sans KR", "Lexend", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

html[lang="ko"] h1,
html[lang="ko"] h2,
html[lang="ko"] h3,
html[lang="ko"] .brand-mark,
html[lang="ko"] .hero-brand,
html[lang="ko"] .tabs button,
html[lang="ko"] .kicker,
html[lang="ko"] .shot-title {
  letter-spacing: 0;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
  min-height: 100vh;
  background-color: #050408;
  background-image:
    linear-gradient(180deg, rgba(5, 4, 8, 0.78) 0%, rgba(5, 4, 8, 0.9) 50%, rgba(5, 4, 8, 0.95) 100%),
    url("../images/background.jpg");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: #8bb8f8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  background: rgba(5, 4, 8, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--line-strong);
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: none;
}

.brand-mark span {
  color: var(--primary);
}

.lang-switch {
  display: inline-flex;
  border: 2px solid var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  cursor: pointer;
}

.lang-switch button.is-active {
  background: var(--primary);
  color: var(--primary-fg);
}

.hero {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2.25rem 0.85rem 1.4rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 840px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  color: var(--primary);
  text-shadow: 2px 2px 0 #000;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.85);
}

.hero-support {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.split-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 2px solid var(--primary);
  text-transform: none;
  background: var(--primary-soft);
  color: var(--primary);
}

.pill--muted {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
}

.hero-shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--primary);
  background: #000;
  box-shadow:
    5px 5px 0 rgba(91, 156, 245, 0.45),
    0 18px 40px rgba(0, 0, 0, 0.55);
}

.hero-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.tabs-wrap {
  width: min(100% - 2rem, var(--max));
  margin: 0.35rem auto 0;
  position: sticky;
  top: 3.1rem;
  z-index: 40;
  background: rgba(5, 4, 8, 0.94);
  backdrop-filter: blur(10px);
  padding: 0.7rem 0.85rem 0.8rem;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

.tabs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.85rem;
  margin-bottom: 0.55rem;
}

.tabs-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.tabs-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.tabs button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 2px solid var(--line-strong);
  background: rgba(16, 18, 24, 0.9);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.5rem 0.8rem;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.tabs button:hover {
  color: var(--ink);
  border-color: rgba(91, 156, 245, 0.55);
}

.tabs button.is-active {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
  box-shadow: 2px 2px 0 #000;
}

.tabs-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.tabs button.is-active .tabs-num {
  opacity: 1;
}

.panels {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.75rem 0.85rem 3.5rem;
}

.panel[hidden] {
  display: none !important;
}

.panel {
  animation: fadeIn 0.35s var(--ease);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 0.6rem;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.7);
}

.lead {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}

/* Orbital closed-loop diagram (SVG drawing + legend) */
.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;
}

.flow-orbit {
  width: min(100%, 560px);
  margin: 0.2rem auto 1.15rem;
}

.flow-orbit-stage {
  width: min(100%, 400px);
  margin: 0 auto 0.95rem;
  color: var(--primary);
  overflow: visible;
}

.flow-orbit-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.flow-orbit-legend {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.65rem;
}

.flow-orbit-legend li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: start;
  padding: 0.6rem 0.7rem;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flow-orbit-legend-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.flow-orbit-legend li div {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.flow-orbit-legend strong {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.flow-orbit-legend span {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

@media (max-width: 560px) {
  .flow-orbit-legend {
    grid-template-columns: 1fr;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 700px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.block {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 2px solid var(--line-strong);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
}

.block--primary {
  border-color: var(--primary);
  box-shadow: 3px 3px 0 rgba(91, 156, 245, 0.28);
}

.block h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.45rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.block p,
.block li {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.mt {
  margin-top: 1.15rem;
}

.section-sub {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 1.25rem 0 0.7rem;
  color: var(--ink);
}

.stack {
  display: grid;
  gap: 0.75rem;
}

.contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 860px) {
  .contrast {
    grid-template-columns: 1fr;
  }
}

.contrast-col {
  padding: 1.15rem 1.15rem 1.25rem;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
}

.contrast-col--auto {
  border-color: var(--primary);
  box-shadow: 4px 4px 0 rgba(91, 156, 245, 0.3);
}

.contrast-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.contrast-head h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.contrast-pct {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
}

.contrast-col--manual .contrast-pct {
  color: var(--ink-soft);
}

.contrast-col .steps {
  gap: 0.55rem;
}

.contrast-col .steps li {
  box-shadow: none;
  background: rgba(0, 0, 0, 0.28);
}

.contrast-col .block {
  box-shadow: none;
  background: rgba(0, 0, 0, 0.28);
}

.contrast-col .workers {
  grid-template-columns: 1fr 1fr;
}

.contrast-note {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
  counter-reset: shyobox-step;
}

.steps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.35rem 1rem;
  align-items: start;
  padding: 0.95rem 1.1rem;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
  counter-increment: shyobox-step;
}

.steps li::before {
  content: counter(shyobox-step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-fg);
  background: var(--primary);
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 2px;
  box-shadow: 2px 2px 0 #000;
}

.steps li strong {
  grid-column: 2;
}

.steps li span {
  grid-column: 2;
}

.steps strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.steps span {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.checklist {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: var(--ink-soft);
}

.checklist li + li {
  margin-top: 0.35rem;
}

.workers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

@media (max-width: 800px) {
  .workers {
    grid-template-columns: 1fr 1fr;
  }
}

.worker {
  padding: 0.85rem 0.9rem;
  background: rgba(0, 0, 0, 0.55);
  color: var(--ink-soft);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.86rem;
}

.worker strong {
  display: block;
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.shot {
  margin-top: 0.65rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--primary);
  background: #000;
  box-shadow: 4px 4px 0 rgba(91, 156, 245, 0.35);
}

.shot-wrap {
  margin-top: 1.15rem;
}

.shot-wrap .shot-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.video-wrap {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--primary);
  background: #000;
  box-shadow: 4px 4px 0 rgba(91, 156, 245, 0.35);
}

.video-skeleton {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.5rem;
  background: linear-gradient(110deg, #0c1018 28%, #162033 45%, #0c1018 62%);
  background-size: 220% 100%;
  animation: video-shimmer 1.35s ease-in-out infinite;
  transition: opacity 0.35s var(--ease);
}

.video-skeleton-bar {
  display: block;
  width: min(52%, 280px);
  height: 12px;
  border-radius: 2px;
  background: rgba(91, 156, 245, 0.28);
}

.video-skeleton-bar--short {
  width: min(34%, 180px);
  height: 10px;
  background: rgba(91, 156, 245, 0.18);
}

.video-skeleton-label {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.video-frame.is-loaded .video-skeleton {
  opacity: 0;
  pointer-events: none;
}

.video-frame.is-loaded iframe {
  opacity: 1;
}

@keyframes video-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.lead-link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.shot img {
  width: 100%;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.15rem;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.flow-node {
  min-width: 6.8rem;
  text-align: center;
  padding: 0.7rem 0.85rem;
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  border: 2px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.45);
  color: var(--ink);
}

.flow-node--web,
.flow-node--api {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.flow-node--typer,
.flow-node--ps {
  border-color: var(--primary);
  color: var(--ink);
}

.flow-arrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.api-table-wrap {
  overflow-x: auto;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.api-table th,
.api-table td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.api-table th {
  background: rgba(0, 0, 0, 0.55);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
  color: var(--primary);
}

.api-table tr:last-child td {
  border-bottom: 0;
}

.api-table code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.78rem;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.12rem 0.35rem;
  border-radius: 2px;
  white-space: nowrap;
}

.api-table td:last-child {
  color: var(--ink-soft);
}

.note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .panel {
    animation: none;
  }

  .video-skeleton {
    animation: none;
    background: #0c1018;
  }

  body {
    background-attachment: scroll;
  }
}
