/* ==================================================
   SMARTSTOCK
   GLOBAL STYLES
   ================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background-color: #f6f8fb;

    color: #172033;

    line-height: 1.6;
}

a {
    text-decoration: none;

    color: inherit;
}

img {
    max-width: 100%;
}

button,
input {
    font-family: inherit;
}


/* ==================================================
   HEADER
   ================================================== */

.site-header {
    background-color: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid #e8edf3;

    position: sticky;

    top: 0;

    z-index: 1000;
}

.navbar {
    max-width: 1180px;

    margin: 0 auto;

    min-height: 76px;

    padding: 0 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* Logo */

.logo-link {
    display: flex;

    align-items: center;

    flex-shrink: 0;
}

.logo-link img {
    width: 165px;

    height: auto;

    display: block;
}


/* Navigation */

.nav-links {
    display: flex;

    align-items: center;

    gap: 30px;
}

.nav-links a {
    color: #475569;

    font-size: 14px;

    font-weight: 600;

    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #2563eb;
}


/* Navigation CTA */

.nav-links .nav-cta {
    background-color: #2563eb;

    color: #ffffff;

    padding: 11px 19px;

    border-radius: 7px;

    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.18);
}

.nav-links .nav-cta:hover {
    background-color: #1d4ed8;

    color: #ffffff;
}


/* ==================================================
   HERO
   ================================================== */

.hero-section {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(37, 99, 235, 0.08),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7faff 100%
        );

    padding: 90px 25px 110px;
}

.hero-content {
    max-width: 1180px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(0, 1.05fr);

    align-items: center;

    gap: 70px;
}

.hero-text {
    max-width: 590px;
}


/* Small section label */

.eyebrow {
    margin: 0 0 15px;

    color: #2563eb;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.5px;
}


/* Hero heading */

.hero-text h1 {
    margin: 0;

    color: #101828;

    font-size: clamp(42px, 5vw, 66px);

    line-height: 1.05;

    letter-spacing: -2.5px;
}

.hero-text h1 span {
    display: block;

    color: #2563eb;
}


/* Hero paragraph */

.hero-description {
    max-width: 540px;

    margin: 25px 0 30px;

    color: #667085;

    font-size: 17px;

    line-height: 1.8;
}


/* Hero buttons */

.hero-buttons {
    display: flex;

    align-items: center;

    gap: 13px;
}


/* Main buttons */

.primary-button,
.secondary-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 48px;

    padding: 0 23px;

    border-radius: 7px;

    font-size: 14px;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.primary-button {
    background-color: #2563eb;

    color: #ffffff;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.2);
}

.primary-button:hover {
    background-color: #1d4ed8;

    transform: translateY(-2px);

    box-shadow:
        0 12px 24px rgba(37, 99, 235, 0.24);
}

.secondary-button {
    background-color: #ffffff;

    color: #344054;

    border: 1px solid #d8dee8;
}

.secondary-button:hover {
    border-color: #b8c3d1;

    background-color: #f9fafb;

    transform: translateY(-2px);
}

.hero-note {
    margin: 18px 0 0;

    color: #98a2b3;

    font-size: 12px;
}


/* ==================================================
   HERO DASHBOARD VISUAL
   ================================================== */

.hero-dashboard {
    display: flex;

    justify-content: flex-end;
}

.dashboard-window {
    width: 100%;

    max-width: 540px;

    background-color: #ffffff;

    border: 1px solid #e4e9f0;

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 25px 60px rgba(16, 24, 40, 0.12);
}

.dashboard-window-header {
    height: 48px;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 0 18px;

    border-bottom: 1px solid #edf0f4;

    background-color: #fbfcfe;
}

.window-dots {
    display: flex;

    gap: 5px;
}

.window-dots span {
    width: 7px;

    height: 7px;

    border-radius: 50%;

    background-color: #cbd5e1;
}

.window-title {
    color: #98a2b3;

    font-size: 11px;

    font-weight: 600;
}

.dashboard-content {
    padding: 25px;
}

.dashboard-greeting {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 22px;
}

.dashboard-greeting small {
    color: #98a2b3;

    font-size: 11px;
}

.dashboard-greeting h3 {
    margin: 3px 0 0;

    color: #172033;

    font-size: 20px;
}

