@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  --primary: 230 60% 55%;
  --consultant-primary: 230 100% 64%;
  --background: 220 23% 97%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 84.2% 60.2%;
  --ring: 230 60% 55%;
  --radius: 0.75rem;
  --footer-bg: #f3f4f6;
  --footer-text: #111827;
  --footer-text-80: rgba(17, 24, 39, 0.8);
  --footer-text-60: rgba(17, 24, 39, 0.6);
  --footer-primary: #2563eb;
  --footer-copyright: #888;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.4;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9999;
  transition: transform 0.3s ease;
}

.site-header.is-hidden {
  transform: translateY(-120%);
}

.nav-shell {
  margin: 1rem auto 0;
  width: min(calc(100% - 4rem), 1400px);
  height: 4.35rem;
  border-radius: 0.9rem;
  background: hsl(240 6% 12%);
  border: 1px solid hsl(0 0% 100% / 0.1);
  box-shadow: 0 10px 30px hsl(0 0% 0% / 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
}

.nav-logo {
  color: hsl(0 0% 100%);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
}

.nav-logo-image {
  display: block;
  width: auto;
  height: 22px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.nav-menu a {
  color: hsl(0 0% 100%);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.nav-menu a:hover {
  opacity: 0.92;
  color: hsl(var(--primary));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-login {
  border: 1px solid hsl(0 0% 100% / 0.22);
  background: transparent;
  color: hsl(0 0% 100%);
  border-radius: 0.6rem;
  padding: 0.52rem 0.72rem;
  font-size: 0.86rem;
  cursor: pointer;
}

.nav-hamburger {
  width: 1.25rem;
  height: 1.25rem;
  border: 0;
  background: transparent;
  padding: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.18rem;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: hsl(0 0% 100%);
  transition: all 0.25s ease;
}

.nav-hamburger.is-active span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.is-active span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  margin: 0.5rem auto 0;
  width: min(calc(100% - 2rem), 1400px);
  border-radius: 0.9rem;
  background: hsl(240 6% 12% / 0.95);
  border: 1px solid hsl(0 0% 100% / 0.1);
  backdrop-filter: blur(8px);
  padding: 0.6rem;
}

.mobile-drawer a {
  display: block;
  color: hsl(0 0% 100%);
  text-decoration: none;
  padding: 0.75rem 0.625rem;
  border-radius: 0.6rem;
  font-size: 0.95rem;
}

.mobile-drawer a:hover {
  background: hsl(0 0% 100% / 0.08);
}

.mobile-drawer.is-open {
  display: block;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.25rem 2rem;
}

.with-navbar {
  padding-top: 7rem;
}

.title {
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: hsl(var(--primary));
  letter-spacing: -0.02em;
}

.subtitle {
  text-align: center;
  color: hsl(var(--muted-foreground));
  margin: 0.75rem 0 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.search-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.cert-guide {
  margin-top: 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 0.2rem);
  padding: 1rem;
}

.cert-guide-head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: hsl(var(--foreground));
}

.cert-guide-head p {
  margin: 0.5rem 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.92rem;
}

.cert-guide-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.cert-service-box {
  margin-top: 0.8rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--secondary) / 0.36);
  padding: 0.75rem 0.85rem;
}

.cert-service-box ul {
  margin: 0;
  padding-left: 1rem;
}

.cert-service-box li {
  margin: 0.2rem 0;
  font-size: 0.86rem;
  color: hsl(var(--foreground));
  overflow-wrap: anywhere;
}

.cert-guide-card {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.38);
  border-radius: var(--radius);
  padding: 0.85rem;
}

.cert-guide-kicker {
  margin: 0;
  color: hsl(var(--primary));
  font-size: 0.82rem;
  font-weight: 700;
}

.cert-guide-card h4 {
  margin: 0.2rem 0 0.45rem;
  font-size: 0.96rem;
  font-weight: 700;
}

.cert-guide-card p {
  margin: 0;
  font-size: 0.86rem;
  color: hsl(var(--muted-foreground));
}

.cert-guide-card ul {
  margin: 0.55rem 0 0;
  padding-left: 1rem;
}

.cert-guide-card li {
  margin: 0.16rem 0;
  font-size: 0.84rem;
  color: hsl(var(--foreground));
  overflow-wrap: anywhere;
}

.code-pill-wrap {
  margin-top: 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.code-pill-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: hsl(var(--muted-foreground));
}

.code-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.27rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font-size: 0.8rem;
  font-weight: 700;
}

