/* Developer-first pages. Shared brand, readable content and keyboard-first navigation. */
:root {
  --dev-bg: #0b0c10;
  --dev-surface: #151820;
  --dev-surface-2: #1a1e27;
  --dev-line: #333945;
  --dev-text: #f7f8fb;
  --dev-muted: #afb7c5;
  --dev-pink: #e91e63;
  --dev-cyan: #00bcf2;
  --dev-yellow: #ffd600;
}
body.dev-home,
body.dev-docs {
  background: var(--dev-bg);
  color: var(--dev-text);
  font-family:
    "Pretendard Variable", Pretendard, Inter, "Noto Sans KR", sans-serif;
  line-height: 1.65;
}
body.dev-home::before,
body.dev-docs::before {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  inset: 0;
  background:
    radial-gradient(
      ellipse 56vw 42vw at 82% 2%,
      rgba(255, 45, 122, 0.11),
      transparent 68%
    ),
    radial-gradient(
      ellipse 44vw 32vw at 0% 43%,
      rgba(0, 188, 242, 0.055),
      transparent 75%
    );
}
.dev-shell {
  width: min(100%, 1320px);
  margin-inline: auto;
  padding-inline: clamp(22px, 5vw, 72px);
}
.dev-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 90px;
  padding: 10px clamp(22px, 5vw, 72px);
  background: rgba(11, 12, 16, 0.92);
  border-bottom: 1px solid #272b34;
  backdrop-filter: blur(16px);
}
.dev-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
}
.dev-brand img {
  width: 82px;
  height: auto;
  flex: none;
  border-radius: 7px;
  background: var(--dev-bg);
}
.dev-brand span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-left: 1px solid var(--dev-line);
  padding-left: 14px;
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.dev-brand small {
  color: var(--dev-pink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.dev-header nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  font-size: 14px;
  font-weight: 600;
}
.dev-header nav a {
  color: var(--dev-muted);
  white-space: nowrap;
}
.dev-header nav a:hover,
.dev-header nav a.current {
  color: #fff;
}
.dev-header nav a.current {
  box-shadow: 0 2px var(--dev-pink);
  padding-block: 9px;
}
.dev-header-link {
  border: 1px solid #575e6b;
  border-radius: 999px;
  color: #fff !important;
  padding: 8px 15px;
}
.dev-header-link:hover {
  border-color: var(--dev-pink);
}
.dev-home main,
.dev-docs main {
  position: relative;
  z-index: 1;
}
.dev-home h1,
.dev-home h2,
.dev-home h3,
.dev-docs h1,
.dev-docs h2,
.dev-docs h3 {
  font-family: Inter, "Pretendard Variable", sans-serif;
  letter-spacing: -0.055em;
  word-break: keep-all;
}
.dev-eyebrow,
.dev-kicker {
  color: var(--dev-pink);
  font-family: Inter, "Pretendard Variable", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
}
.dev-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--dev-pink);
  box-shadow: 0 0 14px var(--dev-pink);
  vertical-align: middle;
}
.dev-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
  align-items: center;
  gap: clamp(30px, 6vw, 96px);
  min-height: 590px;
  padding-block: clamp(80px, 12vw, 156px) 86px;
}
.dev-hero-copy h1 {
  margin: 19px 0 24px;
  font-size: clamp(58px, 6.2vw, 94px);
  line-height: 1.05;
  font-weight: 800;
}
.dev-hero-copy h1 em {
  color: var(--dev-pink);
  font-style: normal;
}
.dev-lead {
  max-width: 700px;
  color: #c4cbd7;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.7;
  word-break: keep-all;
}
.dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.dev-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 49px;
  padding: 12px 18px;
  border: 1px solid var(--dev-line);
  border-radius: 9px;
  font-weight: 800;
}
.dev-button.primary {
  color: #0b0c10;
  background: var(--dev-pink);
  border-color: var(--dev-pink);
}
.dev-button.primary:hover {
  background: #ff5b98;
}
.dev-button.secondary {
  color: #fff;
  background: #1b1e27;
}
.dev-button.secondary:hover {
  border-color: var(--dev-pink);
}
.dev-hero-note {
  margin-top: 21px;
  max-width: 660px;
  color: #8893a3;
  font-size: 13px;
}
.dev-hero-panel {
  position: relative;
  padding: 16px;
  border: 1px solid #45404a;
  border-radius: 22px;
  background: linear-gradient(145deg, #21212b, #12151b 64%);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}
.dev-hero-panel::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border: 1px solid rgba(255, 45, 122, 0.16);
  border-radius: 29px;
  transform: rotate(-4deg);
}
.dev-logo-frame {
  overflow: hidden;
  border: 1px solid #373841;
  border-radius: 13px;
  background: #0b0c10;
}
.dev-logo-frame img {
  width: 100%;
  height: auto;
}
.dev-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
  font-family: Inter, monospace;
  font-size: 11px;
  font-weight: 700;
}
.dev-flow span {
  padding: 7px 9px;
  border: 1px solid #45404a;
  border-radius: 6px;
  color: #e4e7ef;
}
.dev-flow i {
  color: var(--dev-pink);
  font-style: normal;
}
.dev-hero-panel p {
  margin: 13px 0 3px;
  color: var(--dev-muted);
  font-size: 13px;
  text-align: center;
}
.dev-section {
  padding-block: 72px;
  border-top: 1px solid #262c34;
}
.dev-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.dev-section h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.2;
}
.dev-section-head > a,
.dev-text-link {
  color: #fba6c3;
  font-weight: 700;
  white-space: nowrap;
}
.dev-section-head > a:hover,
.dev-text-link:hover {
  text-decoration: underline;
}
.dev-route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.dev-route {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 24px;
  border: 1px solid #333945;
  border-radius: 13px;
  background: linear-gradient(155deg, #1a1e27, #12151b);
}
.dev-route:hover {
  border-color: var(--dev-pink);
  transform: translateY(-3px);
  transition: 0.2s ease;
}
.dev-route-index {
  color: var(--dev-pink);
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.dev-route h3 {
  margin: 26px 0 12px;
  font-size: 21px;
  line-height: 1.25;
}
.dev-route p {
  color: var(--dev-muted);
  font-size: 14px;
  line-height: 1.6;
}
.dev-route-more {
  margin-top: auto;
  padding-top: 25px;
  color: #fba6c3;
  font-size: 13px;
  font-weight: 800;
}
.dev-workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 60px;
  align-items: center;
}
.dev-workflow p:not(.dev-kicker) {
  margin: 20px 0 25px;
  color: var(--dev-muted);
  max-width: 470px;
}
.dev-workflow pre,
.dev-doc-section pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  border: 1px solid #353c48;
  border-radius: 14px;
  background: #11151b;
  color: #d7e3ed;
  font-size: 13px;
  line-height: 1.85;
  tab-size: 2;
}
.dev-workflow code,
.dev-doc-section pre code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
.dev-clarity {
  padding-bottom: 110px;
}
.dev-clarity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.dev-clarity-grid p {
  border-left: 2px solid var(--dev-pink);
  padding-left: 18px;
}
.dev-clarity-grid strong,
.dev-clarity-grid span {
  display: block;
}
.dev-clarity-grid strong {
  font-size: 17px;
  margin-bottom: 8px;
}
.dev-clarity-grid span {
  color: var(--dev-muted);
  font-size: 14px;
  line-height: 1.65;
}
.dev-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 33px 45px;
  border-top: 1px solid #303641;
}
.dev-footer strong {
  font-family: Inter, sans-serif;
  font-size: 17px;
}
.dev-footer p,
.dev-footer small {
  color: #8b96a5;
  font-size: 12px;
}
.dev-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #b6bfcb;
  font-size: 13px;
}
.dev-footer nav a:hover {
  color: #fff;
}
/* Documentation landing page. */
.dev-doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  padding-block: 68px 96px;
}
.dev-toc {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 0 18px 19px;
  border-left: 1px solid var(--dev-line);
}
.dev-toc p {
  margin-bottom: 10px;
  color: #778494;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.dev-toc a {
  color: #a6b0bd;
  font-size: 13px;
}
.dev-toc a:hover {
  color: var(--dev-pink);
}
.dev-document {
  min-width: 0;
  max-width: 940px;
}
.dev-document section {
  max-width: none;
  margin: 0;
  padding-inline: 0;
  scroll-margin-top: 118px;
}
.dev-doc-intro {
  padding-block: 10px 68px !important;
}
.dev-doc-intro h1 {
  margin: 16px 0 20px;
  font-size: clamp(44px, 5.2vw, 68px);
}
.dev-doc-intro .dev-lead {
  font-size: 18px;
}
.dev-status-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 27px;
}
.dev-status-row span {
  padding: 7px 10px;
  border: 1px solid #3a404c;
  border-radius: 999px;
  color: #cbd1dc;
  background: #161a22;
  font-size: 12px;
}
.dev-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: middle;
}
.dev-status-dot.live {
  background: #74d9bd;
}
.dev-status-dot.contract {
  background: var(--dev-cyan);
}
.dev-status-dot.prototype {
  background: var(--dev-yellow);
}
.dev-callout {
  margin-top: 30px !important;
  padding: 15px 18px;
  border-left: 3px solid var(--dev-pink);
  background: #1a1921;
  color: #cbd1dc;
  font-size: 14px;
}
.dev-doc-section {
  padding-block: 52px !important;
  border-top: 1px solid #303641;
}
.dev-doc-section h2 {
  margin: 8px 0 22px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.23;
}
.dev-doc-section h3 {
  font-size: 20px;
}
.dev-doc-section p {
  margin: 14px 0;
  color: #c1c9d4;
  font-size: 16px;
  line-height: 1.85;
}
.dev-doc-section strong {
  color: #f4f6fa;
}
.dev-doc-section a:not(.dev-button) {
  color: #f7a6c4;
  text-decoration: underline;
  text-decoration-color: rgba(255, 45, 122, 0.35);
  text-underline-offset: 3px;
}
.dev-doc-section a:hover {
  color: #fff;
}
.dev-doc-section p code,
.dev-doc-section li code {
  border: 1px solid #3a404c;
  border-radius: 4px;
  padding: 1px 5px;
  background: #1b1f28;
  color: #f1d6e1;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.86em;
}
.dev-steps {
  margin: 22px 0;
  padding-left: 24px;
  color: #c1c9d4;
}
.dev-steps li {
  margin: 7px 0;
}
.dev-doc-section pre {
  margin: 24px 0;
}
.dev-doc-section .dev-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 23px;
  font-size: 14px;
  font-weight: 700;
}
.dev-repo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 25px;
}
.dev-repo-list > div {
  min-width: 0;
  padding: 18px;
  border: 1px solid #333945;
  border-radius: 10px;
  background: #151820;
}
.dev-repo-list strong {
  display: inline-block;
  margin-right: 10px;
  font-family: Inter, sans-serif;
  font-size: 15px;
}
.dev-repo-list span {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 4px;
  background: #2b303b;
  color: #cbd3df;
  font-size: 11px;
}
.dev-repo-list p {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.6;
}
.dev-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 23px 0;
}
.dev-compare > div {
  padding: 22px;
  border: 1px solid #3a404c;
  border-radius: 11px;
  background: #151820;
}
.dev-compare h3 {
  margin-bottom: 8px;
}
.dev-compare p {
  font-size: 14px;
}
.dev-review-note {
  margin-top: 20px;
  color: #8290a2;
  font-size: 12px;
}
@media (max-width: 1080px) {
  .dev-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dev-hero {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .dev-header nav {
    gap: 14px;
  }
}
@media (max-width: 790px) {
  .dev-header {
    flex-wrap: wrap;
    min-height: 0;
    gap: 6px 18px;
  }
  .dev-brand img {
    width: 66px;
  }
  .dev-header nav {
    width: 100%;
    overflow-x: auto;
    padding: 3px 0 7px;
  }
  .dev-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 66px 72px;
  }
  .dev-hero-panel {
    max-width: 370px;
    margin-inline: auto;
    transform: none;
  }
  .dev-workflow {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .dev-doc-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 35px;
  }
  .dev-toc {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 0 12px;
    border-left: 0;
    border-bottom: 1px solid var(--dev-line);
    white-space: nowrap;
  }
  .dev-toc p {
    display: none;
  }
  .dev-document section {
    scroll-margin-top: 140px;
  }
}
@media (max-width: 560px) {
  .dev-hero-copy h1 {
    font-size: clamp(44px, 11.2vw, 65px);
  }
  .dev-hero-panel {
    max-width: 300px;
  }
  .dev-section {
    padding-block: 52px;
  }
  .dev-section-head {
    align-items: start;
    flex-direction: column;
  }
  .dev-route-grid,
  .dev-clarity-grid,
  .dev-repo-list,
  .dev-compare {
    grid-template-columns: 1fr;
  }
  .dev-route {
    min-height: 190px;
  }
  .dev-route h3 {
    margin-top: 18px;
  }
  .dev-clarity {
    padding-bottom: 70px;
  }
  .dev-footer {
    align-items: start;
    flex-direction: column;
  }
  .dev-doc-intro {
    padding-bottom: 45px !important;
  }
  .dev-doc-section {
    padding-block: 42px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dev-route:hover {
    transform: none;
  }
}
/* Public technology pages keep their existing URLs and point to verified contracts. */
.dev-technology {
  position: relative;
  z-index: 1;
  padding-block: 65px 100px;
}
.dev-technology .dev-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 25px;
  color: #8b98a8;
  font-size: 13px;
}
.dev-technology .dev-breadcrumb a:hover {
  color: #fff;
}
.dev-technology .dev-document {
  max-width: 950px;
}
.dev-technology h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 5vw, 70px);
}
.dev-technology .dev-lead {
  margin-bottom: 40px;
}
.dev-tech-body {
  border-top: 1px solid #303641;
}
.dev-tech-body h2 {
  margin-top: 38px;
}
.dev-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dev-tech-grid a {
  display: flex;
  flex-direction: column;
  min-height: 170px;
  padding: 22px;
  border: 1px solid #333945;
  border-radius: 11px;
  background: #151820;
  text-decoration: none !important;
}
.dev-tech-grid a:hover {
  border-color: var(--dev-pink);
}
.dev-tech-grid strong {
  margin-bottom: 10px;
  color: #fff;
  font-size: 19px;
}
.dev-tech-grid span {
  color: #b4becb;
  font-size: 14px;
}
.dev-tech-grid b {
  margin-top: auto;
  padding-top: 14px;
  color: #f7a6c4;
  font-size: 13px;
}
.dev-tech-table {
  border-top: 1px solid #333945;
}
.dev-tech-table > div {
  display: grid;
  grid-template-columns: 180px 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 19px 0;
  border-bottom: 1px solid #333945;
}
.dev-tech-table strong {
  color: #fff;
}
.dev-tech-table span {
  color: #abb5c2;
  font-size: 14px;
}
@media (max-width: 790px) {
  .dev-tech-table > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
@media (max-width: 560px) {
  .dev-tech-grid {
    grid-template-columns: 1fr;
  }
  .dev-technology {
    padding-block: 40px 70px;
  }
}
