@font-face {
  font-family: "Ndot55";
  src: url("https://cdn.jsdelivr.net/gh/xeji01/nothingfont@main/fonts/Ndot55-Regular.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "NType82";
  src: url("https://cdn.jsdelivr.net/gh/xeji01/nothingfont@main/fonts/NType82-Regular.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "NType82Mono";
  src: url("https://cdn.jsdelivr.net/gh/xeji01/nothingfont@main/fonts/NType82Mono-Regular.otf") format("opentype");
  font-display: swap;
}

:root,
.light,
.dark {
  --background: 0 0% 3%;
  --foreground: 0 0% 94%;
  --card: 0 0% 5%;
  --card-foreground: 0 0% 94%;
  --popover: 0 0% 5%;
  --popover-foreground: 0 0% 94%;
  --primary: 0 0% 96%;
  --primary-foreground: 0 0% 4%;
  --secondary: 0 0% 8%;
  --secondary-foreground: 0 0% 88%;
  --muted: 0 0% 10%;
  --muted-foreground: 0 0% 58%;
  --accent: 18 92% 56%;
  --accent-foreground: 0 0% 5%;
  --destructive: 0 78% 56%;
  --destructive-foreground: 0 0% 96%;
  --border: 0 0% 16%;
  --input: 0 0% 18%;
  --ring: 18 92% 56%;
  --radius: .45rem;
  --page-spotlight: 0 0% 11%;
  --page-accent: 18 80% 18%;
  --page-grid: 0 0% 18%;
  --page-shadow: 0 0% 0%;
  --nothing-dot-font: "Ndot55", "NType82Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --nothing-font: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "NType82", "NType82Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html {
  color-scheme: dark !important;
  background: #050505;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: #050505 !important;
  background-image:
    radial-gradient(circle at 16px 16px, rgba(255, 255, 255, .075) 1px, transparent 1.5px),
    linear-gradient(180deg, #050505 0%, #090909 52%, #050505 100%) !important;
  background-size: 22px 22px, auto;
  color: #f3f3f3 !important;
  font-family: var(--nothing-font) !important;
  overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
  font-family: var(--nothing-font) !important;
  letter-spacing: 0 !important;
}

#root nav {
  background: rgba(5, 5, 5, .9) !important;
  border-color: rgba(255, 255, 255, .12) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

#root nav a,
#root nav button {
  color: rgba(255, 255, 255, .72) !important;
  font-size: 11px !important;
  text-transform: uppercase;
}

#root nav a:first-child {
  font-family: var(--nothing-dot-font) !important;
  color: #fff !important;
  font-size: 14px !important;
}

#root > .min-h-screen > section:first-of-type {
  min-height: 112svh;
  padding-top: 64px;
  --mx: 50%;
  --my: 45%;
  background:
    radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 255, 255, .12), transparent 42%),
    radial-gradient(circle at 75% 28%, rgba(255, 110, 48, .14), transparent 26rem),
    radial-gradient(circle at 16% 72%, rgba(79, 196, 107, .12), transparent 20rem),
    #050505 !important;
  transition: background-position .3s ease;
}

#root > .min-h-screen > section:first-of-type::before {
  content: "";
  position: absolute;
  inset: clamp(86px, 9vw, 124px) max(24px, calc((100vw - 1500px) / 2)) clamp(34px, 7vw, 78px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    radial-gradient(circle at 22px 22px, rgba(255, 255, 255, .12) 1px, transparent 1.7px),
    linear-gradient(135deg, rgba(17, 17, 17, .95), rgba(5, 5, 5, .96));
  background-size: 25% 100%, 100% 33.33%, 16px 16px, auto;
  box-shadow: 0 28px 120px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(0, 0, 0, .8);
}

