/* =========================================
   GLOBAL STYLES
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #1f2937;
    background-color: #f6f8fb;
    line-height: 1.6;
}

img {
    max-width: 100%;
}


/* =========================================
   NAVIGATION
========================================= */

.navbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 55px;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    width: 150px;
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: #24344d;
    text-decoration: none;
    font-size: 17px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #2563eb;
}

.nav-button {
    display: inline-block;
    border: none;
    background-color: #2563eb;
    color: #ffffff !important;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.nav-button:hover {
    background-color: #1d4ed8;
    color: #ffffff !important;
    transform: translateY(-1px);
}


/* =========================================
   MOBILE MENU
========================================= */

.mobile-menu {
    display: none;
}

.mobile-menu summary {
    list-style: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    border-radius: 10px;
    color: #1f2937;
    transition: background-color 0.2s ease;
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-menu summary:hover {
    background-color: #f3f4f6;
}

.mobile-nav-links {
    position: absolute;
    top: 68px;
    right: 20px;
    width: 230px;
    padding: 8px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    animation: menuAppear 0.18s ease-out;
}

@keyframes menuAppear {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-links a {
    display: block;
    padding: 11px 13px;
    color: #374151;
    text-decoration: none;
    border-radius: 7px;
    font-size: 15px;
}

.mobile-nav-links a:hover {
    background-color: #f5f8ff;
    color: #2563eb;
}

.mobile-nav-button {
    width: 100%;
    margin-top: 6px;
    border: none;
    background-color: #2563eb;
    color: #ffffff;
    padding: 11px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 15px;
}


/* =========================================
   LANDING PAGE DEFAULTS
========================================= */

header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 95px 30px 90px;
    text-align: center;
}

header h1 {
    margin: 0 0 15px;
    color: #17243a;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 700;
}

header h2 {
    margin: 0 0 20px;
    color: #1f3654;
    font-size: 34px;
    line-height: 1.2;
}

header p {
    max-width: 800px;
    margin: 0 auto 30px;
    color: #5d7089;
    font-size: 19px;
}

header a {
    display: inline-block;
    text-decoration: none;
    margin: 5px;
}

header button {
    border: none;
    background-color: #2563eb;
    color: #ffffff;
    padding: 13px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

header button:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

body > section:not(.dashboard-card) {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 30px;
}

body > section h2 {
    margin: 0 0 20px;
    color: #17243a;
    font-size: 32px;
    line-height: 1.25;
}

body > section p {
    max-width: 850px;
    color: #5d7089;
    font-size: 17px;
}

body > section > div {
    margin-top: 25px;
}

body > section > div h3 {
    margin-bottom: 8px;
    color: #243b59;
    font-size: 20px;
}

body > section > div p {
    margin-top: 0;
}


/* =========================================
   HERO / CTA BUTTON HELPERS
========================================= */

.primary-button {
    border: none;
    background-color: #2563eb;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.primary-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.primary-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}


/* =========================================
   HOMEPAGE HERO
========================================= */

.homepage-hero {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 760px;
    margin: 0;
    padding: 88px max(30px, 6vw) 90px;
    display: grid;
    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(500px, 1.1fr);
    align-items: center;
    gap: clamp(50px, 6vw, 100px);
    text-align: left;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(124, 58, 237, 0.12),
            transparent 34%
        ),
        radial-gradient(
            circle at 15% 70%,
            rgba(37, 99, 235, 0.12),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #f5f4ff 52%,
            #fbf8ff 100%
        );
}

.homepage-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(37, 99, 235, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(37, 99, 235, 0.025) 1px,
            transparent 1px
        );

    background-size: 44px 44px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 90%
        );
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(4px);
    pointer-events: none;
}

.hero-glow-one {
    width: 340px;
    height: 340px;
    top: -180px;
    right: 10%;
    background: rgba(99, 102, 241, 0.12);
}

.hero-glow-two {
    width: 280px;
    height: 280px;
    bottom: -150px;
    left: 5%;
    background: rgba(14, 165, 233, 0.10);
}

.homepage-hero .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 650px;
    margin: 0;
}

.hero-eyebrow {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    padding: 8px 13px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #2456c4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.25px;
    box-shadow:
        0 8px 24px rgba(30, 64, 175, 0.06);
}

.hero-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow:
        0 0 0 5px rgba(37, 99, 235, 0.10);
}

