:root {
    --bg: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.2), transparent 35%),
          radial-gradient(circle at 80% 0%, rgba(139, 92, 246, 0.2), transparent 30%),
          #0b1021;
    --card-bg: rgba(17, 24, 39, 0.85);
    --text: #e5e7eb;
    --muted: #9ca3af;
    --surface: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --primary: #60a5fa;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    padding: 32px 20px 40px;
}

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

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 28px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.12));
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.hero__content h1 {
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    margin: 8px 0 10px;
    color: #f9fafb;
}

.hero__content .subtitle {
    color: var(--muted);
    max-width: 70ch;
}

.hero__actions {
    display: flex;
    gap: 12px;
    margin: 18px 0 12px;
    flex-wrap: wrap;
}

.hero__tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero__badge {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 18px;
    text-align: center;
    min-width: 140px;
    color: #c7d2fe;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.hero__badge small {
    display: block;
    color: var(--muted);
    margin-top: 6px;
    font-weight: 500;
}

.content {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.content__header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.content__header h2 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.subtitle {
    color: var(--muted);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 0.8rem;
    color: #a5b4fc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
}

.btn.primary {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    color: #0b1021;
    border: none;
}

.btn.ghost {
    background: transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.tag {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.search {
    position: relative;
    width: min(360px, 100%);
}

.search input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

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

.card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    min-height: 220px;
    transition: transform 0.15s ease, border 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #0b1021;
    font-size: 1.2rem;
    font-weight: 700;
}

.card__body h3 {
    color: #f8fafc;
    margin: 4px 0;
    font-size: 1.2rem;
}

.card__body p {
    color: var(--muted);
}

.card__link {
    margin-top: auto;
    font-weight: 700;
    color: #bfdbfe;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card__link::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
    transition: transform 0.15s ease;
}

.card:hover .card__link::after {
    transform: translateX(3px);
}

.footer {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: var(--shadow);
}

.gradient-blue { background: linear-gradient(135deg, #60a5fa, #93c5fd); }
.gradient-purple { background: linear-gradient(135deg, #a78bfa, #c4b5fd); }
.gradient-green { background: linear-gradient(135deg, #34d399, #6ee7b7); }
.gradient-orange { background: linear-gradient(135deg, #fb923c, #fdba74); }
.gradient-red { background: linear-gradient(135deg, #f87171, #fda4af); }
.gradient-cyan { background: linear-gradient(135deg, #22d3ee, #67e8f9); }
.gradient-yellow { background: linear-gradient(135deg, #fbbf24, #fcd34d); }
.gradient-teal { background: linear-gradient(135deg, #14b8a6, #5eead4); }
.gradient-indigo { background: linear-gradient(135deg, #818cf8, #a5b4fc); }
.gradient-amber { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

.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;
}

@media (max-width: 900px) {
    body {
        padding: 24px 16px 32px;
    }

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

    .hero__content h1 {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }
}

@media (max-width: 600px) {
    .btn {
        width: 100%;
        justify-content: center;
    }

    .content__header {
        flex-direction: column;
    }

    .search {
        width: 100%;
    }
}
