/* 수정하기 쉬운 주요 색상 */
:root {
  --color-blue: #0aa8ff;
  --color-blue-deep: #2259d9;
  --color-pink: #f43dad;
  --color-yellow: #ffd329;
  --color-ink: #17213b;
  --color-muted: #65708a;
  --color-line: rgba(56, 78, 132, 0.12);
  --color-surface: rgba(255, 255, 255, 0.76);
  --shadow-soft: 0 24px 70px rgba(40, 70, 150, 0.12);
  --page-width: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f8faff;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-ink);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  background:
    linear-gradient(rgba(67, 98, 171, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 98, 171, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 82% 38%, rgba(10, 168, 255, 0.12), transparent 30%),
    radial-gradient(circle at 15% 78%, rgba(244, 61, 173, 0.08), transparent 28%),
    #f8faff;
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 16px clamp(24px, 4.5vw, 76px);
  border-bottom: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
}

.brand:focus-visible {
  outline: 3px solid rgba(10, 168, 255, 0.4);
  outline-offset: 5px;
}

.brand__emblem {
  width: 58px;
  height: 58px;
  border: 3px solid #fff;
  border-radius: 17px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(29, 73, 167, 0.22);
}

.brand__copy {
  display: grid;
  gap: 5px;
}

.brand__copy strong {
  font-size: 17px;
  letter-spacing: -0.04em;
}

.brand__copy small {
  color: #8590a8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero {
  position: relative;
  width: min(calc(100% - 48px), var(--page-width));
  min-height: 650px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
  padding: 80px 0 90px;
}

