/* =========================================================
   INVENTORYPRO
   Main Website Styles
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #17233d;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}


/* =========================================================
   GLOBAL
========================================================= */

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow-container {
    max-width: 760px;
}

.section {
    padding: 100px 0;
}

.section-label {
    display: inline-block;
    margin-bottom: 14px;
    color: #1677ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-heading h2,
.problem-section h2 {
    margin-bottom: 18px;
    color: #14213d;
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.section-heading p,
.problem-section p {
    color: #63708a;
    font-size: 17px;
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: 0.2s ease;
    cursor: pointer;
}

.button-primary {
    background: #1677ff;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(22, 119, 255, 0.18);
}

.button-primary:hover {
    background: #0868ea;
    transform: translateY(-1px);
}

.button-secondary {
    background: #ffffff;
    color: #14213d;
    border-color: #d7e0ec;
}

.button-secondary:hover {
    border-color: #1677ff;
    color: #1677ff;
}

.button-light {
    background: #ffffff;
    color: #1677ff;
}

.button-light:hover {
    background: #eef6ff;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e8edf4;
    backdrop-filter: blur(10px);
}

.header-container {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.brand-name {
    color: #14213d;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-name span {
    color: #1677ff;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: #526079;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #1677ff;
}

.main-nav .nav-button {
    padding: 11px 18px;
    border-radius: 7px;
    background: #1677ff;
    color: #ffffff;
}

.main-nav .nav-button:hover {
    background: #0868ea;
    color: #ffffff;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 42px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #d9e2ee;
    border-radius: 7px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #17233d;
}


/* =========================================================
   HERO
========================================================= */

.hero-section {
    padding: 95px 0 105px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(22, 119, 255, 0.08),
            transparent 32%
        ),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 80px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: #1677ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.hero-content h1 {
    max-width: 650px;
    margin-bottom: 22px;
    color: #14213d;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.04;
    letter-spacing: -2.5px;
}

.hero-content h1 span {
    color: #1677ff;
}

.hero-text {
    max-width: 610px;
    margin-bottom: 30px;
    color: #5e6b83;
    font-size: 18px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-note {
    margin-top: 18px;
    color: #8a96a9;
    font-size: 13px;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.inventory-card {
    width: 100%;
    max-width: 440px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e1e8f2;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(31, 60, 100, 0.12);
}

.inventory-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 22px;
    border-bottom: 1px solid #edf1f6;
}

.small-label {
    display: block;
    margin-bottom: 4px;
    color: #8b97a9;
    font-size: 12px;
}

.inventory-card-header h3 {
    color: #17233d;
    font-size: 22px;
}

.status-dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
    background: #21b573;
}

.inventory-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 22px 0;
}

.summary-item {
    padding: 17px;
    background: #f6f9fd;
    border-radius: 10px;
}

.summary-item span {
    display: block;
    margin-bottom: 4px;
    color: #7b879b;
    font-size: 12px;
}

.summary-item strong {
    color: #17233d;
    font-size: 25px;
}

.mini-product-list {
    display: grid;
    gap: 10px;
}

.mini-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #edf1f6;
}

.mini-product:last-child {
    border-bottom: 0;
}

.mini-product strong {
    display: block;
    color: #26344e;
    font-size: 14px;
}

.mini-product span {
    color: #8a96a9;
    font-size: 12px;
}

.mini-product b {
    color: #1677ff;
    font-size: 15px;
}


/* =========================================================
   PROBLEM
========================================================= */

.problem-section {
    background: #ffffff;
}

.problem-section h2 {
    max-width: 650px;
}

.problem-section p {
    margin-bottom: 18px;
}


/* =========================================================
   FEATURES
========================================================= */

.features-section {
    background: #f7faff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e3eaf3;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(32, 55, 86, 0.05);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    border-radius: 10px;
    background: #eaf3ff;
    color: #1677ff;
    font-size: 23px;
    font-weight: 700;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: #17233d;
    font-size: 20px;
}

.feature-card p {
    color: #68758b;
    font-size: 15px;
}


/* =========================================================
   DASHBOARD PREVIEW
========================================================= */

.dashboard-preview-section {
    background: #ffffff;
}