.copy-code-btn {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.copy-code-btn:hover {
  background: hsl(var(--accent));
}

.mid-hero {
  margin-top: 1.25rem;
  border-radius: calc(var(--radius) + 0.5rem);
  background:
    radial-gradient(65% 90% at 50% 20%, hsl(226 100% 22% / 0.7), transparent 75%),
    radial-gradient(90% 120% at 50% 100%, hsl(230 100% 34% / 0.35), transparent 60%),
    hsl(232 74% 8%);
  color: hsl(0 0% 98%);
  overflow: hidden;
  border: 1px solid hsl(228 35% 22%);
  box-shadow: 0 12px 30px hsl(230 80% 10% / 0.24);
}

.mid-hero-inner {
  max-width: 840px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
  text-align: center;
}

.mid-hero-kicker {
  margin: 0;
  color: hsl(226 100% 72%);
  font-weight: 700;
  font-size: 0.95rem;
}

.mid-hero-title {
  margin: 0.4rem 0 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.mid-hero-desc {
  margin: 0.85rem auto 0;
  max-width: 980px;
  color: hsl(225 18% 84%);
  font-weight: 500;
  white-space: nowrap;
  overflow-wrap: normal;
}

.mid-hero-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

.mid-hero-btn {
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.mid-hero-btn:hover {
  transform: translateY(-1px);
}

.mid-hero-btn-primary {
  background: hsl(var(--primary));
  color: hsl(0 0% 100%);
}

.mid-hero-btn-primary:hover {
  background: hsl(var(--primary) / 0.9);
}

.mid-hero-btn-secondary {
  background: hsl(0 0% 100%);
  color: hsl(229 72% 43%);
}

.search-input {
  width: 100%;
  min-height: 3rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--input));
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.search-input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.2);
}

.search-button {
  min-height: 3rem;
  border: none;
  border-radius: var(--radius);
  padding: 0 1rem;
  background: hsl(var(--primary));
  color: hsl(0 0% 100%);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.search-button:hover {
  background: hsl(var(--primary) / 0.9);
}

.search-button:active {
  transform: translateY(1px);
}

.search-button:disabled {
  opacity: 0.6;
  pointer-events: none;
}

.meta,
.result {
  margin-top: 1rem;
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  box-shadow: 0 1px 2px hsl(240 10% 3.9% / 0.04);
}

.meta {
  padding: 0.9rem 1rem;
}

.meta-row {
  display: flex;
  gap: 0.5rem;
  margin: 0.3rem 0;
  align-items: flex-start;
}

.meta-row strong {
  min-width: 5.2rem;
  font-weight: 700;
}

.meta-row span {
  color: hsl(var(--muted-foreground));
  overflow-wrap: anywhere;
}

.result {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: top;
  font-size: 0.9rem;
}

th {
  background: hsl(var(--secondary));
  font-weight: 700;
}

td {
  font-weight: 500;
}

.error {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--destructive) / 0.35);
  background: hsl(var(--destructive) / 0.12);
  color: hsl(var(--destructive));
  font-weight: 600;
}

.hidden {
  display: none;
}

.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text-80);
  margin-top: 5rem;
}

.footer-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

@media (min-width: 1280px) {
  .footer-container {
    padding-left: 0;
    padding-right: 0;
  }
}

.footer-logo {
  margin-bottom: 1.6875rem;
}

.footer-logo a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 1.375rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.footer-logo-image {
  display: block;
  width: auto;
  height: 1.9rem;
  object-fit: contain;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.nav-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.nav-column {
  width: calc(50% - 16px);
}

@media (min-width: 768px) {
  .nav-column {
    width: 200px;
  }
}

.nav-column h3 {
  margin: 0 0 0.75rem;
  color: var(--footer-text);
  font-size: 1rem;
  font-weight: 500;
}

.nav-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.875rem;
}

.nav-column a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-column a:hover {
  color: var(--footer-primary);
}

.company-info {
  border-top: 1px solid rgba(229, 231, 235, 0.3);
  margin-top: 1rem;
  padding-top: 1rem;
  color: var(--footer-text-60);
  font-size: 0.875rem;
}

.info-content p {
  margin: 0;
  line-height: 1.625;
  display: flex;
  flex-direction: column;
  gap: 2px;
  word-break: keep-all;
}

.copyright {
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(229, 231, 235, 0.3);
  color: var(--footer-copyright);
  font-size: 0.875rem;
}

.copyright p {
  margin: 0;
}

@media (max-width: 768px) {
  .container {
    padding: 1.25rem;
  }

  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .cert-guide-grid {
    grid-template-columns: 1fr;
  }

  .mid-hero-inner {
    padding: 2rem 1rem 1.55rem;
  }

  .mid-hero-desc {
    white-space: normal;
  }
}

@media (max-width: 1280px) {
  .nav-shell {
    width: calc(100% - 2rem);
    height: 3.8rem;
    margin-top: 0.75rem;
    padding: 0 0.95rem;
  }

  .nav-menu {
    display: none;
  }

  .nav-hamburger {
    display: inline-flex;
  }

  .with-navbar {
    padding-top: 6rem;
  }

  .nav-logo-image {
    height: 16px;
  }
}
