:root {
    --bg-color: #DCD9D5;
    --text-color: #2B2B2B;
    --font-main: 'Jost', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-y: scroll;
}
html::-webkit-scrollbar {
    display: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    display: flex; /* Added for sticky footer */
    flex-direction: column; /* Added for sticky footer */
    min-height: 100vh; /* Ensures the page is always at least the height of the screen */
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 60px 0 60px;
    width: 100%;
    flex: 1 0 auto; /* Forces the container to grow and push the footer down on short pages */
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 100px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 1px;
}

.logo-icon {
    display: flex;
    gap: 1.5px;
    margin-right: 16px;
}

.logo-square {
    width: 24px;
    height: 24px;
    background-color: var(--text-color);
}

nav {
    display: flex;
    gap: 60px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 16px;
}

/* Hero Section */
.hero {
    display: flex;
    gap: 80px;
    margin-bottom: 140px;
}

.hero-content {
    flex: 1;
    max-width: 480px;
}

.hero-title {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0;
    margin-bottom: 40px;
    line-height: 1.4;
    font-weight: 500;
}

.hero-text {
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.btn {
    width: 100px;
    text-align: center;
    padding: 5px 0px;
    border: 2px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 16px;
    cursor: pointer;
}

.btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.video-playlist .btn:hover {
    background: transparent;
}

.hero-quote {
    font-style: italic;
    font-weight: 500;
    font-size: 18px;
    margin-left: 10px;
}

.hero-image {
    flex: 1.8;
    display: flex;
    align-items: flex-start;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Resources Section */
.resources-section {
    margin-bottom: 30px;
}

.resources-content {
    display: flex;
    gap: 80px;
}

.resources-text-column {
    flex: 1;
    max-width: 480px; /* Added to perfectly match the hero text column */
}

.section-title {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -8px;
    margin-bottom: 30px;
    font-weight: 600;
}

.tabs {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.tab {
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding-bottom: 4px;
}

.tab.active {
    color: #c7560c;
}

/* Dynamic Layout Mode */
.resources-content.manual-mode .resources-text-column {
    flex: 1 1 100%;
}

.resources-content.manual-mode .resources-graphic {
    display: none;
}

/* Manual Styles */
.manual-toc {
    margin-top: 16px;
    margin-bottom: 24px;
}

.manual-toc li {
    margin-bottom: 8px;
}

.manual-toc a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.manual-toc a:hover {
    border-bottom: 2px solid var(--text-color);
}

.manual-content {
    font-size: 16px;
    line-height: 1.6;
}

.manual-content > p,
.manual-content > ul {
    max-width: 700px;
}

.manual-content h3 {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 40px;
    margin-bottom: 16px;
}

.manual-content p {
    margin-bottom: 16px;
}

.manual-row {
    display: flex;
    gap: 40px;
    margin-top: 16px;
    align-items: flex-start;
}

.manual-text-col {
    flex: 0 0 700px;
}

.manual-image-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.manual-image-col img {
    max-width: 100%;
    height: auto;
    align-self: flex-start;
    margin-top: 22px;
}

.manual-image-col img.sub-image {
    align-self: center;
}

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.manual-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.manual-table th, .manual-table td {
    text-align: left;
    padding: 16px 40px 16px 0;
    border-bottom: 1px solid var(--text-color);
    vertical-align: top;
}

.manual-table th {
    font-weight: 600;
    text-transform: uppercase;
}

.manual-content ul {
    padding-left: 20px;
    margin-bottom: 24px;
    list-style-type: square;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
}

.features-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 12px;
    height: 12px;
    background-color: var(--text-color);
}

.resources-graphic {
    flex: 1.8; /* Restored to perfectly match the hero image column */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
}

.resources-graphic img {
    max-width: 100%;
    height: auto;
}

/* About Section */
.about-section {
    margin-bottom: 80px;
}

/* --- Interactive Key Features --- */
.key-features-interactive {
    display: flex;
    gap: 80px;
    align-items: center;
    margin-top: 175px;
margin-bottom: 150px;
}

.key-features-video-col {
    flex: 1.8;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    aspect-ratio: 1073 / 750;
}

.key-features-video-col video,
.key-features-video-col img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 1000px;
    clip-path: inset(2px 0);
}

.key-features-text-col {
    flex: 1;
}

.key-features-heading {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 24px;
}

.key-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-features-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
    cursor: pointer;
    transition: color 0.3s ease;
}

.key-features-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 12px;
    height: 12px;
    background-color: var(--text-color);
    transition: background-color 0.3s ease;
}