#root > .min-h-screen > section:first-of-type::after {
  content: "2026년 하반기 모집";
  position: absolute;
  top: clamp(106px, 11vw, 146px);
  left: max(48px, calc((100vw - 1420px) / 2));
  z-index: 1;
  color: rgba(255, 255, 255, .42);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em !important;
  display: none;
}

#root > .min-h-screen > section:first-of-type > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.8svh, 30px);
  position: relative;
  z-index: 3;
  max-width: min(1500px, calc(100vw - 88px));
  min-height: calc(112svh - 64px);
  padding-top: clamp(88px, 10svh, 128px);
  padding-bottom: clamp(150px, 18svh, 220px);
  text-align: left !important;
}

#root > .min-h-screen > section:first-of-type > .container::before {
  font-family: var(--nothing-dot-font) !important;
  content: "PARTS\A DESIGN / ARTS / DEV / SOUND";
  white-space: pre;
  position: static;
  order: 4;
  align-self: center;
  width: min(620px, 68vw);
  min-height: 0;
  margin-top: clamp(22px, 5svh, 56px);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 10px;
  padding: 18px 22px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(12px, .95vw, 15px);
  line-height: 1.7;
  background:
    linear-gradient(90deg, transparent 70%, rgba(255, 110, 48, .85) 70% 74%, transparent 74%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 3px, transparent 3px 12px),
    #090909;
  background-size: 100% 5px, 100% 42px, auto;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08);
  animation: nothing-panel-scan 7s cubic-bezier(.42, 0, .2, 1) infinite alternate;
}

#root > .min-h-screen > section:first-of-type > .container::after {
  content: "모집 상태\A지원 접수\A2026 H2";
  white-space: pre;
  position: absolute;
  right: max(38px, calc((100vw - 1110px) / 2));
  bottom: clamp(78px, 9vw, 120px);
  z-index: 2;
  width: min(260px, 34vw);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 10px;
  padding: 18px 20px;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  line-height: 1.55;
  background: #0b0b0b;
  display: none;
}

#root > .min-h-screen > section:first-of-type .container > div:first-child {
  width: auto;
  max-width: none !important;
  margin-left: 0;
}

#root > .min-h-screen > section:first-of-type h1,
#root > .min-h-screen > section:first-of-type p {
  max-width: 640px;
  text-align: left !important;
}

#root > .min-h-screen > section:first-of-type span.inline-block {
  border-radius: 6px !important;
  border-color: rgba(255, 110, 48, .55) !important;
  background: rgba(255, 110, 48, .12) !important;
  color: #ff7a34 !important;
  font-size: 11px !important;
  letter-spacing: .08em !important;
}

#root > .min-h-screen > section:first-of-type h1 {
  font-family: var(--nothing-dot-font) !important;
  max-width: none !important;
  margin-bottom: 0 !important;
  color: #fff !important;
  font-size: clamp(4.4rem, 6.15vw, 7.35rem) !important;
  font-weight: 900 !important;
  line-height: .96 !important;
  text-shadow: 0 0 18px rgba(255, 255, 255, .12);
  will-change: transform, opacity, filter;
}

#root > .min-h-screen > section:first-of-type h1 span:first-child {
  color: #fff !important;
}

#root > .min-h-screen > section:first-of-type h1 span:last-child {
  color: rgba(255, 255, 255, .62) !important;
}

#root > .min-h-screen > section:first-of-type p {
  width: min(780px, 72vw);
  max-width: min(780px, 68vw);
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  color: rgba(255, 255, 255, .6) !important;
}

#root > .min-h-screen > section:first-of-type .container > div:first-child > .flex {
  align-self: flex-start;
}

#root > .min-h-screen > section:first-of-type > .container > .flex {
  justify-content: flex-start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#root > .min-h-screen > section:first-of-type .rounded-full {
  border-radius: 2px !important;
  background: #d71920 !important;
  box-shadow: 0 0 16px rgba(215, 25, 32, .6);
}

.nothing-dot-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  opacity: .92;
}

