@layer theme, base, components, utilities;
@layer base {
  :root {
    color-scheme: dark;
    --bg: #08090d;
    --surface: rgba(19, 21, 29, 0.72);
    --text: #f7f5ee;
    --muted: #9a9da8;
    --line: rgba(255, 255, 255, 0.1);
    --yellow: #ffd84d;
    --pointer-x: 50%;
    --pointer-y: 38%;
  }
  * {
    box-sizing: border-box;
  }
  html {
    min-width: 320px;
    background: var(--bg);
    scroll-behavior: smooth;
  }
  body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 216, 77, 0.09), transparent 25rem), radial-gradient(circle at 10% 15%, rgba(99, 230, 255, 0.08), transparent 28rem), radial-gradient(circle at 88% 82%, rgba(182, 156, 255, 0.08), transparent 32rem), var(--bg);
    font-family: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
  }
  body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    pointer-events: none;
    opacity: 0.32;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
  }
  body::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, transparent 70%, rgba(8, 9, 13, 0.9));
  }
  a {
    color: inherit;
  }
}
@layer components {
  .shell {
    width: min(1180px, 100% - 40px);
    margin: 0 auto;
  }
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
    gap: 24px;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.19em;
  }
  .brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    color: #0b0c10;
    background: var(--yellow);
    box-shadow: 0 0 28px rgba(255, 216, 77, 0.24);
    font-size: 0.78rem;
    letter-spacing: -0.04em;
  }
  .network-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8bf0ae;
    box-shadow: 0 0 0 0 rgba(139, 240, 174, 0.45);
    animation: pulse 2.4s infinite;
  }
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    align-items: end;
    gap: 48px;
    padding: clamp(72px, 11vw, 132px) 0 clamp(58px, 8vw, 92px);
  }
  .eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    color: var(--yellow);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  .eyebrow::before {
    width: 42px;
    height: 1px;
    content: "";
    background: currentColor;
  }
  h1 {
    max-width: 840px;
    margin: 0;
    font-size: clamp(3.2rem, 8vw, 6.35rem);
    font-weight: 720;
    letter-spacing: -0.075em;
    line-height: 0.9;
  }
  h1 span {
    color: transparent;
    background: linear-gradient(100deg, #fff7be 0%, var(--yellow) 38%, #ff9f43 100%);
    background-clip: text;
    -webkit-background-clip: text;
  }
  .hero-copy {
    max-width: 350px;
    margin: 0 0 4px;
    color: #b8bbc5;
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    word-break: keep-all;
  }
  .hero-copy strong {
    display: block;
    margin-bottom: 12px;
    color: var(--text);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .destinations {
    padding-bottom: 88px;
  }
  .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
  }
  .section-title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .section-count {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.75rem;
  }
  .site-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    perspective: 1200px;
  }
}
@layer components {
  .site-card {
    --mx: 50%;
    --my: 50%;
    --rx: 0deg;
    --ry: 0deg;
    position: relative;
    display: flex;
    min-height: 360px;
    overflow: hidden;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    color: var(--text);
    background: radial-gradient(circle at var(--mx) var(--my), rgba(var(--accent-rgb), 0.18), transparent 45%), linear-gradient(150deg, rgba(255, 255, 255, 0.055), transparent 38%), var(--surface);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
    transform-style: preserve-3d;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    will-change: transform;
  }
  .site-card::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.09), transparent 70%);
    transform: translateX(-100%);
    transition: opacity 200ms ease, transform 650ms ease;
  }
  .site-card:hover,
  .site-card:focus-visible {
    border-color: rgba(var(--accent-rgb), 0.55);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(var(--accent-rgb), 0.08);
  }
  .site-card:hover::before,
  .site-card:focus-visible::before {
    opacity: 1;
    transform: translateX(100%);
  }
  .site-card:focus-visible {
    outline: 3px solid rgba(var(--accent-rgb), 0.55);
    outline-offset: 4px;
  }
  .card-top,
  .card-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .card-index {
    color: rgba(255, 255, 255, 0.42);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }
  .card-mark {
    display: grid;
    min-width: 54px;
    height: 54px;
    padding: 0 10px;
    place-items: center;
    border: 1px solid rgba(var(--accent-rgb), 0.32);
    border-radius: 16px;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.09);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .card-body {
    position: relative;
    z-index: 1;
    margin: auto 0;
    padding: 44px 0 32px;
    transform: translateZ(22px);
  }
  .card-category {
    margin: 0 0 13px;
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
  }
  .card-title {
    margin: 0 0 15px;
    font-size: clamp(1.55rem, 2.5vw, 2.1rem);
    letter-spacing: -0.045em;
    line-height: 1.12;
  }
  .card-description {
    max-width: 31ch;
    margin: 0;
    color: #aeb1bc;
    font-size: 0.95rem;
    line-height: 1.75;
    word-break: keep-all;
  }
  .card-footer {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #858994;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.7rem;
  }
  .launch-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #0b0c10;
    background: var(--accent);
    font-family: "Segoe UI Symbol", sans-serif;
    font-size: 1rem;
    transition: transform 180ms ease;
  }
  .site-card:hover .launch-icon,
  .site-card:focus-visible .launch-icon {
    transform: translate(3px, -3px);
  }
}
@layer components {
  .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 104px;
    border-top: 1px solid var(--line);
    color: #717580;
    font-size: 0.78rem;
  }
  .footer strong {
    color: #c9cbd1;
    letter-spacing: 0.08em;
  }
}
@layer components {
  .js .site-card {
    opacity: 0;
    animation: card-in 700ms cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
    animation-delay: calc(var(--order) * 90ms + 180ms);
  }
  @keyframes card-in {
    from {
      opacity: 0;
      transform: translateY(24px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  @keyframes pulse {
    70% {
      box-shadow: 0 0 0 8px rgba(139, 240, 174, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(139, 240, 174, 0);
    }
  }
}
@layer components {
  @media (max-width: 940px) {
    .hero {
      grid-template-columns: 1fr;
      align-items: start;
      gap: 34px;
    }
    .hero-copy {
      max-width: 520px;
    }
    .site-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 660px) {
    .shell {
      width: min(100% - 28px, 1180px);
    }
    .topbar {
      min-height: 76px;
    }
    .network-status span:last-child {
      display: none;
    }
    .hero {
      padding: 64px 0 52px;
    }
    h1 {
      font-size: clamp(3rem, 15vw, 4.6rem);
    }
    .site-grid {
      grid-template-columns: 1fr;
    }
    .site-card {
      min-height: 324px;
      padding: 24px;
      border-radius: 20px;
    }
    .destinations {
      padding-bottom: 56px;
    }
    .footer {
      align-items: flex-start;
      flex-direction: column;
      justify-content: center;
      gap: 4px;
      min-height: 112px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
    }
    .site-card {
      transform: none !important;
    }
  }
}
