:root {
  --void: #090a0a;
  --surface: #101211;
  --surface-raised: #151817;
  --line: #2b2e2c;
  --line-strong: #454a47;
  --paper: #f1f4ef;
  --muted: #888e8a;
  --dim: #5e6460;
  --signal: #d9ff43;
  --signal-dark: #111409;
  --danger: #ff6b5f;
  --warning: #ffcb4b;
  --display: "Barlow Condensed", "Impact", sans-serif;
  --mono: "DM Mono", "Consolas", monospace;
  --body: "Noto Sans KR", "Malgun Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--void);
  color: var(--paper);
}

html {
  font-family: var(--body);
}

body {
  min-height: 100svh;
  overflow-x: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--signal);
  color: var(--signal-dark);
  font: 600 12px var(--body);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.film-grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.85'/%3E%3C/svg%3E");
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 19;
  pointer-events: none;
  opacity: 0.12;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.018) 4px
  );
}

.gate-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 10, 0.92);
  backdrop-filter: blur(16px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--paper);
  text-decoration: none;
}

.wordmark-symbol {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--signal);
  color: var(--void);
  font: 700 18px var(--display);
  clip-path: polygon(50% 0, 100% 23%, 87% 100%, 13% 100%, 0 23%);
}

.wordmark-name {
  font: 500 13px var(--mono);
  letter-spacing: -0.035em;
}

.wordmark-name i {
  color: var(--dim);
  font-style: normal;
}

.wordmark-edition {
  padding: 3px 5px;
  background: var(--paper);
  color: var(--void);
  font: 500 8px var(--mono);
  letter-spacing: 0.08em;
}

.system-state {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font: 400 9px var(--mono);
  letter-spacing: 0.15em;
}

.state-lamp {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 13px rgba(217, 255, 67, 0.7);
}

.gate-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(420px, 0.8fr);
  min-height: calc(100svh - 72px);
}

.stage {
  position: relative;
  display: flex;
  min-height: 690px;
  padding: clamp(42px, 6vw, 96px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 67% 40%, rgba(217, 255, 67, 0.075), transparent 27%),
    linear-gradient(132deg, #0c0e0d 0%, #0a0b0b 48%, #101310 100%);
}

.stage::before {
  content: "";
  position: absolute;
  top: 10%;
  right: 8%;
  z-index: -1;
  width: min(34vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(217, 255, 67, 0.24);
  border-radius: 50%;
  box-shadow:
    0 0 0 7vw rgba(217, 255, 67, 0.012),
    0 0 0 14vw rgba(217, 255, 67, 0.009);
  animation: lens-breathe 8s ease-in-out infinite;
}

.stage::after {
  content: "";
  position: absolute;
  top: 10%;
  right: calc(8% + min(17vw, 260px));
  z-index: -1;
  width: 1px;
  height: min(34vw, 520px);
  background: linear-gradient(transparent, rgba(217, 255, 67, 0.3), transparent);
  transform: rotate(42deg);
  transform-origin: bottom;
}

.stage-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.034) 1px, transparent 1px);
  background-size: clamp(72px, 8vw, 130px) clamp(72px, 8vw, 130px);
  mask-image: linear-gradient(to right, black, transparent 88%);
}

.stage-corners i {
  position: absolute;
  width: 34px;
  height: 34px;
  opacity: 0.65;
  border-color: var(--signal);
}

