:root {
  --bg: #07090f;
  --bg-2: #0c1220;
  --ink: #e8eef7;
  --ink-dim: #9aa6bd;
  --accent: #ff3b3b;
  --accent-2: #28e0ff;
  --line: rgba(255,255,255,0.08);
  --card: rgba(255,255,255,0.03);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.display { font-family: 'Orbitron', 'Noto Sans KR', sans-serif; letter-spacing: 0.02em; }

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 9, 15, 0.55);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease;
}
nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
nav .brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 59, 59, 0.35));
}
nav .brand span {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.18em;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
}
nav ul a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
nav ul a:hover { color: var(--ink); }
nav ul a:hover::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
}
nav .menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../bg.png') center/cover no-repeat;
  transform: scale(1.08);
  filter: saturate(1.05);
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, transparent 0%, rgba(7,9,15,0.4) 50%, rgba(7,9,15,0.95) 100%),
    linear-gradient(180deg, rgba(7,9,15,0.5) 0%, rgba(7,9,15,0.2) 30%, rgba(7,9,15,0.9) 100%);
  z-index: -1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(40, 224, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 224, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  z-index: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--accent-2);
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid rgba(40, 224, 255, 0.3);
  border-radius: 999px;
  margin-bottom: 28px;
  background: rgba(40, 224, 255, 0.05);
}
.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #c0cfe8 60%, #6a7a96 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(40, 224, 255, 0.15);
}
.hero h1 .accent {
  background: linear-gradient(180deg, #ff5757 0%, #ff3b3b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ink-dim);
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 300;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}
.btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 30px rgba(255, 59, 59, 0.3);
}
.btn.primary:hover {
  background: #ff5757;
  box-shadow: 0 12px 40px rgba(255, 59, 59, 0.45);
}
.btn svg { width: 14px; height: 14px; }

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--ink-dim);
  text-transform: uppercase;
  z-index: 1;
}
.scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, var(--accent-2), transparent);
  margin: 14px auto 0;
  animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============ SECTIONS ============ */
section { padding: 140px 40px; position: relative; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--accent-2);
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
.section-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent-2);
}
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 28px;
  color: var(--ink);
}
.section-title .accent {
  color: var(--accent);
}
.section-desc {
  font-size: 1.05rem;
  color: var(--ink-dim);
  max-width: 720px;
  line-height: 1.8;
  font-weight: 300;
}

/* ============ ABOUT ============ */
.about {
  background: var(--bg);
  position: relative;
}
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(40, 224, 255, 0.06), transparent 50%);
  pointer-events: none;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.about-visual {
  aspect-ratio: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(40, 224, 255, 0.04), transparent 60%),
    radial-gradient(circle at center, rgba(255, 59, 59, 0.08), transparent 70%);
}
.about-visual::after {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid var(--line);
  opacity: 0.5;
}
.about-visual img {
  width: 60%;
  max-width: 280px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(255, 59, 59, 0.3));
  position: relative;
  z-index: 1;
}
.corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--accent-2);
}
.corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ============ FEATURES ============ */
.features {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.feature-card {
  padding: 36px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  position: relative;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: rgba(40, 224, 255, 0.3);
  background: rgba(40, 224, 255, 0.03);
  transform: translateY(-4px);
}
.feature-card .num {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.3em;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--ink);
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--ink-dim);
  line-height: 1.7;
  font-weight: 300;
}

/* ============ SCREENSHOTS ============ */
.screenshots { background: var(--bg-2); }

.video-frame {
  margin-top: 60px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: #0a0e1a;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(40, 224, 255, 0.08);
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-frame .corner { z-index: 3; }
.video-frame .caption {
  position: absolute;
  left: 28px;
  top: 22px;
  z-index: 2;
  pointer-events: none;
}
.video-frame .caption small {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  color: var(--accent-2);
  letter-spacing: 0.35em;
  margin-bottom: 6px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.video-frame .caption strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}
.video-frame .live-tag {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(7, 9, 15, 0.6);
  border: 1px solid rgba(255, 59, 59, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--ink);
  text-transform: uppercase;
  pointer-events: none;
}
.video-frame .live-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.5s infinite;
}

.clip-tabs {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.clip-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.clip-tab:hover {
  color: var(--ink);
  border-color: rgba(255,255,255,0.2);
}
.clip-tab.active {
  color: var(--ink);
  border-color: var(--accent);
  background: rgba(255, 59, 59, 0.08);
  box-shadow: 0 0 20px rgba(255, 59, 59, 0.15);
}
.clip-tab .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}
.clip-tab.active .dot {
  background: var(--accent);
  opacity: 1;
  box-shadow: 0 0 8px var(--accent);
}