.preview-container {
    padding: 28px;
    background: #f7faff;
    border: 1px solid #e1e8f2;
    border-radius: 16px;
}

.preview-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.preview-summary-card {
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e2e9f2;
    border-radius: 11px;
}

.preview-summary-card span {
    display: block;
    margin-bottom: 6px;
    color: #728097;
    font-size: 13px;
}

.preview-summary-card strong {
    display: block;
    color: #17233d;
    font-size: 28px;
}

.preview-summary-card small {
    color: #9aa5b5;
}

.preview-table-wrapper {
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #e2e9f2;
    border-radius: 11px;
}

.preview-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
}

.preview-table th,
.preview-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid #edf1f6;
}

.preview-table th {
    background: #f9fbfe;
    color: #66738a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-table td {
    color: #3b4960;
    font-size: 14px;
}

.preview-table tbody tr:last-child td {
    border-bottom: 0;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.status-good {
    background: #eaf8f1;
    color: #18865b;
}

.status-low {
    background: #fff4df;
    color: #a76a00;
}


/* =========================================================
   HOW IT WORKS
========================================================= */

.how-section {
    background: #f7faff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.step-card {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e2e9f2;
    border-radius: 14px;
}

.step-number {
    margin-bottom: 22px;
    color: #1677ff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}

.step-card h3 {
    margin-bottom: 10px;
    color: #17233d;
    font-size: 20px;
}

.step-card p {
    color: #68758b;
    font-size: 15px;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    padding: 80px 0;
    background: #ffffff;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 55px;
    background: #1677ff;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(22, 119, 255, 0.18);
}

.cta-card .section-label {
    color: #dbeaff;
}

.cta-card h2 {
    max-width: 650px;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 38px;
    line-height: 1.15;
}

.cta-card p {
    max-width: 600px;
    color: #dbeaff;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 35px 0;
    background: #101b2f;
    color: #ffffff;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.footer-brand {
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
}

.footer-brand span {
    color: #4c9aff;
}

.footer-container p {
    color: #9ca8bb;
    font-size: 13px;
}

.copyright {
    white-space: nowrap;
}


/* =========================================================
   AUTHENTICATION PAGES
========================================================= */

.auth-page {
    min-height: 100vh;
    background: #f5f9ff;
}

.auth-header {
    background: #ffffff;
    border-bottom: 1px solid #e3eaf3;
}

.auth-header-container {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.auth-logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.auth-logo-text {
    color: #14213d;
    font-size: 21px;
    font-weight: 800;
}

.auth-logo-text span {
    color: #1677ff;
}

.auth-back {
    color: #53627a;
    font-size: 14px;
    font-weight: 600;
}

.auth-back:hover {
    color: #1677ff;
}

.auth-main {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 42px;
    background: #ffffff;
    border: 1px solid #dfe7f1;
    border-radius: 18px;
    box-shadow: 0 20px 55px rgba(38, 65, 100, 0.09);
}

.auth-card h1 {
    margin-bottom: 10px;
    color: #14213d;
    font-size: 34px;
    line-height: 1.2;
}

.auth-description {
    margin-bottom: 30px;
    color: #66748a;
    font-size: 15px;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 7px;
}

.form-group label {
    color: #263653;
    font-size: 14px;
    font-weight: 700;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #cfd9e7;
    border-radius: 8px;
    outline: none;
    color: #17233d;
    transition: 0.2s ease;
}

.form-group input::placeholder {
    color: #9aa6b7;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.10);
}

.auth-button {
    width: 100%;
    height: 50px;
    margin-top: 5px;
    border: 0;
    border-radius: 8px;
    background: #1677ff;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.auth-button:hover {
    background: #0868ea;
}

.auth-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.form-message {
    min-height: 20px;
    margin-top: 4px;
    color: #c0392b;
    font-size: 14px;
}

.auth-footer {
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid #edf1f6;
    text-align: center;
    color: #69768b;
    font-size: 14px;
}

.auth-footer a {
    color: #1677ff;
    font-weight: 700;
}

.auth-footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   DASHBOARD
========================================================= */

.dashboard-page {
    min-height: 100vh;
    background: #f5f8fc;
}

.dashboard-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f1;
}

.dashboard-header-container {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.dashboard-brand strong {
    color: #17233d;
    font-size: 20px;
}

.dashboard-logout {
    padding: 9px 16px;
    border: 1px solid #d7e0eb;
    border-radius: 7px;
    background: #ffffff;
    color: #3f4d65;
    font-weight: 700;
    cursor: pointer;
}

.dashboard-logout:hover {
    border-color: #1677ff;
    color: #1677ff;
}

.dashboard-main {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 50px 0 80px;
}

.dashboard-main h1 {
    margin-bottom: 8px;
    color: #17233d;
    font-size: 34px;
}

.dashboard-subtitle {
    margin-bottom: 35px;
    color: #6b788d;
}

.product-form {
    margin-bottom: 35px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e0e7f0;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(31, 55, 85, 0.04);
}

.product-form h2 {
    margin-bottom: 24px;
    color: #17233d;
    font-size: 22px;
}

.product-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.product-form button {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 7px;
    background: #1677ff;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.product-form button:hover {
    background: #0868ea;
}

.products-section {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e0e7f0;
    border-radius: 14px;
}

.products-section h2 {
    margin-bottom: 22px;
    color: #17233d;
    font-size: 22px;
}

.products-table-wrapper {
    overflow-x: auto;
}

.products-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.products-table th,
.products-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #edf1f5;
}

.products-table th {
    background: #f8fafc;
    color: #66748a;
    font-size: 12px;
    text-transform: uppercase;
}

.products-table td {
    color: #3e4c64;
    font-size: 14px;
}

.edit-button,
.delete-button {
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.edit-button {
    border: 1px solid #bcd7ff;
    background: #edf5ff;
    color: #1677ff;
}

.delete-button {
    border: 1px solid #ffd0d0;
    background: #fff2f2;
    color: #d23b3b;
}

.edit-button:hover {
    background: #dcecff;
}

.delete-button:hover {
    background: #ffe3e3;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .hero-container {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
    }

    .feature-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-form-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 760px) {

    .container {
        width: min(100% - 30px, 600px);
    }

    .section {
        padding: 70px 0;
    }

    .section-heading h2,
    .problem-section h2 {
        font-size: 32px;
    }

    .header-container {
        min-height: 68px;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
    }

    .brand-name {
        font-size: 20px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 15px;
        right: 15px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        background: #ffffff;
        border: 1px solid #e0e7f0;
        border-radius: 10px;
        box-shadow: 0 15px 35px rgba(30, 55, 90, 0.12);
    }

    .main-nav.show {
        display: flex;
    }

    .main-nav a {
        display: block;
        padding: 13px 14px;
        border-radius: 6px;
    }

    .main-nav a:hover {
        background: #f3f7fc;
    }

    .main-nav .nav-button {
        margin-top: 5px;
        text-align: center;
    }

    .hero-section {
        padding: 65px 0 75px;
    }

    .hero-content h1 {
        font-size: 42px;
        letter-spacing: -1.5px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .button {
        width: 100%;
    }

    .inventory-card {
        padding: 20px;
    }

    .preview-container {
        padding: 15px;
    }

    .preview-summary-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 35px 25px;
    }

    .cta-card h2 {
        font-size: 30px;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .copyright {
        white-space: normal;
    }

    .auth-main {
        padding: 35px 15px;
        align-items: flex-start;
    }

    .auth-card {
        padding: 28px 22px;
    }

    .auth-card h1 {
        font-size: 30px;
    }

    .dashboard-main {
        width: min(100% - 30px, 600px);
        padding-top: 35px;
    }

    .dashboard-header-container {
        min-height: 68px;
    }

    .dashboard-main h1 {
        font-size: 29px;
    }

    .product-form,
    .products-section {
        padding: 22px 18px;
    }
}


@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 36px;
    }

    .section-heading h2,
    .problem-section h2 {
        font-size: 28px;
    }

    .inventory-summary {
        grid-template-columns: 1fr;
    }

    .auth-logo-text {
        font-size: 19px;
    }

    .auth-back {
        font-size: 12px;
    }
}