:root {
  color-scheme: light;
  --ink: #152032;
  --muted: #66748a;
  --line: #dce4ee;
  --panel: #ffffff;
  --page: #f5f7fb;
  --navy: #17324d;
  --teal: #0f8b8d;
  --coral: #ec6b5e;
  --amber: #e2a736;
  --shadow: 0 20px 48px rgba(35, 49, 72, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 247, 251, 0.96)),
    var(--page);
  color: var(--ink);
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  padding: 40px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1.02fr);
  gap: 34px;
  align-items: center;
  min-height: 420px;
  padding-bottom: 28px;
}

.eyebrow,
.tool-label {
  margin: 0;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 12px 0 18px;
  font-size: clamp(2.15rem, 4.1vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  margin: 0;
  color: #405069;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.72;
}

.hero-media {
  overflow: hidden;
  border: 1px solid rgba(220, 228, 238, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tool-list {
  display: grid;
  gap: 16px;
  padding-top: 14px;
}

.tool-banner {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 148px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(35, 49, 72, 0.07);
  padding: 22px 24px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.tool-banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--accent, var(--teal));
}

.tool-banner::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(38%, 420px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.86)),
    radial-gradient(circle at 72% 50%, color-mix(in srgb, var(--accent, var(--teal)) 22%, transparent), transparent 62%);
  pointer-events: none;
}

.tool-banner:hover,
.tool-banner:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent, var(--teal)) 42%, var(--line));
  box-shadow: 0 18px 42px rgba(35, 49, 72, 0.12);
  outline: none;
}

.tool-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--teal)) 38%, #ffffff);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent, var(--teal)) 10%, #ffffff);
  color: var(--accent, var(--teal));
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0;
}

.tool-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.tool-copy h2 {
  margin: 4px 0 8px;
  color: var(--ink);
  font-size: clamp(1.38rem, 2.4vw, 2rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.tool-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.62;
}

.tool-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 44px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 900;
}

.tool-action::after {
  content: "↗";
  margin-left: 8px;
  font-size: 0.9rem;
}

.estimate {
  --accent: var(--teal);
}

.resizer {
  --accent: var(--coral);
}

.converter {
  --accent: var(--navy);
}

.qr {
  --accent: var(--amber);
}

.qr-mark {
  grid-template-columns: repeat(2, 16px);
  grid-template-rows: repeat(2, 16px);
  gap: 6px;
}

.qr-mark span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: currentColor;
}

.qr-mark span:nth-child(4) {
  width: 8px;
  height: 8px;
  align-self: end;
  justify-self: end;
}

@media (max-width: 880px) {
  .page-shell {
    width: min(100% - 28px, 720px);
    padding-top: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: auto;
  }

  .hero-media {
    order: -1;
  }
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: 2.18rem;
  }

  .tool-banner {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    min-height: 156px;
    padding: 18px;
  }

  .tool-banner::after {
    width: 52%;
    opacity: 0.72;
  }

  .tool-icon {
    width: 54px;
    height: 54px;
    font-size: 1rem;
  }

  .tool-action {
    grid-column: 2;
    justify-self: start;
    min-width: 78px;
    min-height: 40px;
  }

  .qr-mark {
    grid-template-columns: repeat(2, 12px);
    grid-template-rows: repeat(2, 12px);
    gap: 5px;
  }

  .qr-mark span {
    width: 12px;
    height: 12px;
    border-radius: 3px;
  }

  .qr-mark span:nth-child(4) {
    width: 7px;
    height: 7px;
  }
}
