/* =========================
   840 Core 기본 스타일
   GitHub Pages용 순수 CSS
========================= */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable.min.css");

:root {
  --bg: #ffffff;
  --soft-bg: #f5f7fb;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius: 24px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  word-break: keep-all;
}

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

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.narrow {
  width: min(100% - 40px, 820px);
}

/* =========================
   Header
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.nav-container {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  color: #374151;
}

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

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: white !important;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

/* =========================
   Hero
========================= */

.hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.14), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-inner {
  padding: 96px 0 110px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroTextIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-copy > *:nth-child(1) {
  animation-delay: 0.08s;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 0.18s;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 0.3s;
}

.hero-copy > *:nth-child(4) {
  animation-delay: 0.42s;
}

@keyframes heroTextIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  opacity: 0;
  transform: translateY(32px) scale(0.96);
  animation: logoFloatIn 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.hero-logo-wrap::before {
  content: "";
  position: absolute;
  width: min(430px, 78vw);
  height: min(430px, 78vw);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(29, 78, 216, 0.15), transparent 58%),
    radial-gradient(circle, rgba(15, 23, 42, 0.08), transparent 68%);
  filter: blur(8px);
  transform: translateY(18px);
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: min(360px, 72vw);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 30px 58px rgba(15, 23, 42, 0.24))
    drop-shadow(0 8px 18px rgba(29, 78, 216, 0.14));
  animation: logoIdleFloat 5.5s ease-in-out 1.6s infinite;
}

@keyframes logoFloatIn {
  from {
    opacity: 0;
    transform: translateY(38px) scale(0.94);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes logoIdleFloat {
  0%, 100% {
    transform: translateY(0) rotate(-0.4deg);
  }

  50% {
    transform: translateY(-12px) rotate(0.4deg);
  }
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1.03;
  letter-spacing: -0.075em;
}

.hero-description {
  max-width: 680px;
  margin: 28px 0 0;
  font-size: 20px;
  color: var(--muted);
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.button.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 12px 30px rgba(29, 78, 216, 0.26);
}

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

.button.secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--line);
}

/* =========================
   Sections
========================= */

.section {
  padding: 104px 0;
}

.soft-bg {
  background: var(--soft-bg);
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.section h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.14;
  letter-spacing: -0.06em;
}

.section-text {
  color: var(--muted);
  font-size: 18px;
}

.section-text p {
  margin-top: 0;
}

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

.section-heading h2 {
  margin-bottom: 10px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

/* =========================
   Cards
========================= */

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

.card,
.resource-card {
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
}

.card h3,
.resource-card h3 {
  margin: 8px 0 10px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.card p,
.resource-card p {
  color: var(--muted);
}

.date {
  margin: 0;
  color: var(--primary) !important;
  font-size: 14px;
  font-weight: 700;
}

.tag {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e0ecff;
  color: var(--primary) !important;
  font-size: 12px;
  font-weight: 800;
}

.resource-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.download-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  height: 44px;
  border-radius: 14px;
  background: #111827;
  color: white;
  font-weight: 700;
}

.download-button:hover {
  background: var(--primary);
}

/* =========================
   FAQ
========================= */

.faq-list {
  display: grid;
  gap: 14px;
}

details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

summary {
  cursor: pointer;
  font-weight: 800;
  letter-spacing: -0.02em;
}

details p {
  margin: 14px 0 0;
  color: var(--muted);
}

/* =========================
   Q&A
========================= */

.qa-section {
  background: #0f172a;
  color: white;
}

.qa-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.qa-box p {
  color: #cbd5e1;
  max-width: 680px;
}

.qa-box .section-label {
  color: #93c5fd;
}

/* =========================
   Footer
========================= */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: white;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner a {
  font-weight: 700;
  color: var(--text);
}

/* =========================
   Scroll Reveal Motion
========================= */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(8px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* =========================
   Mobile
========================= */

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 22px;
    background: white;
    border-bottom: 1px solid var(--line);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 14px 0;
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 72px 0 88px;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-logo-wrap {
    min-height: 300px;
    order: -1;
  }

  .hero-logo {
    width: min(260px, 68vw);
  }

  .hero-description {
    font-size: 17px;
  }

  .section {
    padding: 72px 0;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .qa-box {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 480px) {
  .container,
  .narrow {
    width: min(100% - 28px, var(--max-width));
  }

  .hero h1 {
    font-size: 44px;
  }

  .button {
    width: 100%;
  }

  .card,
  .resource-card {
    padding: 22px;
  }
}

/* =========================
   Motion Accessibility
========================= */

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

  .hero-copy > *,
  .hero-logo-wrap,
  .hero-logo,
  .reveal,
  .card,
  .resource-card {
    animation: none;
    transition: none;
    transform: none;
    opacity: 1;
    filter: none;
  }
}
