/* ======================================================
   STOCKMATE LANDING PAGE
   Dark Red and Gold Theme
====================================================== */


/* ------------------------------
   StockMate Brand Colors
------------------------------ */

:root {

    /* Dark Red */
    --red-darkest: #4f0d16;
    --red-dark: #68151f;
    --red-main: #7f1d2d;
    --red-medium: #9b3544;
    --red-light: #f8edef;

    /* Gold */
    --gold-dark: #9a7115;
    --gold-main: #c89b2d;
    --gold-medium: #d9b65d;
    --gold-light: #fbf5e5;

    /* Neutral Colors */
    --text-dark: #332a2a;
    --text-medium: #6b6060;
    --border-color: #e6dddd;
    --background: #faf8f7;
    --white: #ffffff;

}


/* ======================================================
   BASIC PAGE SETUP
====================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family: Arial, sans-serif;

    background-color: var(--background);

    color: var(--text-dark);

    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}


/* ======================================================
   HEADER
====================================================== */

.site-header {
    position: sticky;

    top: 0;

    z-index: 1000;

    background-color: rgba(255, 255, 255, 0.98);

    border-bottom: 1px solid var(--border-color);
}

.header-container {
    width: min(1200px, 92%);

    min-height: 96px;

    margin: 0 auto;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;
}


/* ------------------------------
   Logo and Brand
------------------------------ */

.brand {
    display: flex;

    align-items: center;

    gap: 13px;

    flex-shrink: 0;

    text-decoration: none;
}

.logo {
    width: 100px;
    height: 100px;

    object-fit: contain;
}

.brand-text h1 {
    margin: 0;

    color: var(--red-dark);

    font-size: 29px;

    line-height: 1.1;
}

.brand-text p {
    margin: 4px 0 0;

    color: var(--gold-dark);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.02em;
}


/* ======================================================
   NAVIGATION
====================================================== */

.navigation {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 5px;
}

.navigation a {
    padding: 10px 13px;

    color: #514747;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    border-radius: 7px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.navigation a:hover {
    color: var(--red-main);

    background-color: var(--red-light);
}


/* Login Link */

.navigation .nav-login {
    margin-left: 7px;

    color: var(--red-dark);

    border: 1px solid #d7bec2;
}

.navigation .nav-login:hover {
    background-color: var(--red-light);
}


/* Get Started Link */

.navigation .nav-get-started {
    padding-left: 18px;
    padding-right: 18px;

    color: var(--white);

    background-color: var(--red-main);

    border: 1px solid var(--red-main);
}

.navigation .nav-get-started:hover {
    color: var(--white);

    background-color: var(--red-dark);
}


/* ======================================================
   HAMBURGER MENU
====================================================== */

.menu-toggle {
    display: none;

    width: 45px;
    height: 43px;

    padding: 9px;

    background-color: var(--gold-light);

    border: 1px solid #e1ca8d;

    border-radius: 8px;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 4px 0;

    background-color: var(--red-dark);

    border-radius: 2px;

    transition: 0.2s ease;
}


/* Hamburger X Animation */

.menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* ======================================================
   COMMON SECTION STYLES
====================================================== */

.section-container {
    width: min(1150px, 90%);

    margin: 0 auto;
}

.section-heading {
    max-width: 740px;

    margin: 0 auto 48px;

    text-align: center;
}

.section-heading h2 {
    margin: 7px 0 13px;

    color: var(--red-dark);

    font-size: 34px;

    line-height: 1.25;
}

.section-heading > p:last-child {
    margin: 0;

    color: var(--text-medium);

    font-size: 16px;
}

.left-heading {
    margin-left: 0;

    margin-right: 0;

    text-align: left;
}

.section-label {
    margin: 0;

    color: var(--gold-dark);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.09em;

    text-transform: uppercase;
}


/* ======================================================
   HERO
====================================================== */

.hero {
    padding: 105px 20px 110px;

    background:
        linear-gradient(
            135deg,
            #fcf7f4 0%,
            #fffaf0 50%,
            #f9eff0 100%
        );
}

.hero-content {
    max-width: 900px;

    margin: 0 auto;

    text-align: center;
}

