/* 레이아웃 개념: 가장 어두운 "트레이딩 데스크" 띠(메인·API·문의)와 한 톤 밝은 "슬레이트" 띠가 번갈아 나오는 구성 */
:root {
  /* 슬레이트 지면 (데스크보다 한 톤 밝은 남색) */
  --paper: #121b2c;
  --surface: #172238;
  --line: #26334c;
  --ink: #e9eef6;
  --muted: #9aa6ba;

  /* 어두운 데스크 */
  --desk: #0a0f1a;
  --desk-2: #111827;
  --desk-line: #1f2a3c;
  --desk-ink: #e9eef6;
  --desk-muted: #8d99ad;

  /* 브랜드 색: 바꾸면 버튼과 강조색이 함께 바뀝니다 */
  --accent: #0b9b6d;
  --accent-strong: #08805a;
  --accent-glow: #34d8a2;
  --gold: #e3b341;
  --up: #1fbf84;
  --down: #e5484d;
  --telegram: #2aa3df;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 12px 32px rgba(0, 0, 0, .25);
  --shadow-lg: 0 40px 80px -20px rgba(0, 0, 0, .55);

  --font-display: "Manrope", "IBM Plex Sans KR", "IBM Plex Sans Thai", "Noto Sans Khmer", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "IBM Plex Sans KR", "IBM Plex Sans Thai", "Noto Sans Khmer", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 한국어는 단어 중간에서 줄이 바뀌지 않게 합니다 */
html[lang="ko"] body { word-break: keep-all; }
/* 태국어와 크메르어는 글자 위아래가 높아서 줄 간격을 넓힙니다 */
html[lang="th"] body, html[lang="km"] body { line-height: 1.85; }
html[lang="th"] :is(h1, h2, h3), html[lang="km"] :is(h1, h2, h3) { line-height: 1.45; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .5em; font-family: var(--font-display); line-height: 1.2; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent-glow); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 820px; }
.center { text-align: center; }

