:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-alt: #eef4ff;
  --primary: #143d8b;
  --primary-dark: #0d2d63;
  --accent: #ff9f43;
  --accent-soft: #fff3e6;
  --text: #14213d;
  --muted: #5f6f8d;
  --line: #dfe7f5;
  --success: #1bbd8c;
  --shadow: 0 18px 45px rgba(20, 61, 139, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.alt-bg {
  background: var(--surface-alt);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.section-heading {
  margin-bottom: 42px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.section-heading h2 span {
  color: var(--primary);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 247, 251, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20, 61, 139, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.15rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0d2a60, #215fe0);
  border-radius: 50%;
  color: white;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 60%);
}

.brand-mark-inner {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  letter-spacing: -0.08em;
}

.brand-text {
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.05em;
}

.brand-name {
  font-size: 1.3rem;
  color: var(--primary-dark);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(620px, 60vw);
  min-height: 76px;
  padding: 8px 12px 8px 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(20, 61, 139, 0.08);
  border-radius: 999px;
  box-shadow: 0 16px 26px rgba(20, 61, 139, 0.08);
  gap: 12px;
}

.call-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 60px;
  padding: 0 18px;
  background: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
  border: 1px solid rgba(20, 61, 139, 0.1);
  border-radius: 999px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.2rem, 2vw, 2.1rem);
}

.call-link {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.2rem, 2vw, 2.1rem);
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #1d5ad7);
  color: white;
  box-shadow: 0 14px 22px rgba(20, 61, 139, 0.25);
}

.nav-cta {
  min-width: 190px;
  min-height: 60px;
  margin-left: 4px;
  border-radius: 999px;
  font-size: 1.2rem;
}

.btn-secondary {
  border: 1px solid rgba(20, 61, 139, 0.12);
  background: rgba(255, 255, 255, 0.64);
  color: var(--primary-dark);
}

.btn-phone {
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  border: 1px solid rgba(20, 61, 139, 0.12);
  color: var(--primary);
  box-shadow: 0 10px 20px rgba(20, 61, 139, 0.08);
}

.hero {
  padding: 86px 0 60px;
  background: radial-gradient(circle at top left, rgba(102, 153, 255, 0.18), transparent 36%),
    linear-gradient(180deg, #f8faff 0%, #f5f7fb 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

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

.lead {
  max-width: 560px;
  margin-top: 24px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--muted);
}

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

.hero-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  color: var(--text);
  font-weight: 600;
}

.hero-list li {
  position: relative;
  padding-left: 24px;
}

.hero-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 900;
}

.hero-card-wrap {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: min(100%, 470px);
  background: linear-gradient(180deg, #ffffff, #edf3ff);
  border: 1px solid rgba(20, 61, 139, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px 24px 22px;
}

.card-badge {
  display: inline-flex;
  padding: 0.46rem 0.7rem;
  border-radius: 999px;
  background: #e5eefc;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
}

.stat-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-row strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.05em;
}

.stat-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.mini-chart {
  margin-top: 22px;
  height: 160px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  padding: 18px 12px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 61, 139, 0.04), rgba(20, 61, 139, 0.01));
}

.mini-chart span {
  display: block;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #7fb7ff, var(--primary));
}

.score-box {
  margin-top: 22px;
  background: linear-gradient(135deg, rgba(255, 159, 67, 0.12), rgba(20, 61, 139, 0.05));
  border: 1px solid rgba(255, 159, 67, 0.15);
  padding: 16px 18px;
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-dark);
}

.score-box small {
  color: var(--muted);
  font-weight: 600;
}

.score-box strong {
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.trust-bar {
  background: var(--primary-dark);
  color: white;
  padding: 26px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  text-align: center;
}

.trust-grid div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trust-grid strong {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.trust-grid span {
  color: rgba(255, 255, 255, 0.75);
}

.feature-grid,
.process-grid,
.review-grid,
.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.feature-card,
.process-card,
.review-card,
.subject-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(17, 35, 74, 0.04);
}

.feature-card {
  padding: 30px 26px;
}

.icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--primary);
  font-weight: 800;
}

.feature-card h3,
.process-card h3,
.subject-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.feature-card p,
.process-card p,
.subject-card p,
.review-card p {
  margin: 0;
  color: var(--muted);
}

.process-card {
  padding: 28px 24px;
}

.step {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--primary);
  background: #eaf0ff;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.compare-panel {
  background: white;
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 30px 28px;
}

.compare-panel h3 {
  margin: 0 0 18px;
  font-size: 1.7rem;
}

.compare-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.compare-panel li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.6;
}

.compare-panel li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
}

.compare-panel.before li::before {
  content: "✕";
  color: #e05151;
}

.compare-panel.after li::before {
  content: "✓";
  color: var(--success);
}

.subject-card {
  padding: 28px 20px;
  text-align: center;
}

.subject-icon {
  font-size: 2.3rem;
  display: inline-block;
  margin-bottom: 12px;
}

.review-card {
  padding: 30px 24px;
}

.stars {
  color: #f8b84e;
  letter-spacing: 0.2em;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.review-card strong {
  display: inline-block;
  margin-top: 18px;
  color: var(--primary-dark);
}

.cta-section {
  background: linear-gradient(135deg, #0f2f63 0%, #163f8d 100%);
  color: white;
}

.cta-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.cta-copy .eyebrow {
  color: #d8e7ff;
}

.cta-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 3vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.cta-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.consult-form {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  padding: 28px;
  backdrop-filter: blur(5px);
}

.field-row {
  display: grid;
  gap: 18px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  border: 1px solid rgba(17, 35, 74, 0.06);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(255, 159, 67, 0.4);
  border-color: rgba(255, 159, 67, 0.5);
}

.submit-btn {
  width: 100%;
  border: none;
  cursor: pointer;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 22px 20px;
  color: var(--muted);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  display: block;
}

.site-footer {
  background: #0e1d34;
  color: rgba(255, 255, 255, 0.8);
  padding: 30px 0 40px;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-contact {
  text-align: right;
}

@media (max-width: 980px) {
  .hero-grid,
  .cta-wrap,
  .feature-grid,
  .process-grid,
  .subject-grid,
  .review-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .nav-actions {
    gap: 10px;
  }

  .contact-pill {
    width: min(100%, 500px);
    min-height: 68px;
    padding: 0 8px 0 18px;
  }

  .nav-cta {
    min-width: 150px;
    min-height: 54px;
    font-size: 1rem;
  }

  .call-button {
    min-height: 52px;
    font-size: 1.05rem;
  }

  .hero {
    padding-top: 64px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-contact {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .nav-actions {
    width: 100%;
  }

  .contact-pill {
    width: 100%;
    min-height: 62px;
    padding: 0 8px 0 12px;
  }

  .nav-cta {
    min-width: 126px;
    min-height: 48px;
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
  }

  .call-button,
  .call-link {
    font-size: 1rem;
  }

  .two-col,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2.6rem;
  }

  .section {
    padding: 82px 0;
  }
}
