:root {
  --bg: #071018;
  --bg-soft: #0b1721;
  --panel: #101f2a;
  --panel-2: #142a36;
  --text: #f5f0df;
  --muted: #a9b8be;
  --gold: #e0ae3c;
  --gold-bright: #f6ce68;
  --teal: #3fb6a6;
  --danger: #e88f72;
  --line: rgba(224, 174, 60, 0.22);
  --max: 1180px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% -10%, rgba(63, 182, 166, 0.14), transparent 34rem),
    radial-gradient(circle at -10% 20%, rgba(224, 174, 60, 0.12), transparent 30rem),
    var(--bg);
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  word-break: normal;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.18;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  font-weight: 600;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 1rem;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(2.2rem, 4.5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.15rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: #071018;
  background: var(--gold-bright);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 20;
  width: min(calc(100% - 2rem), var(--max));
  min-height: 5.8rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.7rem;
  box-shadow: 0 0 0 4px rgba(224, 174, 60, 0.1);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--gold-bright);
}

.nav-cta {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 48rem;
  margin: 0 auto;
  padding: 5rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(25rem, 0.82fr);
  align-items: center;
  gap: 5rem;
}

.official-banner {
  width: fit-content;
  margin-bottom: 2.2rem;
  padding: 0.65rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #d7e6e6;
  background: rgba(63, 182, 166, 0.08);
  border: 1px solid rgba(63, 182, 166, 0.32);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.official-banner:hover {
  color: #fff;
  border-color: var(--teal);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lede {
  max-width: 42rem;
  color: #cdd7d9;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.lede strong {
  color: var(--text);
}

.actions {
  margin: 2rem 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, filter 150ms ease, border-color 150ms ease;
}

.button.primary {
  color: #071018;
  background: linear-gradient(135deg, var(--gold-bright), #c88b26);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line);
}

.button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-row span {
  padding: 0.35rem 0.65rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.76rem;
}

.hero-visual {
  position: relative;
  height: 38rem;
  display: grid;
  place-items: center;
}

.phone {
  position: absolute;
  width: 15rem;
  padding: 0.42rem;
  overflow: hidden;
  background: #030608;
  border: 1px solid rgba(246, 206, 104, 0.45);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.phone img {
  border-radius: 1.1rem;
}

.phone-front {
  right: 2rem;
  z-index: 2;
  transform: rotate(3deg);
}

.phone-back {
  left: 1rem;
  z-index: 1;
  opacity: 0.76;
  transform: rotate(-8deg) scale(0.9);
}

.status-strip {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status-strip div {
  min-height: 8rem;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
}

.status-strip div:last-child {
  border-right: 0;
}

.status-strip strong {
  display: block;
  color: var(--gold-bright);
  font-family: Georgia, serif;
  font-size: 2rem;
}

.status-strip span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.section {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 7rem 0;
}

.section-heading {
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 4rem;
}

.section-heading > p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
}

.feature-card {
  min-height: 20rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  background: linear-gradient(150deg, rgba(20, 42, 54, 0.95), rgba(9, 20, 29, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.feature-card h3 {
  margin-top: auto;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-number {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 2rem;
}

.quality-section,
.roadmap-section {
  padding-right: 3rem;
  padding-left: 3rem;
  background: linear-gradient(145deg, rgba(16, 31, 42, 0.95), rgba(7, 16, 24, 0.9));
  border: 1px solid var(--line);
}

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

.qa-note {
  margin: -1rem 0 2rem;
  padding: 0.85rem 1rem;
  color: #c9d4d6;
  background: rgba(63, 182, 166, 0.06);
  border-left: 3px solid var(--teal);
  font-size: 0.82rem;
}

.qa-card {
  min-height: 13rem;
  padding: 1.4rem;
  background: #09141d;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.qa-card strong,
.qa-card span {
  display: block;
}

.qa-card strong {
  color: var(--gold-bright);
  font-family: Georgia, serif;
  font-size: 2rem;
}

.qa-card span {
  margin: 0.45rem 0 1.25rem;
  font-weight: 800;
}

.qa-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.boundary-grid,
.release-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.boundary-grid article,
.release-grid article {
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-badge {
  width: fit-content;
  margin-bottom: 1.15rem;
  padding: 0.3rem 0.55rem;
  display: inline-flex;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 850;
}

.status-badge.complete {
  color: #c7fff4;
  background: rgba(63, 182, 166, 0.14);
  border: 1px solid rgba(63, 182, 166, 0.35);
}

.status-badge.guarded {
  color: #ffe6a8;
  background: rgba(224, 174, 60, 0.12);
  border: 1px solid rgba(224, 174, 60, 0.32);
}

.status-badge.pending {
  color: #ffd9cd;
  background: rgba(232, 143, 114, 0.12);
  border: 1px solid rgba(232, 143, 114, 0.35);
}

.check-list,
.pending-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.pending-list li {
  position: relative;
  margin: 0.75rem 0;
  padding-left: 1.65rem;
  color: var(--muted);
}

.check-list li::before,
.pending-list li::before {
  position: absolute;
  left: 0;
  font-weight: 900;
}

.check-list li::before {
  content: "✓";
  color: var(--teal);
}

.pending-list li::before {
  content: "○";
  color: var(--danger);
}

.gallery-section {
  border-top: 1px solid var(--line);
}

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

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 1px solid rgba(246, 206, 104, 0.28);
  border-radius: 0.75rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.gallery figcaption {
  padding-top: 1rem;
}

.gallery figcaption strong,
.gallery figcaption span {
  display: block;
}

.gallery figcaption span {
  color: var(--muted);
  font-size: 0.8rem;
}

.release-grid article {
  min-height: 24rem;
}

.release-note {
  margin: 1.25rem 0 0;
  padding: 1rem 1.2rem;
  color: #d6cbb2;
  background: rgba(224, 174, 60, 0.07);
  border-left: 3px solid var(--gold);
  font-size: 0.88rem;
}

.architecture {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.architecture-node {
  min-height: 9.5rem;
  padding: 1.3rem;
  background: #09141d;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.architecture-node.accent {
  background: rgba(224, 174, 60, 0.07);
  border-color: rgba(224, 174, 60, 0.65);
}

.architecture-node span,
.architecture-node strong,
.architecture-node small {
  display: block;
}

.architecture-node span {
  margin-bottom: 1.2rem;
  color: var(--gold-bright);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.architecture-node small {
  margin-top: 0.4rem;
  color: var(--muted);
}

.architecture-arrow {
  color: var(--gold);
  font-weight: 850;
}

.source-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  border-bottom: 1px solid var(--line);
}

.source-list {
  display: grid;
  gap: 1rem;
}

.source-list a {
  padding: 1.4rem;
  display: block;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.source-list a:hover {
  border-color: var(--gold);
}

.source-list span,
.source-list strong,
.source-list small {
  display: block;
}

.source-list span {
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 800;
}

.source-list strong {
  margin: 0.45rem 0 0.7rem;
}

.source-list small {
  color: var(--muted);
}

.english-summary {
  max-width: 880px;
}

.roadmap-section .tag-row {
  margin-top: 2rem;
  align-items: center;
}

.roadmap-section .status-badge {
  margin: 0;
}

.english-summary > p:not(.eyebrow) {
  color: var(--muted);
}

.cta-section {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto 6rem;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(224, 174, 60, 0.14), rgba(63, 182, 166, 0.08));
  border: 1px solid var(--line);
}

.cta-section h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.site-footer {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 3rem 0 4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 4rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

.site-footer strong {
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.disclaimer {
  max-width: 72rem;
  margin-bottom: 0;
  font-size: 0.75rem;
}

.legal-notices {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.75rem;
}

.legal-notices .disclaimer {
  margin: 0;
}

.policy-main {
  width: min(calc(100% - 2rem), 860px);
  margin: 0 auto;
  padding: 6rem 0 8rem;
}

.policy-main h1 {
  max-width: none;
  font-size: clamp(3rem, 7vw, 5rem);
}

.policy-meta {
  margin-bottom: 3rem;
  padding: 1rem 1.2rem;
  color: var(--muted);
  background: var(--panel);
  border-left: 3px solid var(--gold);
}

.policy-main section {
  margin-top: 3.2rem;
}

.policy-main h2 {
  font-size: 2rem;
}

.policy-main p,
.policy-main li {
  color: #c2ced1;
}

.policy-main a {
  color: var(--gold-bright);
}

.policy-main .english-summary {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--line);
}

.contact-cards {
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-card {
  padding: 1.4rem;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-card span,
.contact-card strong {
  display: block;
}

.contact-card span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.contact-card a {
  margin-top: 0.5rem;
  display: inline-block;
}

.contact-notice {
  padding: 1.5rem;
  background: rgba(232, 143, 114, 0.07);
  border: 1px solid rgba(232, 143, 114, 0.25);
}

@media (max-width: 900px) {
  .site-header {
    padding: 1rem 0;
    align-items: flex-start;
  }

  nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
  }

  nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-top: 4rem;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    width: 100%;
    max-width: 28rem;
    height: 34rem;
    margin: 0 auto;
  }

  .status-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .status-strip div {
    border-bottom: 1px solid var(--line);
  }

  .feature-grid,
  .qa-grid,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading,
  .source-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .architecture {
    grid-template-columns: 1fr;
  }

  .architecture-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

@media (max-width: 620px) {
  body {
    word-break: normal;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
  }

  .brand span:last-child {
    max-width: 10rem;
    line-height: 1.25;
  }

  .hero {
    min-height: 0;
  }

  .official-banner {
    align-items: flex-start;
    border-radius: 0.5rem;
  }

  .hero-visual {
    height: 27rem;
  }

  .phone {
    width: 11.5rem;
  }

  .phone-front {
    right: 0.5rem;
  }

  .phone-back {
    left: 0.25rem;
  }

  .status-strip {
    grid-template-columns: 1fr 1fr;
  }

  .status-strip div {
    min-height: 6.8rem;
    padding: 1rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .feature-grid,
  .qa-grid,
  .gallery,
  .boundary-grid,
  .release-grid,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 15rem;
  }

  .gallery {
    max-width: 22rem;
    margin: 0 auto;
  }

  .quality-section,
  .roadmap-section {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    border-right: 0;
    border-left: 0;
  }

  .release-grid article {
    min-height: 0;
  }

  .cta-section {
    padding: 2rem 1.25rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .legal-notices {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Current physical-device app preview */
.media-showcase {
  border-top: 1px solid var(--line);
}

.media-showcase-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(20rem, 1.28fr);
  align-items: start;
  gap: 2rem;
}

.media-showcase figure {
  margin: 0;
}

.media-showcase img,
.media-showcase video {
  display: block;
  width: 100%;
  background: #030608;
  border: 1px solid rgba(246, 206, 104, 0.28);
  border-radius: 0.85rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.main-screen-preview img {
  max-height: 48rem;
  object-fit: contain;
}

.video-preview video {
  aspect-ratio: 9 / 16;
  max-height: 48rem;
  object-fit: contain;
}

.media-showcase figcaption {
  padding-top: 1rem;
}

.media-showcase figcaption strong,
.media-showcase figcaption span {
  display: block;
}

.media-showcase figcaption span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
}

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

  .main-screen-preview img,
  .video-preview video {
    max-height: none;
  }
}

/* ===== CLASSIC-FANTASY PUBLIC ARCHIVE =====
   Project-owned CSS geometry only: no extracted Riot/client decoration. */
:root {
  color-scheme: dark;
  --bg: #080d12;
  --bg-soft: #0d141a;
  --panel: #12191d;
  --panel-2: #1b211f;
  --text: #efe4c4;
  --muted: #b9b09a;
  --gold: #a9853f;
  --gold-bright: #d6b867;
  --teal: #a9853f;
  --danger: #b47758;
  --line: rgba(181, 148, 74, 0.52);
  --max: 1240px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.48);
}

body {
  font-family: "Segoe UI", "Noto Sans KR", Arial, sans-serif;
  font-size: 16px;
  background:
    linear-gradient(90deg, rgba(194, 158, 76, 0.035) 1px, transparent 1px) 0 0 / 34px 34px,
    repeating-linear-gradient(0deg, rgba(255,255,255,0.014) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 86% 0, rgba(126, 91, 39, 0.16), transparent 30rem),
    var(--bg);
}

h1,
h2 {
  color: #f1e6c7;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

h1 {
  max-width: 20ch;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.site-header {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 4.9rem;
  margin-top: 1rem;
  padding: 0 1rem;
  background: linear-gradient(180deg, #1b211f, #10171a);
  border: 1px solid #806a3b;
  box-shadow: inset 0 0 0 1px #25251d, var(--shadow);
}

.brand {
  color: #efe1b7;
  font-family: inherit;
  letter-spacing: 0.015em;
  min-width: 0;
  line-height: 1.4;
}

.brand-icon {
  width: 3rem;
  height: 3rem;
  padding: 2px;
  background: #070d12;
  border: 1px solid #8d733d;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px #26251c;
}

nav {
  gap: 0;
}

nav a {
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  display: inline-flex;
  align-items: center;
  color: #c8bea7;
  border-left: 1px solid rgba(181, 148, 74, 0.25);
}

.nav-cta,
.official-banner,
.button,
.tag-row span,
.status-badge {
  border-radius: 0;
}

.nav-cta {
  border: 1px solid #715e35;
}

.hero {
  min-height: 0;
  padding: 1.5rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 1.5rem;
  border-right: 1px solid rgba(181, 148, 74, 0.22);
  border-left: 1px solid rgba(181, 148, 74, 0.22);
}

.hero-copy {
  position: relative;
  padding: 2rem;
  color: #302b1e;
  background: radial-gradient(ellipse at 50% 20%, #f3e7c6, #d6c28b);
  border: 3px double #79653a;
}

.archive-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin: -2rem -2rem 1.5rem;
  padding: 0.8rem 1rem;
  color: #e9d9ad;
  background: linear-gradient(#29302c, #141a18);
  border-bottom: 2px solid #8d733d;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.archive-heading span { color: #c1baa5; font-weight: 400; letter-spacing: 0; }
.hero-copy h1, .hero-copy .lede strong { color: #29271d; }
.hero-copy .lede { color: #453e2b; font-size: 1rem; }
.hero-copy .eyebrow { color: #67501f; font-family: inherit; letter-spacing: 0.05em; }
.hero-copy .tag-row span { color: #4b422c; background: #e6d7ad; border-color: #a18c59; }
.hero-copy .official-banner { font-size: 0.875rem; }
.hero-copy .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-copy .button { text-align: center; padding-inline: 0.65rem; }

.hero-copy::before,
.hero-copy::after,
.feature-card::before,
.feature-card::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-color: #c2a052;
  pointer-events: none;
}

.hero-copy::before,
.feature-card::before {
  top: 0.45rem;
  left: 0.45rem;
  border-top: 1px solid;
  border-left: 1px solid;
}

.hero-copy::after,
.feature-card::after {
  right: 0.45rem;
  bottom: 0.45rem;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.official-banner {
  margin-bottom: 1.4rem;
  color: #dfd1ad;
  background: #151b1b;
  border: 1px solid #705d34;
}

.official-banner:hover {
  color: #fff1c6;
  border-color: var(--gold-bright);
}

.eyebrow {
  color: var(--gold-bright);
  font-family: Georgia, "Noto Serif KR", serif;
  letter-spacing: 0.16em;
}

.lede,
.section-heading > p,
.english-summary > p:not(.eyebrow) {
  color: #c9c0aa;
}

.actions {
  margin-top: 1.5rem;
}

.button {
  min-height: 2.75rem;
  border-color: #765f32;
}

.button.primary {
  color: #211909;
  background: linear-gradient(#dfc474, #a47e32);
  box-shadow: inset 0 0 0 1px rgba(255,246,205,.32);
}

.button.secondary,
.tag-row span {
  color: #d4cab1;
  background: #171d1d;
  border-color: #5e5234;
}

.hero-visual {
  height: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 3px double #685a38;
  background:
    linear-gradient(135deg, transparent 49.7%, rgba(179,145,67,.16) 49.8% 50.2%, transparent 50.3%),
    radial-gradient(circle at center, rgba(151, 111, 45, 0.16), transparent 56%),
    #0b1116;
}

.phone,
.phone img {
  border-radius: 0;
}

.phone {
  position: static;
  width: 100%;
  min-width: 0;
  padding: 0.38rem;
  border: 3px double #a08443;
  background: #05090c;
}

.phone-front {
  transform: none;
}

.phone-back {
  opacity: 1;
  transform: none;
}

.status-strip {
  background: #101719;
  border: 3px double #6e5c36;
}

.status-strip div {
  min-width: 0;
  min-height: 6.9rem;
  padding: 1.15rem;
}

.status-strip strong {
  color: #d5b75f;
  font-size: clamp(1.1rem, 1.8vw, 1.65rem);
  overflow-wrap: anywhere;
}

.section {
  padding: 4.5rem 0;
}

.section-heading {
  margin-bottom: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 3px double #655735;
}

.feature-grid {
  gap: 0.75rem;
}

.feature-card {
  position: relative;
  min-height: 15rem;
  background: linear-gradient(150deg, #1c211e, #0f171a);
  border: 3px double #5e5237;
}

.quality-section,
.roadmap-section,
.cta-section {
  background: linear-gradient(145deg, #171e1e, #0c1318);
  border: 3px double #6a5935;
}

.boundary-grid article,
.release-grid article,
.qa-card,
.architecture-node,
.source-list a,
.contact-card,
.contact-notice,
.policy-meta {
  background: linear-gradient(145deg, #171e1e, #10171a);
  border: 1px solid #574c34;
  border-radius: 0;
}

.status-badge.complete,
.status-badge.guarded,
.status-badge.pending {
  color: #2b210f;
  background: #d6c184;
  border: 1px solid #917842;
}

.check-list li::before {
  color: var(--gold-bright);
}

.qa-note,
.release-note {
  color: #d9cfb6;
  background: rgba(154, 116, 50, 0.11);
  border-left-color: #a7843d;
}

.gallery,
.media-showcase-grid {
  gap: 1rem;
}

.media-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.main-screen-preview img,
.video-preview video { width: min(100%, 22rem); max-height: none; margin-inline: auto; }
.video-preview video { aspect-ratio: 1080 / 1920; object-fit: contain; }
.gallery img { aspect-ratio: 1080 / 1920; object-fit: contain; }
.button:hover { transform: none; }

.gallery figure,
.media-showcase figure {
  padding: 0.55rem;
  background: #0d1317;
  border: 1px solid #594c31;
}

.gallery img,
.media-showcase img,
.media-showcase video {
  border: 3px double #8b713b;
  border-radius: 0;
  box-shadow: var(--shadow);
}

.gallery figcaption,
.media-showcase figcaption {
  padding: 0.8rem 0.35rem 0.3rem;
}

.feature-graphic-preview {
  grid-column: 1 / -1;
}

.feature-graphic-preview img {
  aspect-ratio: 1024 / 500;
  object-fit: cover;
}

.cta-section {
  margin-bottom: 4rem;
  padding: 2.4rem;
}

.site-footer {
  padding-top: 2.4rem;
  border-top: 3px double #6a5935;
}

.policy-main {
  width: min(calc(100% - 2rem), 960px);
  padding: 4.5rem 0 6rem;
}

.policy-main h1 {
  padding-bottom: 1.2rem;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  border-bottom: 3px double #6f5c35;
}

.policy-main section {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(16, 23, 26, 0.84);
  border: 1px solid #4f4632;
}

.policy-main .english-summary {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 3px double #6f5c35;
}

.policy-main p,
.policy-main li {
  color: #cec5b0;
}

@media (max-width: 900px) {
  .site-header {
    align-items: center;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .site-header nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 0.35rem; }
  .site-header nav a, .site-header nav a:not(.nav-cta) { display: inline-flex; justify-content: center; padding: 0.55rem; border: 1px solid #715e35; background: #1d2523; }

  .hero {
    padding: 2rem 1rem;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: calc(100% - 1rem);
    margin-top: 0.5rem;
    padding: 0.65rem;
  }

  .brand-icon {
    width: 2.65rem;
    height: 2.65rem;
  }

  .hero {
    width: calc(100% - 1rem);
    padding: 1rem 0;
    border: 0;
  }

  .hero-copy {
    padding: 1.25rem;
    min-width: 0;
  }

  .archive-heading { margin: -1.25rem -1.25rem 1.25rem; }

  h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .hero-visual {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 0.65rem;
    gap: 0.5rem;
  }

  .phone {
    width: 100%;
  }

  .media-showcase-grid { grid-template-columns: minmax(0, 1fr); }

  .phone-front {
    right: 0.15rem;
  }

  .phone-back {
    left: 0.15rem;
  }

  .official-banner {
    max-width: 100%;
  }

  .section {
    width: calc(100% - 1rem);
    padding: 3.5rem 0;
  }

  .quality-section,
  .roadmap-section {
    width: calc(100% - 1rem);
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    border: 3px double #6a5935;
  }

  .status-strip {
    width: calc(100% - 1rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-strip div {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .status-strip strong {
    font-size: 1.3rem;
    white-space: nowrap;
  }

  .policy-main {
    width: calc(100% - 1rem);
    padding-top: 3rem;
  }

  .policy-main section {
    padding: 1rem;
  }
}

/* Keep archive panels and text comfortably inside the viewport. */
:root {
  --page-gutter: calc(clamp(1.25rem, 3vw, 2.5rem) + 0.5rem);
}

.site-header,
.hero,
.status-strip,
.section,
.cta-section,
.site-footer,
.data-status {
  width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), var(--max));
}

.policy-main {
  width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), 960px);
}

/* Give text an extra space inside the archive frames. */
.site-header,
.archive-heading {
  padding-inline: 1.5rem;
}

.feature-card,
.boundary-grid article,
.release-grid article,
.contact-card,
.contact-notice,
.policy-main section {
  padding-inline: 2rem;
}

.policy-meta {
  padding-inline: 1.7rem;
}

.gallery figcaption,
.media-showcase figcaption {
  padding-inline: 0.85rem;
}

.site-footer {
  padding-inline: 0.5rem;
}

/* The later .section shorthand resets these framed sections on desktop. */
.quality-section,
.roadmap-section {
  padding-inline: clamp(1.5rem, 3vw, 2.5rem);
}

.data-status {
  margin: 0 auto 0.7rem;
  padding-left: 0.25rem;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading > p {
  max-width: 58ch;
}

.patch-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: calc(clamp(1.5rem, 3vw, 2.5rem) + 0.5rem);
  border: 1px solid var(--line);
  background: linear-gradient(125deg, rgba(224, 174, 60, 0.1), rgba(63, 182, 166, 0.05));
}

.patch-callout > div {
  max-width: 62ch;
}

.patch-callout h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.patch-callout p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.patch-callout .button {
  flex: none;
}

.pc-beta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: calc(clamp(1.5rem, 3vw, 2.5rem) + 0.5rem);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(63, 182, 166, 0.13), rgba(224, 174, 60, 0.08));
}

.pc-beta-section > div {
  max-width: 64ch;
}

.pc-beta-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.pc-beta-section p:last-child {
  margin-bottom: 0;
}

.pc-beta-section .pc-beta-limit {
  color: var(--muted);
}

.pc-beta-section > .status-badge {
  flex: none;
  max-width: 16rem;
  margin: 0;
  text-align: center;
}

@media (max-width: 620px) {
  .site-header {
    padding-inline: 1.15rem;
  }

  .policy-main section {
    padding-inline: 1.5rem;
  }

  .pc-beta-section {
    display: block;
  }

  .pc-beta-section > .status-badge {
    margin-top: 1.25rem;
  }

  .patch-callout {
    display: block;
  }

  .patch-callout .button {
    display: inline-flex;
    margin-top: 1.25rem;
  }

  .cta-section {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .release-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .release-grid code {
    overflow-wrap: anywhere;
  }

  .status-strip strong {
    font-size: clamp(1rem, 5vw, 1.3rem);
    white-space: normal;
  }
}
