:root {
    --bg: #FFFFFF; --ink: #111113; --surface: #FAFAFA; --line: #E8E8EA;
    --muted: #63646B; --faint: #A9AAB2; --accent: #0F62FE; --accent-ink: #FFFFFF;
    --font-sans: Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
    --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
    --max: 1120px; --maxr: 760px;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { background: var(--bg); color: var(--ink); font-family: var(--font-sans); line-height: 1.75; font-size: 16px; overflow-x: hidden; word-break: keep-all; overflow-wrap: break-word; }
  a { color: inherit; text-decoration: none; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
  .wrap-r { max-width: var(--maxr); margin: 0 auto; padding: 0 24px; }

  nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.3s ease; }
  nav.scrolled { border-bottom-color: var(--line); }
  .nav-in { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 28px; }
  .links { margin-left: auto; display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
  .links a:hover { color: var(--ink); }
  .links a.here { color: var(--accent); font-weight: 700; }
  .nav-cta { font-size: 13.5px; font-weight: 700; padding: 9px 18px; border-radius: 8px; background: var(--ink); color: var(--bg); transition: background 0.2s ease; }
  .nav-cta:hover { background: var(--accent); }
  .crumb { max-width: var(--max); margin: 26px auto 0; padding: 0 24px; font-size: 12.5px; color: var(--faint); }
  .crumb a:hover { color: var(--ink); }

  .hero { padding: 46px 0 66px; }
  .eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; color: var(--accent); font-weight: 700; text-transform: uppercase; }
  .dev-badge { display: inline-block; margin-left: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.07em; padding: 3px 11px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); text-transform: uppercase; vertical-align: middle; }
  h1 { font-size: clamp(38px, 5.6vw, 62px); font-weight: 800; line-height: 1.12; letter-spacing: -0.04em; margin-top: 18px; text-wrap: balance; }
  .hero .lead { margin-top: 22px; max-width: 640px; font-size: 17.5px; color: var(--muted); }
  .hero .lead strong { color: var(--ink); font-weight: 600; }
  .ctas { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
  .btn { padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 700; transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease; display: inline-block; }
  .btn:hover { transform: translateY(-2px); }
  .btn-p { background: var(--accent); color: var(--accent-ink); }
  .btn-p:hover { background: #0B4FD1; }
  .btn-g { border: 1px solid var(--ink); color: var(--ink); }
  .btn-g:hover { background: var(--ink); color: var(--bg); }

  .kpi-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
  .kpi-in { max-width: var(--max); margin: 0 auto; padding: 26px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .kpi { text-align: left; }
  .kpi .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
  .kpi .num em { font-style: normal; color: var(--accent); }
  .kpi .lbl { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

  section { padding: 104px 0 0; }
  .sec-label { display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--accent); font-weight: 700; }
  .sec-label::after { content: ""; height: 1px; flex: 1; background: var(--line); }
  h2 { font-size: clamp(27px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin-top: 16px; line-height: 1.25; text-wrap: balance; }
  .sec-sub { margin-top: 12px; color: var(--muted); max-width: 660px; font-size: 15.5px; }

  /* 3D demo */
  .demo-box { margin-top: 40px; background: var(--ink); border-radius: 20px; padding: 30px 34px 22px; color: #F5F6FA; }
  .demo-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: #8B8FA0; }
  .demo-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
  .demo-meta { margin-left: auto; font-size: 11px; color: #5C5F6E; letter-spacing: 0.05em; }
  #cloud3d { display: block; width: 100%; height: 360px; cursor: grab; touch-action: none; }
  #cloud3d:active { cursor: grabbing; }
  .demo-note { margin-top: 8px; font-size: 11.5px; color: #5C5F6E; }

  /* tabs */
  .tabs { margin-top: 40px; }
  .tab-btns { display: flex; gap: 8px; flex-wrap: wrap; }
  .tab-btn { padding: 11px 20px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; font-family: var(--font-sans); transition: all 0.2s ease; }
  .tab-btn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .tab-panel { display: none; margin-top: 26px; border: 1px solid var(--line); border-radius: 16px; padding: 34px; background: var(--surface); animation: fadeIn 0.35s ease; }
  .tab-panel.on { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .tab-panel h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
  .tab-panel p { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
  .tab-panel ul { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
  .tab-panel li { font-size: 13.5px; color: var(--muted); padding-left: 18px; position: relative; }
  .tab-panel li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
  .tab-visual { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 22px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); line-height: 2; }
  .tab-visual .hl { color: var(--accent); font-weight: 700; }

  /* cost band */
  .cost { margin-top: 104px; background: var(--ink); color: #F5F6FA; }
  .cost-in { max-width: var(--max); margin: 0 auto; padding: 92px 24px; }
  .cost .sec-label::after { background: #2A2B33; }
  .cost h2 { color: #fff; }
  .cost .sec-sub { color: #A6AAB8; }
  .bars { margin-top: 38px; display: flex; flex-direction: column; gap: 22px; max-width: 860px; }
  .bar-row { display: grid; grid-template-columns: 190px 1fr 120px; gap: 16px; align-items: center; font-size: 13.5px; }
  .bar-track { height: 14px; border-radius: 7px; background: #23242C; overflow: hidden; }
  .bar-fill { height: 100%; border-radius: 7px; width: 0; transition: width 1.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .bar-fill.gray { background: #5A5D6E; }
  .bar-fill.blue { background: var(--accent); }
  .bar-val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; color: #C9CDDB; }
  .bar-val em { font-style: normal; color: #6E9BFF; font-weight: 700; }
  .cost-note { margin-top: 24px; font-size: 12px; color: #7A7E8F; max-width: 720px; }

  /* product lines */
  .lines { margin-top: 44px; display: flex; flex-direction: column; gap: 16px; }
  .line-card { border: 1px solid var(--line); border-radius: 18px; padding: 36px 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; transition: border-color 0.25s ease; }
  .line-card:hover { border-color: var(--accent); }
  .line-card .t-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--accent); }
  .line-card h3 { font-size: 23px; font-weight: 800; margin-top: 10px; letter-spacing: -0.01em; }
  .line-card p { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
  .robot-list { display: flex; flex-direction: column; gap: 12px; }
  .robot { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
  .robot b { font-size: 14.5px; display: flex; align-items: center; gap: 10px; }
  .robot .stage { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; padding: 2px 9px; border-radius: 99px; text-transform: uppercase; }
  .robot .stage.dev { background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); }
  .robot .stage.plan { background: #fff; border: 1px solid var(--line); color: var(--muted); }
  .robot span.desc { display: block; font-size: 12.5px; color: var(--muted); margin-top: 5px; }

  /* accordion + table */
  .acc { margin-top: 40px; border-top: 1px solid var(--line); max-width: 860px; }
  .acc-item { border-bottom: 1px solid var(--line); }
  .acc-btn { width: 100%; text-align: left; padding: 22px 4px; background: none; border: none; font-family: var(--font-sans); font-size: 16.5px; font-weight: 700; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  .acc-btn::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--faint); transition: transform 0.25s ease; }
  .acc-item.open .acc-btn::after { transform: rotate(45deg); color: var(--accent); }
  .acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
  .acc-item.open .acc-body { max-height: 900px; }
  .acc-inner { padding: 0 4px 26px; font-size: 14.5px; color: var(--muted); }
  table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13.5px; }
  th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  th { font-size: 12px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
  td { color: var(--muted); }
  td:first-child { color: var(--ink); font-weight: 600; }
  .spec-note { margin-top: 14px; font-size: 12px; color: var(--faint); }

  .cta2 { padding: 110px 0; }
  .cta2 p { margin: 14px 0 0; color: var(--muted); max-width: 560px; font-size: 15.5px; }
  .cta2 .ctas { justify-content: flex-start; }
  footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 32px; }
  .f-in { max-width: var(--max); margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
  .f-links { display: flex; gap: 20px; font-size: 13px; color: var(--muted); }
  .f-links a:hover { color: var(--ink); }
  .f-copy { font-size: 12px; color: var(--faint); }

  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.in { opacity: 1; transform: none; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .btn:hover { transform: none; }
    .tab-panel { animation: none; }
    .bar-fill { transition: none; }
  }
  @media (max-width: 960px) {
    .kpi-in { grid-template-columns: repeat(2, 1fr); }
    .tab-panel.on, .line-card { grid-template-columns: 1fr; }
    .bar-row { grid-template-columns: 120px 1fr 100px; }
    .links { display: none; }
  }

/* ===== 공통 추가: 스킵 링크 · 모바일 내비 ===== */
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0; font-weight: 700; font-size: 14px; }
.skip:focus { left: 0; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--bg); border-radius: 9px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform 0.25s ease, opacity 0.25s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 14px 24px; font-size: 15px; color: var(--muted); border-bottom: 1px solid var(--line); }
.mobile-menu a.here { color: var(--accent); font-weight: 700; }
@media (max-width: 960px) {
  .menu-btn { display: flex; }
  nav .nav-cta { display: none; }
}
@media (min-width: 961px) { .mobile-menu { display: none !important; } }
