/* ===== CSS Variables - Neo Brutalism ===== */
:root {
    /* Colors */
    --black: #0a0a0a;
    --black-light: #1a1a1a;
    --red-dark: #8B0000;
    --red: #B22222;
    --red-bright: #DC143C;
    --gold: #D4AF37;
    --gold-light: #F4D03F;
    --white: #FAFAFA;
    --gray: #888888;

    /* Neo Brutalism */
    --border-width: 4px;
    --shadow-offset: 6px;
    --shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--black);
    --shadow-gold: var(--shadow-offset) var(--shadow-offset) 0 var(--gold);
    --shadow-red: var(--shadow-offset) var(--shadow-offset) 0 var(--red-dark);

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Container ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--black);
    border-bottom: var(--border-width) solid var(--white);
    padding: 16px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--red-dark);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: var(--border-width) solid var(--white);
    box-shadow: 3px 3px 0 var(--gold);
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 10px 20px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: var(--border-width) solid transparent;
    transition: all 0.15s ease;
}

.nav-link:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.nav-link-external {
    background: var(--red-dark);
    border-color: var(--white);
}

.nav-link-external:hover {
    background: var(--gold);
    color: var(--black);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    padding: 8px 16px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border: var(--border-width) solid var(--black);
    box-shadow: 3px 3px 0 var(--black);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.text-accent {
    color: var(--red);
    position: relative;
}

.text-accent::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--gold);
    z-index: -1;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 500px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: var(--border-width) solid var(--white);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-primary {
    background: var(--red-dark);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--white);
}

.btn-primary:active {
    transform: translate(3px, 3px);
    box-shadow: none;
}

/* ===== Hero Decoration - 3D Canvas ===== */
.hero-decoration {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#gear-canvas {
    width: 400px;
    height: 400px;
    position: relative;
}

#gear-canvas canvas {
    display: block;
}

/* ===== Section Styles ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    padding: 6px 16px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 2px;
    border: var(--border-width) solid var(--black);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
}

/* ===== Tools Section ===== */
.tools-section {
    padding: var(--section-padding) 0;
    background: var(--black-light);
    border-top: var(--border-width) solid var(--white);
    border-bottom: var(--border-width) solid var(--white);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.tool-card {
    background: var(--black);
    border: var(--border-width) solid var(--white);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    transition: all 0.15s ease;
    box-shadow: var(--shadow);
}

.tool-card:not(.tool-card-soon):hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0 var(--red-dark);
    cursor: pointer;
}

.tool-card:not(.tool-card-soon):hover .tool-arrow {
    transform: translateX(5px);
    color: var(--gold);
}

.tool-card-soon {
    opacity: 0.5;
    cursor: not-allowed;
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: var(--red-dark);
    border: var(--border-width) solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 0 var(--gold);
}

.tool-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.tool-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.tool-description {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tool-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.tag {
    background: var(--black-light);
    border: 2px solid var(--gray);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-soon {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.tool-arrow {
    position: absolute;
    bottom: 32px;
    right: 32px;
    color: var(--white);
    transition: all 0.2s ease;
}

.tool-arrow svg {
    width: 28px;
    height: 28px;
}

/* ===== About Section ===== */
.about-section {
    padding: var(--section-padding) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--gray);
    margin-top: 20px;
    font-size: 1.1rem;
}

.about-text strong {
    color: var(--gold);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-item {
    background: var(--black-light);
    border: var(--border-width) solid var(--white);
    padding: 24px;
    box-shadow: var(--shadow-red);
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Footer ===== */
.footer {
    background: var(--red-dark);
    border-top: var(--border-width) solid var(--white);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
}

.footer-brand .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    background: var(--black);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-weight: 500;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        margin: 0 auto 40px;
    }

    .hero-decoration {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 1;
        min-width: 140px;
    }

    .nav {
        display: none;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}