/* 
   Epoch Carbon - Corporate Industrial Design System 
   "Trusted, Proven, Scalable"
*/

:root {
    /* Color Palette - Corporate & Industrial */
    --color-bg-body: #ffffff;
    --color-bg-section: #f4f4f4;
    /* Light gray for contrast sections */
    --color-bg-dark: #111111;
    /* Deep black/gray for footer/hero */

    /* Typography Colors */
    --color-text-main: #1a1a1a;
    --color-text-light: #555555;
    --color-text-inverse: #ffffff;

    /* Accents - Safety & Energy */
    --color-primary: #C4F04D;
    /* Safety Lime - High visibility, industrial, lighter than original */
    --color-secondary: #005580;
    /* Corporate Blue - adds trust */
    --color-border: #e0e0e0;

    /* Spacing & Layout */
    --container-width: 1280px;
    /* Standard corporate width */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    --border-radius: 0px;
    /* Sharp, precise, engineered */

    /* Typography - Standard, Clean, Professional */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Simplified Mode */
body.simplified .full-only {
    display: none !important;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    /* Semi-bold, not heavy */
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-text-main);
}

p {
    color: var(--color-text-light);
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

/* Buttons - Corporate Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: none;
    /* Normal case is more approachable/corporate than uppercase */
    letter-spacing: normal;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-bg-dark);
    font-weight: 600;
}

.btn-primary:hover {
    background: #b3db3d;
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--color-text-main);
}

.btn-text {
    padding: 0;
    background: none;
    color: var(--color-secondary);
    font-weight: 600;
    border: none;
}

.btn-text:hover {
    text-decoration: underline;
}

/* Header - Solid, Trustworthy */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Pre-center for smooth transition */
    left: 50%;
    transform: translateX(-50%);
    max-width: 100%;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.85);
    padding: 0.75rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);

    /* Floating Effect */
    width: 90%;
    max-width: 1200px;
    top: 1rem;
    border-radius: 0px;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item.has-dropdown>.nav-link::after {
    content: '';
    width: 0.4em;
    height: 0.4em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -0.2em;
}

.nav-item.has-dropdown:hover>.nav-link::after {
    transform: rotate(-135deg);
    margin-top: 0.2em;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Desktop Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.solutions-dropdown {
    min-width: 260px;
}

.dropdown-label {
    padding: 0.55rem 1.25rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-primary);
}

.dropdown-icon {
    width: 20px;
    height: 20px;
    filter: invert(1) brightness(0.8);
    transition: filter 0.15s ease;
}

.dropdown a:hover .dropdown-icon {
    filter: invert(75%) sepia(60%) saturate(500%) hue-rotate(25deg) brightness(105%);
}

/* Hamburger Button */
.hamburger-wrapper {
    position: relative;
    display: none;
}

.hamburger-dropdown {
    right: 0;
    left: auto;
    transform: none;
    min-width: 150px;
    display: none;
    /* Hidden by default, toggled by JS */
}

.hamburger-dropdown.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(16px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
}

.mobile-nav-toggle::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.mobile-nav-item.active .mobile-nav-toggle::after {
    content: '-';
}

.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav-item.active .mobile-dropdown {
    max-height: 300px;
}

.mobile-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.mobile-dropdown a:hover {
    color: var(--color-primary);
}

.mobile-dropdown .dropdown-icon {
    width: 18px;
    height: 18px;
    filter: invert(1) brightness(0.7);
}

.mobile-dropdown a:hover .dropdown-icon {
    filter: invert(75%) sepia(60%) saturate(500%) hue-rotate(25deg) brightness(105%);
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-cta {
    margin-top: 1.5rem;
    width: 100%;
    text-align: center;
}

/* Hero Section - Impactful, Clear */
.hero {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    background-color: var(--color-bg-dark);
    color: #ffffff;
    padding: 10rem 0 5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('assets/Chartainer-6.jpeg');
    /* Industrial/Dark background */
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: left;
}

.hero-eyebrow {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #ffffff;
    max-width: 800px;
}

.hero-title-indent {
    display: inline-block;
    margin-left: 0.2em;
    /* Align 'i' stem with 'T' stem */
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 520px;
    font-weight: 400;
}

.hero-actions {
    /* Removed margin-left */
}

.hero-stats {
    display: flex;
    gap: 4rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Section Common */
.section-header {
    margin-bottom: var(--spacing-md);
    max-width: 700px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    background-color: var(--color-bg-dark);
    padding: 0.3em 0.75em;
    border-radius: 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    max-width: 800px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 700px;
    line-height: 1.6;
}

/* Delivery Section */
.section-delivery {
    padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
    background-color: #ffffff;
}

/* Social Proof Section */
.social-proof {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-section);
}

.stats-grid {
    display: flex;
    gap: 5rem;
    margin-top: 4rem;
    border-top: 1px solid #ddd;
    padding-top: 3rem;
}

.stat-item-dark h3 {
    font-size: 3rem;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

.stat-item-dark p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Platform Section - Clean Grid */
.platform {
    padding: var(--spacing-xl) 0;
    background-color: #ffffff;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    padding: 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--color-primary);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.horizontal-blocks {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-section);
}

.blocks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.block-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.block-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--color-primary);
}

.block-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.block-logo {
    width: 60%;
    height: auto;
    margin-bottom: 1rem;
}

.block-description {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-grow: 1;
}

.block-link {
    font-weight: 600;
    color: var(--color-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.block-card:hover .block-link {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Vertical Steps */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 640px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-border);
}

.step-item:last-child {
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-dark);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.step-title {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.step-description {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* Features Section - Split Layout */
.features {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-section);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse .feature-content {
    direction: ltr;
}

.feature-image {
    height: 360px;
    background-color: #ddd;
    position: relative;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Feature Bullet Points */
.feature-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-bullets li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.6rem;
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.5;
}

.feature-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
}

.feature-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.feature-content p {
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--color-text-main);
}

.feature-list li svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1a2a33 100%);
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

/* Subtle background pattern */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(196, 240, 77, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 85, 128, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.cta-text {
    max-width: 600px;
}

.cta-content h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .cta-text {
        margin: 0 auto;
    }
}

/* Footer */
.footer {
    background-color: #000000;
    color: #ffffff;
    padding: 3.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
    max-width: 300px;
    font-size: 0.9rem;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    padding-left: 0;
}

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    margin-left: 1.5rem;
}

.footer-legal a:hover {
    color: #ffffff;
}

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

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

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

    .feature-row.reverse {
        direction: ltr;
    }

    .feature-image {
        height: 400px;
    }

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

    .footer-brand {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 7rem 0 3rem;
    }

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

    .platform-grid {
        grid-template-columns: 1fr;
    }

    .blocks-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-brand {
        grid-column: span 2;
    }

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

    .footer-legal a:first-child {
        margin-left: 0;
    }

    .nav-links,
    .header-cta {
        display: none;
    }

    .hamburger-wrapper {
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .stats-grid {
        flex-direction: column;
        gap: 2rem;
    }
}