.homepage-hero h1 {
    max-width: 680px;
    margin: 0 0 24px;
    color: #14213d;
    font-size: clamp(46px, 5.2vw, 76px);
    line-height: 0.98;
    letter-spacing: -2.8px;
    font-weight: 800;
}

.homepage-hero h1 span {
    display: block;
    background:
        linear-gradient(
            100deg,
            #2563eb 0%,
            #5b4cf0 55%,
            #7c3aed 100%
        );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.homepage-hero .hero-subtitle {
    max-width: 610px;
    margin: 0 0 30px;
    color: #5d7089;
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-primary-button,
.hero-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 13px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.hero-primary-button {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #6d3df0
        );
    box-shadow:
        0 15px 30px
        rgba(63, 81, 213, 0.22);
}

.hero-primary-button:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow:
        0 18px 35px
        rgba(63, 81, 213, 0.28);
}

.hero-primary-button span {
    font-size: 19px;
}

.hero-secondary-button {
    color: #1d3557;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #dce3ef;
    box-shadow:
        0 8px 22px
        rgba(15, 23, 42, 0.04);
}

.hero-secondary-button:hover {
    color: #2563eb;
    transform: translateY(-2px);
    background: #ffffff;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
    color: #71829a;
    font-size: 13px;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.trust-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    color: #0caa5b;
    background: #ecfdf3;
    font-size: 12px;
    font-weight: 800;
}


/* =========================================
   HERO INVENTORY VISUAL
========================================= */

.hero-inventory-visual {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 690px;
    justify-self: end;
}

.hero-inventory-card {
    overflow: hidden;
    border: 1px solid rgba(216, 225, 239, 0.95);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 35px 80px rgba(31, 55, 94, 0.13),
        0 8px 25px rgba(31, 55, 94, 0.05);
    backdrop-filter: blur(12px);
}

.inventory-card-top {
    min-height: 58px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #edf1f6;
    background: #fbfcfe;
}

.hero-window-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-window-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d6deeb;
}

.inventory-card-title {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.inventory-live-badge {
    justify-self: end;
    padding: 7px 10px;
    border-radius: 999px;
    color: #087443;
    background: #ecfdf3;
    font-size: 10px;
    font-weight: 800;
}

.inventory-card-body {
    padding: 28px;
}

.inventory-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.inventory-card-heading h2 {
    margin: 5px 0 0;
    color: #162b4b;
    font-size: 25px;
    line-height: 1.2;
}

.mini-label {
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.inventory-card-mark {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 13px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );
    font-size: 18px;
    font-weight: 800;
    box-shadow:
        0 10px 22px
        rgba(79, 70, 229, 0.20);
}


/* =========================================
   INVENTORY SUMMARY CARDS
========================================= */

.inventory-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.inventory-summary-card {
    min-height: 105px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    border: 1px solid #e8edf4;
    border-radius: 13px;
    background: #ffffff;
    box-shadow:
        0 7px 18px
        rgba(20, 33, 61, 0.04);
}

.inventory-summary-card span {
    margin-bottom: 5px;
    color: #708096;
    font-size: 10px;
}

.inventory-summary-card strong {
    margin-bottom: 3px;
    color: #18304f;
    font-size: 24px;
    line-height: 1;
}

.inventory-summary-card small {
    color: #9aa7b8;
    font-size: 8px;
}

.inventory-summary-card.blue {
    border-top: 3px solid #2563eb;
}

.inventory-summary-card.green {
    border-top: 3px solid #16a34a;
}

.inventory-summary-card.orange {
    border-top: 3px solid #f59e0b;
}


/* =========================================
   INVENTORY STATUS PANEL
========================================= */

.inventory-status-panel {
    padding: 18px;
    border: 1px solid #e7edf4;
    border-radius: 14px;
    background: #ffffff;
}

.inventory-status-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 13px;
}

.inventory-status-heading > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.inventory-status-heading strong {
    color: #253953;
    font-size: 12px;
}

.inventory-status-heading span {
    color: #91a0b2;
    font-size: 8px;
}

.inventory-status-count {
    padding: 6px 8px;
    border-radius: 999px;
    background: #f4f7fb;
    color: #64748b !important;
    font-size: 8px !important;
    font-weight: 700;
    white-space: nowrap;
}

.inventory-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 8px;
    border-radius: 9px;
}

