:root {
    /* Light mode colors */
    --color-primary: #825415;
    --color-primary-hover: #A0561A;
    --color-background: #F2F2F2;
    --color-light: #FFFFFF;
    --color-text: #1A1A1A;
    --color-muted: #000000;
    --color-heading: #111111;
    --color-accent: #FFD580;
    /* for unique highlights */

    /* Dark mode colors */
    --dark-background: #1E1E1E;
    --dark-light: #2A2A2A;
    --dark-text: #E0E0E0;
    --dark-muted: #AAAAAA;

    --max-width: 1200px;
    --transition-speed: 0.3s;
}

/* Base reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color var(--transition-speed),
        color var(--transition-speed),
        transform var(--transition-speed),
        box-shadow var(--transition-speed);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--color-background);
    color: var(--color-text);
    overflow-x: hidden;
}

/* Dark mode toggle */
body.dark {
    background-color: var(--dark-background);
    color: var(--dark-text);
}

/* --------------------------------------
       2) Utility Classes
    -------------------------------------- */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

h1,
h2,
h3,
h4 {
    margin-bottom: 0.5rem;
    color: var(--color-heading);
}

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4 {
    color: var(--dark-text);
}

p {
    margin-bottom: 1rem;
    color: var(--color-muted);
}

body.dark p {
    color: var(--dark-muted);
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: var(--color-primary);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: background-color var(--transition-speed),
        color var(--transition-speed),
        transform var(--transition-speed);
    font-family: inherit;
}

/* --------------------------------------
       3) Buttons & Links (Animations & Shadow)
    -------------------------------------- */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 0.65rem 1.3rem;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------
       4) Header / Navbar
    -------------------------------------- */
header {
    background-color: var(--color-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

body.dark header {
    background-color: var(--dark-light);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    order: 0;
}

body.dark .logo {
    color: var(--dark-text);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    order: 3;
}

nav li a {
    font-weight: 500;
    color: var(--color-text);
}

body.dark nav li a {
    color: var(--dark-text);
}

nav li a:hover {
    color: var(--color-primary);
}

body.dark nav li a:hover {
    color: var(--color-light);
}

/* Day/Night Toggle icon */
#theme-toggle {
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--color-text);
    order: 1;
    margin-left: 1rem;
    margin-right: 1rem;
}

body.dark #theme-toggle {
    color: var(--dark-text);
}

/* Hamburger toggle (mobile) */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
    order: 2;
    margin-left: auto;
    margin-right: 1rem;
}

body.dark .mobile-toggle {
    color: var(--dark-text);
}

@media (max-width: 768px) {

    /* 1) Show the hamburger icon */
    .mobile-toggle {
        display: block;
    }

    /* 2) Hide the desktop nav by default */
    nav ul {
        display: none;
        /* hide completely */
        position: absolute;
        top: 90%;
        /* drop right below header */
        left: 0;
        width: 70%;
        /* full width of viewport */
        background-color: var(--color-light);
        flex-direction: column;
        /* vertical list */
        z-index: 200;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        height: calc(100vh - 60px);
        overflow-y: auto;
    }

    body.dark nav ul {
        background-color: var(--dark-light);
    }

    /* 3) When JS toggles .open, show it */
    nav ul.open {
        display: flex;
        /* revert to flex for vertical stacking */
    }

    nav li {
        padding: 1rem;
        border-bottom: 1px solid #e0e0e0;
    }

    body.dark nav li {
        border-bottom-color: #333333;
    }

    /* 4) Prevent the desktop flex layout on the <nav> itself */
    nav {
        display: block;
        width: 100%;
    }
}


.feature-hero {
    background-color: var(--color-primary);
    background-image: url('https://via.placeholder.com/1200x600');
    background-size: cover;
    background-position: center;
    color: var(--color-light);
    position: relative;
    padding: 4rem 0 6rem;
}