.hero h2 {
    margin: 12px auto 22px;

    color: var(--red-dark);

    font-size: 50px;

    line-height: 1.12;
}

.hero h2 span {
    display: block;

    color: var(--gold-dark);
}

.hero-description {
    max-width: 720px;

    margin: 0 auto 30px;

    color: var(--text-medium);

    font-size: 18px;
}


/* Hero Buttons */

.hero-buttons,
.cta-buttons {
    display: flex;

    justify-content: center;

    gap: 12px;

    margin-top: 28px;
}

.button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 145px;

    padding: 13px 23px;

    text-decoration: none;

    font-size: 15px;

    font-weight: 700;

    border-radius: 8px;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.primary-button {
    color: var(--white);

    background-color: var(--red-main);

    border: 1px solid var(--red-main);
}

.primary-button:hover {
    background-color: var(--red-dark);

    border-color: var(--red-dark);
}

.secondary-button {
    color: var(--red-dark);

    background-color: var(--white);

    border: 1px solid #d8bdc0;
}

.secondary-button:hover {
    background-color: var(--red-light);

    border-color: var(--red-medium);
}


/* Hero Benefits */

.hero-benefits {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 22px;

    margin-top: 34px;

    color: #685b58;

    font-size: 14px;
}

.hero-benefits span {
    font-weight: 600;
}


/* ======================================================
   PROBLEM SECTION
====================================================== */

.problem-section {
    padding: 88px 0;

    background-color: var(--white);
}

.problem-layout {
    display: grid;

    grid-template-columns: 1fr 1.1fr;

    align-items: center;

    gap: 75px;
}

.problem-content {
    padding: 30px;

    background-color: #fcf8f4;

    border-left: 4px solid var(--gold-main);

    border-radius: 8px;
}

.problem-content p {
    margin: 0;

    color: var(--text-medium);

    font-size: 16px;
}

.problem-content p + p {
    margin-top: 18px;
}


/* ======================================================
   FEATURES
====================================================== */

.features-section {
    padding: 90px 0;

    background-color: #faf7f7;
}

.features-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}

.feature-card {
    padding: 30px;

    background-color: var(--white);

    border: 1px solid var(--border-color);

    border-radius: 12px;

    box-shadow: 0 6px 18px rgba(81, 20, 28, 0.04);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);

    border-color: #d1a5aa;
}

.feature-icon {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 22px;

    color: var(--white);

    background-color: var(--red-main);

    border-radius: 10px;

    font-size: 26px;

    font-weight: 700;
}

.feature-card:nth-child(2) .feature-icon {
    color: var(--red-dark);

    background-color: var(--gold-main);
}

.feature-card:nth-child(3) .feature-icon {
    background-color: var(--red-medium);
}

.feature-card h3 {
    margin: 0 0 11px;

    color: var(--red-dark);

    font-size: 20px;
}

.feature-card p {
    margin: 0;

    color: var(--text-medium);

    font-size: 15px;
}


/* ======================================================
   HOW IT WORKS
====================================================== */

.how-it-works-section {
    padding: 90px 0;

    background-color: var(--white);
}

.steps-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}

.step-card {
    padding: 30px;

    text-align: center;

    background-color: #fffdfb;

    border: 1px solid var(--border-color);

    border-radius: 12px;
}

.step-number {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto 20px;

    color: var(--white);

    background-color: var(--red-main);

    border-radius: 50%;

    font-size: 20px;

    font-weight: 700;
}

.step-card:nth-child(2) .step-number {
    color: var(--red-dark);

    background-color: var(--gold-main);
}

.step-card:nth-child(3) .step-number {
    background-color: var(--red-dark);
}

.step-card h3 {
    margin: 0 0 10px;

    color: var(--red-dark);

    font-size: 20px;
}

.step-card p {
    margin: 0;

    color: var(--text-medium);

    font-size: 15px;
}


/* ======================================================
   DASHBOARD PREVIEW
====================================================== */

.dashboard-preview-section {
    padding: 90px 0;

    background-color: #f9f4ef;
}

.preview-window {
    overflow: hidden;

    padding: 28px;

    background-color: var(--white);

    border: 1px solid #e3d8d2;

    border-radius: 15px;

    box-shadow: 0 12px 30px rgba(79, 13, 22, 0.07);
}

