:root {
    --bg: #050a12;
    --bg-alt: #0a1220;
    --blue: #0d1f3c;
    --blue-light: #1a3a6a;
    --orange: #ff5c00;
    --orange-glow: #ff7a2e;
    --white: #f0f0f0;
    --gray: #6b7a90;
    --gray-dark: #3a4555;
    --font: 'Inter', -apple-system, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* Grain & Scanlines */
.grain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

.scanlines {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.03) 2px,
        rgba(0,0,0,0.03) 4px
    );
}

/* NAV */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(5, 10, 18, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 92, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--white);
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
}

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

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--orange); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 3rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 92, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 92, 0, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(255, 92, 0, 0.08);
    top: -200px;
    right: -100px;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(13, 31, 60, 0.5);
    bottom: -100px;
    left: -100px;
}

.line-accent {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255, 92, 0, 0.2), transparent);
}

.hero-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding-top: 6rem;
}

.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: 2rem;
}

.hero-title .line {
    display: block;
}

.hero-title .accent {
    color: var(--orange);
    -webkit-text-stroke: 0;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 500px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--orange);
    color: var(--bg);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-primary:hover {
    background: var(--orange-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray-dark);
}

.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-dark);
}

.scroll-line {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scroll-line span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--gray);
}

.scroll-line .line {
    width: 60px;
    height: 1px;
    background: var(--gray-dark);
    position: relative;
    overflow: hidden;
}

.scroll-line .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--orange);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* BRANCHES */
.branches {
    padding: 10rem 0;
    background: var(--bg-alt);
    border-top: 1px solid rgba(255, 92, 0, 0.1);
    border-bottom: 1px solid rgba(255, 92, 0, 0.1);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

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

.eyebrow {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
}

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

.branch-card {
    position: relative;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    text-decoration: none;
    color: var(--white);
    transition: all 0.4s ease;
    overflow: hidden;
}

.branch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.branch-card:hover {
    background: var(--bg-alt);
    border-color: rgba(255, 92, 0, 0.2);
}

.card-number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--gray-dark);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
    transition: transform 0.3s;
}

.branch-card:hover .card-icon {
    transform: scale(1.1);
}

.card-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--bg);
}

.branch-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.branch-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.card-link {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--orange);
    font-weight: 600;
    transition: letter-spacing 0.3s;
}

.branch-card:hover .card-link {
    letter-spacing: 0.25em;
}

.card-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--orange), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.branch-card:hover .card-line {
    opacity: 1;
}

/* ABOUT */
.about {
    padding: 10rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.about-left .section-title {
    margin-top: 1rem;
}

.about-right p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-cta {
    margin-top: 2.5rem;
}

/* CONTACT */
.contact {
    padding: 8rem 0;
    background: var(--bg-alt);
    border-top: 1px solid rgba(255, 92, 0, 0.1);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content .section-title {
    margin: 1rem 0;
}

.contact-content p {
    color: var(--gray);
    margin-bottom: 3rem;
}

.form-row {
    display: flex;
    gap: 0;
}

.form-row input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--gray-dark);
    border-right: none;
    color: var(--white);
    font-family: var(--font);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    outline: none;
    transition: border-color 0.3s;
}

.form-row input:focus {
    border-color: var(--orange);
}

.form-row input::placeholder {
    color: var(--gray-dark);
    letter-spacing: 0.1em;
}

.form-row .btn {
    white-space: nowrap;
}

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

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand .logo-mark {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

.footer-brand .logo-text {
    font-size: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray-dark);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
}

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

.footer-copy {
    font-size: 0.7rem;
    color: var(--gray-dark);
    letter-spacing: 0.1em;
}

/* ANIMATIONS */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade"] {
    transform: translateY(40px);
}

[data-animate="fade"].visible {
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .branches-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-grid {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 10, 18, 0.98);
        flex-direction: column;
        padding: 2rem 3rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255, 92, 0, 0.1);
    }

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

    .hero { padding: 0 1.5rem; }
    .container { padding: 0 1.5rem; }
    .nav-container { padding: 0 1.5rem; }

    .hero-title {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .stat-divider { display: none; }

    .scroll-line { display: none; }

    .form-row {
        flex-direction: column;
    }

    .form-row input {
        border-right: 1px solid var(--gray-dark);
        border-bottom: none;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}