:root {
  --color-ink: #241b3a;
  --color-primary: #6d28d9;
  --color-primary-dark: #3c1d73;
  --color-primary-light: #f5f0ff;
  --color-text: #1c1626;
  --color-text-muted: #675f79;
  --color-bg: #ffffff;
  --color-bg-alt: #faf8ff;
  --color-border: #e8e2f5;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, "Inter", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

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

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

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

img {
  max-width: 100%;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header — absolute over the hero, scrolls away with the page */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
}

.site-header.header-light {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(36, 27, 58, 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  font-size: 19px;
  font-weight: 800;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

.site-header .logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 68px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.site-header.header-light .logo-img {
  filter: none;
}

.login-link {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.login-link:hover {
  color: #fff;
}

.site-header.header-light .login-link {
  color: var(--color-text-muted);
}

.site-header.header-light .login-link:hover {
  color: var(--color-primary);
}

/* Hero */
.hero {
  background-image:
    linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.68) 100%),
    var(--hero-photo, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
  color: #fff;
}

.hero-cover {
  position: relative;
  display: flex;
  align-items: center;
  padding: 240px 0;
}

.hero .wrap {
  text-align: center;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  animation: scrollHintBounce 2.2s ease-in-out infinite;
}

.scroll-hint:hover {
  color: rgba(255, 255, 255, 0.9);
}

.scroll-hint svg {
  width: 18px;
  height: 18px;
}

@keyframes scrollHintBounce {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint {
    animation: none;
  }
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 72px;
  font-weight: 600;
  line-height: 1.12;
  color: #fff;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
  text-wrap: wrap;
}

.hero p {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin: 0 auto 32px;
  text-wrap: wrap;
}

.hero .btn {
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

/* Solid brand-color button */
.btn-solid {
  background: var(--color-primary);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-solid:hover {
  transform: translateY(-2px);
  background: var(--color-primary-dark);
  box-shadow: 0 10px 24px rgba(36, 27, 58, 0.18);
}

.btn-solid:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Inverted (white) button for use on brand-color backgrounds, e.g. .cta-band */
.btn-invert {
  background: #fff;
  color: var(--color-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-invert:hover {
  transform: translateY(-2px);
  background: var(--color-primary-light);
}

/* Section */
section {
  padding: 96px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

/* CTA band — solid brand-color band with centered heading/subtext/button */
.cta-band {
  background: var(--color-primary);
  text-align: center;
}

.cta-band h2 {
  font-size: 40px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.cta-band p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 auto 32px;
}

.section-head {
  margin-bottom: 56px;
}

.section-head .eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
}

.section-head h2 {
  font-size: 44px;
  font-weight: 600;
  color: var(--color-ink);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.section-head p {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0;
}

.section-head.center {
  text-align: center;
}

.section-head.center p {
  margin: 0 auto;
}

/* Contact form */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-ink);
}

.form-field .required {
  color: var(--color-primary);
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.hidden-field {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--color-text);
}

.form-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.form-consent a {
  color: var(--color-primary);
  text-decoration: underline;
}

#contact-submit {
  align-self: flex-start;
}

.form-status {
  font-size: 13.5px;
  margin: 0;
  min-height: 1.4em;
}

.form-status.is-success {
  color: #1a7f4e;
}

.form-status.is-error {
  color: #c23a3a;
}

/* Legal / policy pages */
.legal-body {
  max-width: 760px;
}

.legal-body > p:first-child {
  font-size: 16px;
  color: var(--color-text);
  margin: 0 0 32px;
}

.legal-body h3 {
  font-size: 16px;
  margin: 28px 0 10px;
  color: var(--color-ink);
}

.legal-body h3:first-of-type {
  margin-top: 0;
}

.legal-body p {
  font-size: 15px;
  color: var(--color-text);
  margin: 0 0 12px;
}

.legal-body ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal-body li {
  font-size: 15px;
  color: var(--color-text);
  margin: 0 0 6px;
}

.legal-body .legal-date {
  margin-top: 40px;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* Privacy policy modal */
#privacy-trigger {
  font: inherit;
  font-size: inherit;
  color: var(--color-primary);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.privacy-modal {
  flex-direction: column;
  width: min(640px, 92vw);
  max-height: 82vh;
  padding: 0;
  border: none;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(36, 27, 58, 0.25);
  box-sizing: border-box;
}

.privacy-modal[open] {
  display: flex;
}

.privacy-modal::backdrop {
  background: rgba(28, 22, 38, 0.5);
}

.privacy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.privacy-modal-header h2 {
  font-size: 18px;
  margin: 0;
}

#privacy-close {
  font: inherit;
  font-size: 22px;
  line-height: 1;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

#privacy-close:hover {
  color: var(--color-ink);
}

.privacy-modal-body {
  padding: 20px 24px 28px;
  overflow-y: auto;
}

/* Performance stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 640px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  margin-bottom: 14px;
}

.stat-icon svg {
  width: 20px;
  height: 20px;
}

.stat-number {
  display: block;
  font-size: 48px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Business channels */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.channel-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(36, 27, 58, 0.1);
}

.channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}

.channel-icon svg {
  width: 22px;
  height: 22px;
}

.channel-tag {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.channel-card h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--color-ink);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.channel-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
}

/* Partners */
.partner-group {
  margin-bottom: 32px;
}

.partner-group h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 4px;
}

.partner-group .sub {
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin: 0 0 14px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 112px;
  padding: 16px 20px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.logo-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 24px rgba(36, 27, 58, 0.08);
}

.logo-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
}

.logo-card-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1.is-visible { transition-delay: 0.08s; }
.reveal-delay-2.is-visible { transition-delay: 0.16s; }
.reveal-delay-3.is-visible { transition-delay: 0.24s; }
.reveal-delay-4.is-visible { transition-delay: 0.32s; }

/* Footer */
.site-footer {
  background: #fff;
  color: var(--color-text-muted);
  padding: 40px 0 32px;
}

.site-footer p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 4px 0;
}

.footer-legal {
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0 0 10px;
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero-cover {
    padding: 155px 0 145px;
  }

  .scroll-hint {
    display: none;
  }

  section {
    padding: 64px 0;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .cta-band h2 {
    font-size: 28px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stat-number {
    font-size: 36px;
  }

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