/* ========================================
   TEOPF — Game Team Website Template
   ======================================== */

:root {
  --bg: #07080f;
  --bg-elevated: #0e101a;
  --bg-card: #121526;
  --bg-card-hover: #171b30;
  --line: rgba(140, 160, 255, 0.14);
  --text: #e8ecff;
  --text-muted: #9aa3c7;
  --accent: #7c5cff;
  --accent-2: #2de2e6;
  --accent-3: #ff4ecd;
  --success: #3dd68c;
  --warning: #ffc857;
  --danger: #ff6b8a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --header-h: 72px;
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Noto Sans KR", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(7, 8, 15, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 8, 15, 0.9);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.logo-mark {
  color: var(--accent-2);
  text-shadow: 0 0 18px rgba(45, 226, 230, 0.55);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-cta {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.45);
  background: rgba(124, 92, 255, 0.12);
  color: var(--text) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  place-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 4rem 0 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 92, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}

.orb-a {
  width: 420px;
  height: 420px;
  top: -80px;
  right: 5%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.7), transparent 70%);
}

.orb-b {
  width: 360px;
  height: 360px;
  bottom: 0;
  left: -40px;
  background: radial-gradient(circle, rgba(45, 226, 230, 0.45), transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 226, 230, 0.35);
  background: rgba(45, 226, 230, 0.08);
  color: var(--accent-2);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent-2), var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0 0 1.75rem;
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 120px));
  gap: 1rem;
  margin: 0;
}

.hero-stats div {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.hero-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5a3fff 55%, #3d8bff);
  color: white;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(124, 92, 255, 0.5);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(140, 160, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.btn-small {
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}

.btn-full {
  width: 100%;
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(18, 21, 38, 0.55), rgba(18, 21, 38, 0.2));
  border-block: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head-left {
  text-align: left;
  margin: 0;
  max-width: none;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(124, 92, 255, 0.35);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(124, 92, 255, 0.12);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Games */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.game-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 226, 230, 0.3);
}

.game-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}

.thumb-a {
  background-image:
    linear-gradient(135deg, rgba(7, 8, 15, 0.15), rgba(7, 8, 15, 0.55)),
    linear-gradient(135deg, #2b0f4a, #0f3d5c 50%, #1a1a40);
}

.thumb-b {
  background-image:
    linear-gradient(135deg, rgba(7, 8, 15, 0.1), rgba(7, 8, 15, 0.5)),
    linear-gradient(135deg, #3a2458, #6b3fa0 40%, #f2a0c2);
}

.thumb-c {
  background-image:
    linear-gradient(135deg, rgba(7, 8, 15, 0.15), rgba(7, 8, 15, 0.55)),
    linear-gradient(135deg, #102820, #1f6f5b 45%, #f0c27a);
}

.status-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.status-live {
  background: rgba(61, 214, 140, 0.18);
  color: var(--success);
  border: 1px solid rgba(61, 214, 140, 0.35);
}

.status-dev {
  background: rgba(255, 200, 87, 0.16);
  color: var(--warning);
  border: 1px solid rgba(255, 200, 87, 0.35);
}

.status-concept {
  background: rgba(255, 107, 138, 0.14);
  color: var(--danger);
  border: 1px solid rgba(255, 107, 138, 0.3);
}

.game-body {
  padding: 1.15rem 1.2rem 1.3rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.tags span {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.game-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.game-body p {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.text-link {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.92rem;
}

.text-link[aria-disabled="true"] {
  opacity: 0.7;
  pointer-events: none;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.member-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.member-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: rgba(124, 92, 255, 0.3);
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  background: linear-gradient(145deg, hsl(var(--hue, 260) 80% 58%), hsl(calc(var(--hue, 260) + 40) 75% 42%));
  box-shadow: 0 10px 24px hsla(var(--hue, 260), 70%, 40%, 0.35);
}

.avatar-plus {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(140, 160, 255, 0.35);
  color: var(--text-muted);
  box-shadow: none;
  font-size: 1.4rem;
}

.member-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.role {
  margin: 0 0 0.65rem;
  color: var(--accent-2);
  font-size: 0.88rem;
  font-weight: 700;
}

.member-card > p:last-of-type {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.member-card-cta .btn {
  margin-top: 1rem;
}

/* News */
.news-list {
  display: grid;
  gap: 0.85rem;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.news-item:hover {
  border-color: rgba(124, 92, 255, 0.3);
  background: var(--bg-card-hover);
}

.news-item time {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.news-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.news-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-meta {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.contact-meta li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-meta strong {
  display: inline-block;
  min-width: 5.5rem;
  color: var(--text);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
}

.contact-form label span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(7, 8, 15, 0.55);
  padding: 0.8rem 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--accent-2);
}

.form-note.error {
  color: var(--danger);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  background: #05060b;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.footer-brand .logo-mark {
  font-family: var(--font-display);
}

.footer-brand strong {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

.footer-brand p {
  width: 100%;
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--text);
}

.copyright {
  margin: 0;
  color: rgba(154, 163, 199, 0.75);
  font-size: 0.85rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .feature-grid,
  .game-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(var(--header-h) - 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    background: rgba(10, 12, 22, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
  }

  .site-nav a:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.35rem;
  }

  .feature-grid,
  .game-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .feature-card,
  .game-card,
  .member-card {
    transition: none;
  }
}