.phones {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.phone {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  background: #0a0e1a;
  transition: all 0.3s ease;
  cursor: pointer;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.phone:hover { border-color: rgba(40, 224, 255, 0.4); transform: translateY(-4px); }
.phone:hover img { transform: scale(1.04); }
.phone::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7,9,15,0.9) 100%);
  pointer-events: none;
}
.phone .caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
}
.phone .caption small {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  color: var(--accent-2);
  letter-spacing: 0.3em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.phone .caption strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.03em;
}

/* ============ INFO ============ */
.info { background: var(--bg); position: relative; overflow: hidden; }
.info::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(255, 59, 59, 0.08), transparent 60%);
  pointer-events: none;
}
.info-table {
  margin-top: 60px;
  border-top: 1px solid var(--line);
}
.info-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.info-row dt {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
}
.info-row dd {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 400;
}
.info-cta {
  margin-top: 50px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============ CONTACT ============ */
.contact {
  background: linear-gradient(180deg, var(--bg) 0%, #050810 100%);
  text-align: center;
  padding-bottom: 80px;
}
.contact .section-title {
  margin-bottom: 18px;
}
.contact-tags {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0 40px;
}
.contact-tag {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 36px;
  background: rgba(255, 59, 59, 0.06);
  border: 1px solid rgba(255, 59, 59, 0.2);
  color: var(--ink);
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
}
.contact-email:hover {
  background: rgba(255, 59, 59, 0.12);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.contact-email svg { width: 18px; height: 18px; color: var(--accent); }

/* ============ FOOTER ============ */
footer {
  padding: 40px;
  border-top: 1px solid var(--line);
  background: #050810;
  text-align: center;
}
footer .foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
footer .foot-brand img { width: 32px; height: 32px; }
footer .foot-brand span {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 14px;
}
footer p {
  color: var(--ink-dim);
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  nav { padding: 14px 20px; }
  nav ul { display: none; }
  nav .menu-btn { display: block; }
  section { padding: 90px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-visual { max-width: 360px; margin: 0 auto; width: 100%; }
  .features-grid { grid-template-columns: 1fr; }
  .video-frame .caption { left: 16px; top: 14px; }
  .video-frame .caption strong { font-size: 0.85rem; }
  .video-frame .live-tag { top: 14px; right: 14px; }
  .info-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .info-row dd { font-size: 0.95rem; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ SHARED: NAV STATE ============ */
nav ul a.active { color: var(--ink); }
nav ul a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
}

/* ============ STUDIO HERO ============ */
.hero.studio::before { filter: saturate(0.6) brightness(0.55); }
.hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 28px;
  display: block;
  filter: drop-shadow(0 0 30px rgba(255, 59, 59, 0.35));
}

/* ============ STUDIO FACTS ============ */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}
.fact:last-child { border-right: none; }
.fact dt {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.fact dd { font-size: 1.05rem; color: var(--ink); }

/* ============ GAMES LINEUP ============ */
.games { background: var(--bg-2); }
.game-card {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}
.game-card:hover {
  border-color: rgba(40, 224, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(40, 224, 255, 0.08);
}
.game-card .corner { z-index: 2; }
.game-card .shot { overflow: hidden; background: #0a0e1a; }
.game-card .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.game-card:hover .shot img { transform: scale(1.04); }
.game-card .body { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.game-card .status {
  display: inline-flex;
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 6px 14px;
  border: 1px solid rgba(40, 224, 255, 0.3);
  border-radius: 999px;
  margin-bottom: 20px;
}
.game-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 6px;
}
.game-card .genre { color: var(--ink-dim); font-size: 0.9rem; margin-bottom: 18px; }
.game-card p { color: var(--ink-dim); font-weight: 300; line-height: 1.7; margin-bottom: 28px; }
.game-card .more {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ============ TIMELINE ============ */
.timeline {
  margin-top: 60px;
  border-left: 1px solid var(--line);
  padding-left: 36px;
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent-2);
}
.timeline-item.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px var(--accent); }
.timeline-item .when {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--accent-2);
  margin-bottom: 6px;
}
.timeline-item h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.timeline-item p { color: var(--ink-dim); font-weight: 300; font-size: 0.95rem; }

/* ============ SUB PAGE HEADER ============ */
.page-head {
  padding: 180px 40px 60px;
  background: radial-gradient(ellipse at 50% 0%, rgba(40, 224, 255, 0.08), transparent 60%), var(--bg);
}

@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: none; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .game-card { grid-template-columns: 1fr; }
  .game-card .shot { aspect-ratio: 1600 / 716; }
  .game-card .body { padding: 28px 24px; }
  .page-head { padding: 130px 24px 40px; }
}
