@charset "UTF-8";

/* =========================================================
   Proxutil Hub — Soft Product Hub design system
   ========================================================= */

:root {
    /* Surfaces */
    --c-bg: #f1f5f9;
    --c-bg-accent: #e8eef6;
    --c-surface: #ffffff;
    --c-surface-hover: #f8fafc;
    --c-text: #0f172a;
    --c-text-muted: #64748b;
    --c-border: #e2e8f0;
    --c-border-strong: #cbd5e1;

    /* Brand / actions */
    --c-primary: #4f46e5;
    --c-primary-soft: #eef2ff;
    --c-primary-hover: #4338ca;
    --c-focus: #2563eb;
    --c-teal: #0d9488;
    --c-teal-soft: #ccfbf1;
    --c-sage: #3f6f5a;
    --c-sage-soft: #e8f2ec;
    --c-muted-soft: #f1f5f9;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --c-bg: #0b1220;
        --c-bg-accent: #111827;
        --c-surface: #111827;
        --c-surface-hover: #1e293b;
        --c-text: #e2e8f0;
        --c-text-muted: #94a3b8;
        --c-border: #1e293b;
        --c-border-strong: #334155;
        --c-primary: #818cf8;
        --c-primary-soft: #1e1b4b;
        --c-primary-hover: #a5b4fc;
        --c-focus: #60a5fa;
        --c-teal: #2dd4bf;
        --c-teal-soft: #134e4a;
        --c-sage: #6ee7b7;
        --c-sage-soft: #14532d;
        --c-muted-soft: #1e293b;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
        --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
        --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
    }
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    background:
        radial-gradient(1200px 480px at 10% -10%, rgba(79, 70, 229, 0.08), transparent 55%),
        radial-gradient(900px 420px at 100% 0%, rgba(13, 148, 136, 0.07), transparent 50%),
        var(--c-bg);
    color: var(--c-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", Roboto, "Helvetica Neue", sans-serif;
    line-height: 1.55;
    font-size: 16px;
}

*:focus-visible {
    outline: 2px solid var(--c-focus);
    outline-offset: 2px;
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Layout */
.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg) var(--space-2xl);
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--c-border);
}

.site-title {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--c-text);
    text-decoration: none;
}

.site-title:hover {
    color: var(--c-primary);
}

.site-title-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-teal));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    color: var(--c-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
    color: var(--c-text);
    background-color: var(--c-surface);
}

.site-nav a[aria-current="page"] {
    color: var(--c-primary);
    background-color: var(--c-primary-soft);
    font-weight: 600;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl) var(--space-xl);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, var(--c-surface) 0%, var(--c-surface-hover) 55%, color-mix(in srgb, var(--c-primary-soft) 55%, var(--c-surface)) 100%);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.hero-copy {
    min-width: 0;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--space-md);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.hero h2 {
    display: flex;
    flex-direction: column;
    gap: 0.15em;
    max-width: none;
    margin-bottom: var(--space-md);
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.3;
    color: var(--c-text);
    word-break: keep-all;
    overflow-wrap: normal;
}

.hero-title-line {
    display: block;
    white-space: nowrap;
}

.hero-lead {
    max-width: none;
    margin-bottom: var(--space-xs);
    color: var(--c-text-muted);
    font-size: 0.98rem;
    line-height: 1.55;
    word-break: keep-all;
}

.hero-lead--sub {
    margin-bottom: var(--space-lg);
    color: var(--c-text-muted);
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    pointer-events: none;
}

.hero-illustration {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
}

.trust-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    background: var(--c-surface);
    color: var(--c-text);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.trust-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-teal);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-teal) 22%, transparent);
    flex-shrink: 0;
}

.trust-chip:nth-child(2) .trust-chip-dot {
    background: var(--c-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 20%, transparent);
}

.trust-chip:nth-child(3) .trust-chip-dot {
    background: var(--c-sage);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-sage) 22%, transparent);
}

/* Category */
.category-section {
    margin-bottom: var(--space-2xl);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.05rem;
    background: var(--c-primary-soft);
}

.category-section--media .category-icon {
    background: var(--c-teal-soft);
}

.category-section--forest .category-icon {
    background: var(--c-sage-soft);
}

.category-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--c-text);
}

.category-count {
    margin-left: auto;
    color: var(--c-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Tool cards */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    min-width: 0;
    min-height: 168px;
    padding: var(--space-lg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    background: var(--c-surface);
    color: var(--c-text);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease,
        background-color 0.15s ease;
}

a.tool-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--c-primary) 35%, var(--c-border));
    box-shadow: var(--shadow-lg);
    background: var(--c-surface-hover);
}

a.tool-card:active {
    transform: translateY(0);
}

.tool-card header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: 0;
}

.tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 11px;
    background: var(--c-primary-soft);
    font-size: 1.2rem;
    line-height: 1;
}

.tool-card--media .tool-icon {
    background: var(--c-teal-soft);
}

.tool-card--ai .tool-icon {
    background: var(--c-primary-soft);
}

.tool-card--forest .tool-icon {
    background: var(--c-sage-soft);
}

.tool-card-heading {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tool-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--c-text);
    line-height: 1.3;
}