.icon {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 .95rem/1.2 var(--font-body);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px -6px rgba(11, 155, 109, .6); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: rgba(233, 238, 246, .22); color: var(--desk-ink); }
.btn-ghost:hover { border-color: rgba(233, 238, 246, .5); }
.btn-telegram { background: var(--telegram); color: #fff; box-shadow: 0 6px 20px -6px rgba(42, 163, 223, .6); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn.is-disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===== 상단 메뉴 ===== */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 60;
  height: env(safe-area-inset-top, 0px); background: var(--desk);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(10, 15, 26, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: var(--desk-ink);
  transition: background-color .2s;
}
.site-header.is-scrolled { background: rgba(10, 15, 26, .97); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; font: 800 1.08rem/1 var(--font-display); letter-spacing: -.01em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn) {
  color: var(--desk-muted); font-size: .9rem; font-weight: 500;
  padding: 8px 12px; border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.nav > a:not(.btn):hover { color: var(--desk-ink); }
.nav > a.is-active { color: var(--desk-ink); background: rgba(255, 255, 255, .07); }
.nav .btn { margin-left: 8px; }

.lang-switch {
  display: flex; gap: 2px; margin-left: 8px; padding: 3px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px;
}
.lang-switch a {
  background: none; border: 0; color: var(--desk-muted); cursor: pointer;
  padding: 5px 10px; border-radius: 999px; font: 500 .8rem/1.2 var(--font-body);
}
.lang-switch a[aria-current="page"] { background: var(--desk-ink); color: var(--desk); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--desk-ink); }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 실시간 배당 띠 ===== */
.ticker {
  position: relative; overflow: hidden; background: var(--desk-2); color: var(--desk-muted);
  border-bottom: 1px solid var(--desk-line);
  font: 500 .8rem/1 var(--font-mono);
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--desk-2), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--desk-2), transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 10px; padding: 11px 28px; white-space: nowrap; border-right: 1px solid var(--desk-line); }
.ticker b { color: var(--gold); font-weight: 600; }
.ticker i { font-style: normal; font-variant-numeric: tabular-nums; }
.ticker .up { color: var(--up); }
.ticker .down { color: var(--down); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ===== 어두운 띠 공통 ===== */
.hero, .section-dark { background: var(--desk); color: var(--desk-ink); }
.section-dark .section-head p, .section-dark p { color: var(--desk-muted); }

/* ===== 메인 소개 ===== */
.hero {
  position: relative; overflow: hidden;
  padding-block: 96px 88px;
}
.hero::before {
  /* 경기장 라인을 닮은 은은한 격자 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 720px; height: 720px; right: -160px; top: -280px; pointer-events: none;
  background: radial-gradient(circle, rgba(11, 155, 109, .28), transparent 62%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero-copy { min-width: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(52, 216, 162, .1); border: 1px solid rgba(52, 216, 162, .25);
  color: var(--accent-glow); font-size: .82rem; font-weight: 600; letter-spacing: .02em;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-glow); box-shadow: 0 0 0 4px rgba(52, 216, 162, .2); }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
html[lang="ko"] .hero h1 { letter-spacing: -.02em; line-height: 1.22; }
.lead { font-size: 1.12rem; color: var(--desk-muted); max-width: 34em; margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 36px 0 0; color: var(--desk-muted); font: 500 .78rem/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.hero-tags li { display: inline-flex; align-items: center; gap: 8px; }
.hero-tags li::before { content: ""; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }

/* 배당판 모형 */
.mock {
  min-width: 0;
  background: linear-gradient(180deg, #131c2d, #0e1522);
  border: 1px solid var(--desk-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform .6s ease;
}
.mock:hover { transform: none; }
.mock-head { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--desk-line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--desk-line); }
.mock-body { padding: 18px; display: grid; gap: 12px; }
.mock-row { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--desk-muted); }
.mock-time { margin-left: auto; font-family: var(--font-mono); }
.live { display: inline-flex; align-items: center; gap: 6px; background: rgba(229, 72, 77, .14); color: #ff7b7f; font: 700 .68rem/1 var(--font-mono); padding: 5px 8px; border-radius: 6px; letter-spacing: .06em; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--down); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.match { background: rgba(255, 255, 255, .025); border: 1px solid var(--desk-line); border-radius: var(--radius); padding: 14px; }
.teams { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .88rem; margin-bottom: 12px; }
.teams strong { font-weight: 600; }
.score { color: var(--gold); font: 700 .95rem/1 var(--font-mono); white-space: nowrap; }
.odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.odd {
  background: var(--desk); border: 1px solid var(--desk-line); border-radius: 10px;
  padding: 8px; text-align: center; transition: border-color .3s, background-color .3s;
}
.odd small { display: block; color: var(--desk-muted); font-size: .72rem; }
.odd b { font: 600 1rem/1.4 var(--font-mono); font-variant-numeric: tabular-nums; }
.odd.up { border-color: rgba(31, 191, 132, .55); background: rgba(31, 191, 132, .08); }
.odd.up b { color: var(--up); }
.odd.down { border-color: rgba(229, 72, 77, .55); background: rgba(229, 72, 77, .08); }
.odd.down b { color: var(--down); }
.mock-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-kpis div { background: rgba(255, 255, 255, .025); border: 1px solid var(--desk-line); border-radius: var(--radius); padding: 12px 14px; }
.mock-kpis small { display: block; color: var(--desk-muted); font-size: .72rem; }
.mock-kpis b { font: 600 1rem/1.5 var(--font-mono); }

/* ===== 숫자 띠 ===== */
.stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 36px; }
.stats-grid > div { display: grid; gap: 4px; padding: 4px 28px; border-left: 1px solid var(--line); }
.stats-grid > div:first-child { border-left: 0; padding-left: 0; }
.stats b { font: 800 2.2rem/1.1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .88rem; }

/* ===== 공통 섹션 ===== */
.section { padding-block: 112px; }
.section-alt { background: var(--surface); }
.section-head { max-width: 680px; margin: 0 0 56px; }
.section-head.center, .center .section-head { margin-inline: auto; }
.section-head p, .split p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent-glow); font: 600 .76rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .14em;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.section-dark .eyebrow { color: var(--accent-glow); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; margin-top: 14px; }

/* 기능: 카드 대신 선으로 나눈 격자 */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.card {
  padding: 36px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color .25s;
}
.card:hover { background: rgba(255, 255, 255, .03); }
.card .icon {
  width: 44px; height: 44px; padding: 11px; margin-bottom: 22px;
  color: var(--accent-glow); background: rgba(52, 216, 162, .1); border-radius: 12px;
}
.card h3 { font-size: 1.12rem; font-weight: 700; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* 플랫폼 */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.split > div { min-width: 0; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(52, 216, 162, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d8a2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.screenshot { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* 개발자 API */
.api-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.api-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 28px; }
.api-list li { min-width: 0; }
.api-list h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4em; display: flex; align-items: center; gap: 10px; }
.api-list h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent-glow); flex: none; }
.api-list p { font-size: .92rem; margin: 0; }

.code-panel {
  min-width: 0; position: sticky; top: calc(var(--header-h) + 24px);
  background: #060a12; border: 1px solid var(--desk-line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.code-tabs { display: flex; align-items: center; gap: 4px; padding: 10px; border-bottom: 1px solid var(--desk-line); background: var(--desk-2); }
.code-tabs button {
  background: none; border: 0; color: var(--desk-muted); cursor: pointer;
  font: 500 .82rem/1 var(--font-mono); padding: 9px 13px; border-radius: 8px;
  transition: color .2s, background-color .2s;
}
.code-tabs button:hover { color: var(--desk-ink); }
.code-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .07); color: var(--desk-ink); }
.code-tabs .code-copy { margin-left: auto; font-family: var(--font-body); border: 1px solid var(--desk-line); }
.code {
  margin: 0; padding: 24px; overflow-x: auto;
  font: .83rem/1.75 var(--font-mono);
  color: #c4cfe2; word-break: normal; white-space: pre; tab-size: 2;
}
.tok-s { color: #7ee2b8; }
.tok-n { color: var(--gold); }
.tok-c { color: #5b677c; font-style: italic; }
.tok-k { color: #7cb7ff; font-weight: 600; }

/* 기술 사양과 보안 */
.tech-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.spec-table { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.spec-table div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.spec-table div:last-child { border-bottom: 0; }
.spec-table div:nth-child(even) { background: var(--surface); }
.spec-table dt { color: var(--muted); font-size: .92rem; }
.spec-table dd { margin: 0; font: 600 .9rem/1.6 var(--font-mono); font-variant-numeric: tabular-nums; }
.security { background: var(--desk); color: var(--desk-ink); border: 1px solid var(--desk-line); border-radius: var(--radius-lg); padding: 32px; }
.security h3 { font-size: 1.15rem; }
.security .checklist { margin-top: 20px; }
.security .checklist li { color: var(--desk-ink); font-size: .95rem; }
.security .checklist li::before { background-color: rgba(52, 216, 162, .14); }

.integrations { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
.integrations h3 { font-size: .95rem; color: var(--muted); font-weight: 600; margin: 0; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .88rem; font-weight: 500; }

/* 도입 절차: 선으로 이어진 타임라인 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: repeating-linear-gradient(90deg, var(--accent-glow) 0 6px, transparent 6px 12px); opacity: .45; }
.steps li { position: relative; min-width: 0; }
.step-no {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 24px;
  border-radius: 50%; background: var(--surface); color: var(--accent-glow);
  border: 1px solid rgba(52, 216, 162, .35); box-shadow: 0 0 0 6px var(--paper);
  font: 700 .95rem/1 var(--font-mono);
}
.steps li:last-child .step-no { background: var(--accent); color: #fff; border-color: var(--accent); }
.steps h3 { font-size: 1.12rem; font-weight: 700; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* 자주 묻는 질문 */
#faq .section-head { text-align: center; margin-inline: auto; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 22px 48px 22px 0; font: 600 1.05rem/1.5 var(--font-display);
  transition: color .2s;
}
summary:hover { color: var(--accent-glow); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  border-radius: 50%; border: 1px solid var(--line);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa6ba' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s, background-color .25s;
}
details[open] summary::after { transform: rotate(45deg); background-color: var(--paper); }
details p { color: var(--muted); padding: 0 48px 24px 0; margin: 0; }

/* 문의 */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; left: 50%; bottom: -380px; width: 900px; height: 600px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse, rgba(11, 155, 109, .3), transparent 65%);
}
.contact .container { position: relative; }
.contact h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contact p { font-size: 1.08rem; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

/* 하단 */
.site-footer { background: var(--desk); color: var(--desk-muted); border-top: 1px solid var(--desk-line); padding-block: 36px; font-size: .84rem; }
.disclaimer { max-width: 760px; }
.copy { margin: 0; color: #5e6a7f; }

/* 솔루션 모듈 목록 */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  background: var(--surface); color: var(--muted); border: 1px solid var(--line); cursor: pointer;
  padding: 9px 18px; border-radius: 999px; font: 500 .9rem/1.2 var(--font-body);
  transition: color .2s, background-color .2s, border-color .2s;
}
.filters button:hover { color: var(--ink); border-color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-count { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }

.modules { display: grid; gap: 14px; }
.module[hidden] { display: none; }
.module {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 28px; transition: border-color .25s, transform .25s;
}
.module:hover { border-color: rgba(52, 216, 162, .45); transform: translateY(-2px); }
.module-logo {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(62, 224, 170, .2), rgba(10, 125, 88, .12));
  border: 1px solid rgba(52, 216, 162, .25); color: var(--accent-glow);
}
.module-logo .icon { width: 28px; height: 28px; }
.module-main { min-width: 0; }
.module-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.module-head h3 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.module-cat { font: 500 .72rem/1 var(--font-mono); color: var(--gold); border: 1px solid rgba(227, 179, 65, .35); padding: 4px 8px; border-radius: 6px; }
.module-tag { color: var(--ink); font-weight: 500; margin: 6px 0 4px; }
.module-body { color: var(--muted); font-size: .92rem; margin: 0; }
.tags { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .78rem; color: var(--muted); background: var(--paper); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.tags li::before { content: "#"; color: var(--accent-glow); margin-right: 2px; }
.module-actions { display: grid; gap: 8px; min-width: 170px; }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--muted); }

/* 중간 상담 배너 */
.cta-band { background: var(--paper); padding-block: 0 112px; }
.cta-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 40px 48px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #0d4a37, #0a2a22 55%, #101a2b);
  border: 1px solid rgba(52, 216, 162, .3);
}
.cta-box h2 { margin: 0 0 .3em; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-box p { margin: 0; color: var(--desk-muted); }

/* 하단 정보 영역 */
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 32px; margin-bottom: 24px; border-bottom: 1px solid var(--desk-line); }
.footer-brand .logo { color: var(--desk-ink); margin-bottom: 14px; }
.footer-brand p { max-width: 30em; }
.site-footer h4 { margin: 0 0 12px; color: var(--desk-ink); font: 600 .85rem/1 var(--font-display); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul a:hover { color: var(--desk-ink); }

/* 휴대폰 하단 메뉴 */
.bottom-nav { display: none; }

/* ===== 태블릿 ===== */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) 24px max(20px, env(safe-area-inset-left, 0px));
    background: var(--desk); border-bottom: 1px solid var(--desk-line);
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { padding: 12px 8px; border-radius: 8px; font-size: 1rem; }
  .lang-switch { align-self: flex-start; margin: 12px 0; }
  .nav .btn { margin: 4px 0 0; }
}