.dashboard-avatar {
    width: 36px;

    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background-color: #eff6ff;

    color: #2563eb;

    font-size: 13px;

    font-weight: 700;
}


/* Mini dashboard cards */

.mini-summary {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;

    margin-bottom: 20px;
}

.mini-card {
    padding: 14px;

    background-color: #f8fafc;

    border: 1px solid #edf0f4;

    border-radius: 8px;
}

.mini-card small {
    display: block;

    color: #98a2b3;

    font-size: 9px;

    margin-bottom: 5px;
}

.mini-card strong {
    display: block;

    color: #172033;

    font-size: 21px;

    line-height: 1.2;
}

.mini-card span {
    color: #98a2b3;

    font-size: 9px;
}


/* Mini table */

.mini-table {
    border: 1px solid #edf0f4;

    border-radius: 8px;

    overflow: hidden;
}

.mini-table-heading,
.mini-table-row {
    display: grid;

    grid-template-columns: 1.5fr 1fr 1fr;

    gap: 10px;

    padding: 11px 13px;
}

.mini-table-heading {
    background-color: #f8fafc;

    color: #98a2b3;

    font-size: 9px;

    font-weight: 700;
}

.mini-table-row {
    border-top: 1px solid #edf0f4;

    color: #475467;

    font-size: 10px;
}

.status-good {
    color: #15803d;

    font-weight: 700;
}

.status-low {
    color: #d97706;

    font-weight: 700;
}


/* ==================================================
   GENERAL SECTION STYLES
   ================================================== */

.problem-section,
.features-section,
.preview-section,
.how-it-works-section {
    max-width: 1180px;

    margin: 0 auto;

    padding: 100px 25px;
}

.section-heading {
    max-width: 700px;
}

.section-heading.centered {
    margin: 0 auto;

    text-align: center;
}

.section-heading h2 {
    margin: 0;

    color: #172033;

    font-size: clamp(30px, 4vw, 43px);

    line-height: 1.15;

    letter-spacing: -1.2px;
}

.section-heading > p:last-child {
    margin: 20px auto 0;

    color: #667085;

    font-size: 16px;

    line-height: 1.8;
}


/* ==================================================
   PROBLEM
   ================================================== */

.problem-section {
    background-color: #ffffff;
}

.problem-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    margin-top: 55px;
}

.problem-item {
    padding: 30px;

    border: 1px solid #e8edf3;

    border-radius: 10px;

    background-color: #ffffff;
}

.problem-icon {
    color: #2563eb;

    font-size: 12px;

    font-weight: 800;

    margin-bottom: 25px;
}

.problem-item h3 {
    margin: 0 0 10px;

    color: #172033;

    font-size: 18px;
}

.problem-item p {
    margin: 0;

    color: #667085;

    font-size: 14px;

    line-height: 1.7;
}


/* ==================================================
   FEATURES
   ================================================== */

.features-section {
    background-color: #f7f9fc;
}

.features-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    margin-top: 55px;
}

.feature-card {
    padding: 35px;

    background-color: #ffffff;

    border: 1px solid #e5eaf0;

    border-radius: 12px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(16, 24, 40, 0.08);
}

.feature-icon {
    width: 44px;

    height: 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 25px;

    border-radius: 9px;

    background-color: #eff6ff;

    color: #2563eb;

    font-size: 20px;

    font-weight: 700;
}

.feature-card h3 {
    margin: 0 0 10px;

    color: #172033;

    font-size: 19px;
}

.feature-card p {
    margin: 0;

    color: #667085;

    font-size: 14px;

    line-height: 1.8;
}


/* ==================================================
   DASHBOARD PREVIEW
   ================================================== */

.preview-section {
    background-color: #ffffff;
}

.preview-content {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    align-items: center;

    gap: 70px;
}

.preview-text {
    max-width: 430px;
}

.preview-text h2 {
    margin: 0;

    color: #172033;

    font-size: 40px;

    line-height: 1.15;

    letter-spacing: -1px;
}

.preview-text > p:not(.eyebrow) {
    margin: 20px 0;

    color: #667085;

    font-size: 15px;

    line-height: 1.8;
}

.text-link {
    color: #2563eb;

    font-size: 14px;

    font-weight: 700;
}

.text-link:hover {
    color: #1d4ed8;
}


/* Preview dashboard */

