:root {
    /* Brand Colors */
    --color-navy-900: #0B1120;
    /* Deepest Navy - Backgrounds */
    --color-navy-800: #1E293B;
    /* Lighter Navy - Cards/Sections */
    --color-slate-500: #64748B;
    /* Subtext Cache - used for reference */
    --color-navy-700: #334155;
    /* Borders/Accents */
    --color-slate-300: #CBD5E1;
    /* Light Text */
    --color-white: #F8FAFC;
    /* Headings */

    --color-primary: #00C853;
    /* Compliance Green - Primary Action */
    --color-primary-hover: #00E676;

    --color-accent: #EAB308;
    /* Safety Yellow - Highlights/Alerts */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: clamp(2rem, 5vh, 4rem);
    /* Fluid spacing */
    --spacing-xl: clamp(4rem, 8vh, 8rem);
    /* Fluid spacing */

    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    font-size: 100%;
    /* Base font size - scales with user preferences */
}

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: #000000;
    /* Set default body text to Black */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 1rem;
    /* 16px base - industry standard */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    line-height: 1.2;
}

/* Base Typography - Mobile First (320px+) */
h1 {
    font-size: 2rem;
    /* 32px on mobile */
    color: var(--color-navy-900);
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.75rem;
    /* 28px on mobile */
    color: var(--color-navy-900);
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.25rem;
    /* 20px on mobile */
    color: var(--color-navy-900);
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Tablet (768px+) - Scale up typography */
@media (min-width: 768px) {
    body {
        font-size: 1.0625rem;
        /* 17px */
    }

    h1 {
        font-size: 3rem;
        /* 48px */
    }

    h2 {
        font-size: 2.25rem;
        /* 36px */
    }

    h3 {
        font-size: 1.5rem;
        /* 24px */
    }
}

/* Desktop (1024px+) - Larger typography */
@media (min-width: 1024px) {
    body {
        font-size: 1.125rem;
        /* 18px */
    }

    h1 {
        font-size: 3.5rem;
        /* 56px */
    }

    h2 {
        font-size: 2.5rem;
        /* 40px */
    }

    h3 {
        font-size: 1.75rem;
        /* 28px */
    }
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    /* Mobile padding */
    width: 100%;
    box-sizing: border-box;
}

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

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Section Utilities */
.bg-white {
    background: #ffffff;
}

.bg-gray-light {
    background: #f8fafc;
}

.bg-navy-gradient {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.section-py-lg {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-py-lg {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-navy {
    color: #1a1a1a;
}

.text-gray {
    color: #000000;
}

.text-white {
    color: white;
}

/* Spacing Utilities */
.mb-sm {
    margin-bottom: 0.75rem;
}

.mb-md {
    margin-bottom: 1.5rem;
}

.mb-lg {
    margin-bottom: 3rem;
}

.mb-xl {
    margin-bottom: 3.75rem;
}

/* Typography Sizes */
.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .text-lg {
        font-size: 1.25rem;
    }

    .text-xl {
        font-size: 1.5rem;
    }

    .text-2xl {
        font-size: 2rem;
    }
}

/* Layout Utilities */
.max-w-2xl {
    max-width: 42rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    border: none;
}

@media (min-width: 768px) {
    .btn {
        font-size: 1rem;
    }
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-navy-900);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
}

.btn-outline-light {
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    font-size: 0.85rem;
    padding: 12px 20px;
}

.btn-outline-light:hover {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline {
    border: 2px solid var(--color-navy-900);
    color: var(--color-navy-900);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-navy-900);
    color: var(--color-white);
}

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

.text-center {
    text-align: center;
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

html {
    scroll-padding-top: 100px;
    /* Fix for sticky header covering anchors */
}

.construction-banner {
    background-color: var(--color-accent);
    color: var(--color-navy-900);
    text-align: center;
    padding: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header */
.site-header {
    background-color: var(--color-navy-900);
    padding: 0;
    position: sticky;
    top: 30px;
    /* Stick below construction banner */
    z-index: 1002;
    /* Above banner */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 80px;
    overflow: visible;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-header .logo {
    display: flex;
    align-items: center;
    height: 100%;
    /* Ensure it doesn't shrink */
    flex-shrink: 0;
    margin-right: 2rem;
}

.site-header .logo img {
    width: auto;
    height: auto;
    max-height: 48px;
    object-fit: contain;
    object-position: left center;
}

/* Mobile Navigation - Default */
.main-nav {
    display: none;
    /* Hidden by default on mobile */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-navy-900);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-navy-800);
}

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

.main-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-slate-300);
}

.main-nav a:hover {
    color: var(--color-white);
}

.mobile-menu-toggle {
    display: block;
    /* Shown on mobile */
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .main-nav {
        display: flex !important;
        position: static;
        width: auto;
        background: transparent;
        padding: 0;
        border-bottom: none;
    }

    .main-nav ul {
        flex-direction: row;
        gap: var(--spacing-md);
        align-items: center;
    }

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

/* Hero Section - Redesigned for Zoom Cohesion */
.hero {
    background-color: var(--color-navy-900);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    /* Align to top */
    min-height: clamp(400px, 60vh, 600px);
    /* Slightly shorter */
}

/* Outer image wrapper to decouple background from centered container logic */
.hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
    z-index: 1;
    pointer-events: none;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    mask-image: linear-gradient(to right, transparent, black 40%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 40%);
}

.hero-content {
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 2;
    padding-top: var(--spacing-md);
    /* Reduced top padding to sit below nav */
    padding-bottom: var(--spacing-xl);
}

.hero h1,
.hero p {
    color: var(--color-white);
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
    }

    .hero-image-wrapper {
        width: 100%;
        opacity: 0.2;
    }

    .hero-bg {
        mask-image: linear-gradient(to bottom, transparent, black);
        -webkit-mask-image: linear-gradient(to bottom, transparent, black);
    }
}