@media (max-width: 960px) {
  .hero-inner, .split, .api-grid, .tech-grid { grid-template-columns: 1fr; gap: 48px; }
  .mock { transform: none; }
  .code-panel { position: static; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .integrations { grid-template-columns: 1fr; }
  .module { grid-template-columns: 56px 1fr; }
  .module-actions { grid-column: 2; grid-template-columns: auto auto; justify-content: start; min-width: 0; }
}

/* ===== 휴대폰 ===== */
@media (max-width: 600px) {
  .hero { padding-block: 56px 64px; }
  .section { padding-block: 72px; }
  .section-head { margin-bottom: 40px; }
  .cards, .steps, .api-list { grid-template-columns: 1fr; }
  .card { padding: 28px 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stats-grid > div { padding: 0 16px; }
  .stats-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .spec-table div { grid-template-columns: 1fr; gap: 2px; padding: 14px 18px; }
  .security { padding: 24px; }
  .contact-actions .btn { width: 100%; }
  .module { grid-template-columns: 48px 1fr; gap: 16px; padding: 20px; align-items: start; }
  .module-logo { width: 48px; height: 48px; border-radius: 12px; }
  .module-logo .icon { width: 22px; height: 22px; }
  .module-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; min-width: 0; }
  .cta-band { padding-bottom: 72px; }
  .cta-box { padding: 28px 24px; }
  .cta-box .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    background: rgba(10, 15, 26, .96); border-top: 1px solid var(--desk-line);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .bottom-nav a { display: grid; justify-items: center; gap: 3px; padding: 6px 0; color: var(--desk-muted); font-size: .7rem; }
  .bottom-nav a:active, .bottom-nav a:hover { color: var(--accent-glow); }
  .bottom-nav .icon { width: 20px; height: 20px; }
  details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .mock { transform: none; }
}
