:root {
    --bg: #0b0c10;
    --panel: #11131a;
    --text: #e7e9ee;
    --muted: #a7adbb;
    --border: rgba(255, 255, 255, .08);
    --link: #8ab4ff;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

/* ── Custom scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.22); }
::-webkit-scrollbar-corner { background: transparent; }
/* Firefox */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    /* ✅ 콘텐츠가 짧아도 화면 꽉 채움 */
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    line-height: 1.5;
}

html {
    background:
        radial-gradient(1200px 800px at 20% 0%, rgba(138, 180, 255, .16), transparent 60%),
        radial-gradient(1000px 700px at 90% 10%, rgba(170, 255, 200, .12), transparent 55%),
        radial-gradient(900px 700px at 40% 120%, rgba(255, 255, 255, .06), transparent 60%),
        /* ✅ 아래쪽도 은은하게 */
        var(--bg);
    background-attachment: fixed;
    /* ✅ 스크롤해도 배경이 ‘쭉’ 유지되는 느낌 */
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.wrap {
    min-height: 100vh;
    /* ✅ 컨텐츠 영역이 화면 높이를 채움 */
    max-width: 980px;
    margin: 0 auto;
    padding: 28px 18px 56px;
}

header {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px;
    border: 1px solid var(--border);
    background: rgba(17, 19, 26, .72);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    /* Keep dropdown navigation above hero/cards on dense home layouts. */
    position: relative;
    z-index: 1000;
    overflow: visible;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand h1,
.brand-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .2px;
}

.brand p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.chip {
    border: 1px solid var(--border);
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    font-size: 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Language switch */
.lang-switch {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    margin-left: 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    cursor: pointer;
    line-height: 1;
    transition: background .15s, color .15s;
}

.lang-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
}

.lang-btn.active {
    color: var(--text);
    background: rgba(138, 180, 255, .18);
}

.hero {
    padding: 22px 6px 6px;
}

.hero h2 {
    margin: 18px 0 6px;
    font-size: 34px;
    letter-spacing: 0;
}

.hero .lead {
    margin: 0;
    color: var(--muted);
    max-width: 70ch;
}

.note {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px dashed rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    font-size: 13px;
    max-width: 90ch;
}

.grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

.card {
    grid-column: span 12;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(17, 19, 26, .72);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 16px;
}

@media (min-width: 860px) {
    .card {
        grid-column: span 4;
    }
}

.card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
}

.item span {
    color: var(--muted);
    font-size: 12px;
}

footer {
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
    padding: 0 6px;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr .9fr;
    gap: 20px;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.footer-heading {
    color: var(--text);
    font-size: 13px;
    margin: 0 0 4px;
}

.footer-brand-copy,
.footer-subtle {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    max-width: 34ch;
}

.footer-subtle {
    color: rgba(231, 233, 238, .72);
}

.footer-col a {
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
    line-height: 1.6;
}

.footer-col a:hover {
    color: var(--link);
    text-decoration: underline;
}

.footer-col a:focus-visible {
    outline: 2px solid rgba(138, 180, 255, .55);
    outline-offset: 2px;
    border-radius: 6px;
}

.footer-built {
    margin: 16px 0 0;
    color: rgba(231, 233, 238, .68);
}

@media (max-width: 960px) {
    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 20px;
    }
}

@media (max-width: 640px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.kbd {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0, 0, 0, .18);
    color: var(--text);
    font-size: 12px;
}

/* Tool-page friendly extras */
.page-title {
    margin: 18px 0 6px;
    font-size: 28px;
    letter-spacing: 0;
}

.page-sub {
    margin: 0 0 16px;
    color: var(--muted);
    max-width: 80ch;
}

.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(17, 19, 26, .72);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 14px;
}

textarea,
input,
select,
button {
    font: inherit;
}

textarea,
input,
select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
}

button {
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
}

button:hover {
    background: rgba(255, 255, 255, .10);
}

.row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.small {
    font-size: 12px;
    color: var(--muted);
}


/* Toolbar alignment */
.toolbar {
    gap: 14px;
    flex-wrap: nowrap;
    /* ✅ 카드 줄바꿈 금지 */
}

.field {
    display: inline-flex;
    flex-direction: row;
    /* ✅ 항상 가로 */
    align-items: center;
    gap: 8px;

    padding: 8px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);

    white-space: nowrap;
    /* ✅ 카드 내부 줄바꿈 금지 */
}