.nothing-dot-field span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 999px;
  background: rgba(255, 255, 255, .3);
  box-shadow: 0 0 16px rgba(255, 255, 255, .16);
  opacity: var(--o, .26);
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0) scale(var(--scale, 1));
  transition:
    transform .45s cubic-bezier(.16, 1, .3, 1),
    opacity .45s cubic-bezier(.16, 1, .3, 1),
    background-color .45s ease;
  animation: nothing-dot-breathe 4.8s ease-in-out infinite;
  animation-delay: var(--delay);
}

.nothing-dot-field span:nth-child(5n) {
  background: rgba(255, 113, 51, .65);
}

.nothing-dot-field span:nth-child(9n) {
  background: rgba(215, 25, 32, .7);
}

#root .nothing-reveal {
  will-change: transform, opacity, filter;
}

#root a[class*="h-11"],
#root button[class*="h-11"],
#root button[type="submit"] {
  min-height: 44px;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, .17) !important;
  background: #f2f2f2 !important;
  color: #050505 !important;
  box-shadow: none !important;
  text-transform: uppercase;
}

#root a[class*="h-11"]:hover,
#root button[class*="h-11"]:hover,
#root button[type="submit"]:hover {
  background: #ff7133 !important;
  color: #050505 !important;
}

#root a[href="#/tracks"][class*="h-11"],
#root a[href="#/result"][class*="h-11"] {
  background: #0b0b0b !important;
  color: rgba(255, 255, 255, .82) !important;
}

#root section:not(:first-of-type),
#root footer {
  background: transparent !important;
}

#root section:not(:first-of-type) {
  border-top: 1px solid rgba(255, 255, 255, .08);
}

#root section:not(:first-of-type) > .container {
  max-width: min(1520px, calc(100vw - 96px)) !important;
}

#root section:not(:first-of-type) .max-w-4xl {
  max-width: min(1320px, 100%) !important;
}

#root section:not(:first-of-type) .max-w-3xl {
  max-width: min(1180px, 100%) !important;
}

#root section:not(:first-of-type) .max-w-2xl {
  max-width: min(1040px, 100%) !important;
}

#root section:not(:first-of-type) .max-w-lg {
  max-width: min(780px, 100%) !important;
}

#root section:not(:first-of-type) h2 {
  color: #fff !important;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem) !important;
  font-weight: 800 !important;
  text-align: left;
}

#root section:not(:first-of-type) .text-center {
  text-align: left !important;
}

#root section#qa .mt-12.text-center {
  text-align: center !important;
}

#root section#qa .mt-12.text-center a {
  justify-content: center !important;
}

#root .text-muted-foreground,
#root .text-foreground\/80 {
  color: rgba(255, 255, 255, .58) !important;
}

#root .text-primary,
#root .prose-a\:text-primary a {
  color: #f5f5f5 !important;
}

#root .text-accent,
#root .text-accent\/80 {
  color: #ff7133 !important;
}

#root .bg-primary,
#root .bg-accent {
  background-color: #f2f2f2 !important;
  color: #050505 !important;
}

#root .bg-secondary,
#root .bg-secondary\/20,
#root .bg-secondary\/30,
#root .bg-secondary\/40,
#root .bg-secondary\/50,
#root .bg-primary\/5,
#root .bg-primary\/10,
#root .bg-accent\/5,
#root .bg-accent\/10,
#root .bg-accent\/40,
#root .bg-card,
#root .bg-card\/50,
#root .bg-card\/60,
#root .bg-card\/70,
#root .bg-card\/80,
#root .bg-card\/85,
#root .bg-background\/70 {
  background-color: rgba(12, 12, 12, .92) !important;
}

#root .border,
#root .border-border,
#root .border-border\/30,
#root .border-border\/50,
#root .border-primary\/20,
#root .border-primary\/30,
#root .border-primary\/40,
#root .border-accent\/30,
#root .border-accent\/40 {
  border-color: rgba(255, 255, 255, .13) !important;
}

