@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=Fira+Code:wght@400;500&display=swap');

:root {
    --bg: #020617;
    --mesh-1: rgba(249, 115, 22, 0.12);
    /* Orange */
    --mesh-2: rgba(236, 72, 153, 0.08);
    /* Pink */
    --mesh-3: rgba(139, 92, 246, 0.1);
    /* Violet */

    --card-bg: rgba(15, 23, 42, 0.4);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-glow: rgba(249, 115, 22, 0.05);

    --accent: #f97316;
    --accent-glow: rgba(249, 115, 22, 0.4);
    --accent-gradient: linear-gradient(135deg, #f97316 0%, #ec4899 100%);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-soft: #64748b;

    --font-heading: 'Outfit', sans-serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', monospace;

    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.12);
    --shadow-premium:
        0 30px 60px -12px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05);

    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg);
    background-image:
        radial-gradient(at 0% 0%, var(--mesh-1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, var(--mesh-2) 0px, transparent 50%),
        radial-gradient(at 50% 100%, var(--mesh-3) 0px, transparent 50%);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

.shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Header & Hero */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 2rem 0 4rem;
}

.hero-text {
    animation: fadeInSlide 1s var(--ease-premium);
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.825rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
}

.hero-badges img {
    height: 24px;
    width: auto;
    transition: transform 0.3s var(--ease-premium);
}

.hero-badges a:hover img {
    transform: scale(1.05);
}

.brand-pill a {
    color: var(--accent);
    text-decoration: none;
    margin-left: 5px;
    font-weight: 600;
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.95;
    margin-bottom: 2rem;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-md {
    width: 0.85em;
    height: 0.85em;
    vertical-align: middle;
    margin-right: 0.25em;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 540px;
    font-weight: 400;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.4s var(--ease-premium);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn.primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 20px 40px -10px rgba(249, 115, 22, 0.3);
}

.btn.primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(249, 115, 22, 0.4);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    border: var(--glass-border);
    border-radius: 32px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    animation: slideUpFade 1.2s var(--ease-premium);
}

.card-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    opacity: 0.8;
}

.dot.red {
    background: #ff5f57;
}

.dot.amber {
    background: #ffbd2e;
}

.dot.green {
    background: #28c840;
}

.card-title {
    margin-left: auto;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-soft);
    font-weight: 700;
}

.terminal {
    padding: 2rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #e2e8f0;
    min-height: 200px;
    white-space: pre-wrap;
    background: rgba(0, 0, 0, 0.1);
}

/* Sections */
.section {
    margin-bottom: 5rem;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

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

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem 1.8rem;
    border-radius: 28px;
    transition: all 0.5s var(--ease-premium);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 70%);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.5);
    border-color: var(--accent);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.card h3 {
    font-family: var(--font-heading);
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Code Showcase Grid */
.code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.5rem;
}

.code-card {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.code-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.code-card h3 {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
}

.code-card h3::after {
    content: 'copy';
    font-size: 0.7rem;
    color: var(--text-soft);
    cursor: pointer;
}

.code-card pre {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    overflow-x: auto;
    color: #a5b4fc;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6rem 0 3rem;
    text-align: center;
}

.footer-nav {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-nav a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #fff;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: white;
    color: black;
    transform: scale(1.05);
}

/* Performance Section Refinement */
.perf-card {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.05), rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 32px;
    text-align: center;
}

.perf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.perf-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.perf-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.perf-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-soft);
    font-weight: 700;
}

/* Animations update */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

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

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        margin: 1rem 0 3rem;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .perf-grid {
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

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

    .perf-value {
        font-size: 2rem;
    }
}