/* The active orange highlighting class */
.key-features-list li.active-feature {
    color: #b95d26; /* Update to your preferred hex code */
}

.key-features-list li.active-feature::before {
    background-color: #b95d26; /* Update to your preferred hex code */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 800px) {
    .container {
        padding: 20px 20px 0 20px;
    }
    
    header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 50px;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .hero {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
    }
    
    .resources-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .tabs {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .manual-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .manual-text-col {
        flex: 1 1 100%;
    }
    
    .key-features-interactive {
        flex-direction: column;
        gap: 40px;
        margin-top: 80px;
        margin-bottom: 80px;
    }
}

/* --- Home Page Desktop Layout --- */
.home-hero-container {
    position: relative;
}

.home-description {
    position: absolute;
    top: calc(3.20% - 30px);
    left: 1.95%;
    color: var(--text-color);
    font-size: 22px;
    font-family: var(--font-main);
}

.home-link {
    position: absolute;
    color: var(--text-color);
    font-size: 22px;
    font-family: var(--font-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-link:hover {
    color: #b95d26;
}

.hl-demo { top: calc(2.77% - 30px); left: 88.91%; }
.hl-purchase { top: calc(6.46% - 30px); left: 89.28%; }
.hl-videos { top: calc(10.36% - 30px); left: 89.86%; }
.hl-manual { top: calc(14.32% - 30px); left: 89.93%; }
.hl-support { top: calc(18.32% - 30px); left: 89.65%; }

.home-mobile-video {
    display: none;
}

.home-mobile-header {
    display: none;
}

/* --- Dark Full-Width Footer --- */
.home-dark-footer {
    background-color: var(--text-color);
    color: var(--bg-color);
    width: 100%;
    padding: 30px 0; 
    margin-top: 60px;
    flex-shrink: 0; /* Prevents the footer from squishing when pushed to the bottom */
}

.dark-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
}

.home-dark-footer a, .home-dark-footer span {
    color: var(--bg-color);
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    display: block;
    margin-bottom: 2px; /* Tightly stacks the text */
    line-height: 1.2; /* Forces a single-spaced look */
    -webkit-font-smoothing: antialiased; /* Prevents the text from looking bold/chunky on dark backgrounds */
    -moz-osx-font-smoothing: grayscale;
    transition: opacity 0.2s ease;
}

.home-dark-footer a:hover {
    opacity: 0.6;
}

.home-dark-footer a:last-child, .home-dark-footer span:last-child {
    margin-bottom: 0;
}

.dark-footer-left, .dark-footer-middle, .dark-footer-right {
    display: flex;
    flex-direction: column;
}

.dark-footer-left {
    text-align: center;
    align-items: center;
}

.dark-footer-middle {
    text-align: center;
    align-items: center;
}

.dark-footer-right {
    text-align: center;
    align-items: center;
}

/* --- Home Page Mobile Stack Layout --- */

/* --- Home Page Mobile Stack Layout --- */
@media (max-width: 800px) {
    .home-body {
        /* Removed the strict height and hidden overflow so users can scroll down to the footer */
        margin: 0;
        padding: 0;
    }

    .home-page-wrapper {
        /* Removed the strict 100% height so the page can flex naturally */
        display: flex;
        flex-direction: column;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    .home-mobile-header {
        display: flex;
        width: 100%;
        margin-bottom: 50px;
    }

    .home-hero-img {
        position: static;
        display: block !important;
        order: 2;
        margin-bottom: 40px;
    }
    .home-hero-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-bottom: auto;
    }
    
    .home-description {
        position: static;
        text-align: center;
        display: block;
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 0;
        padding: 0 20px;
        order: 1;
    }
    
    .home-link {
        display: none !important;
    }

    .home-mobile-video {
        display: block;
        order: 3;
        width: 100%;
        padding: 0 20px;
    }

    .home-dark-footer {
        margin-top: 60px; /* Restores the space between the body content and the dark bar */
        padding: 40px 0 30px 0; 
    }

    .dark-footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 20px;
        row-gap: 12px; /* Adds just enough space between Terms and About */
        padding: 0 20px;
    }

    .dark-footer-left {
        grid-column: 1;
        grid-row: 1 / 3; /* Forces the left links to span the full height */
        text-align: left;
        align-items: flex-start;
    }

    .dark-footer-middle {
        grid-column: 2;
        grid-row: 1; /* Locks to the top right */
        text-align: right;
        align-items: flex-end;
        margin-top: 0;
    }

    .dark-footer-right {
        grid-column: 2;
        grid-row: 2; /* Locks to the bottom right, directly under Terms */
        text-align: right;
        align-items: flex-end;
    }
}