.hero-badge-section {
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
}

.hero-badge-label {
    font-size: 0.8rem;
    color: var(--color-slate-300);
    /* Use light color for badges on dark background */
    margin-bottom: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-badges {
    display: flex;
    gap: 1.875rem;
    font-weight: 600;
    color: var(--color-slate-300);
    opacity: 0.8;
}

/* How It Works Timeline */
.timeline-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e5e5e7;
    z-index: 0;
    display: none;
    /* Hidden on mobile */
}

.timeline-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile: stacked */
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.timeline-step {
    text-align: center;
}

.step-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e5e5e7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.375rem;
    font-weight: 600;
    color: #1a1a1a;
}

.step-badge.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.timeline-step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
}

.timeline-step p {
    font-size: 0.875rem;
    color: #000000;
    line-height: 1.5;
    margin: 0;
}

/* Tablet: 2 columns */
@media (min-width: 640px) {
    .timeline-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Desktop: 5 columns with line */
@media (min-width: 1024px) {
    .timeline-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2.5rem;
    }

    .timeline-line {
        display: block;
        /* Show line on desktop */
    }
}

/* Features Grid */
.features {
    background-color: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    /* Larger section headings */
    color: var(--color-navy-900);
    margin-bottom: clamp(1rem, 3vh, 1.5rem);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile: stacked */
    gap: 1.5rem;
}

.feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: var(--spacing-md);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-navy-900);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-navy-900);
}

.feature-card p {
    color: #000000;
    font-size: 1rem;
    line-height: 1.6;
}

/* Feature Cards: Tablet */
@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Feature Cards: Desktop */
@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .feature-card h3 {
        font-size: 1.5rem;
    }

    .feature-card p {
        font-size: 1.0625rem;
    }
}

/* Weighbridge Section (Dark) */
.weighbridge-section {
    background-color: var(--color-navy-900);
    color: var(--color-white);
    overflow: hidden;
}

.weighbridge-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.weighbridge-content {
    flex: 1;
}

.weighbridge-image {
    flex: 1;
    position: relative;
}

.weighbridge-image img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-navy-700);
}

