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

:root {
  --white: #ffffff;
  --off-white: #f8f9fb;
  --surface: #f1f4f8;
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f0f1f3;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-soft: #dbeafe;
  --math: #6366f1;
  --english: #0ea5e9;
  --korean: #10b981;
  --essay: #f59e0b;
  --mock: #8b5cf6;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: "Outfit", "Noto Sans KR", sans-serif;
  --font-sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.25s ease;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden {
  display: none !important;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--white);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.nav-cta {
  padding: 10px 20px;
  background: var(--accent);
  color: var(--white) !important;
  border-radius: 999px;
  transition: background var(--transition) !important;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-outline {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text-light);
  background: var(--off-white);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(37, 99, 235, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
  z-index: -1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 999px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

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

.hero-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-stats span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  min-height: 360px;
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card--main {
  position: absolute;
  top: 20%;
  left: 10%;
  right: 10%;
  padding: 32px;
  z-index: 2;
}

.hero-card-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-card-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin: 8px 0;
}

.hero-card-number span {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-card-sub {
  font-size: 0.875rem;
  color: #059669;
  font-weight: 600;
}

.hero-card--sub {
  position: absolute;
  bottom: 8%;
  right: 0;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
}

.hero-card-icon {
  font-size: 1.75rem;
}

.hero-card--sub p {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--off-white);
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Teachers */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.teacher-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.teacher-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.teacher-avatar {
  height: 200px;
  background-size: cover;
  background-position: center top;
}

.teacher-avatar--1 {
  background-image: url('https://plus.unsplash.com/premium_photo-1661590863910-69abf33b8f3f?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}

.teacher-avatar--2 {
  background-image: url('https://plus.unsplash.com/premium_photo-1661774920238-e8fef8f4a6df?q=80&w=2664&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}

.teacher-avatar--3 {
  background-image: url('https://images.unsplash.com/photo-1573496799652-408c2ac9fe98?q=80&w=1738&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}

.teacher-body {
  padding: 24px;
}

.teacher-subject {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.teacher-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 6px 0 12px;
}

.teacher-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teacher-tags li {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--off-white);
  border-radius: 999px;
}

/* Schedule */
.schedule-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 640px;
}

.schedule-table th,
.schedule-table td {
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.schedule-table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--border);
}

.schedule-table tbody th {
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: left;
  font-size: 0.8125rem;
}

.schedule-table tbody tr:last-child td,
.schedule-table tbody tr:last-child th {
  border-bottom: none;
}

.cell {
  font-weight: 500;
  border-radius: 8px;
}

.cell--math {
  background: rgba(99, 102, 241, 0.1);
  color: var(--math);
}

.cell--english {
  background: rgba(14, 165, 233, 0.1);
  color: var(--english);
}

.cell--korean {
  background: rgba(16, 185, 129, 0.1);
  color: var(--korean);
}

.cell--essay {
  background: rgba(245, 158, 11, 0.1);
  color: var(--essay);
}

.cell--mock {
  background: rgba(139, 92, 246, 0.1);
  color: var(--mock);
}

.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.schedule-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot--math { background: var(--math); }
.legend-dot--english { background: var(--english); }
.legend-dot--korean { background: var(--korean); }
.legend-dot--essay { background: var(--essay); }
.legend-dot--mock { background: var(--mock); }

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow);
}

.review-card--featured {
  border-color: var(--accent-soft);
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--white) 40%);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.review-avatar--1 { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.review-avatar--2 { background: linear-gradient(135deg, #dbeafe, #93c5fd); }
.review-avatar--3 { background: linear-gradient(135deg, #d1fae5, #6ee7b7); }

.review-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.review-result {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
}

.review-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.review-year {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Consult */
.section--consult {
  background: var(--off-white);
  padding: 80px 0;
}

.consult-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 56px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.consult-content .section-label,
.consult-content .section-title,
.consult-content .section-desc {
  text-align: left;
}

.consult-content .section-title {
  margin-bottom: 12px;
}

.consult-features {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.consult-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.consult-features li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.consult-action {
  text-align: center;
  flex-shrink: 0;
}

.consult-note {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* Footer */
.footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-desc {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-info {
  text-align: right;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-copy {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-light);
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.footer-copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.footer-copy a:hover {
  color: var(--primary);
}

.site-footer {
  margin-top: 32px;
  padding: 24px 20px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.site-footer__copy {
  font-size: 0.75rem;
  color: var(--text-light);
}

.site-footer__copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.site-footer__copy a:hover {
  color: var(--primary);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(4px);
}

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 36px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition);
}

.modal-close:hover {
  background: var(--off-white);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-success {
  padding: 16px;
  font-size: 0.9375rem;
  color: #059669;
  background: #ecfdf5;
  border-radius: 10px;
  text-align: center;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    min-height: auto;
    max-width: 340px;
    margin: 0 auto;
  }

  .hero-card--main,
  .hero-card--sub {
    position: static;
  }

  .hero-card--main {
    flex: 1 1 100%;
    padding: 20px 24px;
  }

  .hero-card--sub {
    flex: 0 0 auto;
    padding: 14px 20px;
  }

  .hero-card-number {
    font-size: 2.75rem;
  }

  .teacher-grid,
  .review-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .consult-inner {
    flex-direction: column;
    text-align: center;
    padding: 40px 28px;
  }

  .consult-content .section-label,
  .consult-content .section-title,
  .consult-content .section-desc {
    text-align: center;
  }

  .consult-features {
    align-items: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-info {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 16px 24px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links li:last-child a {
    border-bottom: none;
    margin-top: 8px;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .section {
    padding: 72px 0;
  }

  .hero-stats {
    gap: 24px;
  }

  .schedule-wrap {
    padding: 20px 16px;
  }
}
