/* ==========================================================================
   JC Ltd - Stripe-faithful design system
   Reference: refero.design "Stripe" DESIGN.md (48e5de76-...)
     "violet horizon at dawn" - cool Mist canvas (#e5edf5), single Electric Iris
     accent (#533afd), weight-300 headlines with tight tracking, gradient-text H1/H2,
     atmospheric violet->magenta->amber gradient halos (never behind text),
     4px radius everywhere (load-bearing), flat surfaces, Soehne/Inter.
   ========================================================================== */

:root {
  --iris: #533afd;        /* primary action */
  --iris-h: #6243ff;      /* hover */
  --iris-2: #8087ff;      /* secondary accent */
  --ink: #061b31;         /* primary text / midnight */
  --navy: #0a2540;        /* dark stage sections */
  --navy-2: #072036;
  --steel: #50617a;       /* body text */
  --fog: #3c4f69;
  --slate: #64748d;       /* muted */
  --pewter: #7d8ba4;      /* tertiary */
  --mist: #e5edf5;        /* page background */
  --snow: #f8fafd;        /* card surface */
  --paper: #ffffff;
  --wash: #e2e4ff;        /* violet wash */
  --glow: #d6d9fc;
  --line: #d3deea;        /* border on mist */
  --line-2: #c2d0e0;

  /* gradient art */
  --magenta: #f72df3;
  --ember: #ff6118;
  --solar: #ffbb00;
  --sky: #11b3ff;

  /* dark stage neutrals */
  --d-text: #ffffff;
  --d-sec: #9fb2c9;
  --d-line: rgba(255, 255, 255, 0.12);

  --grad-text: linear-gradient(96deg, var(--iris) 0%, #3d4f6e 78%);
  --grad-halo: radial-gradient(closest-side, rgba(83, 58, 253, 0.55), rgba(247, 45, 243, 0.4) 45%, rgba(255, 187, 0, 0.18) 72%, transparent 100%);
  --grad-sweep: linear-gradient(125deg, var(--sky) 0%, var(--iris) 24%, #8b5cf6 44%, var(--magenta) 64%, var(--ember) 84%, var(--solar) 100%);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-kr: "Pretendard", "Pretendard Variable", -apple-system, "Apple SD Gothic Neo", sans-serif;
  --font-body: var(--font-sans);

  --maxw: 1200px;
  --gutter: clamp(22px, 5vw, 48px);
  --r: 4px;             /* universal radius (Stripe discipline) */
  --r-lg: 8px;          /* max */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[lang="ko"] {
  --font-body: var(--font-kr);
}

/* ============================================================
   Dark theme
   - no [data-theme] attr  -> follow system (prefers-color-scheme)
   - [data-theme="dark"]    -> forced dark (toggle)
   - [data-theme="light"]   -> forced light (base :root)
   ============================================================ */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eaf2fb;
  --steel: #a8bace;
  --slate: #8a9cb3;
  --pewter: #758699;
  --fog: #bccadb;
  --mist: #081726;
  --snow: #0e2034;
  --paper: #132a40;
  --wash: rgba(83, 58, 253, 0.2);
  --glow: rgba(83, 58, 253, 0.3);
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.2);
  --navy: #0c2238;
  --navy-2: #081726;
  --iris-h: #6f57ff;
  --grad-text: linear-gradient(96deg, #8da2ff 0%, #dce7f6 82%);
}
:root[data-theme="dark"] .site-header {
  background: rgba(8, 23, 38, 0.82);
}
:root[data-theme="dark"] .flywheel-svg circle[stroke="#d3deea"] {
  stroke: rgba(255, 255, 255, 0.13);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #eaf2fb;
    --steel: #a8bace;
    --slate: #8a9cb3;
    --pewter: #758699;
    --fog: #bccadb;
    --mist: #081726;
    --snow: #0e2034;
    --paper: #132a40;
    --wash: rgba(83, 58, 253, 0.2);
    --glow: rgba(83, 58, 253, 0.3);
    --line: rgba(255, 255, 255, 0.12);
    --line-2: rgba(255, 255, 255, 0.2);
    --navy: #0c2238;
    --navy-2: #081726;
    --iris-h: #6f57ff;
    --grad-text: linear-gradient(96deg, #8da2ff 0%, #dce7f6 82%);
  }
  :root:not([data-theme="light"]) .site-header {
    background: rgba(8, 23, 38, 0.82);
  }
  :root:not([data-theme="light"]) .flywheel-svg circle[stroke="#d3deea"] {
    stroke: rgba(255, 255, 255, 0.13);
  }
}

/* theme toggle button */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.theme-toggle:hover {
  border-color: var(--line-2);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}
.theme-toggle .ic-auto,
.theme-toggle .ic-sun,
.theme-toggle .ic-moon {
  display: none;
}
.theme-toggle.mode-system .ic-auto {
  display: block;
}
.theme-toggle.mode-light .ic-sun {
  display: block;
}
.theme-toggle.mode-dark .ic-moon {
  display: block;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--mist);
  color: var(--steel);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
ul {
  list-style: none;
  padding: 0;
}

html[lang="en"] [data-ko],
html[lang="ko"] [data-en] {
  display: none !important;
}

/* ---- Clean line breaks (no awkward orphans / lopsided wraps) ---- */
h1,
h2,
h3,
h4,
.section-head p,
.lead,
.cta-band p,
.trust-card span,
.svc-card p,
.flow-card p,
.cap p,
.value p,
.step p,
.eyebrow {
  text-wrap: balance;
}
.prose p,
.contact-aside p {
  text-wrap: pretty;
}

/* ---- Korean typography (supanova standard) ----
   word-break: keep-all -> wrap at word (eojeol) boundaries, never mid-word.
   Korean needs more vertical breathing room: looser line-height, never leading-none. */
html[lang="ko"] {
  word-break: keep-all;
  line-break: strict;
}
html[lang="ko"] h1,
html[lang="ko"] h2,
html[lang="ko"] h3,
html[lang="ko"] h4 {
  line-height: 1.28;
  letter-spacing: -0.018em;
}
html[lang="ko"] .hero h1 {
  line-height: 1.2;
}
html[lang="ko"] .page-hero h1,
html[lang="ko"] .section-head h2,
html[lang="ko"] .cta-band h2 {
  line-height: 1.24;
}
html[lang="ko"] .lead {
  line-height: 1.6;
}

/* ---- Type (weight 300 headlines = Stripe signature) ---- */
h1,
h2,
h3,
h4 {
  font-weight: 300;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.022em;
}
h3,
h4 {
  font-weight: 400;
  letter-spacing: -0.018em;
}
.gradient-text,
.hero h1,
.page-hero h1,
.section-head h2 {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* gradient (clip:text) crops glyph descenders (g, y, p) on the last
     line when line-height is tight - pad the box so they stay filled */
  padding-bottom: 0.14em;
}
.eyebrow {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: -0.002em;
  color: var(--iris);
}
.eyebrow.on-dark {
  color: var(--iris-2);
}
.lead {
  font-size: clamp(1.14rem, 2vw, 1.32rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.008em;
  color: var(--steel);
}
.muted {
  color: var(--slate);
}

/* ---- Layout ---- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section {
  padding-block: clamp(64px, 8vw, 96px);
}
.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 60px);
  text-align: center;
}
.section-head .eyebrow {
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  letter-spacing: -0.028em;
}
.section-head p {
  margin-top: 18px;
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  color: var(--steel);
  line-height: 1.5;
  max-width: 620px;
  margin-inline: auto;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(229, 237, 245, 0.8);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 1.14rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand .mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.brand small {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--slate);
  margin-top: 1px;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--fog);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--iris);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 2px;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--slate);
  padding: 5px 10px;
  border-radius: 2px;
  transition: 0.2s;
}
.lang-toggle button.is-active {
  background: var(--iris);
  color: #fff;
}

/* ---- Buttons (4px radius, single iris CTA) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.006em;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--r);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn-primary,
.btn-gold {
  background: var(--iris);
  color: #fff;
}
.btn-primary:hover,
.btn-gold:hover {
  background: var(--iris-h);
  box-shadow: 0 2px 14px rgba(83, 58, 253, 0.34);
}
.btn-sm {
  padding: 9px 15px;
  font-size: 0.9rem;
}
/* secondary = outlined ink, inverts on hover */
.btn-ghost,
.btn-ghost.on-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover,
.btn-ghost.on-dark:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---- Hero (Stripe: left copy + gradient visual + halo) ---- */
.hero {
  position: relative;
  background: var(--mist);
  overflow: hidden;
  padding-block: clamp(64px, 10vw, 116px) clamp(56px, 8vw, 96px);
}
.hero::before {
  content: "";
  position: absolute;
  top: -22%;
  right: -14%;
  width: 62%;
  height: 130%;
  background: var(--grad-halo);
  filter: blur(38px);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}
/* mobile/tablet (single column): keep the halo in the upper-right so it
   fades out well above the section edge - otherwise overflow:hidden cuts
   the blurred blob in a straight line and looks like a white seam */
@media (max-width: 899px) {
  .hero::before {
    top: -6%;
    right: -28%;
    width: 96%;
    height: 64%;
    opacity: 0.6;
  }
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.hero-copy .eyebrow {
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 300;
}
.hero h1 .accent {
  font-weight: 400;
}
.hero .lead {
  margin-top: 22px;
  max-width: 520px;
  font-size: clamp(1.16rem, 2vw, 1.4rem);
  color: var(--fog);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: clamp(40px, 6vw, 60px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  justify-content: start;
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
}
.hero-stats .stat span {
  display: block;
  font-size: 0.86rem;
  color: var(--slate);
  margin-top: 3px;
}

/* hero visual panel (the gradient asset that fills the space) */
.hero-visual {
  display: none;
  position: relative;
}
.hero-panel {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  background: var(--grad-sweep);
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(83, 58, 253, 0.5), 0 4px 16px rgba(6, 27, 49, 0.16);
  display: grid;
  place-items: center;
}
.hero-orb {
  position: absolute;
  width: 70%;
  height: 70%;
  top: -18%;
  right: -18%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.6), transparent 70%);
  filter: blur(8px);
}
.hero-gate {
  position: relative;
  width: 76%;
  height: 76%;
  filter: drop-shadow(0 6px 18px rgba(6, 27, 49, 0.28));
}

/* ---- Gateway (two-way) ---- */
.gateway {
  background: var(--snow);
}
.gateway-flow {
  display: grid;
  gap: 16px;
  align-items: stretch;
}
.flow-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(28px, 3.6vw, 40px);
  overflow: hidden;
}
.flow-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--grad-sweep);
  opacity: 0.85;
}
.flow-card .dir {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.004em;
  color: var(--iris);
  margin-bottom: 16px;
}
.flow-card .dir .arrow {
  width: 22px;
  height: 1.5px;
  background: var(--iris);
  position: relative;
}
.flow-card .dir .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  border: 3.5px solid transparent;
  border-left-color: var(--iris);
}
.flow-card h3 {
  font-size: 1.46rem;
  margin-bottom: 12px;
  letter-spacing: -0.022em;
}
.flow-card p {
  color: var(--steel);
  font-size: 1.04rem;
}
.flow-bridge {
  display: inline-flex;
  align-self: center;
  justify-self: center;
  align-items: center;
  justify-content: center;
  background: var(--iris);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 9px 15px;
  border-radius: var(--r);
}