.stage-corners i:nth-child(1) {
  top: 32px;
  left: 32px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.stage-corners i:nth-child(2) {
  top: 32px;
  right: 32px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.stage-corners i:nth-child(3) {
  right: 32px;
  bottom: 32px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.stage-corners i:nth-child(4) {
  bottom: 32px;
  left: 32px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.stage-index {
  position: absolute;
  top: 45px;
  right: 49px;
  display: flex;
  gap: 18px;
  color: var(--dim);
  font: 400 8px var(--mono);
  letter-spacing: 0.08em;
}

.stage-copy {
  align-self: center;
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  color: var(--muted);
  font: 500 9px var(--mono);
  letter-spacing: 0.16em;
}

.kicker span {
  color: var(--signal);
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--signal);
}

.stage-copy h1 {
  max-width: 920px;
  margin: 0;
  font: 600 clamp(74px, 9vw, 154px)/0.76 var(--display);
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.stage-copy h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px var(--signal);
  text-shadow: 0 0 45px rgba(217, 255, 67, 0.08);
}

.stage-description {
  max-width: 400px;
  margin: 38px 0 0 4px;
  color: #a9afab;
  font-size: 13px;
  line-height: 1.85;
}

.stage-footer {
  position: absolute;
  right: clamp(42px, 6vw, 96px);
  bottom: clamp(42px, 5vw, 72px);
  left: clamp(42px, 6vw, 96px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.timecode {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.timecode span {
  color: var(--dim);
  font: 400 7px var(--mono);
  letter-spacing: 0.14em;
}

.timecode strong {
  font: 400 15px var(--mono);
}

.format-strip {
  display: flex;
  gap: 17px;
  color: var(--dim);
  font: 400 8px var(--mono);
}

.access-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 690px;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 18%),
    var(--surface);
}

.panel-ruler {
  display: flex;
  align-items: center;
  gap: 0;
  height: 30px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font: 400 7px var(--mono);
}

.panel-ruler i {
  flex: 1;
  height: 5px;
  border-left: 1px solid var(--line-strong);
}

.panel-ruler i:first-of-type {
  margin-left: 12px;
}

.access-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(34px, 5vw, 74px) clamp(30px, 4vw, 64px) 36px;
}

.panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font: 500 8px var(--mono);
  letter-spacing: 0.16em;
}

.panel-label b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  font: 400 8px var(--mono);
}

.access-heading {
  margin-top: clamp(54px, 8vh, 96px);
}

.access-heading > p {
  margin: 0 0 17px;
  color: var(--signal);
  font: 500 9px var(--mono);
  letter-spacing: 0.12em;
}

.access-heading h2 {
  margin: 0;
  font: 600 clamp(48px, 4.4vw, 72px)/0.92 var(--display);
  letter-spacing: -0.035em;
}

.access-heading > span {
  display: block;
  max-width: 360px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  word-break: keep-all;
}

.auth-block {
  margin-top: clamp(40px, 7vh, 70px);
}

.auth-form { display: flex; flex-direction: column; gap: 0; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-label { color: var(--muted); font: 500 8px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.field-input {
  width: 100%; padding: 12px 14px;
  background: #0d0f0e; border: 1px solid var(--line);
  color: var(--paper); font: 400 13px var(--body);
  outline: none; transition: border-color 160ms;
}
.field-input:focus { border-color: var(--signal); }
.field-input::placeholder { color: var(--dim); }

.sso-button {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 74px;
  padding: 12px 19px;
  overflow: hidden;
  border: 0;
  background: var(--signal);
  color: var(--signal-dark);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.sso-button::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -28%;
  width: 20%;
  opacity: 0.3;
  background: linear-gradient(90deg, transparent, white, transparent);
  transform: skewX(-18deg);
  transition: left 480ms ease;
}

.sso-button:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 42px rgba(217, 255, 67, 0.12);
}

.sso-button:hover:not(:disabled)::after {
  left: 112%;
}

.sso-button:active:not(:disabled) {
  transform: translateY(0);
}

.sso-button:disabled {
  color: #757b67;
  background: #252a20;
  cursor: not-allowed;
}

.button-sigil {
  position: relative;
  display: block;
  width: 35px;
  height: 35px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.button-sigil::before,
.button-sigil::after,
.button-sigil i {
  content: "";
  position: absolute;
  background: currentColor;
}

.button-sigil::before {
  top: 16px;
  left: 6px;
  width: 21px;
  height: 1px;
}

.button-sigil::after {
  top: 6px;
  left: 16px;
  width: 1px;
  height: 21px;
}

.button-sigil i:first-child {
  top: 7px;
  left: 7px;
  width: 19px;
  height: 1px;
  transform: rotate(45deg);
  transform-origin: left;
}

.button-sigil i:last-child {
  right: 7px;
  bottom: 7px;
  width: 19px;
  height: 1px;
  transform: rotate(45deg);
  transform-origin: right;
}

.button-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.button-copy small {
  opacity: 0.7;
  font: 500 7px var(--mono);
  letter-spacing: 0.13em;
}

.button-copy strong {
  font: 600 13px var(--body);
}

.button-arrow {
  font: 400 22px var(--mono);
}

.auth-status {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 60px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #0d0f0e;
}

.status-indicator {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--muted);
}

.auth-status p {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.auth-status strong {
  color: #c7ccc8;
  font: 500 9px var(--mono);
}

.auth-status p span {
  color: var(--dim);
  font-size: 10px;
  line-height: 1.55;
}

.auth-status.is-loading .status-indicator {
  background: var(--warning);
  animation: status-pulse 1.2s ease-in-out infinite;
}

.auth-status.is-ready .status-indicator {
  background: var(--signal);
  box-shadow: 0 0 9px rgba(217, 255, 67, 0.5);
}

.auth-status.is-error .status-indicator {
  background: var(--danger);
}

.auth-status.is-error {
  border-color: rgba(255, 107, 95, 0.3);
}

.access-notes {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 42px;
}

.access-notes p {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  margin: 0;
  color: var(--dim);
  font-size: 9px;
  line-height: 1.55;
}

.access-notes p span {
  color: var(--muted);
  font: 400 8px var(--mono);
}

.panel-footer {
  display: flex;
  justify-content: space-between;
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font: 400 7px var(--mono);
  letter-spacing: 0.08em;
}

.panel-footer b {
  margin-left: 4px;
  color: var(--signal);
  font-weight: 500;
}

.noscript-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 50;
  padding: 14px;
  border: 1px solid var(--danger);
  background: #22100e;
  color: var(--paper);
  text-align: center;
  font-size: 12px;
}

.callback-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(217, 255, 67, 0.055), transparent 32%),
    var(--void);
}