.inventory-status-row + .inventory-status-row {
    border-top: 1px solid #f0f3f7;
    border-radius: 0;
}

.inventory-product-info {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.inventory-product-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
}

.inventory-product-icon.blue {
    color: #2563eb;
    background: #eaf2ff;
}

.inventory-product-icon.green {
    color: #16a34a;
    background: #ecfdf3;
}

.inventory-product-icon.orange {
    color: #d97706;
    background: #fff7ed;
}

.inventory-product-info div {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.inventory-product-info strong {
    overflow: hidden;
    color: #334155;
    font-size: 9px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.inventory-product-info small {
    color: #94a3b8;
    font-size: 7px;
}

.inventory-stock-badge {
    flex-shrink: 0;
    padding: 5px 7px;
    border-radius: 999px;
    font-size: 7px;
    font-weight: 800;
}

.inventory-stock-badge.in-stock {
    color: #087443;
    background: #ecfdf3;
}

.inventory-stock-badge.low-stock {
    color: #b45309;
    background: #fff7ed;
}


/* =========================================
   HERO FLOATING NOTE
========================================= */

.hero-floating-note {
    position: absolute;
    right: -18px;
    bottom: -18px;
    width: 220px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 13px;
    border: 1px solid rgba(221, 229, 239, 0.95);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 16px 35px
        rgba(20, 33, 61, 0.13);
    backdrop-filter: blur(10px);
}

.floating-note-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    color: #16a34a;
    background: #ecfdf3;
    font-size: 11px;
    font-weight: 900;
}

.hero-floating-note div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.hero-floating-note strong {
    color: #253953;
    font-size: 9px;
}

.hero-floating-note span:not(.floating-note-icon) {
    color: #94a3b8;
    font-size: 7px;
}


/* =========================================
   DASHBOARD LAYOUT
========================================= */

.dashboard-container {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 55px 25px 70px;
}

.dashboard-header {
    padding: 10px 0 35px;
}

.dashboard-label,
.section-label {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.2px;
}

.dashboard-header h1 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.2;
    color: #111827;
}

.dashboard-user-message {
    margin: 0;
    color: #667085;
    font-size: 16px;
}


/* =========================================
   DASHBOARD CARDS
========================================= */

.dashboard-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 32px;
    margin-bottom: 28px;
    box-shadow:
        0 4px 15px
        rgba(15, 23, 42, 0.04);
}

.card-header {
    margin-bottom: 25px;
}

.card-header h2 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 24px;
}

.card-header p {
    margin: 0;
    color: #667085;
    font-size: 15px;
}


/* =========================================
   PRODUCT FORM
========================================= */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 7px;
    color: #374151;
    font-size: 14px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1f2937;
    font-size: 15px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.10);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}

.cancel-edit-button {
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #374151;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

.cancel-edit-button:hover {
    background-color: #f3f4f6;
}

.form-message {
    margin: 18px 0 0;
    font-size: 14px;
}

.success-message {
    padding: 11px 14px;
    border-radius: 8px;
    background-color: #ecfdf3;
    color: #166534 !important;
}

.error-message {
    padding: 11px 14px;
    border-radius: 8px;
    background-color: #fef2f2;
    color: #b91c1c !important;
}


/* =========================================
   PRODUCTS
========================================= */

.products-card {
    padding-bottom: 20px;
}

.products-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.products-card-header h2 {
    margin-bottom: 6px;
}

.product-count-label {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 20px;
    background-color: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: bold;
}

.products-message {
    margin: 20px 0;
    color: #667085;
    font-size: 14px;
}

.empty-products-message {
    padding: 25px;
    text-align: center;
    background-color: #f8fafc;
    border-radius: 10px;
    color: #667085;
}


/* =========================================
   PRODUCTS TABLE
========================================= */

.products-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

#products-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

#products-table th {
    padding: 14px 16px;
    text-align: left;
    background-color: #f8fafc;
    color: #475467;
    font-size: 13px;
    font-weight: bold;
    border-bottom: 1px solid #e5e7eb;
}

#products-table td {
    padding: 16px;
    text-align: left;
    color: #475467;
    font-size: 14px;
    border-bottom: 1px solid #eef0f3;
    background-color: #ffffff;
}

#products-table tbody tr:hover td {
    background-color: #fafbfc;
}

#products-table th:last-child,
#products-table td:last-child {
    text-align: right;
    white-space: nowrap;
}