.weighbridge-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: clamp(1rem, 3vh, 1.5rem);
}

.weighbridge-content p {
    color: var(--color-slate-300);
    margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    /* Larger paragraph text */
    line-height: 1.7;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    /* Aligns checkmark to top for multi-line text */
    margin-bottom: var(--spacing-xs);
    color: #000000;
}

.feature-list li::before {
    content: "✓";
    color: var(--color-primary);
    margin-right: 10px;
    font-weight: bold;
}

/* Simple Timeline - Left to Right */
.timeline-simple {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .timeline-simple {
        grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
        gap: 0;
        align-items: center;
    }
}

.timeline-step {
    text-align: center;
    padding: 1.5rem 1rem;
}

.timeline-arrow {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: bold;
    display: none;
    padding: 0 0.5rem;
}

@media (min-width: 1024px) {
    .timeline-arrow {
        display: block;
    }
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    font-family: var(--font-heading);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.25);
}

.timeline-step h3 {
    font-size: 1.5rem;
    color: var(--color-navy-900);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.timeline-step p {
    font-size: 1rem;
    color: #1a1a1a;
    line-height: 1.6;
    max-width: 200px;
    margin: 0 auto;
}

/* Pricing Page Styles */
.pricing-hero {
    text-align: center;
    padding: var(--spacing-lg) 0;
    background-color: var(--color-navy-900);
    color: var(--color-white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: -40px;
    /* Overlap hero */
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: #fff;
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
    z-index: 11;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid #e2e8f0;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-navy-900);
    font-family: var(--font-heading);
}

.price span {
    font-size: 1rem;
    color: #000000;
    font-weight: 400;
}

.plan-features {
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #000000;
    display: flex;
    align-items: center;
}

.plan-features li::before {
    content: "•";
    color: var(--color-primary);
    font-size: 1.5rem;
    line-height: 0;
    margin-right: 10px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(to right, var(--color-navy-900), var(--color-navy-800));
    color: var(--color-white);
    text-align: center;
}

.cta-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: var(--spacing-md) auto 0;
}

.cta-form input {
    flex: 1;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid var(--color-slate-500);
    background: var(--color-white);
}

/* Footer */
.site-footer {
    background-color: var(--color-navy-900);
    color: var(--color-slate-300);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-navy-800);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
}

.footer-col ul li {
    margin-bottom: 8px;
}

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

/* Responsive */
/* Mobile Specific Overrides */
@media (max-width: 768px) {
    .hero-bg {
        width: 100%;
        opacity: 0.2;
    }

    .weighbridge-container {
        flex-direction: column;
    }

    .pricing-card.featured {
        transform: none;
    }

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

/* Reality Check Flow */
.reality-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.reality-card {
    flex: 1;
    min-width: 220px;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.reality-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.reality-card.faded {
    opacity: 0.3;
    filter: grayscale(100%);
    border-color: #e2e8f0;
}

.reality-card.faded h3 {
    color: #64748b;
}

.reality-card.faded p {
    color: #94a3b8;
    margin: 0;
}

.reality-card.highlight {
    flex: 1.2;
    min-width: 280px;
    border: 4px solid var(--color-primary);
    background: #ffffff;
    box-shadow: 0 0 0 6px rgba(0, 200, 83, 0.1), 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
    position: relative;
    z-index: 10;
}

.reality-card.highlight h3 {
    color: var(--color-primary);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1.2;
}

.reality-arrow {
    font-size: 2rem;
    color: #cbd5e1;
}

.reality-arrow.bold {
    font-size: 3.5rem;
    color: var(--color-navy-900);
    font-weight: 900;
    margin: 0 10px;
    line-height: 1;
}

@media (max-width: 768px) {
    .reality-flow {
        flex-direction: column;
        gap: 10px;
    }

    .reality-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .reality-card {
        width: 100%;
        min-width: auto;
    }

    .reality-card.highlight {
        transform: scale(1);
        width: 100%;
        margin-top: 10px;
    }
}