.preview-card {
    padding: 25px;

    background-color: #f8fafc;

    border: 1px solid #e4e9f0;

    border-radius: 12px;

    box-shadow:
        0 15px 40px rgba(16, 24, 40, 0.07);
}

.preview-top {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;
}

.preview-top small {
    color: #98a2b3;

    font-size: 10px;
}

.preview-top h3 {
    margin: 2px 0 0;

    color: #172033;

    font-size: 18px;
}

.preview-badge {
    padding: 5px 9px;

    border-radius: 20px;

    background-color: #ecfdf3;

    color: #15803d;

    font-size: 9px;

    font-weight: 700;
}

.preview-stats {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

    margin-bottom: 18px;
}

.preview-stats div {
    padding: 15px;

    background-color: #ffffff;

    border: 1px solid #e8edf3;

    border-radius: 8px;
}

.preview-stats span {
    display: block;

    margin-bottom: 5px;

    color: #98a2b3;

    font-size: 9px;
}

.preview-stats strong {
    color: #172033;

    font-size: 21px;
}

.preview-products {
    background-color: #ffffff;

    border: 1px solid #e8edf3;

    border-radius: 8px;

    overflow-x: auto;
}

.preview-product-heading,
.preview-product-row {
    min-width: 520px;

    display: grid;

    grid-template-columns:
        1.5fr
        0.8fr
        1fr
        0.9fr;

    gap: 10px;

    padding: 13px 15px;
}

.preview-product-heading {
    background-color: #f8fafc;

    color: #98a2b3;

    font-size: 9px;

    font-weight: 700;
}

.preview-product-row {
    border-top: 1px solid #edf0f4;

    color: #475467;

    font-size: 10px;
}

.stock-good {
    color: #15803d;

    font-weight: 700;
}

.stock-low {
    color: #d97706;

    font-weight: 700;
}


/* ==================================================
   HOW IT WORKS
   ================================================== */

.how-it-works-section {
    background-color: #f7f9fc;
}

.steps-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    margin-top: 55px;
}

.step-card {
    position: relative;

    padding: 35px;

    background-color: #ffffff;

    border: 1px solid #e5eaf0;

    border-radius: 12px;
}

.step-number {
    margin-bottom: 28px;

    color: #2563eb;

    font-size: 12px;

    font-weight: 800;
}

.step-card h3 {
    margin: 0 0 10px;

    color: #172033;

    font-size: 19px;
}

.step-card p {
    margin: 0;

    color: #667085;

    font-size: 14px;

    line-height: 1.8;
}


/* ==================================================
   FINAL CTA
   ================================================== */

.final-cta-section {
    margin: 0;

    padding: 100px 25px;

    background-color: #172033;
}

.final-cta-content {
    max-width: 750px;

    margin: 0 auto;

    text-align: center;
}

.final-cta-content .eyebrow {
    color: #93c5fd;
}

.final-cta-content h2 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(32px, 4vw, 48px);

    line-height: 1.15;

    letter-spacing: -1px;
}

.final-cta-content > p:not(.eyebrow) {
    max-width: 600px;

    margin: 20px auto 30px;

    color: #cbd5e1;

    font-size: 16px;
}

.final-cta-content .primary-button {
    background-color: #2563eb;
}


/* ==================================================
   FOOTER
   ================================================== */

.site-footer {
    background-color: #101828;

    color: #98a2b3;

    padding: 50px 25px;
}

.footer-content {
    max-width: 1180px;

    margin: 0 auto;

    text-align: center;
}

.footer-logo {
    display: inline-block;

    margin-bottom: 10px;
}

.footer-logo img {
    width: 150px;

    filter: brightness(0) invert(1);

    opacity: 0.9;
}

.footer-content > p {
    margin: 5px 0;

    font-size: 13px;
}

.footer-links {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 20px;

    margin: 25px 0;
}

.footer-links a {
    color: #cbd5e1;

    font-size: 12px;
}

.footer-links a:hover {
    color: #ffffff;
}

.copyright {
    margin-top: 25px !important;

    color: #667085 !important;

    font-size: 11px !important;
}


/* ==================================================
   AUTHENTICATION PAGES
   ================================================== */

.auth-page {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top right,
            rgba(37, 99, 235, 0.08),
            transparent 30%
        ),
        #f6f8fb;
}