/* =========================================
   EDIT AND DELETE BUTTONS
========================================= */

.edit-button {
    border: 1px solid #dbe3f0;
    background-color: #f8fafc;
    color: #374151;
    padding: 7px 12px;
    margin: 0;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.edit-button:hover {
    background-color: #eff6ff;
    color: #2563eb;
}

.delete-button {
    border: 1px solid #fecaca;
    background-color: #fef2f2;
    color: #b91c1c;
    padding: 7px 12px;
    margin: 0 0 0 6px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.delete-button:hover {
    background-color: #fee2e2;
    color: #991b1b;
}

.logout-message {
    text-align: center;
    margin: 15px 0;
    font-size: 14px;
}


/* =========================================
   AUTHENTICATION PAGES
========================================= */

.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background-color: #ffffff;
    padding: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.05);
}

.auth-card h1 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
}

.auth-card > p {
    text-align: center;
    color: #667085;
}

.auth-card form {
    margin-top: 30px;
}

.auth-card label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #374151;
}

.auth-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
}

.auth-card input:focus {
    outline: none;
    border-color: #2563eb;
}

.auth-card form button {
    width: 100%;
    margin: 5px 0;
}

.auth-link {
    margin-top: 20px;
}

.auth-link a {
    color: #2563eb;
    text-decoration: none;
}


/* =========================================
   HOMEPAGE SECTIONS
========================================= */

.section-heading {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.section-heading h2 {
    margin: 0 0 17px;
    color: #17243a;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.section-heading h2 span {
    background:
        linear-gradient(
            100deg,
            #2563eb,
            #7c3aed
        );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-heading p {
    max-width: 700px;
    margin: 0 auto;
    color: #65778f;
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================
   VALUE SECTION
========================================= */

.value-section {
    max-width: none !important;
    padding:
        110px max(30px, 8vw) !important;
    background: #ffffff;
}

.value-points {
    max-width: 1100px;
    margin: 0 auto !important;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.value-point {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 25px;
    border: 1px solid #e8edf4;
    border-radius: 16px;
    background: #ffffff;
    box-shadow:
        0 8px 25px
        rgba(15, 23, 42, 0.04);
}

.value-point-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
}

.blue-icon {
    color: #2563eb;
    background: #eaf2ff;
}

.purple-icon {
    color: #7c3aed;
    background: #f3eaff;
}

.cyan-icon {
    color: #0891b2;
    background: #e5faff;
}

.value-point h3 {
    margin: 0 0 7px;
    color: #243b59;
    font-size: 18px;
}

.value-point p {
    margin: 0 !important;
    color: #71829a;
    font-size: 14px !important;
    line-height: 1.6;
}


/* =========================================
   FEATURES SECTION
========================================= */

.features-section {
    max-width: none !important;
    padding:
        110px max(30px, 8vw) !important;
    background:
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #f5f3ff 100%
        );
}

.feature-grid {
    max-width: 1100px;
    margin: 0 auto !important;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    position: relative;
    min-height: 330px;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #e5ebf3;
    background: #ffffff;
    overflow: hidden;
    box-shadow:
        0 15px 40px
        rgba(26, 45, 78, 0.06);
}

.feature-number {
    position: absolute;
    top: 23px;
    right: 25px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 800;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border-radius: 14px;
    font-size: 22px;
    font-weight: 700;
}

.feature-card-blue .feature-icon {
    color: #2563eb;
    background: #eaf2ff;
}

.feature-card-purple .feature-icon {
    color: #7c3aed;
    background: #f2eaff;
}

.feature-card-cyan .feature-icon {
    color: #0891b2;
    background: #e6fbff;
}

.feature-card h3 {
    margin: 0 0 12px;
    color: #24344d;
    font-size: 23px;
}

.feature-card p {
    margin: 0 !important;
    color: #6b7d94;
    font-size: 15px !important;
    line-height: 1.7;
}

.feature-link {
    position: absolute;
    bottom: 28px;
    left: 30px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
}

.feature-card-purple .feature-link {
    color: #7c3aed;
}

.feature-card-cyan .feature-link {
    color: #0891b2;
}


/* =========================================
   DASHBOARD PREVIEW
========================================= */

.dashboard-preview-section {
    max-width: none !important;
    padding:
        110px max(30px, 8vw) !important;
    background: #ffffff;
}

.dashboard-preview-window {
    max-width: 1180px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #dce5f0;
    border-radius: 22px;
    background: #f6f8fc;
    box-shadow:
        0 30px 70px
        rgba(30, 49, 80, 0.10);
}

.preview-window-bar {
    min-height: 56px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 22px;
    background: #ffffff;
    border-bottom: 1px solid #e6ebf2;
}

.preview-window-dots {
    display: flex;
    gap: 6px;
}

.preview-window-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d5dfec;
}

.preview-window-title {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.preview-live-badge {
    justify-self: end;
    padding: 7px 10px;
    border-radius: 999px;
    color: #087443;
    background: #ecfdf3;
    font-size: 9px;
    font-weight: 800;
}

.preview-dashboard-layout {
    display: grid;
    grid-template-columns: 185px 1fr;
    min-height: 560px;
}

.preview-sidebar {
    padding: 26px 16px;
    background:
        linear-gradient(
            180deg,
            #14213d,
            #203b68
        );
}

.preview-sidebar-logo {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    border-radius: 12px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #3b82f6,
            #7c3aed
        );
    font-weight: 800;
    box-shadow:
        0 8px 20px
        rgba(37, 99, 235, 0.25);
}

.preview-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border-radius: 9px;
    color: #c8d4e5;
    font-size: 11px;
    font-weight: 700;
}