.callback-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 580px);
}

.callback-brand {
  justify-content: center;
  margin-bottom: 32px;
}

.callback-card {
  position: relative;
  padding: clamp(34px, 8vw, 64px);
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018), transparent),
    var(--surface);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
}

.callback-card::before,
.callback-card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--signal);
}

.callback-card::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.callback-card::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.callback-index {
  display: flex;
  justify-content: space-between;
  margin-bottom: 54px;
  color: var(--dim);
  font: 400 8px var(--mono);
  letter-spacing: 0.13em;
}

.callback-visual {
  position: relative;
  display: grid;
  width: 80px;
  height: 80px;
  margin-bottom: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.callback-visual::before,
.callback-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.callback-visual::before {
  inset: 8px;
  border: 1px dashed var(--dim);
  animation: callback-spin 8s linear infinite;
}

.callback-visual::after {
  width: 8px;
  height: 8px;
  background: var(--warning);
  box-shadow: 0 0 13px rgba(255, 203, 75, 0.5);
  animation: status-pulse 1.2s ease-in-out infinite;
}

.callback-card.is-success .callback-visual::before {
  border-color: var(--signal);
}

.callback-card.is-success .callback-visual::after {
  background: var(--signal);
}

.callback-card.is-error .callback-visual::before {
  border-color: var(--danger);
  animation: none;
}

.callback-card.is-error .callback-visual::after {
  background: var(--danger);
  box-shadow: none;
  animation: none;
}

.callback-copy .kicker {
  margin-bottom: 16px;
}

.callback-copy h1 {
  margin: 0;
  font: 600 clamp(43px, 9vw, 64px)/0.95 var(--display);
  letter-spacing: -0.035em;
}

.callback-copy > p {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.callback-actions {
  display: none;
  gap: 9px;
  margin-top: 30px;
}

.callback-card.is-error .callback-actions {
  display: flex;
}

.callback-action {
  flex: 1;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--paper);
  font: 500 10px var(--mono);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.callback-action.primary {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--signal-dark);
}

.callback-action:hover {
  border-color: var(--paper);
}

@keyframes lens-breathe {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes status-pulse {
  50% {
    opacity: 0.35;
  }
}

@keyframes callback-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1000px) {
  .gate-layout {
    grid-template-columns: 1fr minmax(390px, 0.8fr);
  }

  .stage {
    padding: 64px 42px;
  }

  .stage-copy h1 {
    font-size: clamp(68px, 10vw, 105px);
  }

  .stage-footer {
    right: 42px;
    left: 42px;
  }

  .stage-index {
    display: none;
  }
}

@media (max-width: 760px) {
  .gate-header {
    height: 64px;
    padding: 0 16px;
  }

  .system-state,
  .wordmark-edition {
    display: none;
  }

  .gate-layout {
    display: block;
  }

  .stage {
    min-height: 44svh;
    padding: 64px 22px 78px;
  }

  .stage::before {
    top: 8%;
    right: -12%;
    width: 65vw;
  }

  .stage::after {
    display: none;
  }

  .stage-copy h1 {
    font-size: clamp(58px, 17.5vw, 94px);
  }

  .stage-description {
    margin-top: 25px;
  }

  .stage-footer {
    right: 22px;
    bottom: 22px;
    left: 22px;
  }

  .format-strip {
    display: none;
  }

  .stage-corners i:nth-child(1),
  .stage-corners i:nth-child(4) {
    left: 12px;
  }

  .stage-corners i:nth-child(2),
  .stage-corners i:nth-child(3) {
    right: 12px;
  }

  .access-panel {
    min-height: 640px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .access-heading {
    margin-top: 48px;
  }
}

@media (max-width: 440px) {
  .wordmark-name {
    font-size: 11px;
  }

  .stage {
    min-height: 510px;
  }

  .stage-copy h1 {
    line-height: 0.8;
  }

  .kicker {
    font-size: 7px;
  }

  .access-content {
    padding-right: 20px;
    padding-left: 20px;
  }

  .access-heading h2 {
    font-size: 50px;
  }

  .callback-page {
    padding: 14px;
  }

  .callback-card {
    padding: 32px 24px;
  }

  .callback-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .wordmark-symbol,
  .sso-button,
  .callback-action.primary {
    border: 1px solid ButtonText;
  }

  .stage-copy h1 em {
    color: CanvasText;
    -webkit-text-stroke: 0;
  }
}