.auth-header {
    background-color: #ffffff;

    border-bottom: 1px solid #e8edf3;
}

.auth-header .navbar {
    justify-content: flex-start;
}

.auth-section {
    width: calc(100% - 30px);

    max-width: 440px;

    margin: 60px auto;

    padding: 40px;

    background-color: #ffffff;

    border: 1px solid #e5eaf0;

    border-radius: 12px;

    box-shadow:
        0 15px 40px rgba(16, 24, 40, 0.06);
}

.auth-section h1 {
    margin: 0 0 8px;

    color: #172033;

    font-size: 28px;

    text-align: center;
}

.auth-section > p {
    margin: 0 0 30px;

    color: #667085;

    font-size: 14px;

    text-align: center;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #344054;

    font-size: 13px;

    font-weight: 700;
}

.form-group input {
    width: 100%;

    padding: 12px 13px;

    border: 1px solid #d0d5dd;

    border-radius: 7px;

    background-color: #ffffff;

    color: #172033;

    font-size: 14px;
}

.form-group input:focus {
    outline: none;

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-section form button {
    width: 100%;

    margin-top: 5px;

    padding: 12px;

    background-color: #2563eb;

    color: #ffffff;

    border: none;

    border-radius: 7px;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;
}

.auth-section form button:hover {
    background-color: #1d4ed8;
}


/* ==================================================
   DASHBOARD
   ================================================== */

.dashboard-page {
    background-color: #f6f8fb;
}

.dashboard-welcome,
.add-product-section,
.products-section {
    width: calc(100% - 30px);

    max-width: 1050px;

    margin-left: auto;

    margin-right: auto;

    background-color: #ffffff;

    border: 1px solid #e5eaf0;

    border-radius: 12px;

    box-shadow:
        0 5px 20px rgba(16, 24, 40, 0.04);
}

.dashboard-welcome {
    margin-top: 35px;

    margin-bottom: 25px;

    padding: 32px;
}

.dashboard-welcome h1 {
    margin: 0 0 5px;

    color: #172033;

    font-size: 30px;
}

.dashboard-welcome p {
    margin: 0;

    color: #667085;
}


/* Add product */

.add-product-section {
    margin-top: 25px;

    margin-bottom: 25px;

    padding: 35px;
}

.add-product-section h2 {
    margin: 0 0 5px;

    color: #172033;
}

.add-product-section > p {
    margin: 0 0 25px;

    color: #667085;

    font-size: 14px;
}


/* Product form */

#product-form {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

#product-form .form-group {
    margin: 0;
}

#product-form input {
    width: 100%;

    padding: 12px 13px;

    border: 1px solid #d0d5dd;

    border-radius: 7px;

    font-size: 14px;
}

#product-form input:focus {
    outline: none;

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.1);
}

#save-product-button {
    width: 100%;

    padding: 12px;

    background-color: #2563eb;

    color: #ffffff;

    border-radius: 7px;

    font-size: 14px;

    font-weight: 700;
}

#save-product-button:hover {
    background-color: #1d4ed8;
}

#cancel-edit-button {
    width: 100%;

    padding: 12px;

    background-color: #eef1f5;

    color: #344054;

    border-radius: 7px;

    font-size: 14px;

    font-weight: 700;
}

#product-message {
    margin: 15px 0 0;

    min-height: 22px;

    color: #2563eb;

    font-size: 13px;

    font-weight: 700;
}


/* ==================================================
   PRODUCTS
   ================================================== */

.products-section {
    margin-top: 25px;

    margin-bottom: 50px;

    padding: 35px;
}

.products-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 25px;
}

.products-header h2 {
    margin: 0;

    color: #172033;
}

.products-header p {
    margin: 4px 0 0;

    color: #667085;

    font-size: 13px;
}

.products-table-container {
    width: 100%;

    overflow-x: auto;

    border: 1px solid #e5eaf0;

    border-radius: 8px;
}

.products-table-container table {
    width: 100%;

    min-width: 750px;

    border-collapse: collapse;
}

.products-table-container th {
    padding: 14px;

    background-color: #f8fafc;

    color: #475467;

    font-size: 12px;

    text-align: left;

    border-bottom: 1px solid #e5eaf0;
}

.products-table-container td {
    padding: 14px;

    color: #475467;

    font-size: 13px;

    border-bottom: 1px solid #edf0f4;
}

