/* ============================================================
   Yeyak Design System  ·  v1 (2026-07)
   Single source of truth for the rebuilt site.
   Direction: "Operator" precision + "Signal" product surface.
   Brand: dual-tone (orange fills/marks, blue accent-text/links, black contrast).
   ============================================================ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  /* ---- brand (sampled from logo) ---- */
  --orange:        #FF774C;   /* primary accent — fills, marks, buttons */
  --orange-strong: #FF6A1F;   /* deeper orange for gradients/hovers */
  --orange-soft:   #FFEEE7;   /* tint bg */
  --blue:          #005BF3;   /* brand blue — fills, marks */
  --blue-ink:      #0048C4;   /* accessible blue — accent text & links (7.7:1) */
  --blue-soft:     #E9F0FF;   /* tint bg */
  --black:         #000000;

  /* ---- neutrals (near-true, a hair cool) ---- */
  --ink:        #0B0B0D;   /* headings, body-strong */
  --muted:      #5B5B65;   /* body text */
  --faint:      #9A9AA4;   /* captions, labels */
  --line:       #E7E7EC;   /* borders */
  --line-soft:  #F0F0F3;
  --paper:      #FFFFFF;   /* base bg */
  --soft:       #F6F6F8;   /* alt section bg */

  /* ---- type ---- */
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Monaco, 'Cascadia Mono', monospace;

  /* fluid type scale */
  --fs-display: clamp(30px, 5.2vw, 60px);
  --fs-h2:      clamp(28px, 3.4vw, 40px);
  --fs-h3:      clamp(19px, 1.6vw, 22px);
  --fs-lead:    clamp(16px, 1.5vw, 18px);
  --fs-body:    15.5px;
  --fs-sm:      13.5px;
  --fs-label:   11px;

  /* ---- layout / effect ---- */
  --maxw: 1180px;
  --pad: 28px;
  --r-card: 16px;
  --r-btn: 10px;
  --r-pill: 999px;
  --shadow-sm:   0 1px 2px rgba(11,11,13,.04), 0 1px 1px rgba(11,11,13,.04);
  --shadow-card: 0 18px 40px -18px rgba(11,11,13,.18);
  --shadow-float:0 30px 60px -28px rgba(11,11,13,.34);
  --ease: cubic-bezier(.2,.7,.3,1);

  /* fine film grain for dark surfaces (fractal noise, tiled) — keeps black
     bands from reading as flat fills. Applied at low opacity + blend. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================ base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  /* ambient top-glow: a faint warm+cool wash behind the hero of every page,
     fading to paper within ~420px so the fold has atmosphere, not flat white */
  background-color: var(--paper);
  background-image:
    radial-gradient(62% 420px at 16% -60px, rgba(255,119,76,.07), transparent 70%),
    radial-gradient(58% 400px at 90% -80px, rgba(0,91,243,.06), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* guard against stray horizontal overflow; preserves sticky nav */
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ============================================================ layout */
.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft { background: var(--soft); }
.section-head { max-width: 62ch; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* ============================================================ type roles */
.display { font-size: var(--fs-display); line-height: 1.0; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
.h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.028em; font-weight: 700; text-wrap: balance; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.lead { font-size: var(--fs-lead); color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }
.accent { color: var(--blue-ink); }   /* accent emphasis (Option A) */

/* ---- Korean typography: line-breaking ----
   CJK text breaks between ANY two characters by default, which splits Korean
   words mid-word. keep-all restricts breaks to spaces (between 어절); the
   overflow-wrap fallback lets a rare over-long token wrap instead of overflowing.
   Scoped to lang=ko so English layout is untouched. */
:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
/* Heading measures are ch-tuned for English ("0"-width); Korean glyphs are ~2x
   as wide, so widen the tightest headings for Korean to sit on fuller lines. */
:lang(ko) .uc-hero h1 { max-width: 28ch; }
:lang(ko) .uc-cta-card h3 { max-width: 32ch; }
/* Keep the colored clause in the big hero headline together on one line, but
   only above phone width so a long Korean clause can't overflow a 320px screen
   (keep-all already prevents mid-word breaks when it does wrap on small screens). */
@media (min-width: 480px) { .home-hero h1 .accent { white-space: nowrap; } }

/* eyebrow — mono utility label with orange tick */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--blue-ink);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); }
.section-head:not(.left) .eyebrow { justify-content: center; }

/* ============================================================ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 14.5px; font-weight: 600; line-height: 1;
  padding: 13px 20px; border-radius: var(--r-btn); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s var(--ease), background .15s, box-shadow .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-strong); box-shadow: 0 10px 24px -10px rgba(255,106,31,.6); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #23232a; }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 15px 26px; font-size: 15px; }

/* ============================================================ pill / tag */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em;
  padding: 5px 10px; border-radius: var(--r-pill);
}
.tag--orange { background: var(--orange-soft); color: #B4460E; }
.tag--blue { background: var(--blue-soft); color: var(--blue-ink); }
.tag--line { border: 1px solid var(--line); color: var(--muted); }

/* ============================================================ card */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: transform .16s var(--ease), box-shadow .16s, border-color .16s;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }

/* ---- micro-interactions ---- */
/* link + trailing arrow nudges forward on card hover */
.lnk { display: inline-flex; align-items: center; gap: 5px; transition: transform .2s var(--ease); }
.card--hover:hover .lnk { transform: translateX(4px); }
/* inline prose links: an underline that sweeps in from the left */
.lead a, p > a:not(.btn):not(.lnk) {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%; background-repeat: no-repeat; background-size: 0 1.5px;
  transition: background-size .25s var(--ease); text-decoration: none;
}
.lead a:hover, p > a:not(.btn):not(.lnk):hover { background-size: 100% 1.5px; text-decoration: none; }

/* ============================================================ NAV (shared shell) */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line-soft); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 15px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a, .nav-trigger {
  font-family: inherit; font-size: 14px; font-weight: 500; color: var(--ink);
  background: transparent; border: 0; cursor: pointer; text-decoration: none;
  padding: 8px 13px; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px;
  transition: background .15s;
}
.nav-links > a:hover, .nav-trigger:hover { background: rgba(11,11,13,.05); text-decoration: none; }
.nav-links > a.active { color: var(--blue-ink); }
.nav-item { position: relative; }
.nav-trigger .caret { font-size: 9px; opacity: .5; transition: transform .2s; }
.nav-item:hover .nav-trigger .caret { transform: rotate(180deg); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-signin { font-size: 14px; color: var(--ink); }
.nav-signin:hover { color: var(--blue-ink); }

/* language selector — globe dropdown (scales to N languages; endonyms, no flags) */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; cursor: pointer; transition: background .15s, border-color .15s; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: rgba(11,11,13,.05); }
.lang-globe { width: 16px; height: 16px; flex: 0 0 16px; color: var(--muted); transition: color .15s; }
.lang-btn:hover .lang-globe, .lang-btn[aria-expanded="true"] .lang-globe { color: var(--ink); }
.lang-cur { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.lang-btn .caret { font-size: 9px; opacity: .5; transition: transform .2s; }
.lang-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 120; min-width: 200px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-float); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s; }
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu-lab { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 6px 10px 5px; }
.lang-opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.1; transition: background .13s, color .13s; }
.lang-opt:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.lang-opt .lang-name { flex: 1; }
.lang-opt .lang-code { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .05em; color: var(--faint); }
.lang-opt .lang-check { width: 15px; height: 15px; flex: 0 0 15px; color: var(--blue-ink); opacity: 0; }
.lang-opt.is-current { color: var(--blue-ink); background: var(--blue-soft); }
.lang-opt.is-current .lang-code { color: var(--blue-ink); opacity: .65; }
.lang-opt.is-current .lang-check { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .lang-menu { transform: none; transition: opacity .16s, visibility .16s; } }

/* product mega */
.nav-mega { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: min(760px, 90vw); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px;
  box-shadow: var(--shadow-float); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.nav-item:hover .nav-mega, .nav-item:focus-within .nav-mega { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-mega::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 12px; }
.mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mega-cols.mega-2 { grid-template-columns: 1fr 1fr; gap: 18px; }
.mega-group { display: flex; flex-direction: column; gap: 8px; }
.mega-glabel { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 0 2px 2px; }
.mega-glabel::before { content: ""; width: 16px; height: 1px; background: var(--orange); }
.mega-glabel.soon::before { background: #d7d7dc; }
.mega-col .msoon { font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 1px 6px; margin-left: 7px; vertical-align: middle; }
.mega-col { display: block; padding: 16px; border-radius: 13px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .15s var(--ease), box-shadow .15s, border-color .15s; }
.mega-col:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); text-decoration: none; }
.mega-col.warm:hover { border-color: var(--orange); }
.mega-col.cool:hover { border-color: var(--blue); }
.mega-col.ink:hover  { border-color: var(--black); }
.mega-badge { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 13px; margin-bottom: 12px; }
.mega-badge img { width: 15px; height: 15px; display: block; }
.mega-col.warm .mega-badge { background: var(--orange); }
.mega-col.cool .mega-badge { background: var(--blue); }
.mega-col.ink  .mega-badge { background: var(--black); }
.mega-col .mt { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.mega-col .ms { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-bottom: 10px; }
.mega-col .mtags { font-family: var(--mono); font-size: 10.5px; color: var(--faint); letter-spacing: .03em; }
.mega-foot { margin-top: 10px; }
.mega-foot a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; background: var(--soft); border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--ink); transition: background .15s, color .15s; }
.mega-foot a:hover { background: var(--blue-soft); color: var(--blue-ink); }

