/*
==================================================
AgroLogistics Global Stylesheet (Master Version)
==================================================
*/

/* 1. ROOT VARIABLES
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Primary Color Palette */
    --brand-green: #1B8A5A;
    --deep-green: #146947;
    --soft-green: #E6F4EE;
    --accent-green: #27AE60;

    --brand-orange: #F58A07;
    --deep-orange: #D97604;
    --soft-orange: #FFE8D3;
    --accent-orange: #FF9B40;

    /* Secondary & Neutral Colors */
    --dark-gray: #2E2E2E;
    --light-gray: #F5F5F7;
    --medium-gray: #D1D5DB;
    --white: #FFFFFF;
    --black: #000000;
    --header-bg: rgba(18, 18, 18, 0.95); /* Slightly increased opacity for readability */

    /* System Colors */
    --success: #27AE60;
    --warning: #F58A07;
    --error: #E94545;
    --info: #2D9CDB;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'DM Sans', sans-serif;
}

/* 2. GLOBAL & BODY STYLES
-------------------------------------------------- */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    font-family: var(--font-secondary);
    background-color: var(--black);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Critical for mobile to prevent side-scrolling */
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }


/* 3. HEADER & NAVIGATION STYLES
-------------------------------------------------- */
.superpower-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Changed from calc to 100% for better mobile handling */
    box-sizing: border-box;
    z-index: 1000;
}

.logo {
    z-index: 1002; /* Ensure logo is always clickable */
}

.logo a {
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 24px;
    color: var(--white);
}

/* New Wrapper for Mobile Handling */
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    margin-left: 40px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin: 0 20px;
    position: relative; /* For dropdown positioning */
}

nav ul li a {
    text-decoration: none;
    color: var(--medium-gray);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    transition: color 0.3s;
    display: block;
}

nav ul li a:hover {
    color: var(--white);
}

/* Mobile Menu Toggle (Hamburger) - Default Hidden */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1002;
    padding: 10px;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* 4. DROPDOWN MENU STYLES
-------------------------------------------------- */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px); /* Centered and offset */
    background-color: var(--white);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    padding: 30px;
    z-index: 1001;
    display: flex;
    gap: 50px;
    min-width: 850px;
    border-radius: 12px;
    color: var(--dark-gray);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-section {
    flex: 1;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.dropdown:hover .dropdown-section {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-section h3 {
    font-family: var(--font-primary);
    font-size: 12px;
    color: #888;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-section ul {
    display: block;
}

.dropdown-section ul li {
    margin-bottom: 12px;
}

.dropdown-section ul li a {
    color: var(--dark-gray);
}

.dropdown-section ul li a:hover {
    color: var(--brand-orange);
}

.dropdown-section.featured {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    flex-basis: 250px;
    flex-grow: 0;
}

.dropdown-section.featured h3 {
    color: var(--dark-gray);
    font-size: 14px;
    margin-bottom: 8px;
}

.dropdown-section.featured p {
    font-size: 18px;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--black);
    margin: 0;
    line-height: 1.4;
}

.dropdown-section.image-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align text to bottom */
}

.dropdown-section.image-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

.dropdown-section.image-bg h3,
.dropdown-section.image-bg p {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.dropdown-section.image-bg h3 {
   color: var(--medium-gray);
}

/* 5. UTILITY & COMPONENT STYLES
-------------------------------------------------- */
.actions {
    display: flex;
    align-items: center;
}

.actions a {
    text-decoration: none;
    margin-left: 15px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    padding: 10px 22px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.actions .login {
    color: var(--medium-gray);
    background-color: transparent;
}

.actions .login:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

.actions .try-superpower {
    background-color: var(--brand-orange);
    color: var(--white);
    box-shadow: 0 0 15px 0px rgba(245, 138, 7, 0.5);
}

.actions .try-superpower:hover {
    background-color: var(--deep-orange);
    transform: translateY(-2px);
    box-shadow: 0 0 25px 0px rgba(245, 138, 7, 0.7);
}

/* 6. HERO SECTION STYLES
-------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-image: url('https://i.pinimg.com/1200x/92/62/e5/9262e513866adadf571ab2372b425126.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 5% 120px 5%;
    box-sizing: border-box;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-text {
    color: var(--white);
    max-width: 550px;
}

.hero-text h1 {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-text p {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 30px 0;
    max-width: 480px;
    color: var(--medium-gray);
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--brand-orange);
    color: var(--white);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px 0px rgba(245, 138, 7, 0.5);
}

.hero-button:hover {
    background-color: var(--deep-orange);
    transform: translateY(-3px);
    box-shadow: 0 0 25px 0px rgba(245, 138, 7, 0.7);
}

.hero-button .icon {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Tracking Widget */
.tracking-widget {
    background-color: var(--white);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    color: var(--dark-gray);
}

.widget-tabs {
    display: flex;
    margin-bottom: 20px;
}

.widget-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    color: #888;
    position: relative;
    transition: color 0.3s;
}

.widget-tab.active {
    color: var(--dark-gray);
    font-weight: 600;
}

.widget-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    right: 10%;
    height: 3px;
    background-color: var(--brand-orange);
    border-radius: 2px;
}