#root .rounded-2xl,
#root .rounded-xl,
#root .rounded-lg,
#root .rounded-md {
  border-radius: 10px !important;
}

#root section .rounded-2xl,
#root section .rounded-xl,
#root section .rounded-lg,
#root form,
#root [role="tabpanel"] > div {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

#root section .grid > div[class*="rounded"],
#root section .group,
#root [data-orientation="vertical"] > div,
#root form > div,
#root .prose,
#root [role="tabpanel"] > div {
  background-image:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, .08) 1px, transparent 1.5px) !important;
  background-size: 16px 16px !important;
}

#root svg {
  stroke-width: 1.7;
}

#root section .lucide {
  color: #ff7133 !important;
}

#root input,
#root textarea,
#root select {
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, .15) !important;
  background: #080808 !important;
  color: #f1f1f1 !important;
  box-shadow: none !important;
}

#root input::placeholder,
#root textarea::placeholder {
  color: rgba(255, 255, 255, .34) !important;
}

#root label {
  color: rgba(255, 255, 255, .7) !important;
  font-size: 12px !important;
}

#root section#qa button:focus,
#root section#qa [role="button"]:focus,
#root section#qa [data-radix-collection-item]:focus {
  outline: none !important;
  box-shadow: none !important;
}

#root section#qa button:focus-visible,
#root section#qa [role="button"]:focus-visible,
#root section#qa [data-radix-collection-item]:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

#root section#qa [data-state][class*="rounded-xl"]:has(button:focus-visible),
#root section#qa [data-state][class*="rounded-xl"]:has([role="button"]:focus-visible),
#root section#qa [data-state][class*="rounded-xl"]:has([data-radix-collection-item]:focus-visible) {
  border-color: rgba(255, 113, 51, .72) !important;
  box-shadow: 0 0 0 1px rgba(255, 113, 51, .72) !important;
}

#root [role="tablist"],
#root [data-radix-collection-item],
#root button[class*="px-3"] {
  border-radius: 8px !important;
  background: #0b0b0b !important;
  border-color: rgba(255, 255, 255, .12) !important;
  color: rgba(255, 255, 255, .76) !important;
}

#root [role="tab"][data-state="active"],
#root [data-radix-collection-item][data-state="active"],
#root button[aria-selected="true"] {
  background: #f2f2f2 !important;
  color: #050505 !important;
}

#root footer {
  border-color: rgba(255, 255, 255, .1) !important;
}

@media (max-width: 900px) {
  #root > .min-h-screen > section:first-of-type > .container {
    display: grid;
    grid-template-columns: 1fr;
    padding-top: 56px;
    text-align: left !important;
  }

  #root > .min-h-screen > section:first-of-type .container > div:first-child {
    display: block !important;
    min-height: 0;
  }

  #root > .min-h-screen > section:first-of-type > .container::before {
    position: static;
    order: 3;
    min-height: 260px;
    width: auto;
    margin-top: 28px;
    font-size: 13px;
  }

  #root > .min-h-screen > section:first-of-type > .container::after {
    display: none;
  }
}

@media (min-width: 901px) and (max-height: 700px) {
  #root > .min-h-screen > section:first-of-type {
    min-height: 118svh;
  }

  #root > .min-h-screen > section:first-of-type::before {
    inset: 84px max(24px, calc((100vw - 1500px) / 2)) 24px;
  }

  #root > .min-h-screen > section:first-of-type > .container {
    min-height: calc(118svh - 64px);
    padding-top: 92px;
    padding-bottom: 120px;
  }

  #root > .min-h-screen > section:first-of-type .container > div:first-child {
    justify-content: flex-start;
    gap: 14px;
    width: min(1120px, 76vw);
    min-height: 0;
    margin-left: clamp(18px, 3vw, 48px);
  }

  #root > .min-h-screen > section:first-of-type h1 {
    font-size: clamp(4rem, 5vw, 5.8rem) !important;
    line-height: .9 !important;
  }

  #root > .min-h-screen > section:first-of-type p {
    max-width: min(780px, 70vw);
    font-size: clamp(15px, 1.25vw, 20px) !important;
    line-height: 1.48 !important;
  }

  #root > .min-h-screen > section:first-of-type > .container::before {
    width: min(560px, 44vw);
    padding: 12px 16px;
    font-size: 11px;
    line-height: 1.55;
  }
}