.feature-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 45%;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.hero-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.file-picker {
    display: inline-block;
    background-color: var(--color-light);
    color: var(--color-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.file-picker:hover {
    background-color: #f0f0f0;
}

.hero-image {
    flex: 1;
    max-width: 50%;
    text-align: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.hero-bottom-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background-color: var(--color-light);
    color: var(--color-text);
    padding: 1.5rem;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

body.dark .hero-bottom-container {
    background-color: var(--dark-light);
    color: var(--dark-text);
}

/* --------------------------------------
   Hero Feature: Responsive Adjustments
   (screens ≤ 768px)
-------------------------------------- */
@media (max-width: 768px) {
    .feature-hero .container {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.25rem;
    }

    .hero-image {
        max-width: 100%;
    }

    .hero-image img {
        max-height: none;
        width: 100%;
        height: auto;
    }

    .hero-bottom-container {
        width: 100%;
        left: 0;
        transform: none;
        border-radius: 0;
    }
}

/* Always allow horizontal scrolling if the table is too wide */
.pricing-table-wrapper {
    overflow-x: auto;
}

/* On small screens, force the wrapper to scroll */
@media (max-width: 768px) {
    .pricing-table-wrapper {
        /* ensure it only scrolls horizontally */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* Optional: make the table take its minimum width */
    .pricing-table {
        min-width: 600px;
        /* adjust as necessary so columns don’t collapse */
    }
}



/* --------------------------------------
       6) Section: Feature Highlight
    -------------------------------------- */
.feature-highlight {
    padding: 6rem 0;
    background-color: var(--color-light);
}

body.dark .feature-highlight {
    background-color: var(--dark-light);
}

.feature-high-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.feature-high-image {
    flex: 1;
}

.feature-high-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-high-text {
    flex: 1;
    background-color: var(--color-background);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark .feature-high-text {
    background-color: var(--dark-light);
}

/* Stack Feature Highlight on small screens */
@media (max-width: 768px) {
    .feature-high-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .feature-high-image,
    .feature-high-text {
        width: 100%;
        max-width: 100%;
    }

    .voice-settings-content {
        flex-direction: column;
        gap: 1.5rem;
        /* optional spacing between grid and image */
    }

    .settings-grid,
    .settings-illustration {
        width: 100%;
        max-width: 100%;
    }

    .image-text-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        /* space between text and images */
    }

    .image-text-left,
    .image-text-right {
        width: 100%;
        max-width: 100%;
    }
}



/* --------------------------------------
       7) Section: Voice Settings
    -------------------------------------- */
.voice-settings {
    padding: 6rem 0;
    background-color: var(--color-grey, #e8e8e8);
    position: relative;
}

.voice-settings-header {
    background-color: var(--color-accent);
    color: var(--color-text);
    padding: 1rem 2rem;
    border-radius: 8px;
    max-width: 300px;
    margin: 0 auto 2rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.voice-settings-subheader {
    background-color: var(--color-light);
    padding: 1rem 2rem;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.voice-settings-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    flex: 2;
}

.setting-card {
    background-color: var(--color-light);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
}

body.dark .setting-card {
    background-color: var(--dark-light);
}

.settings-illustration {
    flex: 1;
    text-align: center;
}

.settings-illustration img {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------
       8) Section: Creators
    -------------------------------------- */
.creators {
    padding: 6rem 0;
    background-color: #000;
    /* black background */
    color: #fff;
}

.creators h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #fff;
}

.creator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.creator-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    background-color: #111;
    width: 100%;
    padding-top: 100%;
    /* 1:1 aspect ratio */
    text-align: center;
}

.creator-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1rem;
}

/* --------------------------------------
       9) Section: Image + Text
    -------------------------------------- */
.image-text-section {
    padding: 6rem 0;
    background-color: var(--color-light);
}

body.dark .image-text-section {
    background-color: var(--dark-light);
}

.image-text-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.image-text-left {
    flex: 1;
    padding: 2rem;
}

.image-text-left h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.image-text-left p {
    font-size: 1rem;
    color: var(--color-text);
}

.image-text-right {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.image-box {
    background-color: var(--color-background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.image-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------
       10) Section: Get Started CTA
    -------------------------------------- */
.get-started {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 4rem 0;
    text-align: center;
}

.get-started h2 {
    margin-bottom: 1.5rem;
}

.get-started .btn-primary {
    font-size: 1.25rem;
    padding: 1rem 2rem;
}

/* --------------------------------------
       11) Section: Pricing Table
    -------------------------------------- */
.pricing {
    padding: 6rem 0;
    background-color: var(--color-light);
}

body.dark .pricing {
    background-color: var(--dark-light);
}

.pricing h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    max-width: 800px;
}

.pricing-table th,
.pricing-table td {
    border: 1px solid #ccc;
    padding: 1rem;
    text-align: center;
}

.pricing-table th {
    background-color: var(--color-primary);
    color: var(--color-light);
}

body.dark .pricing-table th {
    background-color: var(--dark-light);
    color: var(--dark-text);
}

.pricing-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

body.dark .pricing-table tr:nth-child(even) {
    background-color: #2A2A2A;
}

.pricing-table .btn-primary {
    margin-top: 0.5rem;
}

/* --------------------------------------
       12) Footer
    -------------------------------------- */
footer {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

body.dark footer {
    background-color: var(--dark-light);
    color: var(--dark-text);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-about,
.footer-links,
.footer-contact {
    flex: 1 1 200px;
}

.footer-about img.footer-logo {
    display: block;
    margin-top: 1rem;
    max-width: 120px;
    height: auto;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--color-light);
    font-size: 0.9rem;
    transition: color var(--transition-speed);
}

body.dark .footer-links ul li a {
    color: var(--dark-text);
}

.footer-links ul li a:hover {
    color: var(--color-light);
    opacity: 0.8;
}

.footer-contact h3 {
    margin-bottom: 0.5rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.social-icons a {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    color: var(--color-light);
    transition: color var(--transition-speed);
}

body.dark .social-icons a {
    color: var(--dark-text);
}

.social-icons a:hover {
    opacity: 0.8;
}

.download-buttons img {
    max-width: 120px;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}