.preview-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-bottom: 24px;

    border-bottom: 1px solid var(--border-color);
}

.preview-small-title {
    margin: 0 0 2px;

    color: var(--gold-dark);

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.07em;
}

.preview-header h3 {
    margin: 0;

    color: var(--red-dark);

    font-size: 23px;
}

.preview-header > div > p:last-child {
    margin: 4px 0 0;

    color: var(--text-medium);

    font-size: 14px;
}

.preview-badge {
    padding: 7px 11px;

    color: var(--red-dark);

    background-color: var(--gold-light);

    border: 1px solid #ead69e;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 700;
}


/* ------------------------------
   Dashboard Summary Cards
------------------------------ */

.dashboard-cards {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

    margin: 25px 0;
}

.dashboard-card {
    padding: 22px;

    background-color: var(--red-light);

    border: 1px solid #e5cbd0;

    border-radius: 10px;
}

.dashboard-card.gold-card {
    background-color: var(--gold-light);

    border-color: #ead69e;
}

.dashboard-card p {
    margin: 0 0 7px;

    color: var(--text-medium);

    font-size: 14px;

    font-weight: 600;
}

.dashboard-card h3 {
    margin: 0;

    color: var(--red-dark);

    font-size: 30px;
}

.dashboard-card.gold-card h3 {
    color: var(--gold-dark);
}

.dashboard-card span {
    display: block;

    margin-top: 7px;

    color: #7c6e69;

    font-size: 12px;
}


/* ------------------------------
   Dashboard Table
------------------------------ */

.dashboard-table {
    overflow: hidden;

    border: 1px solid var(--border-color);

    border-radius: 10px;
}

.table-title {
    padding: 18px 20px;

    background-color: #fdfafa;

    border-bottom: 1px solid var(--border-color);
}

.table-title h3 {
    margin: 0;

    color: var(--red-dark);

    font-size: 18px;
}

.table-title p {
    margin: 3px 0 0;

    color: var(--text-medium);

    font-size: 13px;
}

.table-scroll {
    overflow-x: auto;
}

.dashboard-table table {
    width: 100%;

    min-width: 620px;

    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
    padding: 15px 17px;

    text-align: left;

    border-bottom: 1px solid #eee6e3;
}

.dashboard-table th {
    color: var(--red-dark);

    background-color: #faf5f3;

    font-size: 13px;
}

.dashboard-table td {
    color: #5d5351;

    font-size: 14px;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}


/* ------------------------------
   Product Status
------------------------------ */

.status {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 700;
}

.in-stock {
    color: #704d0e;

    background-color: var(--gold-light);
}

.low-stock {
    color: var(--red-dark);

    background-color: var(--red-light);
}


/* ======================================================
   CALL TO ACTION
====================================================== */

.cta-section {
    padding: 90px 20px;

    background:
        linear-gradient(
            135deg,
            var(--red-darkest),
            var(--red-main),
            #8a5521
        );
}

.cta-content {
    max-width: 720px;

    margin: 0 auto;

    text-align: center;
}

.cta-section .section-label {
    color: #f2d98d;
}

.cta-content h2 {
    margin: 10px 0 14px;

    color: var(--white);

    font-size: 36px;
}

.cta-content > p:not(.section-label) {
    max-width: 620px;

    margin: 0 auto;

    color: #f2e5e0;

    font-size: 16px;
}


/* CTA Buttons */

.cta-primary-button {
    color: var(--red-dark);

    background-color: var(--gold-main);

    border: 1px solid var(--gold-main);
}

.cta-primary-button:hover {
    background-color: var(--gold-medium);

    border-color: var(--gold-medium);
}

.cta-secondary-button {
    color: var(--white);

    background-color: transparent;

    border: 1px solid rgba(255, 255, 255, 0.55);
}

.cta-secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}


/* ======================================================
   FOOTER
====================================================== */

.site-footer {
    padding: 35px 0;

    background-color: #3d0b12;

    color: var(--white);
}