.widget-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.widget-input::placeholder {
    color: #aaa;
}

.track-now-btn {
    width: 100%;
    padding: 14px;
    border: none;
    background-color: var(--brand-orange);
    color: var(--white);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px 0px rgba(245, 138, 7, 0.5);
}

.track-now-btn:hover {
    background-color: var(--deep-orange);
    transform: translateY(-2px);
    box-shadow: 0 0 25px 0px rgba(245, 138, 7, 0.7);
}

.widget-links {
    display: flex;
    justify-content: space-between;
    margin: 16px 0 20px 0;
    font-size: 0.8rem;
}

.widget-links a {
    color: #555;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-secondary);
}

.widget-links a:hover {
    text-decoration: underline;
}

.app-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.app-buttons img {
    height: 40px;
    cursor: pointer;
}

/* Stats Bar */
.stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(5px);
    z-index: 5;
    padding: 20px 5%;
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    color: var(--white);
}

.stat-item {
    text-align: center;
    flex-basis: 25%;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.stat-item .number {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.stat-item .label {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin: 0;
}

/* 7. FEATURES SECTION STYLES
-------------------------------------------------- */
.features-section {
    background-color: var(--light-gray);
    color: var(--deep-green);
    padding: 100px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.features-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    align-items: center;
    gap: 50px;
}

.features-text {
    flex: 1;
    padding-right: 40px;
}

.features-text .pre-header {
    font-family: var(--font-primary);
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--deep-green);
    text-transform: uppercase;
}

.features-text h2 {
    font-family: var(--font-primary);
    font-size: 3em;
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
    color: var(--deep-green);
}

.features-text h2 .highlight {
    background-color: #d8ff68;
    border-radius: 8px;
    padding: 0 10px;
    color: var(--black);
}

.features-text .description {
    font-family: var(--font-secondary);
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--dark-gray);
    margin-top: 25px;
    max-width: 500px;
}

.buttons-container {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.category-btn {
    background-color: transparent;
    border: 1.5px solid var(--deep-green);
    color: var(--deep-green);
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.category-btn:hover {
    background-color: var(--deep-green);
    color: var(--white);
    transform: translateY(-2px);
}

.features-gallery {
    display: flex;
    flex: 1.5;
    height: 500px;
}

.panel {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50px;
    color: var(--white);
    cursor: pointer;
    flex: 0.5;
    margin: 0 10px;
    position: relative;
    transition: flex 0.7s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}

.panel h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 24px;
    position: absolute;
    bottom: 20px;
    left: 20px;
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.panel.active {
    flex: 5;
}

.panel.active h3 {
    opacity: 1;
    transition: opacity 0.3s ease-in 0.4s;
}

/* 8. HOW IT WORKS SECTION STYLES
-------------------------------------------------- */
.how-it-works-section {
    background-color: var(--black);
    color: var(--white);
    padding: 100px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.how-it-works-container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    position: relative;
}

.how-it-works-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 28%;
    width: 30%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg width='352' height='100' viewBox='0 0 352 100' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M351.5 1C300.935 16.2743 241.226 51.2945 192.5 62C130.5 75.5 39.5 80 1 99' stroke='%23333333' stroke-width='1.5'/%3E%3C/svg%3E%0A") no-repeat;
    background-size: contain;
    opacity: 0.8;
}

.header-content {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    padding-top: 10px;
}

.header-content .tag {
    background-color: var(--brand-orange);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
}

.header-content h2 {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 20px;
}

.step-card {
    background-color: #1C1C1C;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.step-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 25px;
}

.step-tag {
    background-color: #D6C357;
    color: var(--black);
    padding: 6px 14px;
    border-radius: 16px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 15px;
}

.card-content h3 {
    font-family: var(--font-primary);
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--white);
}

