/* 페이지 기본 스타일. 기존 style 위치에서 읽어 우선순위를 유지한다. */
:root {
      --bg-color:var(--canvas);
      --surface-color:var(--ground-hi);
      --text-main:var(--ink);
      --text-light:var(--ink);
      --border-color:var(--rule);
      --accent-color:var(--ink);
      --accent-light:var(--aqua-100);
      --transition:background-color var(--t-hover) var(--ease-out),border-color var(--t-hover) var(--ease-out),color var(--t-hover) var(--ease-out),box-shadow var(--t-hover) var(--ease-out),transform var(--t-hover) var(--ease-out),opacity var(--t-hover) var(--ease-out);
      --font-sans:var(--font);
      --font-mono:var(--font);
      --font-serif:var(--font);
      --type-display: clamp(32px, 5vw, 52px);
      --type-h2: 28px;
      --type-h3: 20px;
      --type-body-l: 17px;
      --type-body: 14px;
      --type-label: 12px;
      --type-meta: 11px;
      --nav-bg:color-mix(in srgb,var(--canvas) 88%,transparent);
    }

    /* 다크 — 테마 세터가 없어 그동안 도달 불가였던 블록.
       --text-light 는 #71727F 였는데 canvas var(--ink) 위에서 3.6:1(AA 미달)이라
       var(--ink-2) 로 올렸다. --action-text/--nav-bg 는 아래 하드코딩 제거용 신규 토큰. */
    [data-theme="dark"] {
      /* --accent-color 는 59곳에서 '텍스트'로 쓰인다(.badge/.step-num/.cred-num/
         .brand-tab…). 옛 #575866 은 surface 위 1.8~2.5:1 로 사실상 안 보였다.
         배경으로 쓰이는 8곳은 전부 글자 없는 ::after 밑줄 바라 밝아도 안전하다. */
    }


    * { box-sizing: border-box; margin: 0; padding: 0; }

    html { overflow-x: hidden; overflow-x: clip; }

    body {
      font-family: var(--font);
      background-color: var(--bg-color);
      color: var(--text-main);
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: hidden;
      overflow-x: clip;
    }

    .container { margin: 0 auto; }
    section { padding-block: var(--section-space); }

    /* Header */
    .header {
      position: sticky; top: 0; z-index: 100;
      background: var(--header-fill);
      box-shadow: none;
      -webkit-backdrop-filter: blur(var(--glass-blur));
      backdrop-filter: blur(var(--glass-blur));
      border-bottom: 1px solid var(--rule);
    }
    .xk-subbar {
      background: var(--header-fill);
      box-shadow: none;
      -webkit-backdrop-filter: blur(var(--glass-blur));
      backdrop-filter: blur(var(--glass-blur));
    }
    [id], h1, h2, h3, .sec-title { scroll-margin-top: calc(var(--xk-gnav-h, 48px) + 62px); }
    .header-inner { max-width: 1280px; margin: 0 auto; height: 68px; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
    .brand-group { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
    .brand-link { display: inline-flex; align-items: center; }
    .brand-link img { display: block; width: auto; height: 53px; transition: var(--transition); }
    .brand-link:hover { opacity: 0.8; }

    /* Nav */
    .nav-menu { display: flex; gap: 36px; align-items: center; }
    .nav-item { position: relative; }
    .nav-link { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 13px; padding: 10px 0; display: block; transition: color var(--t-hover) var(--ease-out); }
    .nav-link:hover { color: var(--accent-color); }

    .dropdown {
      position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
      background: var(--surface-color); border: 1px solid var(--border-color); border-radius: var(--r-panel);
      box-shadow: 0 0 0 1px var(--line), var(--shadow-float); min-width: 180px; opacity: 0; visibility: hidden;
      transition: opacity var(--t-hover) var(--ease-out), transform var(--t-hover) var(--ease-out), visibility var(--t-hover) var(--ease-out); display: flex; flex-direction: column; padding: 8px 0;
    }
    .nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
    .dropdown a { text-decoration: none; color: var(--ink); padding: 12px 20px; font-size: 13px; font-weight: 500; transition: background var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out); text-align: center; white-space: nowrap; }
    .dropdown a:hover { background: var(--bg-color); color: var(--accent-color); }

    /* Hero */
    .hero { position: relative; text-align: center; }
    .badge { display: inline-block; font-family: var(--font); font-size: var(--type-meta); font-weight: 500; color: var(--accent-color); background-color: var(--accent-light); padding: 5px 10px; border-radius:var(--r-ctl); margin-bottom: 24px; letter-spacing: 0.08em; text-transform: uppercase; }
    .hero h1 { font-size: var(--type-display); font-family: var(--font); font-weight: 450; line-height: 1.16; letter-spacing: -0.03em; margin-bottom: 20px; color: var(--text-main); }
    .hero p { font-size: clamp(16px, 2.2vw, var(--type-body-l)); color: var(--ink); max-width: 640px; margin: 0 auto; line-height: 1.72; word-break: keep-all; }

    /* Content Grid */
    .feature-section { /* 세로 간격은 shared.css */ }
    .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 0; }
    .feature-card { padding: 32px 24px; }
    .feature-card:hover { transform: translateY(-1px); }
    .feature-icon { width: 48px; height: 48px; background: var(--inset-bg); color: var(--ink); border-radius: var(--r-inset); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
    .feature-card h3 { font-size: var(--type-h3); font-weight: 600; margin-bottom: 12px; letter-spacing: -0.02em; }
    .feature-card p { color: var(--ink); font-size: var(--type-body); word-break: keep-all; line-height: 1.72; }

    /* Process Section */
    .process-section { /* 면 색은 .band-paper */ }
    .sec-title { font-size: var(--type-h2); font-family: var(--font); text-align: center; margin-bottom: 48px; letter-spacing: -0.02em; }
    .process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }


    .process-step { position: relative; z-index: 2; text-align: left; padding: 20px 18px; }
    .process-step h4 { font-size: 17px; margin-bottom: 10px; color: var(--text-main); }
    .process-step p { font-size: 14px; color: var(--ink); word-break: keep-all; line-height: 1.5; }

    /* CTA */
    .cta-wrap { }
    .cta-section { text-align: center; }
    .cta-section h2 { font-size: 28px; font-family: var(--font); margin-bottom: 16px; letter-spacing: -0.01em; }
    .cta-lead { color: var(--ink); margin-top: 12px; }
    .button-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
    /* 재질은 light.css .x-btn / .btn-primary */

    @media (max-width: 768px) {
      .feature-grid { grid-template-columns: 1fr; }
      .feature-section { padding-top: 12px; padding-bottom: 72px; }
      .cta-wrap { padding-top: 64px; }
      .process-grid { grid-template-columns: 1fr; gap: 32px; }
      .process-step { text-align: left; display: flex; gap: 20px; align-items: flex-start; }
      .header-inner { height: auto; padding: 12px 24px; flex-direction: column; align-items: flex-start; gap: 14px; }
      .brand-group { gap: 12px; flex-wrap: wrap; }
      .nav-menu { width: 100%; gap: 12px 20px; justify-content: flex-start; flex-wrap: wrap; }
      .nav-link { font-size: 13px; }
      .brand-link img { height: 36px; }
      .dropdown { min-width: 140px; }
      .dropdown a { padding: 10px 16px; font-size: 13px; }
    }
