/* FRYT Global Styles & Variables */
:root {
    --primary: #0A0B10;
    --secondary: #16181D;
    --accent: #FFB300; /* Logistics Amber */
    --accent-glow: rgba(255, 179, 0, 0.3);
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --muted: #1E2026;
    --container-width: 1280px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base size */
}

@media (max-width: 768px) {
    html {
        font-size: 14px; /* Scale everything down slightly on small screens */
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .hero-title, .section-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-accent {
    color: var(--accent);
}

/* UI Elements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 10px;
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background-color: #ffc400;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px var(--accent-glow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    opacity: 0.8;
}

.btn-ghost:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.btn-secondary {
    background: var(--muted);
    color: #fff;
    border: 1px solid var(--glass-border);
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Production-Grade Header */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
}

#site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    backdrop-filter: none;
    z-index: -1;
    transition: var(--transition);
}

#site-header.scrolled {
    padding: 12px 0;
}

#site-header.scrolled::before {
    background: rgba(10, 11, 16, 0.85);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Perfect vertical centering for nav */
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    z-index: 100;
}

.logo-img {
    height: 100px !important;
    width: auto !important;
    filter: invert(1);
    transition: var(--transition);
    transform: scale(1.6);
    transform-origin: left center;
}

#site-header.scrolled .logo-img {
    height: 70px !important;
}

.nav-menu {
    display: flex;
    align-items: center; /* Ensures links and button are on the same line */
    gap: 40px;
}

.mobile-menu-brand {
    display: none;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    position: relative;
    padding: 8px 0;
    line-height: 1; /* Fix height mismatch */
}

/* Header CTA Button Alignment */
.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.9rem;
    background: var(--accent);
    color: #000;
    border-radius: 8px;
    font-weight: 700;
    margin-left: 10px;
    box-shadow: 0 4px 12px var(--accent-glow);
    height: 44px; /* Explicit height to match line height */
    line-height: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

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

.nav-link:hover, .nav-link.active {
    color: #fff;
}

/* Header CTA Button */
.btn-nav {
    padding: 10px 24px;
    font-size: 0.9rem;
    background: var(--accent);
    color: #000;
    border-radius: 8px;
    font-weight: 700;
    margin-left: 10px;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-nav:hover {
    background: #ffc400;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px var(--accent-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

/* Hamburger "X" Animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Active State Fixes */
body.menu-open .nav-logo {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Mobile Header & Menu Optimizations */
@media (max-width: 1024px) {
    .nav-container {
        justify-content: center;
        position: relative;
        min-height: 100px;
    }

    .nav-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
    }

    .logo-img {
        height: 80px !important;
        transform: scale(2.0);
        transform-origin: center center;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 40px;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-menu-brand {
        display: block;
        margin-bottom: 60px;
        text-align: center;
    }

    .menu-logo-inner {
        height: 80px;
        filter: invert(1);
    }

    .nav-link {
        font-size: 2.25rem;
        font-weight: 800;
        margin-bottom: 32px;
        color: var(--text-secondary);
        text-align: center;
    }

    .nav-link:hover, .nav-link.active {
        color: #fff;
        transform: translateX(10px);
    }

    .btn-nav {
        margin-left: 0;
        margin-top: 48px;
        width: 100%;
        max-width: 320px;
        font-size: 1.1rem;
        padding: 20px;
        height: auto;
    }
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--primary) 100%),
                linear-gradient(to right, var(--primary) 20%, transparent 80%);
}

.hero-body {
    max-width: 850px;
    position: relative;
    z-index: 10;
}

.hero-eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 5.5rem); /* Slightly more controlled size */
    line-height: 1.05;
    margin-bottom: 32px;
    letter-spacing: -3px;
}

.hero-sub {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--accent); /* Subheadline in accent color for impact */
    max-width: 800px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 56px;
    max-width: 720px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

/* Sections */
.section {
    padding: 120px 0;
}