/* ---- Flywheel (two-way momentum visual) ---- */
.flywheel {
  display: grid;
  justify-items: center;
  gap: clamp(40px, 6vw, 64px);
  margin-top: clamp(20px, 4vw, 44px);
}
.flywheel-stage {
  position: relative;
  width: min(380px, 80vw);
  aspect-ratio: 1;
}
.flywheel-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.fw-arc-out,
.fw-arc-in {
  transform-box: fill-box;
  transform-origin: center;
}
.fw-arc-out {
  animation: fwspin 26s linear infinite;
}
.fw-arc-in {
  animation: fwspin 18s linear infinite reverse;
}
@keyframes fwspin {
  to {
    transform: rotate(360deg);
  }
}
.fw-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--iris), #6a4bff);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  box-shadow: 0 16px 38px -10px rgba(83, 58, 253, 0.6);
}
.fw-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 8px 20px -8px rgba(50, 50, 93, 0.22);
  white-space: nowrap;
}
.fw-node-home {
  border-color: rgba(255, 120, 60, 0.5);
}
.fw-node-home span {
  background: linear-gradient(95deg, #ffae33 0%, #ff4d4d 48%, #f72df3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}
.flywheel-legend {
  display: grid;
  gap: 28px;
  width: 100%;
  max-width: 720px;
}
.leg {
  text-align: center;
}
.leg .dir {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--iris);
  background: var(--wash);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.leg h3 {
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.leg p {
  color: var(--steel);
  font-size: 1.02rem;
}
@media (min-width: 760px) {
  .flywheel-legend {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 520px) {
  .fw-node {
    font-size: 0.68rem;
    padding: 4px 9px;
  }
  .fw-core {
    width: 72px;
    height: 72px;
    font-size: 1.45rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fw-arc-out,
  .fw-arc-in {
    animation: none;
  }
}

/* compact centered about strip (after content was trimmed) */
.about-strip {
  padding-block: clamp(52px, 7vw, 84px);
}
.about-strip h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin-inline: auto;
}

/* ---- Service cards ---- */
.svc-grid {
  display: grid;
  gap: 16px;
}
.svc-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(26px, 3vw, 36px);
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(50, 50, 93, 0.35);
}
.svc-num {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--pewter);
  margin-bottom: 22px;
  font-variant-numeric: tabular-nums;
}
.svc-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  background: var(--wash);
  margin-bottom: 20px;
}
.svc-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--iris);
  fill: none;
}
.svc-card h3 {
  font-size: 1.3rem;
  margin-bottom: 11px;
  letter-spacing: -0.02em;
}
.svc-card p {
  color: var(--steel);
  font-size: 1rem;
}
.svc-card .tag {
  margin-top: auto;
  padding-top: 22px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--iris);
}
.svc-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.svc-list li {
  position: relative;
  padding: 17px 20px 17px 54px;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.svc-list li:hover {
  border-color: var(--iris-2);
  box-shadow: 0 10px 26px -18px rgba(50, 50, 93, 0.35);
}
/* check-in-circle marker (capabilities feel, not PPT bullets) */
.svc-list li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--wash);
}
.svc-list li::after {
  content: "";
  position: absolute;
  left: 24.5px;
  top: 50%;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--iris);
  border-bottom: 2px solid var(--iris);
  transform: translateY(-72%) rotate(-45deg);
}