/* Stable stacked form field for dense tool inputs */
.tool-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.tool-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-width: 0;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
}

.tool-field > span,
.tool-field > .field-label {
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
}

.tool-field input,
.tool-field select,
.tool-field textarea {
    width: 100%;
    min-width: 0;
}

.tool-field .select-compact {
    width: 100%;
}

.tool-field-toggle {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tool-field-toggle > span,
.tool-field-toggle > .field-label {
    margin: 0;
}

.tool-field-toggle input[type="checkbox"] {
    width: auto;
    flex: 0 0 auto;
    transform: none;
}

@media (max-width: 900px) {
    .tool-form-grid > [class*="col-"] {
        grid-column: span 12;
    }
}

/* 체크박스 살짝 중앙 보정 */
.field input[type="checkbox"] {
    transform: translateY(1px);
    accent-color: #8ab4ff;
}

/* Select theme */
select {
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    border: 1px solid var(--border);
}

/* Compact select */
.select-compact {
    width: auto;
    padding: 8px 10px;
    border-radius: 12px;
}

/* Dropdown option theme (works in many browsers, not all) */
select option {
    background: #11131a;
    /* ✅ 다크 배경 */
    color: #e7e9ee;
    /* ✅ 밝은 글씨 */
}


/* 텍스트 카운터 부분 CSS */
/* Stats (Text Counter) */
.stats {
    gap: 16px;
    flex-wrap: nowrap;
}

.stat {
    min-width: 120px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-value {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.1;
}

.stat-label {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 860px) {
    .stats {
        overflow-x: auto;
        padding-bottom: 4px;
    }
}

/* JSON 2-column layout helpers */
.col-6 {
    grid-column: span 6;
}

.col-3 {
    grid-column: span 3;
}

.col-4 {
    grid-column: span 4;
}

.col-8 {
    grid-column: span 8;
}

.col-12 {
    grid-column: span 12;
}

@media (max-width: 900px) {
    .col-3,
    .col-4,
    .col-6,
    .col-8,
    .col-12 {
        grid-column: span 12;
    }
}

/* Auto-growing textarea: no inner scroll, page grows instead */
textarea.grow {
    height: auto;
    /* 초기값 */
    min-height: 320px;
    /* 보기 좋은 기본 높이 (원하면 조절) */
    overflow: hidden;
    /* ✅ 내부 스크롤 제거 */
    resize: none;
    /* ✅ 사용자가 드래그로 줄이지 않게 */

    padding-bottom: 30px;
}

/* Wider, scrollable output area for code-heavy converters */
.code-output-panel {
    margin-top: 10px;
}

.code-output-textarea {
    width: 100%;
    min-height: 340px;
    max-height: 65vh;
    overflow: auto;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    line-height: 1.45;
}


/* --- Header dropdown nav --- */
.nav {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1001;
}

.nav-group {
    position: relative;
    display: inline-flex;
}

.nav-menu {
    position: absolute;
    right: 0;
    top: calc(+95% + 10px);
    min-width: 260px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(10, 12, 16, .92);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    display: none;
    z-index: 1100;
}

.nav-menu a {
    display: block;
    padding: 10px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
}

.nav-menu a:hover {
    background: rgba(138, 180, 255, .12);
    border: 1px solid rgba(138, 180, 255, .22);
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu,
.nav-group.open .nav-menu {
    display: block;
}

/* Make the trigger button look like existing chips */
.nav-trigger {
    background: transparent;
}

.nav-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    /* 메뉴 위쪽으로 10px 다리 */
    height: 10px;
}

@media (max-width: 600px) {
    .nav-menu {
        min-width: min(260px, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
    }
}


/* ════════════════════════════════════════════════════════════════
   Home page — Modern tool grid
   ════════════════════════════════════════════════════════════════ */

/* Gradient tagline */
body[data-section="home"] .hero h2 {
    background: linear-gradient(135deg, #8ab4ff 0%, #7fefbd 45%, #ffb86c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 38px;
    margin: 14px 0 8px;
    letter-spacing: 0;
}

/* Search + filter toolbar */
.home-toolbar {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.search-box {
    position: relative;
    max-width: 480px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    opacity: .6;
}

.search-box input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}

.search-box input:focus {
    outline: none;
    border-color: rgba(138, 180, 255, .35);
    box-shadow: 0 0 0 3px rgba(138, 180, 255, .08);
}

.search-box input::placeholder {
    color: var(--muted);
    opacity: .65;
}

/* Filter pills */
.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .18s ease;
}

.pill:hover {
    background: rgba(255, 255, 255, .07);
    color: var(--text);
}

.pill.active {
    background: rgba(138, 180, 255, .14);
    border-color: rgba(138, 180, 255, .3);
    color: var(--text);
}

.cat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cat-dot.general {
    background: #8ab4ff;
}

.cat-dot.firmware {
    background: #7fefbd;
}

.cat-dot.hardware {
    background: #ffb86c;
}

/* Tool grid — responsive auto-fill */
.tool-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

/* Tool card */
.tool-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(17, 19, 26, .48);
    backdrop-filter: blur(6px);
    text-decoration: none !important;
    color: inherit;
    transition: transform .18s ease, border-color .18s ease,
        box-shadow .18s ease, background .18s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .32);
    background: rgba(17, 19, 26, .72);
}

.tool-card[data-cat="general"]:hover {
    border-color: rgba(138, 180, 255, .32);
}

.tool-card[data-cat="firmware"]:hover {
    border-color: rgba(127, 239, 189, .32);
}

.tool-card[data-cat="hardware"]:hover {
    border-color: rgba(255, 184, 108, .32);
}

/* Category tag inside card */
.cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 2px;
}