.card-content p {
    font-family: var(--font-secondary);
    color: var(--medium-gray);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

#step1 { grid-column: 2 / 3; grid-row: 1 / 2; }
#step2 { grid-column: 3 / 4; grid-row: 1 / 2; }
#step3 { grid-column: 1 / 2; grid-row: 2 / 3; }
#step4 { grid-column: 2 / 3; grid-row: 2 / 3; }

/* 9. TESTIMONIALS SECTION STYLES
-------------------------------------------------- */
.testimonials-section {
    background-color: var(--black);
    color: var(--white);
    padding: 100px 5%;
    width: 100%;
    max-width: 1400px;
    margin: auto;
    box-sizing: border-box;
}

.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.testimonials-header-content {
    flex-grow: 1;
}

.testimonials-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #262626;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid #333;
    text-transform: uppercase;
}

.testimonials-badge svg {
    width: 20px;
    height: 20px;
}

.testimonials-header-content h2 {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    max-width: 600px;
    line-height: 1.2;
}

.navigation-arrows {
    display: flex;
    gap: 16px;
}

.arrow {
    background-color: #2a2a2a;
    border: 1px solid #333;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.arrow:hover:not(:disabled) {
    background-color: #3a3a3a;
}

.arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.arrow svg {
    width: 24px;
    height: 24px;
}

.testimonials-container {
    display: flex;
    gap: 30px;
    overflow: hidden;
    width: 100%;
}

.testimonial-card {
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 12px;
    min-width: 320px;
    flex: 1;
    transition: transform 0.5s ease, opacity 0.5s ease, background-color 0.5s ease, box-shadow 0.5s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
}

.testimonial-card.active {
    background-color: var(--brand-orange);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 0 30px 0px rgba(245, 138, 7, 0.6);
}

.profile-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 2px solid var(--medium-gray);
}