.products-table-container tbody tr:hover {
    background-color: #fafcff;
}

.product-action-cell {
    white-space: nowrap;
}


/* Edit */

.edit-product-button {
    padding: 8px 14px;

    margin-right: 5px;

    background-color: #eff6ff;

    color: #2563eb;

    border: 1px solid #bfdbfe;

    border-radius: 6px;

    font-size: 12px;

    cursor: pointer;
}

.edit-product-button:hover {
    background-color: #dbeafe;
}


/* Delete */

.delete-product-button {
    padding: 8px 14px;

    background-color: #fff1f2;

    color: #be123c;

    border: 1px solid #fecdd3;

    border-radius: 6px;

    font-size: 12px;

    cursor: pointer;
}

.delete-product-button:hover {
    background-color: #ffe4e6;
}


/* No products */

.no-products-message {
    padding: 25px;

    background-color: #f8fafc;

    border: 1px dashed #d0d5dd;

    border-radius: 8px;

    color: #667085;

    text-align: center;

    font-size: 14px;
}


/* Logout */

#logout-button {
    padding: 10px 18px;

    background-color: #2563eb;

    color: #ffffff;

    border: none;

    border-radius: 7px;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;
}

#logout-button:hover {
    background-color: #1d4ed8;
}


/* ==================================================
   RESPONSIVE DESIGN
   ================================================== */

@media (max-width: 950px) {

    .hero-content {
        grid-template-columns: 1fr;

        gap: 55px;
    }

    .hero-text {
        max-width: 700px;
    }

    .hero-dashboard {
        justify-content: flex-start;
    }

    .preview-content {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .preview-text {
        max-width: 650px;
    }

    .problem-grid,
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .problem-item,
    .feature-card,
    .step-card {
        max-width: 650px;

        margin: 0 auto;

        width: 100%;
    }
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 700px) {

    .navbar {
        min-height: 68px;

        padding: 0 15px;
    }

    .logo-link img {
        width: 135px;
    }

    /*
       The public navigation becomes a compact
       vertical layout on smaller screens.
    */

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .nav-links .nav-cta {
        padding: 9px 12px;
    }


    /* Hero */

    .hero-section {
        padding: 65px 15px 75px;
    }

    .hero-text h1 {
        font-size: 42px;

        letter-spacing: -1.8px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;

        max-width: 280px;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }


    /* Dashboard visual */

    .dashboard-content {
        padding: 18px;
    }

    .mini-summary {
        grid-template-columns: 1fr;
    }


    /* Sections */

    .problem-section,
    .features-section,
    .preview-section,
    .how-it-works-section {
        padding: 70px 15px;
    }

    .section-heading h2,
    .preview-text h2 {
        font-size: 31px;
    }


    /* Preview */

    .preview-card {
        padding: 16px;
    }

    .preview-stats {
        grid-template-columns: 1fr;
    }


    /* CTA */

    .final-cta-section {
        padding: 75px 20px;
    }


    /* Footer */

    .footer-links {
        gap: 14px;
    }


    /* Authentication */

    .auth-section {
        padding: 30px 22px;

        margin-top: 35px;
    }


    /* Dashboard */

    .dashboard-welcome {
        margin-top: 20px;

        padding: 25px 20px;
    }

    .dashboard-welcome h1 {
        font-size: 25px;
    }

    .add-product-section {
        padding: 25px 20px;
    }

    .products-section {
        padding: 25px 15px;
    }

    #product-form {
        grid-template-columns: 1fr;
    }

    .products-header {
        display: block;
    }

    .products-table-container {
        overflow-x: auto;
    }

}


/* ==================================================
   VERY SMALL SCREENS
   ================================================== */

@media (max-width: 480px) {

    .logo-link img {
        width: 120px;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .nav-links a:nth-child(1),
    .nav-links a:nth-child(2) {
        display: none;
    }

    .nav-links .nav-cta {
        padding: 8px 10px;

        font-size: 11px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-dashboard {
        width: 100%;
    }

    .dashboard-window {
        width: 100%;
    }

    .mini-table {
        overflow-x: auto;
    }

    .mini-table-heading,
    .mini-table-row {
        min-width: 360px;
    }

    .footer-logo img {
        width: 130px;
    }
}