/* ===== Design Tokens ===== */
:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --bg: #0a0c12;
    --bg-surface: rgba(255, 255, 255, 0.03);
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.09);
    --bg-glass: rgba(30, 34, 50, 0.55);
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(139, 92, 246, 0.4);
    --text: #e8eaed;
    --text-muted: #8b8fa3;
    --text-dim: #5a5e72;
    --accent: #a78bfa;
    --accent-bright: #c4b5fd;
    --accent-hover: #8b5cf6;
    --accent-glow: rgba(167, 139, 250, 0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --transition: 200ms cubic-bezier(.4, 0, .2, 1);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* ===== Background Orbs ===== */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.30;
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
    top: -300px;
    left: -200px;
    animation: float1 22s ease-in-out infinite;
}

.orb-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #2563eb 0%, transparent 70%);
    bottom: -200px;
    right: -150px;
    animation: float2 28s ease-in-out infinite;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    top: 50%;
    left: 55%;
    animation: float3 20s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0)
    }

    50% {
        transform: translate(80px, 50px)
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0)
    }

    50% {
        transform: translate(-60px, -40px)
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translate(0, 0)
    }

    50% {
        transform: translate(-50px, 60px)
    }
}

/* ===== Container ===== */
.container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 24px 60px;
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.7s ease-out;
}

.hero-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.15);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 32px;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.brand {
    color: var(--text);
}

.brand-dot {
    color: var(--text-dim);
}

.brand-accent {
    background: linear-gradient(135deg, #a78bfa 0%, #818cf8 40%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 440px;
    margin: 0 auto;
}

/* ===== Featured Section ===== */
.featured-section {
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.featured-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.3), rgba(15, 23, 42, 0.5));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    height: 100%;
}

.featured-card:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
    transform: translateY(-4px);
}

.featured-content {
    flex: 1;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.featured-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(167, 139, 250, 0.4);
}

.featured-content h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    background: linear-gradient(to right, #fff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.featured-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    /* Making button more subtle as card itself is clickable */
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    margin-top: auto;
}

.featured-card:hover .btn-action {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateX(4px);
}

.featured-visual {
    margin-top: 32px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
}

/* PDF Accent Variation */
.featured-card.pdf-theme {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(15, 23, 42, 0.5));
    border-color: rgba(248, 113, 113, 0.3);
}

.featured-card.pdf-theme:hover {
    border-color: #f87171;
    box-shadow: 0 20px 60px rgba(248, 113, 113, 0.15);
}

.featured-card.pdf-theme .featured-badge {
    background: #f87171;
    box-shadow: 0 2px 8px rgba(248, 113, 113, 0.4);
}

.featured-card.pdf-theme .featured-content h2 {
    background: linear-gradient(to right, #fff, #fca5a5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.featured-card.pdf-theme:hover .btn-action {
    background: #f87171;
    border-color: #f87171;
}

/* ===== Tools Section ===== */
.tools-section {
    animation: fadeInUp 0.6s ease-out 0.15s both;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-bottom: 20px;
    padding-left: 4px;
}

.tools-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== Tool Card ===== */
.tool-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.tool-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(139, 92, 246, 0.15);
}

.tool-card:active {
    transform: translateY(-1px);
}

/* Tool Icon */
.tool-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(129, 140, 248, 0.08));
    color: var(--accent);
    transition: all 0.3s ease;
}

.tool-icon svg {
    width: 30px;
    height: 30px;
}

.tool-card:hover .tool-icon {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.22), rgba(129, 140, 248, 0.15));
    transform: scale(1.05);
}

/* Tool Content */
.tool-content {
    flex: 1;
    min-width: 0;
}

.tool-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.tool-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Tags */
.tool-tags {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.tag {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.12);
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

/* Arrow */
.tool-arrow {
    flex-shrink: 0;
    color: var(--text-dim);
    transition: all 0.3s ease;
}

.tool-card:hover .tool-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* Coming Soon Card */
.tool-card-soon {
    cursor: default;
    opacity: 0.5;
    border-style: dashed;
    border-color: var(--border);
}

.tool-card-soon:hover {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
}

.tool-card-soon:hover::before {
    opacity: 0;
}

.tool-icon-soon {
    opacity: 0.5;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    animation: fadeIn 0.6s ease-out 0.3s both;
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer strong {
    color: var(--text-muted);
    font-weight: 600;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ===== Section Note ===== */
.section-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 40px 0;
    opacity: 0.7;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .featured-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        align-items: center;
        min-height: auto;
    }

    .featured-content p {
        margin: 0 auto 24px;
    }

    .featured-visual {
        display: none;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }

    .container {
        padding: 48px 16px 40px;
    }

    .hero {
        margin-bottom: 48px;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .tool-card {
        flex-wrap: wrap;
        padding: 20px;
        gap: 14px;
    }

    .tool-tags {
        order: 4;
        width: 100%;
    }

    .tool-arrow {
        display: none;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}