/* ================================================
   style.css
   pixel06.org — Global Stylesheet
   Fonts: Geist (headings + UI), JetBrains Mono (brand + code)
   ================================================ */


/* ------------------------------------------------
   1. CSS VARIABLES - for checking
   ------------------------------------------------ */
:root {
    --bg:            #07070f;
    --surf:          #0e0e1c;
    --surf-2:        #14142a;
    --border:        rgba(120, 120, 200, 0.12);
    --border-hover:  rgba(0, 220, 255, 0.30);
    --accent:        #00dcff;
    --accent-dim:    rgba(0, 220, 255, 0.10);
    --violet:        #8b5cf6;
    --text:          #ddddf0;
    --muted:         #6b6b90;

    --font-ui:   'Geist', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    --nav-height: 60px;
    --max-width:  1200px;
}


/* ------------------------------------------------
   2. RESET + BASE
   ------------------------------------------------ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
}


/* ------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-ui);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
}

h1 { font-size: clamp(36px, 6vw, 58px); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: clamp(20px, 3vw, 26px); }
h4 { font-size: 18px; }
h5 { font-size: 16px; }

p {
    color: var(--muted);
    font-weight: 300;
    line-height: 1.7;
}

.mono {
    font-family: var(--font-mono);
}

.text-accent { color: var(--accent); }
.text-muted  { color: var(--muted); }
.text-white  { color: #fff; }


/* ------------------------------------------------
   4. LAYOUT
   ------------------------------------------------ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: 64px 0;
}

.section--sm {
    padding: 40px 0;
}


/* ------------------------------------------------
   5. HEADER + NAVIGATION
   ------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(7, 7, 15, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    height: var(--nav-height);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

.nav-brand {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.nav-brand span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
}

.nav-link {
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link--active {
    color: var(--accent);
}

.nav-cta {
    background: var(--accent);
    color: #07070f;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    border: none;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.nav-cta:hover {
    opacity: 0.88;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}


/* ------------------------------------------------
   6. HERO
   ------------------------------------------------ */
.hero {
    padding: 72px 32px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(0, 220, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-label::before,
.hero-label::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.hero h1 {
    max-width: 680px;
    margin: 0 auto 20px;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-sub {
    max-width: 440px;
    margin: 0 auto 40px;
    font-size: 16px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding-top: 32px;
    margin-top: 20px;
    border-top: 1px solid var(--border);
}

.stat-num {
    font-family: var(--font-ui);
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1;
}

.stat-num span {
    color: var(--accent);
}

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


/* ------------------------------------------------
   7. SEARCH BAR
   ------------------------------------------------ */
.search-wrap {
    display: flex;
    align-items: center;
    max-width: 480px;
    margin: 0 auto;
    background: var(--surf);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s;
}

.search-wrap:focus-within {
    border-color: var(--accent);
}

.search-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text);
}

.search-wrap input::placeholder {
    color: var(--muted);
}

.search-btn {
    background: var(--accent);
    border: none;
    padding: 14px 20px;
    color: #07070f;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.search-btn:hover {
    opacity: 0.88;
}


/* ------------------------------------------------
   8. TOOL GRID + CARDS
   ------------------------------------------------ */
.tools-section {
    padding: 48px 32px 64px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 28px;
}

.section-title {
    font-family: var(--font-ui);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
}

.section-count {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
}

.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    font-size: 12px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.filter-btn:hover,
.filter-btn.is-active {
    background: var(--accent-dim);
    border-color: var(--border-hover);
    color: var(--accent);
}

.filter-btn.is-active {
    border-color: var(--accent);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.tool-card {
    background: var(--surf);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: border-color 0.25s, transform 0.25s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(0, 220, 255, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.tool-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.tool-card:hover::before {
    opacity: 1;
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 220, 255, 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.card-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge--color {
    background: rgba(0, 220, 255, 0.10);
    color: var(--accent);
    border: 1px solid rgba(0, 220, 255, 0.20);
}

.badge--type {
    background: rgba(139, 92, 246, 0.10);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.20);
}

.badge--dev {
    background: rgba(34, 197, 94, 0.10);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.20);
}

.badge--img {
    background: rgba(251, 146, 60, 0.10);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.20);
}

.card-name {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.card-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    font-weight: 300;
    flex: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 8px;
    border-radius: 4px;
}

.card-arrow {
    color: var(--muted);
    font-size: 16px;
    transition: color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.tool-card:hover .card-arrow {
    color: var(--accent);
    transform: translate(2px, -2px);
}


/* ------------------------------------------------
   9. TOOL PAGE LAYOUT
   (used on individual tool pages)
   ------------------------------------------------ */
.tool-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

.tool-page__header {
    margin-bottom: 36px;
}

.tool-page__label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.tool-page__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 10px;
}

.tool-page__desc {
    font-size: 15px;
    color: var(--muted);
    max-width: 560px;
    font-weight: 300;
}

.tool-panel {
    background: var(--surf);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}


/* ------------------------------------------------
   10. FORM ELEMENTS
   ------------------------------------------------ */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.input-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.input-field {
    background: var(--surf-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

.input-field:focus {
    border-color: var(--accent);
}

.input-field::placeholder {
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    border: none;
    transition: all 0.2s;
}

.btn--primary {
    background: var(--accent);
    color: #07070f;
}

.btn--primary:hover {
    opacity: 0.88;
}

.btn--ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.btn--copy {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 7px 14px;
}

.btn--copy:hover {
    background: rgba(255, 255, 255, 0.10);
}


/* ------------------------------------------------
   11. OUTPUT / RESULT PANELS
   ------------------------------------------------ */
.output-panel {
    background: var(--surf-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 24px;
}

.output-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.output-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.output-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.output-value {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}


/* ------------------------------------------------
   12. FOOTER
   ------------------------------------------------ */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

.footer-inner {
    display: flex;
    gap: 64px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 56px 32px 40px;
}

.footer-brand-col {
    flex-shrink: 0;
}

.footer-brand {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    display: block;
    margin-bottom: 12px;
}

.footer-brand span {
    color: var(--accent);
}

.footer-tagline {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 300;
    max-width: 200px;
}

.footer-nav {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    flex: 1;
}

.footer-nav-heading {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-nav-group ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-group a {
    font-size: 13px;
    color: var(--muted);
    font-weight: 300;
    transition: color 0.2s;
}

.footer-nav-group a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 32px;
    border-top: 1px solid var(--border);
}

.footer-copy {
    font-size: 12px;
    color: var(--muted);
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-sep {
    opacity: 0.3;
}

.footer-build {
    font-size: 11px;
    color: var(--muted);
}


/* ------------------------------------------------
   13. UTILITIES
   ------------------------------------------------ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.text-center { text-align: center; }
.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.mt-4  { margin-top: 32px; }
.mt-6  { margin-top: 48px; }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 8px; }
.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }
.mb-4  { margin-bottom: 32px; }
.mb-6  { margin-bottom: 48px; }


/* ------------------------------------------------
   14. RESPONSIVE
   ------------------------------------------------ */
@media (max-width: 768px) {
    .container,
    .hero,
    .tools-section,
    .tool-page {
        padding-left: 20px;
        padding-right: 20px;
    }

    .site-nav {
        padding: 0 20px;
        flex-wrap: wrap;
        height: auto;
        min-height: var(--nav-height);
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 12px 0 16px;
        order: 3;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-link {
        padding: 10px 4px;
        font-size: 15px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cta {
        order: 2;
    }

    h1 { font-size: 36px; }

    .hero-stats {
        gap: 28px;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 36px;
        padding-top: 40px;
    }

    .footer-nav {
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}