.tool-desc {
    margin-top: 2px;
    font-size: 0.9rem;
    color: var(--c-text-muted);
    line-height: 1.55;
    flex: 1;
}

.tool-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-top: auto;
    padding-top: var(--space-sm);
}

.tool-cta {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--c-primary);
}

a.tool-card:hover .tool-cta {
    color: var(--c-primary-hover);
}

.tool-cta::after {
    content: " →";
}

/* Muted / private */
.tool-card--muted {
    opacity: 1;
    border-style: dashed;
    border-color: var(--c-border-strong);
    background: var(--c-muted-soft);
    box-shadow: none;
    color: var(--c-text-muted);
}

.tool-card--muted .tool-icon {
    background: var(--c-border);
    filter: grayscale(0.35);
    opacity: 0.85;
}

.tool-card--muted .tool-title,
.tool-card--muted .tool-desc,
.tool-card--muted .tool-cta {
    color: var(--c-text-muted);
}

.tool-card--muted:hover {
    transform: none;
    border-color: var(--c-border-strong);
    box-shadow: none;
    background: var(--c-muted-soft);
    opacity: 0.95;
}

/* Placeholder (disabled) — stronger contrast vs page background */
.tool-card--placeholder {
    border-style: dashed;
    border-width: 1.5px;
    border-color: var(--c-border-strong);
    background:
        repeating-linear-gradient(
            -45deg,
            var(--c-surface),
            var(--c-surface) 10px,
            color-mix(in srgb, var(--c-border) 55%, var(--c-surface)) 10px,
            color-mix(in srgb, var(--c-border) 55%, var(--c-surface)) 20px
        );
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-border-strong) 40%, transparent);
    cursor: not-allowed;
    opacity: 1;
    color: var(--c-text-muted);
}

.tool-card--placeholder .tool-icon {
    background: #dbe3ee;
    border: 1px solid var(--c-border-strong);
}

.tool-card--placeholder .tool-title {
    color: #475569;
    font-weight: 650;
}

.tool-card--placeholder .tool-desc {
    color: #64748b;
}

@media (prefers-color-scheme: dark) {
    .tool-card--placeholder {
        border-color: #64748b;
        background:
            repeating-linear-gradient(
                -45deg,
                #1e293b,
                #1e293b 10px,
                #243041 10px,
                #243041 20px
            );
        box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
    }

    .tool-card--placeholder .tool-icon {
        background: #334155;
        border-color: #64748b;
    }

    .tool-card--placeholder .tool-title {
        color: #cbd5e1;
    }

    .tool-card--placeholder .tool-desc {
        color: #94a3b8;
    }
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    line-height: 1.2;
    white-space: nowrap;
    border: 1px solid transparent;
}

.badge-private {
    background: #e2e8f0;
    color: #475569;
    border-color: #cbd5e1;
}

.badge-new {
    background: var(--c-primary-soft);
    color: var(--c-primary);
    border-color: color-mix(in srgb, var(--c-primary) 25%, transparent);
}

.badge-pending {
    background: var(--c-muted-soft);
    color: var(--c-text-muted);
    border-color: var(--c-border);
}

.badge-local {
    background: var(--c-teal-soft);
    color: var(--c-teal);
}

@media (prefers-color-scheme: dark) {
    .badge-private {
        background: #334155;
        color: #cbd5e1;
        border-color: #475569;
    }
}

/* Guide page */
.intro-section {
    margin-bottom: var(--space-xl);
}

.intro-section h2 {
    font-size: 1.5rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.intro-section p {
    color: var(--c-text-muted);
}

.guide-content {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    line-height: 1.7;
    box-shadow: var(--shadow-sm);
}

.guide-content h3 {
    font-size: 1.05rem;
    color: var(--c-text);
    margin: var(--space-lg) 0 var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--c-border);
}

.guide-content h3:first-child {
    margin-top: 0;
}

.guide-content p {
    margin-bottom: var(--space-sm);
    color: var(--c-text);
    font-size: 0.95rem;
}

.guide-content ul,
.guide-content ol {
    margin-left: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--c-text);
    font-size: 0.95rem;
}

.guide-content li {
    margin-bottom: var(--space-xs);
}

.guide-content a {
    color: var(--c-primary);
    text-decoration: none;
    font-weight: 600;
}

.guide-content a:hover {
    text-decoration: underline;
}

.guide-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: var(--c-muted-soft);
    border: 1px solid var(--c-border);
}

/* Footer */
.site-footer {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--c-border);
    font-size: 0.85rem;
    color: var(--c-text-muted);
    text-align: center;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

    a.tool-card:hover {
        transform: none;
    }
}

/* Narrow / mid screens */
@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: var(--space-lg) var(--space-md);
    }

    .hero-visual {
        order: -1;
        min-height: 0;
    }

    .hero-illustration {
        max-width: 280px;
    }

    .hero-title-line {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .container {
        padding: var(--space-md) var(--space-md) var(--space-xl);
    }

    .site-header {
        flex-wrap: wrap;
        margin-bottom: var(--space-lg);
    }

    .hero {
        margin-bottom: var(--space-xl);
    }

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