/* ---- Service feature modules (premium, varied per service) ---- */
.svc-feature {
  position: relative;
  padding-block: clamp(60px, 8.5vw, 116px);
}
.svc-feature.svc-alt {
  background: var(--snow);
}
.svc-feature-grid {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.svc-head {
  position: relative;
}
.svc-no {
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.05em;
  background: linear-gradient(125deg, var(--iris) 0%, var(--magenta) 68%, var(--solar) 112%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}
.svc-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--iris);
  background: var(--wash);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.svc-head h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.svc-head .lead {
  color: var(--steel);
  max-width: 34ch;
}
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--iris);
}
.svc-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}
.svc-link:hover svg {
  transform: translateX(4px);
}
.svc-caps {
  display: grid;
  gap: 14px;
}
.cap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.2s;
}
.cap:hover {
  transform: translateY(-3px);
  border-color: var(--iris-2);
  box-shadow: 0 18px 42px -24px rgba(50, 50, 93, 0.42);
}
.cap h4 {
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0;
  letter-spacing: -0.015em;
}
.cap p {
  font-size: 0.96rem;
  color: var(--steel);
  line-height: 1.45;
}
@media (min-width: 760px) {
  .svc-caps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .svc-feature-grid {
    grid-template-columns: 0.82fr 1.18fr;
  }
  .svc-alt .svc-head {
    order: 2;
  }
  .svc-alt .svc-caps {
    order: 1;
  }
}

