@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-navbar: rgba(20, 20, 20, 0.75);
    --bg-hero: #111111;
    --bg-body: #161616;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-card: rgba(255, 255, 255, 0.07);
    --border-card-hover: rgba(255, 255, 255, 0.12);
    --text-primary: #f0f0f0;
    --text-secondary: #7a7a7a;
    --accent: #e01b24;
    --accent-hover: #ff3040;
    --accent-glow: rgba(224, 27, 36, 0.35);
    --red-glow: #ff1a1a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: var(--bg-navbar);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 0 32px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    width: auto;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.navbar-brand span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.navbar-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.25s;
    letter-spacing: 0.2px;
}

.navbar-links a:hover {
    color: var(--text-primary);
}

/* ── Hero ── */
.hero {
    position: relative;
    background: var(--bg-hero);
    min-height: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 100px;
    overflow: hidden;
}

/* Grid overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Bottom fade from hero to body */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-body));
    pointer-events: none;
    z-index: 2;
}

/* Red lighthouse beam */
.hero-beam {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    height: 480px;
    background: radial-gradient(ellipse 50% 60% at 50% 0%,
            rgba(224, 27, 36, 0.3) 0%,
            rgba(224, 27, 36, 0.1) 35%,
            rgba(224, 27, 36, 0.03) 60%,
            transparent 85%);
    pointer-events: none;
    z-index: 1;
    filter: blur(6px);
    animation: beamPulse 4s ease-in-out infinite;
}

@keyframes beamPulse {

    0%,
    100% {
        opacity: 0.85;
    }

    50% {
        opacity: 1;
    }
}

.hero-beam::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 50, 50, 0.55) 0%, transparent 70%);
    filter: blur(18px);
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
    max-width: 620px;
}

.hero-content h1 .highlight {
    background: linear-gradient(135deg, var(--accent) 0%, #ff5050 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 32px;
    letter-spacing: 0.1px;
}

.hero-content .btn-explore {
    display: inline-block;
    padding: 13px 40px;
    background: var(--accent);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.hero-content .btn-explore:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(224, 27, 36, 0.45);
}

.hero-content .btn-explore:active {
    transform: translateY(0);
}

/* ── Tools ── */
.tools-section {
    max-width: 1230px;
    margin: 0 auto;
    padding: 90px 36px 150px;
}

.tools-section h2 {
    font-size: 39px;
    font-weight: 700;
    margin-bottom: 42px;
    letter-spacing: -0.75px;
}

.tool-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    padding: 30px 36px;
    margin-bottom: 18px;
    transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

.tool-card:hover {
    border-color: var(--border-card-hover);
    background: rgba(255, 255, 255, 0.045);
    transform: translateY(-1px);
}

.tool-card .tool-name {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.tool-card .btn-got {
    padding: 14px 36px;
    background: var(--accent);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 3px 18px var(--accent-glow);
}

.tool-card .btn-got:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 30px rgba(224, 27, 36, 0.4);
}

.tool-card .btn-got:active {
    transform: translateY(0);
}

/* ── Stats ── */
.stats-section {
    max-width: 1230px;
    margin: 0 auto;
    padding: 30px 36px 120px;
}

.stats-label {
    display: inline-block;
    font-size: 21px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}

.stats-section h2 {
    font-size: 39px;
    font-weight: 700;
    letter-spacing: -0.75px;
    margin-bottom: 15px;
}

.stats-desc {
    font-size: 21px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 48px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.25s, background 0.25s;
}

.stat-card:hover {
    border-color: var(--border-card-hover);
    background: rgba(255, 255, 255, 0.045);
}

.stat-icon {
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.stat-number {
    font-size: 54px;
    font-weight: 800;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, var(--accent) 0%, #ff5050 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-title {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--border-card);
    padding: 28px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.25s;
}

.footer a:hover {
    color: var(--text-primary);
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .navbar {
        top: 10px;
        padding: 0 20px;
        gap: 24px;
        max-width: calc(100% - 32px);
        border-radius: 14px;
    }

    .hero {
        min-height: 460px;
        padding: 120px 20px 80px;
    }

    .hero-content h1 {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .tools-section {
        padding: 40px 16px 64px;
    }

    .tool-card {
        padding: 16px 18px;
    }

    .footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 20px 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-section {
        padding: 20px 16px 64px;
    }
}