.footer-container {
    width: min(1150px, 90%);

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.footer-brand {
    display: flex;

    align-items: center;

    gap: 11px;
}

.footer-brand img {
    width: 68px;
    height: 68px;

    object-fit: contain;
}

.footer-brand h2 {
    margin: 0;

    color: var(--gold-medium);

    font-size: 21px;
}

.footer-brand p {
    margin: 3px 0 0;

    color: #dbc9c5;

    font-size: 13px;
}

.copyright {
    margin: 0;

    color: #ccb8b5;

    font-size: 13px;
}


/* ======================================================
   TABLET SCREENS
====================================================== */

@media (max-width: 950px) {

    .header-container {
        width: 94%;
    }

    .logo {
        width: 85px;
        height: 85px;
    }

    .brand-text p {
        display: none;
    }

    .navigation {
        gap: 2px;
    }

    .navigation a {
        padding-left: 9px;
        padding-right: 9px;

        font-size: 13px;
    }

    .hero h2 {
        font-size: 44px;
    }

    .problem-layout {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .left-heading {
        max-width: 720px;
    }

}


/* ======================================================
   MOBILE SCREENS
====================================================== */

@media (max-width: 760px) {

    /* ------------------------------
       Mobile Header
    ------------------------------ */

    .header-container {
        width: 94%;

        min-height: 78px;

        flex-wrap: wrap;

        gap: 0;
    }

    .brand {
        gap: 7px;
    }

    .logo {
        width: 72px;
        height: 72px;
    }

    .brand-text h1 {
        font-size: 22px;
    }


    /* ------------------------------
       Hamburger
    ------------------------------ */

    .menu-toggle {
        display: block;
    }


    /* ------------------------------
       Mobile Navigation
    ------------------------------ */

    .navigation {
        display: none;

        width: 100%;

        flex-direction: column;

        align-items: stretch;

        gap: 4px;

        padding: 12px 0 16px;

        border-top: 1px solid var(--border-color);
    }

    .navigation.active {
        display: flex;
    }

    .navigation a {
        width: 100%;

        padding: 12px 14px;

        text-align: left;

        font-size: 14px;
    }

    .navigation .nav-login {
        margin-left: 0;

        text-align: center;
    }

    .navigation .nav-get-started {
        text-align: center;
    }


    /* ------------------------------
       Hero
    ------------------------------ */

    .hero {
        padding: 70px 20px 75px;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        width: min(100%, 330px);

        margin-left: auto;

        margin-right: auto;

        flex-direction: column;
    }

    .hero-buttons .button {
        width: 100%;
    }

    .hero-benefits {
        flex-direction: column;

        gap: 7px;
    }


    /* ------------------------------
       Page Sections
    ------------------------------ */

    .problem-section,
    .features-section,
    .how-it-works-section,
    .dashboard-preview-section {
        padding: 68px 0;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: 29px;
    }


    /* ------------------------------
       Features
    ------------------------------ */

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 25px;
    }


    /* ------------------------------
       How It Works
    ------------------------------ */

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        padding: 25px;
    }


    /* ------------------------------
       Dashboard Preview
    ------------------------------ */

    .preview-window {
        padding: 18px;
    }

    .preview-header {
        flex-direction: column;

        align-items: flex-start;

        gap: 10px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        padding: 19px;
    }

    .table-scroll {
        overflow-x: auto;
    }


    /* ------------------------------
       CTA
    ------------------------------ */

    .cta-section {
        padding: 70px 20px;
    }

    .cta-content h2 {
        font-size: 30px;
    }

    .cta-buttons {
        width: min(100%, 330px);

        margin-left: auto;

        margin-right: auto;

        flex-direction: column;
    }

    .cta-buttons .button {
        width: 100%;
    }


    /* ------------------------------
       Footer
    ------------------------------ */

    .footer-container {
        flex-direction: column;

        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }

}


/* ======================================================
   VERY SMALL PHONES
====================================================== */

@media (max-width: 430px) {

    .header-container {
        width: 94%;
    }

    .logo {
        width: 64px;
        height: 64px;
    }

    .brand-text h1 {
        font-size: 20px;
    }

    .hero {
        padding-top: 58px;
        padding-bottom: 62px;
    }

    .hero h2 {
        font-size: 31px;
    }

    .section-container {
        width: 91%;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .preview-window {
        padding: 14px;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 12px;
    }

}