:root {
    --bg-dark: #0d0d0f;
    --bg-darker: #080809;
    --bg-card: #141418;
    --bg-card-hover: #1a1a20;
    --red: #c62828;
    --red-light: #e53935;
    --red-dark: #8e1c1c;
    --red-glow: rgba(198, 40, 40, 0.4);
    --text: #f5f5f5;
    --text-muted: #9e9e9e;
    --text-dark: #616161;
    --white: #ffffff;
    --border: rgba(198, 40, 40, 0.2);
    --border-light: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    max-width: 100vw;
}

/* Scan lines effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
}

/* Grid pattern */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(198, 40, 40, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(198, 40, 40, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 13, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

nav.scrolled {
    padding: 0.75rem 5%;
    background: rgba(8, 8, 9, 0.98);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.logo-img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 10px var(--red-glow));
    transition: filter 0.3s ease;
    flex-shrink: 0;
}

.logo:hover .logo-img {
    filter: drop-shadow(0 0 20px var(--red-glow));
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--white);
    letter-spacing: 4px;
    text-transform: uppercase;
    white-space: nowrap;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s ease;
}

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

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

.nav-cta {
    background: var(--red);
    border: none;
    color: var(--white);
    padding: 0.85rem 1.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.nav-cta:hover {
    background: var(--red-light);
    box-shadow: 0 0 30px var(--red-glow);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--red);
    color: var(--white);
    padding: 1.1rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.btn-primary:hover {
    background: var(--red-light);
    box-shadow: 0 0 40px var(--red-glow);
    transform: translateY(-2px);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    color: var(--text);
    padding: 1.1rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--red);
    color: var(--red-light);
}

/* Page Header */
.page-header {
    padding: 10rem 5% 5rem;
    text-align: center;
    position: relative;
    z-index: 1;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(198, 40, 40, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    overflow: hidden;
    max-width: 100vw;
}

.page-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.page-header h1 span {
    color: var(--red);
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Section styles */
section {
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
    overflow: hidden;
    max-width: 100vw;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--red);
    transition: height 0.4s ease;
}

.card:hover {
    border-color: var(--red);
    transform: translateY(-5px);
}

.card:hover::before {
    height: 100%;
}

.card-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: var(--bg-darker);
    -webkit-text-stroke: 1px var(--border);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
    z-index: 0;
}

.card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.card-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--red);
    fill: none;
    stroke-width: 1.5;
}

.card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* Grid layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-light);
    padding: 4rem 5% 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-column h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--red);
}

.footer-column ul {
    list-style: none;
}

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

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    font-size: 0.85rem;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--red);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile navigation overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 998;
}

.nav-overlay.active {
    display: block;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive */

/* Tablet landscape */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    section {
        padding: 5rem 5%;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Tablet portrait */
@media (max-width: 968px) {
    nav {
        padding: 0.75rem 4%;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo-img {
        height: 40px;
    }

    .logo-text {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        gap: 2rem;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.25rem;
        letter-spacing: 2px;
    }

    .nav-links a::after {
        bottom: -8px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-cta {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

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

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

    .card {
        padding: 2rem;
    }

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

/* Mobile landscape */
@media (max-width: 768px) {
    nav {
        padding: 0.6rem 4%;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo-img {
        height: 36px;
    }

    .logo-text {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .nav-cta {
        padding: 0.5rem 0.85rem;
        font-size: 0.7rem;
    }

    section {
        padding: 4rem 4%;
    }

    .page-header {
        padding: 7rem 4% 3rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .page-header p {
        font-size: 1rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-label {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-column h4 {
        margin-bottom: 1rem;
    }

    .footer-column li {
        margin-bottom: 0.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .card {
        padding: 1.75rem;
    }

    .card h3 {
        font-size: 1.25rem;
    }

    .card p {
        font-size: 0.9rem;
    }

    .card-number {
        font-size: 3rem;
    }

    .card-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 1.25rem;
    }

    .card-icon svg {
        width: 26px;
        height: 26px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    nav {
        padding: 0.5rem 3%;
    }

    .logo-img {
        height: 32px;
    }

    .logo-text {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .nav-cta {
        padding: 0.45rem 0.7rem;
        font-size: 0.65rem;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%);
    }

    section {
        padding: 3rem 4%;
    }

    .page-header {
        padding: 6rem 4% 2.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 0.85rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card-number {
        font-size: 2.5rem;
        top: 0.75rem;
        right: 1rem;
    }

    footer {
        padding: 3rem 4% 1.5rem;
    }

    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
        font-size: 0.8rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    nav {
        padding: 0.5rem 2%;
    }

    .logo-img {
        height: 28px;
    }

    .logo-text {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .nav-cta {
        padding: 0.4rem 0.6rem;
        font-size: 0.6rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