/* ---- Trust (dark navy stage) ---- */
.trust {
  position: relative;
  background: var(--navy);
  color: var(--d-text);
  overflow: hidden;
}
.trust::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -10%;
  width: 60%;
  height: 150%;
  background: var(--grad-halo);
  filter: blur(50px);
  opacity: 0.5;
  pointer-events: none;
}
.trust .wrap {
  position: relative;
}
.trust .section-head h2 {
  background: linear-gradient(96deg, #fff 0%, #b9c6da 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trust .section-head p {
  color: var(--d-sec);
}
.trust-grid {
  display: grid;
  gap: 16px;
}
.trust-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--d-line);
  border-radius: var(--r);
  padding: 32px;
}
.trust-card strong {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 12px;
}
.trust-card span {
  color: var(--d-sec);
  font-size: 0.98rem;
}

/* ---- Split / prose ---- */
.split {
  display: grid;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
.prose p {
  color: var(--steel);
  font-size: 1.08rem;
  line-height: 1.55;
}
.prose p + p {
  margin-top: 18px;
}

/* ---- Steps ---- */
.steps {
  display: grid;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.step:last-child {
  border-bottom: 1px solid var(--line);
}
.step .n {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--iris);
  padding-top: 5px;
  font-variant-numeric: tabular-nums;
}
.step h4 {
  font-size: 1.28rem;
  margin-bottom: 9px;
  letter-spacing: -0.02em;
}
.step p {
  color: var(--steel);
  font-size: 1.04rem;
}

/* ---- Values ---- */
.values {
  display: grid;
  gap: 16px;
}
.value {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px;
}
.value h4 {
  font-size: 1.22rem;
  margin-bottom: 11px;
  letter-spacing: -0.02em;
}
.value p {
  color: var(--steel);
  font-size: 1rem;
}

/* ---- CTA band (dark navy + halo) ---- */
.cta-band {
  position: relative;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(48px, 7vw, 88px) clamp(28px, 6vw, 76px);
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 200%;
  background: var(--grad-halo);
  filter: blur(46px);
  opacity: 0.55;
  pointer-events: none;
}
.cta-band > * {
  position: relative;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  letter-spacing: -0.026em;
  max-width: 720px;
  margin-inline: auto;
}
.cta-band p {
  color: var(--d-sec);
  margin: 16px auto 0;
  max-width: 520px;
  font-size: 1.16rem;
}
.cta-band .hero-cta {
  margin-top: 30px;
  justify-content: center;
}

/* ---- Page hero (inner, light + halo) ---- */
.page-hero {
  position: relative;
  background: var(--mist);
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 112px) clamp(36px, 5vw, 60px);
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 170%;
  background: var(--grad-halo);
  filter: blur(50px);
  opacity: 0.5;
  pointer-events: none;
}
.page-hero .wrap {
  position: relative;
}
.page-hero .eyebrow {
  margin-bottom: 14px;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  letter-spacing: -0.03em;
  max-width: 880px;
  margin-inline: auto;
  font-weight: 300;
}
.page-hero .lead {
  margin: 20px auto 0;
  max-width: 640px;
  color: var(--fog);
}