/* ============================================================ FOOTER (shared) */
.site-foot { border-top: 1px solid var(--line); background: var(--soft); }
.site-foot-in { max-width: var(--maxw); margin: 0 auto; padding: 28px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-foot .brand { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.site-foot .brand img { height: 22px; width: auto; }
.socials { display: flex; gap: 8px; }
.socials a { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--paper); }
.socials a:hover { color: var(--ink); border-color: var(--ink); text-decoration: none; }

/* ============================================================ use-case template */
.uc-hero { text-align: center; padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.uc-hero .eyebrow { justify-content: center; }
.uc-hero h1 { max-width: 20ch; margin: 0 auto 16px; }
.uc-hero .lead { max-width: 54ch; margin: 0 auto; }
.uc-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.uc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(30px, 4vw, 46px); border-top: 1px solid var(--line); padding-top: 30px; }
.uc-stat-n { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.uc-stat-l { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.uc-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.uc-value { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); }
.uc-value .num { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--orange-strong); }
.uc-value h4 { font-size: 16px; letter-spacing: -.01em; margin: 10px 0 6px; font-weight: 700; }
.uc-value p { font-size: 13.5px; color: var(--muted); }
.uc-cta-card { text-align: center; background: var(--ink); color: #fff; border-radius: 22px; padding: clamp(40px, 6vw, 64px); position: relative; overflow: hidden; }
.uc-cta-card::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 100% at 50% 0%, rgba(255,119,76,.28), transparent 62%); }
.uc-cta-card::after { content: ""; position: absolute; inset: 0; z-index: 0; background-image: var(--grain); background-size: 150px; opacity: .6; mix-blend-mode: overlay; pointer-events: none; }
.uc-cta-card > * { position: relative; z-index: 1; }
.uc-cta-card h3 { color: #fff; font-size: clamp(20px, 3vw, 28px); letter-spacing: -.02em; margin: 0 auto 22px; max-width: 26ch; }
@media (max-width: 860px) { .uc-stats, .uc-values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .uc-values-grid { grid-template-columns: 1fr; } }

/* ============================================================ responsive */
/* ---- mobile nav: hamburger + drawer (drawer built by site.js) ---- */
.nav-burger { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.nav-burger span { position: relative; display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px; transition: background .15s; }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, top .2s; }
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.nav-burger[aria-expanded="true"] span { background: transparent; }
.nav-burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.nav-drawer { position: fixed; top: 58px; left: 0; right: 0; z-index: 99; display: flex; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-card); padding: 10px var(--pad) 24px; max-height: calc(100dvh - 58px); overflow: auto; transform: translateY(-10px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.nav-drawer.open { transform: none; opacity: 1; pointer-events: auto; }
.nd-link { padding: 13px 2px; font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.nd-link:hover { text-decoration: none; color: var(--blue-ink); }
.nd-group { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-top: 16px; padding: 2px; }
.nd-sub { padding-left: 14px; }
.nd-cta { margin-top: 18px; text-align: center; background: var(--orange); color: #fff; border-radius: 10px; padding: 14px; font-weight: 600; border-bottom: 0; }
.nd-cta:hover { color: #fff; }
/* language options inside the mobile drawer (built by site.js as an nd-group) */
.nd-link.is-current { color: var(--blue-ink); }
.nd-link.is-current::after { content: "✓"; margin-left: 8px; font-size: 13px; }
@media (min-width: 861px) { .nav-drawer { display: none !important; } }

@media (max-width: 860px) {
  .nav-links, .nav-right { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
  .mega-cols, .mega-cols.mega-2 { grid-template-columns: 1fr; }
}

/* ============================================================ scroll reveal
   Content fades + rises into view as it enters the viewport. Gated behind the
   .js class (set in <head> before first paint) so no-JS users see everything,
   and fully neutralised under prefers-reduced-motion below.
   - [data-reveal]            reveal a single element
   - [data-reveal-group]      reveal a container and stagger its direct children
   - style="--reveal-delay:Nms" to offset an individual element (e.g. hero) */
.js [data-reveal],
.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].in-view,
.js [data-reveal-group].in-view > * { opacity: 1; transform: none; }

/* auto-stagger the direct children of a revealed group */
.js [data-reveal-group].in-view > *:nth-child(2) { transition-delay: 70ms; }
.js [data-reveal-group].in-view > *:nth-child(3) { transition-delay: 140ms; }
.js [data-reveal-group].in-view > *:nth-child(4) { transition-delay: 210ms; }
.js [data-reveal-group].in-view > *:nth-child(5) { transition-delay: 280ms; }
.js [data-reveal-group].in-view > *:nth-child(6) { transition-delay: 350ms; }
.js [data-reveal-group].in-view > *:nth-child(7) { transition-delay: 420ms; }
.js [data-reveal-group].in-view > *:nth-child(8) { transition-delay: 490ms; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  /* show revealed content immediately — never leave it stuck hidden */
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
}
