* {
  box-sizing: border-box;
}

:root {
  --bg: #0a0c10;
  --panel: #12161d;
  --panel-light: #191f29;
  --text: #f7f8fa;
  --muted: #aeb7c4;
  --accent: #ef233c;
  --accent-dark: #c8102e;
  --line: rgba(255, 255, 255, 0.09);
  --max-width: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(239, 35, 60, 0.14), transparent 34rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.site-header {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  font-size: 1.6rem;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
}

.hero {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 80px;
  align-items: center;
  padding: 72px 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero h1 {
  font-size: clamp(3.25rem, 7vw, 6.8rem);
}

.hero h1 span {
  color: var(--accent);
}

.hero-copy {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.18rem;
  margin: 28px 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-align: center;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--accent);
  color: white;
}

.primary:hover {
  background: var(--accent-dark);
}

.secondary {
  border-color: var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.quick-facts div {
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}

.quick-facts strong,
.quick-facts span {
  display: block;
}

.quick-facts span {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--panel-light), var(--panel));
  padding: 34px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 28px 80px rgba(0,0,0,0.32);
}

.hero-card::before {
  content: "태권도";
  position: absolute;
  top: 28px;
  right: 22px;
  font-size: 5.7rem;
  font-weight: 900;
  color: rgba(255,255,255,0.035);
  writing-mode: vertical-rl;
}

.hero-card-top {
  position: absolute;
  top: 28px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #37d67a;
  box-shadow: 0 0 16px rgba(55,214,122,.8);
}

.belt-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 34px;
}

.belt {
  display: block;
  height: 14px;
  border-radius: 999px;
  transform-origin: left center;
}

.belt:nth-child(1) { width: 46%; }
.belt:nth-child(2) { width: 56%; }
.belt:nth-child(3) { width: 66%; }
.belt:nth-child(4) { width: 76%; }
.belt:nth-child(5) { width: 86%; }
.belt:nth-child(6) { width: 100%; }

.white { background: #f4f4f4; }
.yellow { background: #ffd43b; }
.green { background: #2f9e44; }
.blue { background: #1971c2; }
.red { background: #e03131; }
.black { background: #050505; border: 1px solid rgba(255,255,255,.18); }

.hero-card h2 {
  font-size: 2.1rem;
  margin: 0 0 8px;
  letter-spacing: -0.04em;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
}

.section {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 100px 0;
}

.section-heading {
  margin-bottom: 40px;
}

.section h2 {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.program-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  padding: 28px;
}

.program-card .icon {
  font-size: 2rem;
}

.program-card h3 {
  font-size: 1.28rem;
  margin: 18px 0 8px;
}

.program-card p {
  color: var(--muted);
  min-height: 84px;
}

.program-card span {
  display: inline-block;
  color: var(--accent);
  font-weight: 750;
  font-size: 0.88rem;
}

.test-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: center;
}

.test-copy p:last-child,
.contact-section > div p:last-child {
  color: var(--muted);
  max-width: 500px;
}

.test-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  padding: 30px;
  display: grid;
  gap: 22px;
}

.test-card > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.label {
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  padding: 30px;
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.contact-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d1117;
  color: var(--text);
  padding: 14px;
  font: inherit;
  outline: none;
}

.contact-form input:focus {
  border-color: var(--accent);
}

.form-message {
  min-height: 24px;
  color: #66e39a;
  margin: 0;
}

footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 40px 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: center;
  color: var(--muted);
}

footer strong {
  color: var(--text);
}

footer p {
  margin: 4px 0 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
}

.modal {
  position: relative;
  max-width: 460px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  padding: 30px;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.7rem;
  cursor: pointer;
}

.modal p {
  color: var(--muted);
}

@media (max-width: 820px) {
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    flex-direction: column;
    z-index: 10;
  }

  .nav.open {
    display: flex;
  }

  .menu-button {
    display: block;
  }

  .hero,
  .test-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 40px;
    min-height: auto;
  }

  .quick-facts,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .program-card p {
    min-height: auto;
  }

  footer {
    grid-template-columns: 1fr;
  }
}