/* ---- Contact ---- */
.contact-layout {
  display: grid;
  gap: clamp(36px, 6vw, 68px);
}
.contact-aside h3 {
  font-size: 1.46rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.contact-aside p {
  color: var(--steel);
}
.contact-detail {
  margin-top: 28px;
  display: grid;
  gap: 0;
}
.contact-detail .item {
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.contact-detail .item:last-child {
  border-bottom: 1px solid var(--line);
}
.contact-detail .item .label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 5px;
}
.contact-detail .item a,
.contact-detail .item span {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink);
}
.contact-detail .item a:hover {
  color: var(--iris);
}

form.contact-form {
  display: grid;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: 0 16px 40px -28px rgba(50, 50, 93, 0.4);
}
.field {
  display: grid;
  gap: 7px;
}
.field-row {
  display: grid;
  gap: 18px;
}
.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--snow);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--iris);
  box-shadow: 0 0 0 3px rgba(83, 58, 253, 0.16);
}
.field textarea {
  resize: vertical;
  min-height: 140px;
}
.form-note {
  font-size: 0.85rem;
  color: var(--slate);
}
.form-status {
  font-size: 0.94rem;
  display: none;
  padding: 13px 15px;
  border-radius: var(--r);
}
.form-status.ok {
  display: block;
  background: var(--wash);
  color: var(--iris);
}
.form-status.err {
  display: block;
  background: #fdeee9;
  color: #c0490f;
}

/* ---- Footer (light) ---- */
.site-footer {
  background: var(--snow);
  border-top: 1px solid var(--line);
  color: var(--steel);
  padding-block: clamp(48px, 6vw, 72px) 30px;
  font-size: 0.92rem;
}
.footer-top {
  display: grid;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand {
  color: var(--ink);
}
.footer-brand p {
  margin-top: 14px;
  max-width: 320px;
  color: var(--steel);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 0.92rem;
  color: var(--steel);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--iris);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--slate);
}