.hero__content,
.hero__visual {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: var(--color-blue-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.eyebrow span {
  color: var(--color-pink);
  font-size: 18px;
}

h1 {
  margin: 0;
}

.hero__brand {
  display: block;
  margin-bottom: 18px;
  color: #3b4a70;
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.hero__title {
  display: block;
  font-size: clamp(48px, 5vw, 78px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.065em;
  background: linear-gradient(110deg, #202d53 5%, var(--color-blue-deep) 40%, var(--color-blue) 68%, var(--color-pink) 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__description {
  margin: 32px 0 30px;
  color: var(--color-muted);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.9;
  letter-spacing: -0.025em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid rgba(45, 89, 194, 0.12);
  border-radius: 999px;
  color: #425173;
  background: var(--color-surface);
  box-shadow: 0 12px 36px rgba(42, 76, 154, 0.09);
  font-size: 14px;
  font-weight: 750;
  backdrop-filter: blur(14px);
}

.status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-blue);
  box-shadow: 0 0 0 7px rgba(10, 168, 255, 0.12), 0 0 22px var(--color-blue);
  animation: pulse 2.2s ease-in-out infinite;
}

.hero__visual {
  height: 430px;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.code-card {
  position: absolute;
  width: min(100%, 450px);
  aspect-ratio: 1.28;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 34px;
}

.code-card--back {
  transform: translate(38px, -24px) rotate(8deg);
  background: linear-gradient(145deg, rgba(10, 168, 255, 0.22), rgba(244, 61, 173, 0.16));
  box-shadow: 0 34px 100px rgba(43, 96, 211, 0.2);
}

.code-card--front {
  padding: 34px;
  transform: rotate(-3deg);
  background: rgba(20, 31, 62, 0.94);
  box-shadow: 0 34px 90px rgba(31, 53, 112, 0.3);
  backdrop-filter: blur(18px);
  animation: float 5s ease-in-out infinite;
}

.code-card__dots {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
}

.code-card__dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-pink);
}

.code-card__dots i:nth-child(2) { background: var(--color-yellow); }
.code-card__dots i:nth-child(3) { background: #39d9a5; }

.code-card__line {
  height: 15px;
  margin: 20px 0;
  border-radius: 999px;
  opacity: 0.94;
}

.code-card__line--yellow { width: 48%; background: linear-gradient(90deg, var(--color-yellow), #fff0a2); }
.code-card__line--blue { width: 78%; background: linear-gradient(90deg, var(--color-blue), #71dcff); }
.code-card__line--pink { width: 62%; background: linear-gradient(90deg, var(--color-pink), #ff9ed5); }

.code-card__cursor {
  margin-top: 34px;
  color: var(--color-blue);
  font: 900 34px/1 ui-monospace, monospace;
  animation: blink 1s steps(1) infinite;
}

.spark {
  position: absolute;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.spark--left {
  left: -10px;
  bottom: 42px;
  width: 92px;
  height: 68px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-blue-deep));
  transform: rotate(9deg);
  font: 900 24px/1 ui-monospace, monospace;
}

.spark--right {
  top: 18px;
  right: -8px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  color: #342d4d;
  background: var(--color-yellow);
  font-size: 28px;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.48;
  pointer-events: none;
}

.glow--blue {
  width: 300px;
  height: 300px;
  top: 80px;
  right: 90px;
  background: rgba(10, 168, 255, 0.16);
}

.glow--pink {
  width: 220px;
  height: 220px;
  right: -20px;
  bottom: 50px;
  background: rgba(244, 61, 173, 0.13);
}

.pixel {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  transform: rotate(18deg);
}

.pixel--one { left: 49%; top: 18%; background: var(--color-yellow); }
.pixel--two { left: 54%; bottom: 19%; background: var(--color-pink); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 48px), var(--page-width));
  margin: 0 auto;
  padding: 24px 0 28px;
  border-top: 1px solid var(--color-line);
  color: #8a94aa;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.public-content {
  width: min(calc(100% - 48px), var(--page-width));
  margin: 0 auto 64px;
}

.content-banners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.content-banner {
  min-height: 150px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 25px;
  color: var(--color-ink);
  text-decoration: none;
  background: linear-gradient(135deg, #fff8ee, #fff1f8);
  border: 1px solid #f4dcd7;
  border-radius: 20px;
  overflow: hidden;
}

.content-banner strong { display: block; font-size: 20px; margin-bottom: 8px; }
.content-banner p { margin: 0; color: #677087; line-height: 1.65; }
.content-banner__image { width: 120px; height: 100px; object-fit: cover; border-radius: 15px; }
.tool-section { margin-top: 40px; }
.tool-section__heading h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); }
.tool-section__heading p { margin: 10px 0 20px; color: #7a8399; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.tool-card {
  --card-accent: #e8efff;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  overflow: hidden;
  color: var(--color-ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.tool-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(35, 50, 85, .10); }
.tool-card__image { width: 100%; height: 135px; object-fit: cover; background: var(--card-accent); }
.tool-card__body { display: flex; flex: 1; flex-direction: column; padding: 19px; }
.tool-card__body h3 { margin: 0 0 9px; font-size: 18px; }
.tool-card__body p { margin: 0 0 20px; color: #727b91; line-height: 1.62; font-size: 14px; }
.tool-card__cta { margin-top: auto; color: #6551dd; font-size: 13px; font-weight: 750; }

@keyframes float {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-14px); }
}

@keyframes blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 60px;
    padding-top: 70px;
    text-align: center;
  }

  .hero__description br { display: none; }
  .hero__visual { width: min(100%, 520px); margin: 0 auto; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-header { min-height: 78px; padding: 12px 20px; }
  .brand__emblem { width: 48px; height: 48px; border-radius: 14px; }
  .brand__copy strong { font-size: 15px; }
  .brand__copy small { font-size: 8px; }

  .hero {
    width: min(calc(100% - 36px), var(--page-width));
    min-height: auto;
    padding: 64px 0 70px;
  }

  .eyebrow { margin-bottom: 22px; }
  .hero__brand { font-size: 17px; }
  .hero__title { font-size: clamp(39px, 12vw, 56px); }
  .hero__description { margin: 25px auto; max-width: 34ch; font-size: 15px; line-height: 1.8; }
  .status { padding: 13px 17px; font-size: 13px; }

  .hero__visual { height: 320px; }
  .code-card { width: min(86vw, 360px); border-radius: 26px; }
  .code-card--front { padding: 27px; }
  .code-card__dots { margin-bottom: 30px; }
  .code-card__line { height: 11px; margin: 16px 0; }
  .spark--left { left: 0; bottom: 24px; width: 72px; height: 54px; font-size: 19px; }
  .spark--right { right: 0; width: 54px; height: 54px; font-size: 22px; }

  .site-footer {
    width: calc(100% - 36px);
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .public-content { width: calc(100% - 36px); }
  .tool-grid { grid-template-columns: 1fr; }
  .content-banner { align-items: flex-start; }
  .content-banner__image { width: 90px; height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