.cat-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.cat-tag.general {
    color: rgba(138, 180, 255, .8);
}

.cat-tag.general::before {
    background: #8ab4ff;
}

.cat-tag.firmware {
    color: rgba(127, 239, 189, .8);
}

.cat-tag.firmware::before {
    background: #7fefbd;
}

.cat-tag.hardware {
    color: rgba(255, 184, 108, .8);
}

.cat-tag.hardware::before {
    background: #ffb86c;
}

.tool-card strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    display: inline;
}

.tool-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

/* NEW badge */
.badge-new {
    display: none;
}

/* No results */
#no-results {
    text-align: center;
    color: var(--muted);
    padding: 48px 0;
    font-size: 15px;
}

@media (max-width: 600px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        max-width: 100%;
    }

    body[data-section="home"] .hero h2 {
        font-size: 28px;
    }
}

/* ════════════════════════════════════════════════════════════════
   Home page — Developer dashboard refresh
   ════════════════════════════════════════════════════════════════ */

body[data-section="home"] {
    background:
        radial-gradient(1000px 640px at 18% -10%, rgba(93, 184, 255, .16), transparent 58%),
        radial-gradient(900px 600px at 86% 8%, rgba(127, 239, 189, .10), transparent 54%),
        linear-gradient(180deg, #071016 0%, #0b0c10 48%, #0b0c10 100%);
}

body[data-section="home"] .wrap {
    max-width: 1180px;
}

.home-main {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.home-hero {
    position: relative;
    margin-top: 22px;
    padding: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, .65fr);
    gap: 28px;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
        rgba(10, 14, 20, .78);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
    overflow: hidden;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(138, 180, 255, .10), transparent 38%),
        linear-gradient(135deg, transparent 0 62%, rgba(127, 239, 189, .06));
    pointer-events: none;
}

.home-hero-copy,
.tool-stack-preview {
    position: relative;
    z-index: 1;
}