/* ---- Mobile nav ---- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--r);
  padding: 0 10px;
}
.nav-toggle span {
  height: 1.5px;
  background: var(--ink);
  transition: 0.25s var(--ease);
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
.mobile-menu {
  position: fixed;
  inset: 64px 0 auto 0;
  background: rgba(248, 250, 253, 0.96);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter) 24px;
  display: grid;
  gap: 0;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s var(--ease);
  z-index: 55;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  padding: 15px 2px;
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn {
  margin-top: 18px;
  justify-content: center;
}

/* ---- Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---- Section backgrounds ---- */
section:has(.svc-grid),
section:has(.values) {
  background: var(--snow);
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gateway-flow {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
}
@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .hero-visual {
    display: block;
  }
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .contact-layout {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .footer-top {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .values {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   High-end polish pass (skill: high-end-visual-design)
   Staggered reveals, deeper hero panel, button press physics, refined motion.
   ========================================================================== */
.reveal {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(6px);
}
.reveal.in {
  filter: blur(0);
}
.svc-grid .reveal:nth-child(2),
.values .reveal:nth-child(2) {
  transition-delay: 90ms;
}
.svc-grid .reveal:nth-child(3),
.values .reveal:nth-child(3) {
  transition-delay: 180ms;
}
.svc-grid .reveal:nth-child(4),
.values .reveal:nth-child(4) {
  transition-delay: 270ms;
}
.btn {
  transition: background 0.3s var(--ease), color 0.2s, border-color 0.2s, box-shadow 0.3s,
    transform 0.15s var(--ease);
}
.btn:active {
  transform: scale(0.97);
}
/* hero panel: nested-bezel depth + inner highlight */
.hero-panel {
  box-shadow: 0 44px 84px -30px rgba(83, 58, 253, 0.58), 0 10px 30px rgba(6, 27, 49, 0.16),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
  outline: 6px solid rgba(255, 255, 255, 0.55);
  outline-offset: -1px;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    filter: none;
  }
}

/* ==========================================================================
   Interactive components (About): tabs + accordion
   ========================================================================== */
/* tabs (on dark philosophy section) */
.tabs {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.tabs-nav {
  display: inline-flex;
  gap: clamp(26px, 5vw, 52px);
  border-bottom: 1px solid var(--d-line);
}
.tab-btn {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--d-sec);
  font-family: inherit;
  font-weight: 500;
  font-size: 1.06rem;
  letter-spacing: -0.012em;
  padding: 0 2px 16px;
  transition: color 0.3s var(--ease);
}
.tab-btn:hover {
  color: rgba(255, 255, 255, 0.82);
}
.tab-btn.is-active {
  color: #fff;
}
.tab-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--iris-2), var(--magenta));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.tab-btn.is-active::after {
  transform: scaleX(1);
}
.tabs-panels {
  margin-top: 38px;
  min-height: 96px;
}
.tab-panel {
  display: none;
}
.tab-panel.is-active {
  display: block;
  animation: tabfade 0.5s var(--ease);
}
.tab-panel p {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.3;
  max-width: 640px;
  margin-inline: auto;
}
@keyframes tabfade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* accordion (on light how-we-work section) */
.accordion {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}
.acc-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.acc-item.is-open {
  border-color: var(--iris-2);
  box-shadow: 0 18px 42px -26px rgba(50, 50, 93, 0.42);
}
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: transparent;
  border: 0;
  text-align: left;
}
.acc-n {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--iris);
  font-variant-numeric: tabular-nums;
}
.acc-title {
  flex: 1;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.acc-chevron {
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--slate);
  border-bottom: 2px solid var(--slate);
  transform: rotate(45deg);
  transition: transform 0.4s var(--ease);
  flex: none;
}
.acc-item.is-open .acc-chevron {
  transform: rotate(-135deg);
}
.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.acc-item.is-open .acc-body {
  grid-template-rows: 1fr;
}
.acc-body-inner {
  overflow: hidden;
}
.acc-body-inner p {
  padding: 0 24px 24px 60px;
  color: var(--steel);
  font-size: 1.04rem;
}

/* "Who we are" - centered editorial statement */
.whoami {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}
.whoami h2 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  margin-top: 16px;
  line-height: 1.08;
}
.whoami .lead {
  margin: 24px auto 0;
  max-width: 520px;
  color: var(--slate);
}
.grad-accent {
  background: linear-gradient(92deg, var(--iris), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[lang="ko"] .whoami h2 {
  line-height: 1.22;
}

/* services: balanced 2x2 keyword grid, even card heights + summary under boxes */
.svc-caps {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cap {
  padding: 16px 20px;
  border-radius: 12px;
  min-height: 62px;
  display: flex;
  align-items: center;
}
.cap h4 {
  font-size: 1rem;
  line-height: 1.25;
}
.svc-summary {
  margin-top: 22px;
  color: var(--steel);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 48ch;
}
.tab-btn {
  outline: none;
}
.tab-btn:focus-visible {
  outline: 2px solid var(--iris-2);
  outline-offset: 4px;
  border-radius: 4px;
}

.svc-alt .svc-detail { order: 1; }
.svc-detail { min-width: 0; }