@media (min-width: 901px) and (max-height: 560px) {
  #root > .min-h-screen > section:first-of-type .container > div:first-child {
    gap: 10px;
  }

  #root > .min-h-screen > section:first-of-type h1 {
    font-size: clamp(3.35rem, 4.6vw, 4.75rem) !important;
  }

  #root > .min-h-screen > section:first-of-type > .container::before {
    width: min(480px, 42vw);
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  #root nav .container {
    height: 58px !important;
  }

  #root > .min-h-screen > section:first-of-type::before {
    inset: 78px 12px 32px;
  }

  #root > .min-h-screen > section:first-of-type::after {
    left: 28px;
    top: 98px;
    font-size: 10px;
  }

  #root > .min-h-screen > section:first-of-type > .container {
    min-height: calc(100svh - 58px);
    width: calc(100% - 56px) !important;
    margin-left: 28px !important;
    margin-right: 28px !important;
    padding: 56px 0 34px !important;
    overflow: visible;
  }

  #root > .min-h-screen > section:first-of-type h1 {
    max-width: 100% !important;
    font-size: clamp(2.75rem, 12.4vw, 3.45rem) !important;
  }

  #root > .min-h-screen > section:first-of-type h1 span {
    display: block;
  }

  #root > .min-h-screen > section:first-of-type .flex-col,
  #root > .min-h-screen > section:first-of-type a[class*="h-11"] {
    width: min(302px, calc(100vw - 72px)) !important;
    max-width: min(302px, calc(100vw - 72px)) !important;
  }

  #root > .min-h-screen > section:first-of-type p {
    width: min(302px, calc(100vw - 72px)) !important;
    max-width: min(302px, calc(100vw - 72px)) !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
  }

  #root > .min-h-screen > section:first-of-type .flex-col {
    align-items: stretch !important;
  }

  #root > .min-h-screen > section:first-of-type > .container::before {
    content: "PARTS\A DESIGN / ARTS\A DEV / SOUND";
    width: 100%;
    min-width: 0;
    min-height: 94px;
    margin-top: 12px;
    padding: 14px 18px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.55;
  }

  #root > .min-h-screen > section:first-of-type a[class*="h-11"] {
    min-width: 0 !important;
  }

  #root section:not(:first-of-type) {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  #root section:not(:first-of-type) > .container {
    max-width: calc(100vw - 32px) !important;
  }

  #root section:not(:first-of-type) .max-w-4xl,
  #root section:not(:first-of-type) .max-w-3xl,
  #root section:not(:first-of-type) .max-w-2xl,
  #root section:not(:first-of-type) .max-w-lg {
    max-width: 100% !important;
  }
}

@keyframes nothing-panel-scan {
  0% {
    background-position: 4% 0, 0 0, 0 0;
  }
  100% {
    background-position: 96% 0, 0 0, 0 0;
  }
}

@keyframes nothing-float {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes nothing-dot-breathe {
  0%, 100% {
    opacity: var(--o, .22);
  }
  50% {
    opacity: calc(var(--o, .22) + .18);
  }
}

@media (prefers-reduced-motion: reduce) {
  #root > .min-h-screen > section:first-of-type > .container::before,
  #root > .min-h-screen > section:first-of-type > .container::after,
  .nothing-dot-field span {
    animation: none !important;
  }
}
