/* =========================================
   BEKASYSTEM - BRUTALIST INDUSTRIAL DESIGN
   ========================================= */

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

:root {
    /* Fire Safety Color Palette */
    --color-bg: #0d0d0d;
    --color-bg-secondary: #1a1a1a;
    --color-surface: #252525;
    --color-primary: #C41E3A;
    --color-primary-light: #E63946;
    --color-accent: #FF6B35;
    --color-accent-secondary: #FF4500;
    --color-text: #ffffff;
    --color-text-muted: #a1a1a1;

    /* Typography */
    --font-heading: 'Bebas Neue', sans-serif;
    --font-subheading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1280px;
    --section-spacing: 100px;
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Grid background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(196, 30, 58, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 30, 58, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-family: var(--font-subheading);
    font-weight: 700;
}

p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
}

.text-gradient {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   LAYOUT
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* =========================================
   BUTTONS - SHARP GEOMETRIC STYLE
   ========================================= */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-family: var(--font-subheading);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 8px 8px 0 rgba(196, 30, 58, 0.3);
}

.btn-primary:hover {
    transform: translate(4px, 4px);
    box-shadow: 4px 4px 0 rgba(196, 30, 58, 0.3);
}

.btn-outline {
    border: 3px solid var(--color-accent);
    color: var(--color-accent);
    background: transparent;
    box-shadow: 6px 6px 0 rgba(255, 107, 53, 0.2);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 rgba(255, 107, 53, 0.2);
}

/* =========================================
   CARDS - GEOMETRIC BRUTALIST STYLE
   ========================================= */
.glass-card {
    background: var(--color-surface);
    border: 2px solid rgba(255, 107, 53, 0.2);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 30px;
    height: 30px;
    background: var(--color-accent);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    transition: all 0.3s ease;
}

.glass-card::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -2px;
    width: 30px;
    height: 30px;
    background: var(--color-primary);
    clip-path: polygon(0 0, 0 100%, 100% 100%);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translate(-4px, -4px);
    border-color: var(--color-accent);
    box-shadow: 8px 8px 0 rgba(196, 30, 58, 0.4);
}

.glass-card:hover::before {
    width: 40px;
    height: 40px;
}

.glass-card:hover::after {
    width: 40px;
    height: 40px;
}

/* =========================================
   HEADER - MINIMAL BOLD
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1.5rem 0;
    background: rgba(13, 13, 13, 0.95);
    border-bottom: 2px solid rgba(196, 30, 58, 0.2);
}

.header.scrolled {
    padding: 1rem 0;
    border-bottom-color: var(--color-primary);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logo i {
    font-size: 2rem;
    color: var(--color-primary);
}

.logo span {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-subheading);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-accent);
    transition: width 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 100%, 0 100%);
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-links a:hover::after {
    width: 100%;
}

/* =========================================
   HERO SECTION - BOLD ASYMMETRIC
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    opacity: 0.05;
    clip-path: polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-50px, 50px) rotate(5deg);
    }
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.badge {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: var(--font-subheading);
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    transition: all 0.3s ease;
}

.badge:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    transform: skewX(-5deg);
}

/* =========================================
   FEATURES - GEOMETRIC ICONS
   ========================================= */
.feature-icon {
    width: 90px;
    height: 90px;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: white;
    position: relative;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    transition: all 0.3s ease;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 25px;
    height: 25px;
    background: var(--color-accent);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.glass-card:hover .feature-icon {
    transform: rotate(5deg) scale(1.05);
}

/* =========================================
   PRODUCT SHOWCASE
   ========================================= */
.product-showcase {
    background: var(--color-bg-secondary);
    position: relative;
}

.product-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.product-image {
    position: relative;
    padding: 2rem;
    border: 3px solid rgba(196, 30, 58, 0.3);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.product-image::before {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.product-image img {
    border: 2px solid rgba(255, 107, 53, 0.2);
}

.tech-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    padding-left: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--color-primary);
    transition: all 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.tech-list li:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(8px);
    border-left-color: var(--color-accent);
}

.tech-list i {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

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

.model-card {
    position: relative;
}

.model-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.model-card:hover::before {
    transform: scaleX(1);
}

.model-card h3 {
    margin-bottom: 1rem;
    color: white;
}

.tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.tag {
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-subheading);
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    transform: skewX(-5deg);
}

/* =========================================
   STATS SECTION - BOLD NUMBERS
   ========================================= */
.stats-section {
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 48%, rgba(0, 0, 0, 0.1) 49%, rgba(0, 0, 0, 0.1) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(0, 0, 0, 0.1) 49%, rgba(0, 0, 0, 0.1) 51%, transparent 52%);
    background-size: 30px 30px;
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.stat-number {
    font-size: 4.5rem;
    font-weight: 400;
    font-family: var(--font-heading);
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    font-family: var(--font-subheading);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    border-top: 3px solid var(--color-primary);
    background: var(--color-bg);
    padding-top: 5rem;
    padding-bottom: 2rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-family: var(--font-subheading);
    font-weight: 700;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid rgba(196, 30, 58, 0.2);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 968px) {
    :root {
        --section-spacing: 80px;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-links {
        display: none;
    }

    .hero-content {
        padding-top: 100px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 0.85rem;
    }
}