.section-dark {
    background-color: var(--secondary);
}

.section-muted {
    background-color: var(--muted);
}

.section-label {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.section-header {
    margin-bottom: 64px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.section-title.centered {
    text-align: center;
}

.section-sub {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
}

/* Symmetrical Trust Bar */
.trust-bar {
    padding: 80px 0;
    background: var(--secondary);
    border-bottom: 1px solid var(--glass-border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

.trust-item {
    text-align: center;
    padding: 40px 20px;
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.trust-item:last-child {
    border-right: none;
}

.trust-num {
    display: block;
    font-size: clamp(2.2rem, 3.5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    line-height: 1;
    margin-bottom: 12px;
}

.trust-sup {
    font-size: 1.4rem;
    color: var(--accent);
    vertical-align: super;
    margin-left: 2px;
}

.trust-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-weight: 700;
}

/* Tablet Fix: Explicit 2-Column Grid */
@media (max-width: 1024px) {
    .trust-grid {
        grid-template-columns: 1fr 1fr; /* Force two equal columns */
    }
    
    .trust-item:nth-child(2n) {
        border-right: none; /* Remove border from every 2nd item */
    }
    
    .trust-item:nth-child(1), .trust-item:nth-child(2) {
        border-bottom: 1px solid var(--glass-border); /* Add row divider */
    }
}

@media (max-width: 640px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-item {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 40px 20px;
    }
    
    .trust-item:last-child {
        border-bottom: none;
    }
}

/* Services Alignment Fixes */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--secondary);
    padding: 48px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 32px 64px rgba(0,0,0,0.4);
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    background: rgba(255, 179, 0, 0.1);
    color: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    flex-grow: 1; /* Pushes links to bottom */
}

.card-link {
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.section-cta {
    margin-top: 64px;
    display: flex;
    justify-content: center; /* Centers "View All Services" */
}

/* Two-Col Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.two-col.reverse {
    direction: ltr;
}

.feature-list {
    margin: 40px 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-weight: 600;
}

.feature-check {
    color: var(--accent);
}

/* Mockups & Visuals */
.tracking-mockup, .support-mockup {
    background: var(--muted);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.mockup-header {
    background: rgba(255,255,255,0.03);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.live-badge {
    background: rgba(255, 69, 58, 0.2);
    color: #ff453a;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
}

.tracking-steps {
    padding: 32px;
}

.track-step {
    display: flex;
    gap: 20px;
    align-items: center;
}

.track-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 1px solid var(--glass-border);
}

.track-step.completed .track-icon {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.pulse-dot {
    background: var(--accent);
    box-shadow: 0 0 0 rgba(255, 179, 0, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 179, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 179, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 179, 0, 0); }
}

.track-line {
    width: 2px;
    height: 30px;
    background: var(--glass-border);
    margin-left: 15px;
}

.track-line.completed {
    background: var(--accent);
}

.track-detail .track-name {
    display: block;
    font-weight: 700;
}

.track-detail .track-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.mockup-eta-bar {
    background: var(--accent);
    color: #000;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
}

.ai-card-stack {
    position: relative;
    padding: 40px;
}

.ai-card {
    background: var(--secondary);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.support-mockup {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-bubble {
    max-width: 80%;
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 0.95rem;
}

.chat-bubble.incoming {
    align-self: flex-start;
    background: var(--primary);
    border: 1px solid var(--glass-border);
}

.chat-bubble.outgoing {
    align-self: flex-end;
    background: var(--accent);
    color: #000;
}

.chat-bubble time {
    display: block;
    font-size: 0.75rem;
    margin-top: 8px;
    opacity: 0.7;
}

/* Why Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 64px;
}

.why-card {
    background: var(--secondary);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.why-icon {
    margin-bottom: 24px;
    color: var(--accent);
}

.why-card h4 {
    margin-bottom: 12px;
}

.why-card p {
    color: var(--text-secondary);
    flex-grow: 1;
}

/* Industries & Coverage Alignment */
.industry-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 48px 0;
}

.industry-pill {
    background: var(--primary);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
}

.coverage-block {
    background: var(--accent);
    color: #000;
    max-width: 700px;
    margin: 64px auto 0;
    padding: 32px 40px;
    border-radius: 24px;
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.coverage-icon {
    font-size: 2.5rem;
}

/* CTA Band Alignment Fixes */
.cta-band {
    padding-bottom: 120px;
}

/* High-End CTA Band Improvisation */
.cta-band {
    padding: 100px 0;
}

.cta-band-inner {
    background: var(--accent);
    color: #000;
    padding: 80px;
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    box-shadow: 0 40px 100px rgba(255, 183, 0, 0.15);
}

.cta-band-text {
    flex: 1;
}

.cta-band-text h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.cta-band-text p {
    font-size: 1.25rem;
    font-weight: 500;
    opacity: 0.9;
    max-width: 500px;
}

.cta-band-actions {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-shrink: 0;
}

.cta-band .btn {
    min-width: 220px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
}

.cta-band .btn-primary {
    background: var(--primary);
    color: #fff;
}

.cta-band .btn-outline-light {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.cta-band .btn-primary:hover {
    background: #000;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.cta-band .btn-outline-light:hover {
    background: rgba(0,0,0,0.05);
    transform: translateY(-4px);
}

@media (max-width: 1024px) {
    .cta-band-inner {
        flex-direction: column;
        text-align: center;
        padding: 60px 40px;
        gap: 40px;
    }

    .cta-band-text p {
        max-width: 100%;
    }

    .cta-band-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .cta-band-actions {
        flex-direction: column;
    }
    
    .cta-band .btn {
        width: 100%;
    }
}

/* Force Massive Logo */
.logo-img {
    height: 180px !important;
    width: auto !important;
    filter: invert(1);
    display: block;
    margin: 0;
}

#site-header.scrolled .logo-img {
    height: 80px !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 120px; /* Ensure header has enough height for big logo */
}

/* Footer */
.site-footer {
    padding: 100px 0 40px;
    background: var(--secondary);
    border-top: 1px solid var(--glass-border);
}

/* Symmetrical Footer Fix */
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 80px;
    align-items: start; /* Locks all columns to the top baseline */
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 120px !important;
    width: auto !important;
    margin-bottom: 24px;
    filter: invert(1);
    transform: scale(1.6);
    transform-origin: left center;
}

.footer-nav-col h5 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

.footer-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 300px;
}

.footer-contact-inline a {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-nav-col h5 {
    font-size: 1.1rem;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav-col a, .footer-nav-col p {
    display: block;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-legal a {
    margin-left: 24px;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Final Global Responsiveness & Scaling */
@media (max-width: 1200px) {
    :root {
        --container-width: 1000px;
    }
}

@media (max-width: 1024px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .two-col.reverse {
        display: flex;
        flex-direction: column-reverse;
    }

    .feature-list {
        display: inline-block;
        text-align: left;
    }

    .cta-band-inner {
        flex-direction: column;
        text-align: center;
        padding: 60px 40px;
    }

    .cta-band-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .hero {
        text-align: center;
        padding-top: 140px;
    }

    .hero-actions {
        justify-content: center;
    }

    /* Fixed Footer Stacking for Alignment */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-desc {
        max-width: 100%;
    }

    .footer-nav-col {
        border-top: 1px solid var(--glass-border);
        padding-top: 32px;
    }

    .footer-nav-col h5 {
        margin-bottom: 16px;
    }

    .coverage-block {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Header Vertical Alignment Fix */
    .nav-container {
        padding: 0 20px;
        min-height: 80px;
    }

    .logo-img {
        height: 80px !important;
        transform: scale(1.2);
    }

    .cta-band-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-band-actions .btn {
        width: 100%;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    /* Footer Bottom Alignment Fix */
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-legal a {
        margin: 0 10px;
    }
}