.preview-menu-item.active {
    color: #ffffff;
    background: rgba(69, 120, 198, 0.28);
}

.preview-menu-icon {
    width: 18px;
    text-align: center;
}

.preview-main {
    padding: 38px;
    background: #f7f9fc;
}

.preview-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.preview-dashboard-label {
    color: #2563eb;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.preview-dashboard-header h3 {
    margin: 5px 0 0;
    color: #1c3557;
    font-size: 26px;
}

.preview-status {
    padding: 8px 11px;
    border-radius: 999px;
    color: #087443;
    background: #ecfdf3;
    font-size: 9px;
    font-weight: 800;
}

.dashboard-preview-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 22px;
}

.dashboard-summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 96px;
    padding: 16px;
    border: 1px solid #e1e8f0;
    border-radius: 13px;
    background: #ffffff;
    box-shadow:
        0 7px 20px
        rgba(20, 33, 61, 0.04);
}

.summary-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 11px;
    font-weight: 800;
}

.products-summary .summary-icon {
    color: #2563eb;
    background: #eaf2ff;
}

.stock-summary .summary-icon {
    color: #16a34a;
    background: #ecfdf3;
}

.low-stock-summary .summary-icon {
    color: #d97706;
    background: #fff7ed;
}

.dashboard-summary-card span {
    display: block;
    margin-bottom: 4px;
    color: #74849a;
    font-size: 9px;
}

.dashboard-summary-card strong {
    color: #193354;
    font-size: 25px;
    line-height: 1;
}

.preview-products-card {
    padding: 20px;
    border: 1px solid #e1e8f0;
    border-radius: 14px;
    background: #ffffff;
}

.preview-products-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.preview-products-heading h3 {
    margin: 0 0 3px;
    color: #243b59;
    font-size: 16px;
}

.preview-products-heading p {
    margin: 0;
    color: #8b99aa;
    font-size: 9px;
}

.preview-product-count {
    padding: 7px 9px;
    border-radius: 999px;
    background: #f3f6fa;
    color: #718096;
    font-size: 8px;
    font-weight: 700;
}

.preview-table-wrapper {
    overflow-x: auto;
}

.preview-products-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.preview-products-table th {
    padding: 10px;
    text-align: left;
    background: #f7f9fc;
    color: #708096;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.preview-products-table td {
    padding: 13px 10px;
    border-bottom: 1px solid #edf1f5;
    color: #53677f;
    font-size: 9px;
}

.preview-status-badge {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 7px;
    font-weight: 800;
}

.preview-status-badge.in-stock {
    color: #087443;
    background: #ecfdf3;
}

.preview-status-badge.low-stock {
    color: #b45309;
    background: #fff7ed;
}


/* =========================================
   HOW IT WORKS
========================================= */

.how-it-works-section {
    max-width: none !important;
    padding:
        110px max(30px, 8vw) !important;
    background:
        linear-gradient(
            180deg,
            #f8fbff,
            #f4f2ff
        );
}

