:root {
  --blue: #287cff;
  --blue-dark: #145fd9;
  --ink: #202733;
  --text: #444c57;
  --muted: #8b95a1;
  --line: #e5eaf2;
  --soft: #f4f7fc;
  --white: #ffffff;
  --dark: #2b3038;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #eef1f6;
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
}

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

button,
input {
  font: inherit;
}

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

.site-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.04);
}

.event-strip {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 18px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 56px);
  border-bottom: 1px solid rgba(229, 234, 242, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.brand b {
  font-weight: 900;
}

.brand-icon {
  position: relative;
  width: 24px;
  height: 24px;
}

.brand-icon::before,
.brand-icon::after {
  position: absolute;
  content: "";
  border-radius: 6px;
}

.brand-icon::before {
  inset: 3px 10px 3px 0;
  background: var(--blue);
  transform: rotate(45deg);
}

.brand-icon::after {
  inset: 3px 0 3px 10px;
  background: #47a9ff;
  transform: rotate(-45deg);
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 4vw, 48px);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.header-cta,
.primary-button,
.ghost-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

.header-cta {
  min-height: 38px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
}

.primary-button,
.submit-button {
  color: #fff;
  background: var(--blue);
}

.ghost-button {
  color: var(--blue);
  background: #eef4ff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(26px, 5vw, 64px);
  padding: clamp(70px, 9vw, 110px) clamp(24px, 6vw, 76px);
  background:
    radial-gradient(circle at 82% 22%, rgba(40, 124, 255, 0.12), transparent 36%),
    linear-gradient(180deg, #f6f9ff 0%, #fff 80%);
}

.eyebrow,
.section-title p,
.contact-copy p {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 900;
}

.hero h1,
.section-title h2,
.contact-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
  word-break: keep-all;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  word-break: keep-all;
}

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

.hero-art {
  display: grid;
  place-items: center;
}

.hero-art img {
  width: min(430px, 100%);
  mix-blend-mode: multiply;
  filter: drop-shadow(0 26px 44px rgba(20, 95, 217, 0.2));
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.stats div {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 140px;
  background: #fff;
}

.stats strong {
  color: var(--ink);
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
}

.stats span {
  color: var(--muted);
  font-weight: 800;
}

.section {
  padding: clamp(72px, 9vw, 116px) clamp(24px, 6vw, 76px);
}

.section-title {
  max-width: 720px;
  margin-bottom: 34px;
}

.story-grid,
.solution-grid,
.support-grid {
  display: grid;
  gap: 18px;
}

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

.story-grid article,
.solution-card,
.support-grid a,
.faq-list details,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(29, 44, 72, 0.06);
}

.story-grid article {
  min-height: 240px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(20, 31, 50, 0.12), rgba(20, 31, 50, 0.78)),
    url("assets/hero-vivapay.png");
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.story-grid article:nth-child(2) {
  background-position: 62% center;
}

.story-grid article:nth-child(3) {
  background-image:
    linear-gradient(180deg, rgba(20, 31, 50, 0.12), rgba(20, 31, 50, 0.78)),
    url("assets/hero-terminal.png");
}

.story-grid span {
  font-weight: 900;
}

.story-grid h3 {
  margin: 8px 0 18px;
  font-size: 21px;
  line-height: 1.35;
  word-break: keep-all;
}

.story-grid a {
  font-weight: 900;
}

.solutions,
.support {
  background: var(--soft);
}

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

.solution-card {
  padding: 26px;
}

.solution-card b {
  color: var(--blue);
  font-size: 14px;
}

.solution-card h3 {
  margin: 16px 0 10px;
  color: var(--ink);
  font-size: 21px;
}

.solution-card p,
.support-grid span,
.faq-list p {
  margin: 0;
  color: var(--text);
  word-break: keep-all;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 22px;
  background: linear-gradient(135deg, #eef4ff, #ffffff);
}

.product-image {
  display: grid;
  place-items: center;
}

.product-image img {
  width: min(360px, 100%);
  mix-blend-mode: multiply;
}

.product-copy span {
  color: var(--blue);
  font-weight: 900;
}

.product-copy h3 {
  margin: 8px 0 18px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  word-break: keep-all;
}

.product-copy ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin: 0 0 26px;
  font-weight: 700;
}

.package-tabs {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  overflow-x: auto;
}

.package-tabs button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.package-tabs .active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

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

.support-grid a {
  display: grid;
  gap: 10px;
  padding: 28px;
}

.support-grid strong {
  color: var(--ink);
  font-size: 22px;
}

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

.faq-list details {
  padding: 22px 24px;
}

.faq-list summary {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.faq-list p {
  margin-top: 12px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  padding: clamp(72px, 9vw, 116px) clamp(24px, 6vw, 76px);
  background: linear-gradient(135deg, #1e63e8, #3993ff);
  color: #fff;
}

.contact-copy p,
.contact-copy h2,
.contact-copy span {
  color: #fff;
}

.contact-copy span {
  display: block;
  margin-top: 18px;
  font-size: 18px;
  font-weight: 800;
}

.lead-form {
  padding: 28px;
}

.lead-form h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
  word-break: keep-all;
}

.store-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 44px;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: #f0f1f3;
}

.store-tabs button {
  border: 0;
  border-radius: 8px;
  color: #9ca3af;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.store-tabs button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.12);
}

.lead-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  font-size: 16px;
}

.submit-button {
  width: 100%;
  margin-top: 14px;
}

.form-message {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.footer {
  padding: 42px clamp(24px, 6vw, 76px) 58px;
  color: #f3f4f6;
  background: var(--dark);
}

.footer p {
  margin: 0 0 7px;
}

.footer .company-name {
  margin-bottom: 16px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  font-weight: 900;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .site-shell {
    width: 100%;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 60px;
  }

  .nav {
    display: none;
  }

  .hero,
  .product-card,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .stats,
  .story-grid,
  .solution-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .stats div {
    min-height: 110px;
  }
}

@media (max-width: 520px) {
  body {
    background: #fff;
  }

  .header-cta {
    display: none;
  }

  .brand {
    font-size: 17px;
  }

  .hero,
  .section,
  .contact-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-actions .primary-button,
  .hero-actions .ghost-button {
    width: 100%;
  }

  .hero h1,
  .section-title h2,
  .contact-copy h2 {
    font-size: 32px;
  }
}
