/* 홈도 시청자 페이지의 중립색 카드와 같은 테마를 사용한다. */
:root {
    color-scheme: light;
    --db-bg: #f3f4f6;
    --db-surface: #ffffff;
    --db-surface-3: #f3f4f6;
    --db-border: rgba(0, 0, 0, .06);
    --db-border-strong: #d1d5db;
    --db-text: #111827;
    --db-text-sub: #6b7280;
    --db-text-mute: #9ca3af;
    --db-btn-bg: #1c1917;
    --db-btn-fg: #ffffff;
    --db-focus: #111827;
    --btn-line: var(--db-border-strong);
    --btn-line-h: #9ca3af;
}
html.dark {
    color-scheme: dark;
    --db-bg: #0e0e10;
    --db-surface: #18181b;
    --db-surface-3: #27272a;
    --db-border: #27272a;
    --db-border-strong: #3f3f46;
    --db-text: #e4e4e7;
    --db-text-sub: #a1a1aa;
    --db-text-mute: #8a8a93;
    --db-btn-bg: #f4f4f5;
    --db-btn-fg: #18181b;
    --db-focus: #f4f4f5;
    --btn-line-h: #52525b;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 98px; }
body { margin: 0; font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif; -webkit-font-smoothing: antialiased; background: var(--db-bg); color: var(--db-text); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
a:focus-visible { outline: 2px solid var(--db-focus); outline-offset: 4px; }
img, svg { display: block; }
.tool-icon { width: 20px; height: 20px; flex-shrink: 0; }
.home-container { width: min(100% - 64px, 1120px); margin-inline: auto; }
.home-skip { position: fixed; top: -64px; left: 16px; z-index: 60; padding: 10px 16px; background: var(--db-btn-bg); color: var(--db-btn-fg); border-radius: 9px; }
.home-skip:focus { top: 12px; }
.home-header { position: sticky; top: 0; z-index: 40; background: var(--db-surface); border-bottom: 1px solid var(--db-border); }
.home-header-inner { display: flex; align-items: center; gap: 20px; height: 68px; padding-inline: 96px; }
.home-brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.home-nav { display: flex; align-items: center; gap: 4px; }
.home-nav a { padding: 9px 12px; border-radius: 9px; color: var(--db-text-sub); font-size: 13px; font-weight: 600; }
.home-nav a:hover { color: var(--db-text); background: var(--db-surface-3); }
.home-account { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.theme-sun, .dark .theme-moon { display: none; }
.dark .theme-sun { display: block; }
#tools-theme-btn[aria-pressed=true] { background: var(--db-surface-3); border-color: transparent; color: var(--db-text-sub); }
.home-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 64px; padding: 76px 0 38px; }
.home-hero-copy { min-width: 0; }
.home-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 21px; font-size: 12px; font-weight: 650; color: var(--db-text-sub); }
.home-eyebrow .tool-icon { width: 16px; height: 16px; }
.home-hero h1 { font-size: clamp(36px, 4vw, 49px); font-weight: 800; letter-spacing: -.055em; line-height: 1.25; word-break: keep-all; }
.home-hero-description { margin-top: 21px; font-size: 16px; line-height: 1.9; color: var(--db-text-sub); word-break: keep-all; overflow-wrap: anywhere; }
.home-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.home-hero-actions .btn { --btn-h: 44px; }
.home-hero-note { display: flex; align-items: flex-start; gap: 5px; margin-top: 15px; font-size: 12px; line-height: 1.6; color: var(--db-text-sub); }
.home-hero-note .tool-icon { width: 15px; height: 15px; margin-top: 2px; }
.home-card { background: var(--db-surface); border: 1px solid var(--db-border); border-radius: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .025); min-width: 0; }
.home-chat { overflow: hidden; }
.home-chat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--db-border); font-size: 13px; font-weight: 700; }
.home-chat-header > span:first-child { display: flex; align-items: center; gap: 8px; }
.home-chat-header .tool-icon { width: 17px; height: 17px; color: var(--db-text-sub); }
.home-label { padding: 4px 7px; border-radius: 6px; background: var(--db-surface-3); color: var(--db-text-sub); font-size: 10px; font-weight: 600; white-space: nowrap; }
.home-chat-messages { margin: 0; padding: 17px; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.home-chat-message { display: flex; align-items: flex-start; gap: 10px; padding: 5px 3px; font-size: 13px; line-height: 1.75; }
.home-chat-message > div { min-width: 0; }
.home-chat-avatar { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--db-surface-3); font-size: 11px; color: var(--db-text-sub); font-weight: 700; }
.home-chat-name { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--db-text-sub); margin-bottom: 2px; }
.home-chat-bot { padding: 11px 10px; border: 1px solid var(--db-border); border-radius: 11px; background: var(--db-surface-3); }
.home-chat-cookie { background: var(--db-surface); }
.home-chat-muted { color: var(--db-text-sub); }
.home-bot-label { font-size: 9px; border: 1px solid var(--db-border-strong); border-radius: 4px; padding: 0 4px; line-height: 1.6; font-weight: 600; }
.home-chat-message code { font: inherit; font-weight: 600; }
.home-chat-caption { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 16px; border-top: 1px solid var(--db-border); color: var(--db-text-sub); font-size: 11px; line-height: 1.6; }
.home-chat-caption .tool-icon { width: 14px; height: 14px; }
.home-commands { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 20px 0 27px; border-bottom: 1px solid var(--db-border); }
.home-commands p { color: var(--db-text-sub); font-size: 12px; }
.home-commands > div { display: flex; flex-wrap: wrap; gap: 8px; }
.home-commands code { padding: 7px 10px; border: 1px solid var(--db-border); border-radius: 8px; background: var(--db-surface); font-family: inherit; font-size: 12px; font-weight: 600; }
.home-section { margin-top: 52px; }
.home-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.home-section-kicker { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 700; color: var(--db-text-sub); }
.home-section h2, .home-cta h2 { font-size: 25px; font-weight: 750; letter-spacing: -.04em; line-height: 1.45; word-break: keep-all; }
.home-section-heading p { margin-top: 7px; color: var(--db-text-sub); font-size: 13px; line-height: 1.8; word-break: keep-all; }
.home-tools-grid, .home-features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-tool-card { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; transition: border-color .15s, box-shadow .15s; }
.home-tool-card:hover { border-color: var(--db-border-strong); box-shadow: 0 4px 14px rgba(0, 0, 0, .045); }
.home-icon-tile { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--db-border); border-radius: 12px; background: var(--db-surface-3); color: var(--db-text-sub); margin-bottom: 19px; }
.home-icon-tile .tool-icon { width: 22px; height: 22px; }
.home-tool-card h3 { font-size: 17px; font-weight: 750; letter-spacing: -.025em; }
.home-tool-card p { margin: 10px 0 23px; font-size: 13px; line-height: 1.9; color: var(--db-text-sub); word-break: keep-all; overflow-wrap: anywhere; }
.home-card-link { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 12px; font-weight: 700; }
.home-card-link .tool-icon { width: 16px; height: 16px; }
.home-text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; white-space: nowrap; padding-bottom: 3px; color: var(--db-text-sub); }
.home-text-link:hover { color: var(--db-text); }
.home-text-link .tool-icon { width: 15px; height: 15px; }
.home-feature-card { padding: 23px; }
.home-feature-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--db-surface-3); color: var(--db-text-sub); margin-bottom: 15px; }
.home-feature-icon .tool-icon { width: 18px; height: 18px; }
.home-feature-card h3 { font-size: 14px; font-weight: 700; line-height: 1.6; letter-spacing: -.02em; }
.home-feature-card p { margin-top: 8px; font-size: 12px; line-height: 1.9; color: var(--db-text-sub); word-break: keep-all; overflow-wrap: anywhere; }
.home-start { padding: 30px; }
.home-start .home-section-heading { margin-bottom: 28px; }
.home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; padding: 0; margin: 0; list-style: none; }
.home-steps li { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.home-step-number { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; background: var(--db-surface-3); color: var(--db-text-sub); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.home-steps h3 { margin: 5px 0 7px; font-size: 13px; font-weight: 700; }
.home-steps p { font-size: 12px; line-height: 1.8; color: var(--db-text-sub); word-break: keep-all; }
.home-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px; margin: 22px 0 60px; }
.home-cta h2 { font-size: 21px; }
.home-cta p { margin-top: 7px; color: var(--db-text-sub); font-size: 12px; line-height: 1.8; }
.home-cta-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.home-footer { border-top: 1px solid var(--db-border); background: var(--db-surface); }
.home-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 29px; color: var(--db-text-sub); font-size: 11px; line-height: 1.9; }
.home-footer-brand { font-weight: 600; margin-bottom: 3px; }
.home-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; flex-shrink: 0; font-size: 12px; }
.home-footer a:hover { color: var(--db-text); }
@media (max-width: 1200px) {
    .home-header-inner { padding-inline: 32px; }
}
@media (max-width: 1000px) {
    .home-hero { gap: 30px; padding-top: 56px; }
    .home-hero h1 { font-size: 39px; }
    .home-desktop-break { display: none; }
    .home-hero-description { font-size: 14px; }
    .home-tool-card { padding: 22px; }
    .home-cta { flex-wrap: wrap; }
}
@media (max-width: 760px) {
    .home-container { width: calc(100% - 40px); }
    .home-header-inner { height: 62px; padding-inline: 16px; gap: 10px; }
    .home-brand { gap: 6px; font-size: 16px; }
    .home-brand img { width: 26px; height: 26px; }
    .home-nav { display: none; }
    .home-account { gap: 4px; }
    .home-account .btn-primary { --btn-px: 10px; --btn-fs: 11px; }
    .home-hero { grid-template-columns: 1fr; gap: 30px; padding: 38px 0 22px; }
    .home-hero h1 { font-size: clamp(33px, 7vw, 43px); }
    .home-eyebrow { margin-bottom: 15px; font-size: 11px; }
    .home-hero-description { font-size: 14px; margin-top: 17px; }
    .home-hero-actions { margin-top: 23px; }
    .home-chat { max-width: 520px; width: 100%; }
    .home-tools-grid { grid-template-columns: 1fr; }
    .home-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .home-tool-card { padding: 22px; }
    .home-tool-card p { margin-bottom: 17px; }
    .home-section { margin-top: 38px; }
    .home-section h2 { font-size: 23px; }
    .home-section-heading { align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
    .home-steps { grid-template-columns: 1fr; gap: 21px; }
    .home-start { padding: 24px; }
    .home-cta { padding: 24px; margin-bottom: 38px; }
    .home-cta-actions { width: 100%; }
    .home-footer-inner { flex-direction: column; align-items: flex-start; gap: 17px; }
}
@media (max-width: 420px) {
    .home-container { width: calc(100% - 32px); }
    .home-hero h1 { font-size: 33px; }
    .home-hero-actions { gap: 8px; }
    .home-hero-actions .btn { --btn-px: 15px; --btn-fs: 13px; }
    .home-chat-header { padding: 15px; gap: 8px; font-size: 12px; }
    .home-chat-messages { padding: 13px; }
    .home-chat-message { font-size: 12px; }
    .home-chat-caption { font-size: 10px; }
    .home-features-grid { grid-template-columns: 1fr; }
    .home-feature-card { padding: 21px; }
    .home-section h2 { font-size: 21px; }
    .home-cta h2 { font-size: 19px; }
    .home-cta-actions .btn { --btn-fs: 13px; --btn-px: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
