/* Homepage in the /about design system (loaded after home.css and about.css; tokens, labels, buttons, the closing section and the
   reveal motion come from css/about.css + js/about.js). White / black / grey sections with large type and lime as the only accent.
   The product visuals (hero window, stage demo, chart panels) stay dark "screens" set into the light sections: the light sections
   remap the colour tokens of css/styles.css, and each screen maps them back. */

.ab.hm { font-size: 15px; line-height: 1.5; --container: 1280px; --fl-a: var(--lime); }
.hm .container { padding: 0 clamp(20px, 4vw, 40px); }
.hm > section { padding-bottom: var(--sec-y); }

/* ---------- colour tokens per section ---------- */
.hm .ab-light, .hm .ab-grey { --fg: #111; --fg-2: #6b6b6b; --fg-3: #6b6b6b; --fg-4: #b5b5b5; --line: #e4e4e4; --line-soft: #e4e4e4; --line-dash: #e4e4e4; --bg-1: #fff; --bg-2: #f5f5f5; --bg-3: #ececec; --bg-4: #e0e0e0; }
.hm .app, .hm .cap-grid, .hm .ctx-visual, .hm .feat-visual, .hm .ent-visual { --fg: #edf2f5; --fg-2: #9f9f9f; --fg-3: #828282; --fg-4: #505050; --line: #262626; --line-soft: rgba(255, 255, 255, .08); --line-dash: rgba(255, 255, 255, .12); --bg-1: #0a0a0b; --bg-2: #131313; --bg-3: #1c1c1c; --bg-4: #222; color: var(--fg); }

/* ---------- type ---------- */
.hm .section-head { max-width: 980px; padding: var(--sec-y) 0 clamp(40px, 5vw, 72px); }
.hm .section-head--row { max-width: none; align-items: flex-end; }
.hm .section-head--row > div { max-width: 980px; }
.hm .section-head .ab-label { margin-bottom: 28px; }
.hm .section-head h2 { font-size: clamp(34px, 4.6vw, 64px); font-weight: 650; letter-spacing: -0.045em; line-height: 1.08; text-wrap: balance; }
html[lang="ko"] .hm .section-head h2, html[lang="ko"] .hm .hero-title, html[lang="ko"] .hm .stmt-text { letter-spacing: -0.04em; line-height: 1.2; font-weight: 700; word-break: keep-all; }
.hm .section-head p:not(.ab-label) { margin-top: 28px; max-width: 600px; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.75; color: var(--muted); }
.hm .ab-dark .section-head p:not(.ab-label), .hm .ab-ink .section-head p:not(.ab-label) { color: var(--muted-d); }

/* ---------- buttons ---------- */
.hm .btn { min-height: 48px; padding: 12px 24px; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; transition: background .2s, color .2s, transform .2s var(--ease); }
.hm .btn:hover { transform: translateY(-2px); }
.hm .btn-sm { min-height: 44px; padding: 10px 20px; font-size: 14.5px; }
.hm .btn-white, .hm .btn-grey { background: var(--ink); color: #fff; }
.hm .btn-white:hover, .hm .btn-grey:hover { background: #333; }
.hm .hero-cta .btn-grey { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #cfcfcf; }
.hm .hero-cta .btn-grey:hover { background: var(--grey); }
.hm .ab-dark .btn-grey, .hm .ab-ink .btn-grey { background: rgba(255, 255, 255, .12); color: #fff; }
.hm .ab-dark .btn-grey:hover, .hm .ab-ink .btn-grey:hover { background: rgba(255, 255, 255, .2); }
.hm .carousel-nav { gap: 10px; flex: none; }
.hm .carousel-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid #d6d6d6; background: #fff; color: var(--ink); transition: background .2s, border-color .2s, color .2s, opacity .2s; }
.hm .carousel-nav button:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; }
.hm .carousel-nav svg { width: 18px; height: 18px; }
.hm .ab-dark .carousel-nav button { background: transparent; border-color: rgba(255, 255, 255, .28); color: #fff; }
.hm .ab-dark .carousel-nav button:hover:not(:disabled) { background: #fff; border-color: #fff; color: var(--ink); }
.hm .pill-tabs { gap: 10px; }
.hm .pill-tabs button { min-height: 44px; padding: 10px 18px; font-size: 14.5px; font-weight: 600; }
.hm .pill-tabs button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- hero ---------- */
.hm .hm-hero { padding: clamp(88px, 10vw, 150px) 0 var(--sec-y); }
.hm .hm-hero .container { padding-bottom: 0; }
.hm .hm-hero .ab-label { margin-bottom: 32px; }
.hm .hm-hero .hero-title { max-width: none; font-size: clamp(38px, 6.2vw, 92px); font-weight: 700; letter-spacing: -0.05em; line-height: 1.06; text-wrap: balance; }
.hm .hm-hero .rotator { height: 1.2em; margin-top: .12em; }
.hm .hm-hero .plat-wordmark { height: .86em; }
.hm .hero-mark::after { bottom: -.1em; height: .16em; background: var(--lime); border-radius: 999px; opacity: .7; }
.hm .hm-hero .hero-sub { max-width: 720px; margin-top: 32px; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.8; color: #4a4a4a; }
.hm .hero-url { max-width: 680px; margin-top: 40px; padding: 8px 8px 8px 26px; border: 1.5px solid var(--ink); background: #fff; box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .3); }
.hm .hero-url:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0, 255, 68, .35), 0 24px 48px -28px rgba(0, 0, 0, .3); }
.hm .hero-url input { font-size: 17px; color: var(--ink); }
.hm .hero-url input::placeholder { color: var(--muted); }
.hm .hero-url input.bad, .hm .hero-url-msg { color: #c8102e; }
.hm .hero-url button { min-height: 52px; padding: 14px 26px; background: var(--lime); color: var(--ink); font-size: 16px; font-weight: 650; }
.hm .hero-url button:hover { background: var(--lime-d); }
.hm .hm-hero .hero-cta { gap: 12px; margin-top: 28px; }
.hm .app-wrap { margin-top: clamp(64px, 7vw, 104px); }
.hm .app { height: 540px; border: 0; border-radius: 24px; box-shadow: 0 48px 96px -40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .9); }
.hm .app-main { background: var(--bg-1); }
.hm .app-ws .ws-avatar { color: var(--ink); }
html.ab-js .hm-hero .ab-label, html.ab-js .hm-hero .hero-title, html.ab-js .hm-hero .hero-sub, html.ab-js .hm-hero .hero-url, html.ab-js .hm-hero .hero-cta, html.ab-js .hm-hero .app-wrap { opacity: 0; animation: ab-fade .9s var(--ease) forwards; }
html.ab-js .hm-hero .hero-title { animation-delay: .1s; }
html.ab-js .hm-hero .hero-sub { animation-delay: .3s; }
html.ab-js .hm-hero .hero-url { animation-delay: .42s; }
html.ab-js .hm-hero .hero-cta { animation-delay: .52s; }
html.ab-js .hm-hero .app-wrap { animation-delay: .7s; }

/* ---------- statement (black, dotted like the /about philosophy section) ---------- */
.hm .stmt { padding-bottom: 0; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.3px); background-size: 28px 28px; }
.hm .stmt > .container { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.hm .stmt-text { max-width: 1100px; font-size: clamp(34px, 5.4vw, 76px); font-weight: 650; letter-spacing: -0.045em; line-height: 1.1; text-wrap: balance; }
.hm .stmt-text .w { color: rgba(255, 255, 255, .16); filter: none; transition: color .6s var(--ease); }
.hm .stmt-text .w.on { color: #fff; }

/* ---------- seven stages: a dark product panel on white ---------- */
.hm .capabilities .container { padding-top: 0; }
.hm .capabilities .section-head { padding-top: var(--sec-y); }
.hm .cap-grid { border: 0; border-radius: 28px; background: var(--ink); overflow: hidden; }
.hm .cap-left { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); }
.hm .cap-right { padding: clamp(24px, 3vw, 40px); }
.hm .cap-grid .pill-tabs button { min-height: 40px; padding: 8px 14px; font-size: 13.5px; }
.hm .cap-grid .pill-tabs button.is-active { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.hm .cap-copy { margin-top: 28px; }
.hm .cap-copy h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.25; }
.hm .cap-copy p { margin-top: 10px; font-size: 16px; line-height: 1.7; }

/* ---------- cards ---------- */
.hm .ctx-grid, .hm .ent-grid { gap: 20px; border: 0; margin-top: 0; }
.hm .ctx-card, .hm .ctx-card:nth-child(odd), .hm .ctx-card:nth-child(even), .hm .ent-card, .hm .ent-card:first-child, .hm .ent-card:last-child { padding: clamp(20px, 2.2vw, 32px) !important; border: 1px solid transparent !important; border-radius: 24px; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.hm .ctx-card { background: #fff; }
.hm .ctx-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .25); border-color: var(--ink) !important; }
.hm .ent-card { background: var(--card-d); border-color: rgba(255, 255, 255, .07) !important; }
.hm .ent-card:hover { border-color: rgba(255, 255, 255, .22) !important; }
.hm .ctx-visual, .hm .feat-visual, .hm .ent-visual { border: 0; border-radius: 16px; }
.hm .ent-visual { background: #101010; }
.hm .ctx-card h3, .hm .ent-card h3, .hm .feat-card h3 { margin-top: 28px; font-size: clamp(21px, 1.8vw, 26px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.25; }
.hm .ctx-card p, .hm .feat-card p { margin: 10px 0 22px; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.hm .ent-card p { margin: 10px 0 22px; font-size: 15.5px; line-height: 1.65; color: var(--muted-d); }
.hm .ctx-visual p, .hm .feat-visual p, .hm .ent-visual p { margin: 0; font-size: inherit; line-height: inherit; }
.hm .enterprise .section-head { padding-bottom: clamp(40px, 5vw, 72px); }

/* ---------- carousels ---------- */
.hm .stories .section-head--row, .hm .reinforced .section-head--row, .hm .research .section-head--row { padding-bottom: clamp(40px, 5vw, 72px); }
.hm .carousel { padding-left: max(clamp(20px, 4vw, 40px), calc((100% - var(--container)) / 2 + clamp(20px, 4vw, 40px))); padding-top: 8px; padding-bottom: 16px; }
.hm .carousel-track { gap: 20px; }
.hm .cust-card { width: clamp(300px, 44vw, 620px); height: clamp(420px, 36vw, 480px); border: 0; border-radius: 24px; }
.hm .cust-body { padding: 32px; }
.hm .cust-body strong { font-size: clamp(48px, 5.4vw, 80px); font-weight: 700; letter-spacing: -0.05em; }
.hm .story-card--pilot .cust-body strong { font-size: clamp(30px, 3vw, 42px); letter-spacing: -0.035em; }
.hm .cust-body p { margin: 16px 0 18px; font-size: 16.5px; line-height: 1.6; color: #fff; }
.hm .cust-body footer { font-size: 14px; color: var(--muted-d); }
.hm .cust-logo { top: 32px; left: 32px; padding: 3px 12px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 13px; font-weight: 650; letter-spacing: 0; }
.hm .story-card--pilot { background: var(--card-d) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.hm .story-card--pilot::before { display: none; }
.hm .cust-body .link-arrow { margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--lime); }
.hm .feat-card { width: clamp(300px, 34vw, 480px); padding: clamp(20px, 2.2vw, 32px); border-radius: 24px; background: var(--grey); border: 1px solid transparent; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.hm .feat-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .25); border-color: var(--ink); }

/* ---------- research ---------- */
.hm .research .container { padding-bottom: 0; }
.hm .research .pill-tabs { padding: 0 0 28px; border: 0; }
.hm .research .pill-tabs--plain button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.hm .research-grid { gap: 20px; padding-bottom: 0; }
.hm .post-card { border: 1px solid transparent; border-radius: 24px; background: #fff; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.hm .post-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .25); border-color: var(--ink); }
.hm .post-card .thumb { margin: 12px 12px 0; border-radius: 16px; background: var(--ink); }
.hm .post-card .thumb::after { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); box-shadow: inset 0 3px 0 var(--lime); }
.hm .post-card .body { padding: 24px 26px 28px; }
.hm .post-card .tag { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.hm .post-card h3 { margin-top: 10px; font-size: clamp(19px, 1.6vw, 22px); font-weight: 650; letter-spacing: -0.025em; line-height: 1.35; color: var(--ink); }
.hm .post-card small { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- closing ---------- */
.hm .hm-close { padding-bottom: var(--sec-y); }
.hm .hm-close .ab-lead { max-width: 560px; }

@media (prefers-reduced-motion: reduce) {
  html.ab-js .hm-hero .ab-label, html.ab-js .hm-hero .hero-title, html.ab-js .hm-hero .hero-sub, html.ab-js .hm-hero .hero-url, html.ab-js .hm-hero .hero-cta, html.ab-js .hm-hero .app-wrap { opacity: 1; animation: none; }
  .hm .stmt-text .w { color: #fff; }
}

@media (max-width: 980px) {
  .hm .cap-left { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .hm .app { height: 560px; border-radius: 18px; }
  .hm .section-head--row { align-items: flex-start; }
  .hm .carousel-nav { display: none; }
  .hm .cust-card, .hm .feat-card { width: 84vw; }
  .hm .cust-card { height: 440px; }
}
@media (max-width: 560px) {
  .hm .hero-url { padding: 8px; border-radius: 20px; }
  .hm .hero-url input { padding: 10px 12px; }
  .hm .hm-hero .hero-cta { flex-direction: column; align-items: stretch; }
}