.steps-grid {
    max-width: 1050px;
    margin: 0 auto !important;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step-card {
    position: relative;
    padding: 30px;
    border: 1px solid #e1e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow:
        0 10px 30px
        rgba(20, 33, 61, 0.04);
}

.step-number {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 12px;
    color: #2563eb;
    background: #eaf2ff;
    font-size: 12px;
    font-weight: 800;
}

.step-line {
    width: 35px;
    height: 2px;
    margin-bottom: 20px;
    background:
        linear-gradient(
            90deg,
            #2563eb,
            #7c3aed
        );
}

.step-card h3 {
    margin: 0 0 10px;
    color: #243b59;
    font-size: 19px;
}

.step-card p {
    margin: 0 !important;
    color: #71829a;
    font-size: 14px !important;
    line-height: 1.7;
}


/* =========================================
   FINAL CTA
========================================= */

.final-cta-section {
    position: relative;
    max-width: none !important;
    padding:
        110px max(30px, 8vw) !important;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #172d52,
            #293c79 55%,
            #52348d
        );
}

.cta-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cta-glow-one {
    width: 400px;
    height: 400px;
    top: -260px;
    right: 5%;
    background: rgba(96, 165, 250, 0.15);
}

.cta-glow-two {
    width: 350px;
    height: 350px;
    bottom: -250px;
    left: 0;
    background: rgba(167, 139, 250, 0.12);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.cta-eyebrow {
    color: #a9c9ff;
}

.cta-content h2 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.cta-content h2 span {
    background:
        linear-gradient(
            100deg,
            #60a5fa,
            #c4b5fd
        );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-content p {
    max-width: 650px !important;
    margin: 0 auto 28px !important;
    color: #c9d5e8;
    font-size: 16px !important;
    line-height: 1.7;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 54px;
    padding: 0 26px;
    border-radius: 13px;
    color: #1c2f50;
    background: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    box-shadow:
        0 14px 30px
        rgba(0, 0, 0, 0.15);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.cta-button:hover {
    color: #1c2f50;
    transform: translateY(-2px);
    box-shadow:
        0 18px 35px
        rgba(0, 0, 0, 0.20);
}


/* =========================================
   FOOTER
========================================= */

.homepage-footer {
    max-width: none !important;
    padding:
        55px max(30px, 8vw) 25px !important;
    background: #ffffff;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    margin-bottom: 12px;
}

.footer-brand img {
    width: 150px;
}

.footer-inner > p {
    max-width: none !important;
    margin: 0 0 20px !important;
    color: #71829a;
    font-size: 14px !important;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 30px !important;
}

.footer-links a {
    color: #52657e;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.footer-links a:hover {
    color: #2563eb;
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid #edf1f5;
}

.footer-bottom p {
    max-width: none !important;
    margin: 0 !important;
    color: #94a3b8;
    font-size: 11px !important;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 1100px) {

    .homepage-hero {
        grid-template-columns:
            minmax(0, 0.95fr)
            minmax(420px, 1.05fr);

        gap: 40px;
    }

    .homepage-hero h1 {
        font-size: clamp(43px, 5vw, 65px);
    }

    .hero-inventory-visual {
        max-width: 620px;
    }

}


/* =========================================
   TABLET / MOBILE
========================================= */

@media (max-width: 768px) {

    .navbar {
        padding: 15px 20px;
    }

    .brand img {
        width: 125px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }


    /* Homepage Hero */

    .homepage-hero {
        min-height: auto;
        padding:
            75px 20px 80px;

        display: flex;
        flex-direction: column;

        gap: 50px;

        text-align: center;
    }

    .homepage-hero .hero-content {
        max-width: 680px;
        margin: 0 auto;
    }

    .hero-eyebrow {
        margin-right: auto;
        margin-left: auto;
    }

    .homepage-hero h1 {
        max-width: 650px;
        margin-right: auto;
        margin-left: auto;
        font-size: clamp(40px, 9vw, 62px);
        letter-spacing: -2px;
    }

    .homepage-hero .hero-subtitle {
        margin-right: auto;
        margin-left: auto;
        font-size: 16px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-inventory-visual {
        width: 100%;
        max-width: 680px;
        margin: 0 auto;
    }

    .hero-floating-note {
        right: -5px;
        bottom: -14px;
    }


    /* Landing defaults */

    header {
        padding: 65px 20px 60px;
    }

    header h1 {
        font-size: 38px;
    }

    header h2 {
        font-size: 28px;
    }

    header p {
        font-size: 17px;
    }

    body > section:not(.dashboard-card) {
        padding: 60px 20px;
    }

    body > section h2 {
        font-size: 27px;
    }

    header a {
        display: block;
        margin: 10px auto;
        max-width: 260px;
    }

    header button {
        width: 100%;
    }


    /* Homepage Sections */

    .value-section,
    .features-section,
    .dashboard-preview-section,
    .how-it-works-section,
    .final-cta-section {
        padding:
            80px 20px !important;
    }

    .value-points,
    .feature-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .value-point {
        padding: 22px;
    }

    .feature-card {
        min-height: 300px;
    }

    .dashboard-preview-window {
        border-radius: 16px;
    }

    .preview-dashboard-layout {
        grid-template-columns: 90px 1fr;
    }

    .preview-sidebar {
        padding: 20px 10px;
    }

    .preview-sidebar-logo {
        width: 36px;
        height: 36px;
        margin-bottom: 22px;
    }

    .preview-menu-item {
        justify-content: center;
        padding: 10px 5px;
    }

    .preview-menu-item {
        font-size: 0;
    }

    .preview-menu-icon {
        font-size: 13px;
    }

    .preview-main {
        padding: 25px;
    }

    .dashboard-preview-summary {
        gap: 10px;
    }


    /* Dashboard */

    .dashboard-container {
        padding: 35px 15px 50px;
    }

    .dashboard-header {
        padding-bottom: 25px;
    }

    .dashboard-header h1 {
        font-size: 28px;
    }

    .dashboard-card {
        padding: 24px 20px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-button,
    .cancel-edit-button {
        width: 100%;
    }

    .products-card-header {
        flex-direction: column;
        gap: 15px;
    }

    .products-table-wrapper {
        margin-left: -20px;
        width: calc(100% + 40px);
    }

    #products-table th,
    #products-table td {
        padding: 12px;
        font-size: 13px;
    }

    #products-table .edit-button,
    #products-table .delete-button {
        padding: 7px 10px;
    }

}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 480px) {

    .navbar {
        padding: 13px 15px;
    }

    .brand img {
        width: 112px;
    }

    .mobile-nav-links {
        right: 0;
        width: 215px;
    }


    /* Hero */

    .homepage-hero {
        padding:
            60px 15px 65px;
        gap: 38px;
    }

    .hero-eyebrow {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .homepage-hero h1 {
        font-size: 38px;
        letter-spacing: -1.5px;
    }

    .homepage-hero .hero-subtitle {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-primary-button,
    .hero-secondary-button {
        width: 100%;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 9px;
        font-size: 12px;
    }

    .inventory-card-top {
        grid-template-columns: 1fr auto;
        padding: 0 14px;
    }

    .inventory-card-title {
        display: none;
    }

    .inventory-card-body {
        padding: 20px 16px;
    }

    .inventory-card-heading h2 {
        font-size: 20px;
    }

    .inventory-summary-grid {
        grid-template-columns: 1fr;
    }

    .inventory-summary-card {
        min-height: auto;
    }

    .inventory-status-panel {
        padding: 14px;
    }

    .inventory-status-heading {
        align-items: flex-start;
    }

    .inventory-status-row {
        align-items: flex-start;
    }

    .inventory-stock-badge {
        margin-top: 2px;
    }

    .hero-floating-note {
        position: relative;
        right: auto;
        bottom: auto;
        width: fit-content;
        max-width: 100%;
        margin: 14px auto 0;
    }


    /* Existing responsive styles */

    header {
        padding: 55px 15px 50px;
    }

    header h1 {
        font-size: 32px;
    }

    header h2 {
        font-size: 24px;
    }

    header p {
        font-size: 16px;
    }

    body > section:not(.dashboard-card) {
        padding: 50px 15px;
    }

    body > section h2 {
        font-size: 24px;
    }

    .dashboard-container {
        padding: 30px 12px 45px;
    }

    .dashboard-header h1 {
        font-size: 25px;
    }

    .dashboard-user-message {
        font-size: 14px;
    }

    .dashboard-card {
        padding: 22px 16px;
    }

    .card-header h2 {
        font-size: 21px;
    }

    .form-group input {
        padding: 12px;
    }

    #products-table {
        min-width: 680px;
    }

}