.hero-kicker,
.section-eyebrow {
    margin: 0 0 10px;
    color: #7fefbd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-hero h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(32px, 4.2vw, 52px);
    line-height: 1.04;
    letter-spacing: 0;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.hero-title-brand,
.hero-title-separator {
    display: inline;
}

.hero-title-rest {
    display: block;
}

.hero-tagline {
    margin: 18px 0 0;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 720;
    line-height: 1.1;
    background: linear-gradient(135deg, #8ab4ff 0%, #7fefbd 58%, #ffd39a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    max-width: 68ch;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.home-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.home-cta.primary {
    color: #071016;
    background: linear-gradient(135deg, #8ab4ff, #7fefbd);
    border-color: transparent;
}

.home-cta.secondary {
    background: rgba(255, 255, 255, .055);
}

.home-cta:hover,
.home-cta:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(127, 239, 189, .42);
}

.hero-trust {
    margin: 14px 0 0;
    color: rgba(231, 233, 238, .72);
    font-size: 13px;
}

.tool-stack-preview {
    min-height: 100%;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 14px;
    background: rgba(3, 8, 13, .36);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.stack-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
}

.stack-header strong {
    color: #7fefbd;
    font-size: 12px;
}

.stack-grid {
    display: grid;
    gap: 10px;
}

.stack-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 10px;
    background: rgba(255, 255, 255, .045);
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.stack-grid a:hover,
.stack-grid a:focus-visible {
    transform: translateY(-1px);
    outline: none;
    border-color: rgba(138, 180, 255, .42);
    background: rgba(138, 180, 255, .095);
    box-shadow: 0 0 0 3px rgba(138, 180, 255, .10);
}

.stack-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.home-section,
.tool-finder,
.home-seo-note {
    margin-top: 0;
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.section-head.compact {
    margin-bottom: 12px;
}

.section-head h2,
.tool-finder h2,
.home-seo-note h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.15;
    letter-spacing: 0;
}

.section-head p:not(.section-eyebrow),
.tool-finder p:not(.section-eyebrow),
.home-seo-note p {
    margin: 0;
    color: var(--muted);
    max-width: 76ch;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.collection-card {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 12px;
    background: rgba(17, 19, 26, .56);
}

.collection-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.3;
}

.collection-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
}

.collection-links a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: rgba(231, 233, 238, .84);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
}

.collection-links a:hover,
.collection-links a:focus-visible {
    color: #9fc0ff;
    text-decoration: underline;
}

.featured-card {
    position: relative;
    display: flex;
    min-height: 166px;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03)),
        rgba(21, 25, 34, .70);
    color: inherit;
    text-decoration: none !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .22);
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
    overflow: hidden;
}

.featured-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, rgba(127, 239, 189, .72), rgba(138, 180, 255, .48), transparent);
    opacity: .8;
}

.featured-card.hardware::before {
    background: linear-gradient(90deg, rgba(255, 184, 108, .68), rgba(127, 239, 189, .42), transparent);
}

.featured-card:hover,
.featured-card:focus-visible {
    transform: translateY(-2px);
    background: rgba(24, 29, 39, .86);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .04);
}

.featured-card.firmware:hover,
.featured-card.firmware:focus-visible {
    border-color: rgba(127, 239, 189, .36);
}

.featured-card.hardware:hover,
.featured-card.hardware:focus-visible {
    border-color: rgba(255, 184, 108, .36);
}

.featured-card strong {
    color: var(--text);
    font-size: 18px;
    line-height: 1.2;
}

.featured-card p {
    margin: 0;
    color: rgba(231, 233, 238, .76);
    font-size: 13.5px;
    line-height: 1.6;
}

.feature-meta {
    margin-top: auto;
    align-self: flex-start;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 999px;
    color: rgba(231, 233, 238, .78);
    background: rgba(255, 255, 255, .04);
    font-size: 12px;
}

.tool-finder {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 14px;
    background: rgba(17, 19, 26, .58);
}

.tool-finder-head {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
    gap: 16px;
    align-items: end;
}

.tool-finder-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tool-finder-copy p:not(.section-eyebrow) {
    max-width: 62ch;
}

.tool-finder-search {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#finder-i18n {
    display: none;
}

.home-toolbar {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-box {
    position: relative;
    max-width: none;
}

.search-icon {
    opacity: .75;
}

.search-box input {
    min-height: 48px;
    border-radius: 10px;
    border-color: rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .18);
    transition: border-color .16s, box-shadow .16s, background .16s;
}

.search-box input:focus,
.search-box input:focus-visible {
    outline: none;
    border-color: rgba(138, 180, 255, .46);
    box-shadow: 0 0 0 3px rgba(138, 180, 255, .11);
    background: rgba(0, 0, 0, .24);
}

.finder-selected-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
}

.finder-selected-label {
    margin: 0;
    color: rgba(231, 233, 238, .76);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}

.finder-status-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 10px;
    background: rgba(255, 255, 255, .02);
}

.selected-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 24px;
    flex: 1 1 auto;
}

.selected-tags-empty {
    color: rgba(231, 233, 238, .58);
    font-size: 12px;
    align-self: center;
}

.selected-tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(138, 180, 255, .36);
    background: rgba(138, 180, 255, .14);
    color: rgba(231, 233, 238, .96);
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
}

.selected-tag-chip:hover,
.selected-tag-chip:focus-visible {
    outline: none;
    border-color: rgba(138, 180, 255, .54);
    background: rgba(138, 180, 255, .22);
}