.testimonial-card p {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.author-info {
    margin-top: 25px;
}

.author-name {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.author-title {
    font-family: var(--font-secondary);
    font-size: 14px;
    color: var(--medium-gray);
    margin: 5px 0 0;
}

.testimonial-card.active .author-title {
    color: var(--soft-orange);
}

/* 10. CALL TO ACTION (CTA) SECTION STYLES
-------------------------------------------------- */
.cta-section {
    position: relative;
    padding: 80px 5%;
    background-image: url('https://i.pinimg.com/1200x/92/62/e5/9262e513866adadf571ab2372b425126.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.cta-content h2 {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 25px 0;
}

.cta-button {
    background-color: var(--brand-orange);
    color: var(--white);
    border: none;
    padding: 16px 40px;
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px 5px rgba(245, 138, 7, 0.6);
}

.cta-button:hover {
    background-color: var(--deep-orange);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 35px 8px rgba(245, 138, 7, 0.7);
}

/* 11. FOOTER STYLES
-------------------------------------------------- */
.site-footer {
    color: var(--white);
}

.footer-top {
    background-color: #1C1C1C;
    padding: 60px 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-about {
    flex: 2;
    min-width: 250px;
}

.footer-links-container {
    flex: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 150px;
}

.footer-about h3 {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-about p {
    font-family: var(--font-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    max-width: 300px;
    color: var(--medium-gray);
}

.footer-column h4 {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a, .footer-contact-link {
    color: var(--medium-gray);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover, .footer-contact-link:hover {
    color: var(--white);
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
}

.social-icons svg {
    width: 20px;
    height: 20px;
    fill: var(--medium-gray);
    transition: fill 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover svg {
    fill: var(--white);
    transform: scale(1.1);
}

.newsletter-section {
    margin-top: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 350px;
}

.newsletter-input {
    flex-grow: 1;
    border: 1px solid #333;
    background-color: transparent;
    color: var(--white);
    padding: 12px 15px;
    border-radius: 5px 0 0 5px;
    outline: none;
    font-family: var(--font-secondary);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    border-color: var(--brand-orange);
}

.newsletter-button {
    border: none;
    background-color: var(--brand-orange);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.newsletter-button:hover {
    background-color: var(--deep-orange);
}

.footer-bottom {
    background-color: var(--black);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    border-top: 1px solid #333;
}

.legal-links a {
    color: var(--medium-gray);
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--white);
}

/* =========================================
   MEDIA QUERIES (MOBILE RESPONSIVENESS)
   ========================================= */

@media (max-width: 1024px) {
    /* Tablet Adjustments */
    .hero-text h1 { font-size: 2.8rem; }
    .features-container { flex-direction: column; }
    .features-text { margin-bottom: 40px; padding-right: 0; }
    .features-gallery { width: 100%; height: 400px; }
    
    .how-it-works-container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .header-content {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
        margin-bottom: 0;
        text-align: center;
    }
    #step1 { grid-column: 1 / 2; grid-row: 2 / 3; }
    #step2 { grid-column: 2 / 3; grid-row: 2 / 3; }
    #step3 { grid-column: 1 / 2; grid-row: 3 / 4; }
    #step4 { grid-column: 2 / 3; grid-row: 3 / 4; }

    .how-it-works-container::before {
        left: 50%;
        transform: translateX(-50%);
        top: 100px;
    }
    
    .testimonials-header-content h2 {
        font-size: 40px;
    }
    .testimonials-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px;
    }
    .testimonials-container::-webkit-scrollbar {
        display: none;
    }
    .testimonial-card {
        min-width: 80%;
        scroll-snap-align: center;
    }
}

@media (max-width: 992px) {
    /* Mobile Header & Navigation */
    .superpower-header {
        padding: 15px 20px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile Menu Drawer */
    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #121212;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px;
        margin: 0;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
        z-index: 1001;
    }

    .nav-wrapper.active {
        right: 0; /* Slide in */
    }

    /* Mobile Nav Links */
    .superpower-header nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-bottom: 30px;
    }

    .superpower-header nav ul li {
        margin: 15px 0;
        width: 100%;
    }

    .superpower-header nav ul li a {
        font-size: 1.2rem;
        padding: 5px 0;
    }

    /* Mobile Actions (Login/Get Started) */
    .actions {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .actions a {
        margin: 0;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /* Disable hover interactions on mobile, just use click or simplified view */
    .dropdown:hover .dropdown-content {
        display: none; /* Hide mega menu for V1 mobile simplicity */
    }

    /* Hero Section Mobile */
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 100px 5% 60px 5%;
        background-attachment: scroll; /* Fix for iOS parallax jitter */
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-button {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .tracking-widget {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Stats Bar Mobile */
    .stats-bar {
        position: relative;
        background-color: #111;
        margin-top: -1px;
    }

    .stats-container {
        flex-wrap: wrap;
        gap: 30px;
    }

    .stat-item {
        flex-basis: 40%;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    /* Features Gallery Horizontal Scroll */
    .features-gallery {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
    }
    
    .panel {
        min-width: 260px;
        flex: 0 0 auto;
        scroll-snap-align: center;
        margin: 0 10px;
    }

    /* How It Works Stacked */
    .how-it-works-container {
        grid-template-columns: 1fr;
    }
    .header-content { grid-column: 1 / 2; grid-row: 1 / 2; }
    #step1 { grid-column: 1 / 2; grid-row: 2 / 3; }
    #step2 { grid-column: 1 / 2; grid-row: 3 / 4; }
    #step3 { grid-column: 1 / 2; grid-row: 4 / 5; }
    #step4 { grid-column: 1 / 2; grid-row: 5 / 6; }
    
    .header-content h2 { font-size: 32px; }
    .how-it-works-container::before { display: none; }

    /* Testimonials Mobile */
    .testimonials-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .testimonials-header-content h2 {
        font-size: 28px;
    }
    .navigation-arrows {
        align-self: flex-end;
    }

    /* CTA Mobile */
    .cta-content h2 {
        font-size: 2.5rem;
    }
    .cta-button {
        width: 100%;
        box-sizing: border-box;
    }

    /* Footer Mobile */
    .footer-top {
        flex-direction: column;
        gap: 40px;
        padding: 40px 5%;
    }
    
    .footer-links-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .newsletter-form {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .legal-links a {
        margin: 0 10px;
        display: inline-block;
    }
}