.clear-filters-btn {
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    color: rgba(231, 233, 238, .9);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.clear-filters-btn:hover,
.clear-filters-btn:focus-visible {
    outline: none;
    border-color: rgba(138, 180, 255, .38);
}

.tool-result-summary {
    margin: 0;
    color: rgba(231, 233, 238, .78);
    font-size: 13px;
    min-height: 20px;
}

.tag-filter-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tag-filter-group[data-group="technology"] {
    grid-column: 1 / -1;
}

.tag-filter-group {
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
    padding: 10px;
}

.tag-filter-group h3 {
    margin: 0 0 8px;
    font-size: 13px;
    color: rgba(231, 233, 238, .88);
}

.tag-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 31px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05);
    color: rgba(231, 233, 238, .88);
    font-size: 12px;
    font-weight: 640;
    transition: border-color .16s ease, background .16s ease, color .16s ease, opacity .16s ease;
}

.tag-filter-btn:hover,
.tag-filter-btn:focus-visible {
    outline: none;
    border-color: rgba(138, 180, 255, .38);
    background: rgba(138, 180, 255, .10);
}

.tag-filter-btn.active {
    border-color: rgba(138, 180, 255, .56);
    background: rgba(138, 180, 255, .20);
    color: rgba(235, 240, 255, .98);
}

.tag-filter-btn:disabled {
    opacity: .42;
    cursor: not-allowed;
}

.tag-filter-btn:disabled:hover {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05);
}

.tag-filter-name {
    line-height: 1;
}

.tag-filter-count {
    min-width: 18px;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    color: rgba(231, 233, 238, .78);
    font-size: 11px;
    text-align: center;
}

.tool-grid {
    margin-top: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-card {
    gap: 7px;
    min-height: 138px;
    padding: 16px;
    border-color: rgba(255, 255, 255, .095);
    border-radius: 10px;
    background: rgba(17, 19, 26, .54);
    transition: transform .16s ease, border-color .16s ease,
        box-shadow .16s ease, background .16s ease;
}

.tool-card:hover,
.tool-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
    background: rgba(17, 19, 26, .76);
    outline: none;
}

.cat-tag {
    font-weight: 800;
}

.tool-card strong {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 720;
}

.tool-desc {
    font-size: 13px;
    color: rgba(231, 233, 238, .72);
    line-height: 1.5;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.tool-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .04);
    color: rgba(231, 233, 238, .82);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.featured-card .tool-tags {
    margin-top: auto;
}

.badge-new {
    display: none;
}

.home-seo-note {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
    gap: 18px;
    align-items: start;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
}

.home-seo-note a {
    color: #9fc0ff;
}

.privacy-note {
    padding: 14px;
    border: 1px dashed rgba(255, 255, 255, .16);
    border-radius: 10px;
    color: var(--muted);
    background: rgba(0, 0, 0, .14);
    font-size: 13px;
}

@media (max-width: 980px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .tool-finder-head {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .collections-grid,
    .featured-grid,
    .tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .collections-grid,
    .featured-grid,
    .tool-grid,
    .home-seo-note {
        grid-template-columns: 1fr;
    }

    .finder-status-row {
        flex-direction: column;
    }

    .tag-filter-groups {
        grid-template-columns: 1fr;
    }

    .clear-filters-btn {
        align-self: flex-start;
    }
}

@media (max-width: 600px) {
    body[data-section="home"] header {
        align-items: flex-start;
        flex-direction: column;
    }

    body[data-section="home"] header nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: flex-start;
        width: 100%;
    }

    body[data-section="home"] .chip,
    body[data-section="home"] .nav-group,
    body[data-section="home"] .nav-trigger {
        width: 100%;
    }

    body[data-section="home"] .lang-switch {
        justify-self: start;
    }

    .home-hero,
    .tool-finder,
    .home-seo-note {
        padding: 18px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .home-cta {
        width: 100%;
    }

    .home-hero h1 {
        font-size: clamp(28px, 8.7vw, 34px);
        line-height: 1.08;
    }

    .hero-title-separator {
        display: none;
    }

    .hero-title-brand,
    .hero-title-rest {
        display: block;
    }

    .stack-grid a {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-cta,
    .stack-grid a,
    .featured-card,
    .tool-card,
    .pill,
    .search-box input {
        transition: none;
    }
}
