/* ==============================
   StockSimple public website
   ============================== */

:root {
    --dark-green: #123f37;
    --green: #2d7a69;
    --green-hover: #236052;
    --light-green: #e7f2ef;
    --page-background: #f5f8f7;
    --white: #ffffff;
    --heading: #173f38;
    --text: #5b6865;
    --border: #dce6e3;
    --yellow: #8a5a00;
    --red: #9a3030;
    --shadow: 0 12px 35px rgba(18, 63, 55, 0.08);
    --large-shadow: 0 24px 60px rgba(18, 63, 55, 0.13);
}


/* Basic page setup */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--heading);
    background-color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
}

button {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--heading);
    line-height: 1.2;
}

p {
    color: var(--text);
}


/* Header */

.navbar {
    position: sticky;
    z-index: 100;
    top: 0;
    background-color: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
}

.navbar-container {
    width: min(1180px, calc(100% - 48px));
    min-height: 94px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}


/* Larger logo */

.navbar-logo {
    display: block;
    width: 270px;
    height: 66px;
    object-fit: contain;
    object-position: left center;
}


/* Navigation links */

.navbar-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 27px;
}

.navbar-links a {
    color: #3f504c;
    font-size: 0.92rem;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}

.navbar-links a:hover {
    color: var(--green);
}

.navbar-links .button {
    min-height: 44px;
    padding: 9px 19px;
    color: var(--white);
}

.navbar-links .button:hover {
    color: var(--white);
}


/* Hamburger button */

.menu-button {
    display: none;
    width: 46px;
    height: 44px;
    padding: 0;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.menu-line {
    display: block;
    width: 23px;
    height: 3px;
    background-color: var(--heading);
    border-radius: 2px;
    transition: 0.2s ease;
}

.menu-button.is-open .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-button.is-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-button.is-open .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* General section styling */

section {
    padding: 95px 24px;
}

section > div {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.section-label {
    margin-bottom: 12px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;
}

.section-description {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.02rem;
}

h1 {
    margin-bottom: 22px;
    font-size: clamp(3rem, 6vw, 4.7rem);
    letter-spacing: -0.04em;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    letter-spacing: -0.03em;
    text-align: center;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}


/* Buttons */

.button {
    display: inline-flex;
    min-height: 50px;
    padding: 12px 25px;

    align-items: center;
    justify-content: center;

    color: var(--white);
    background-color: var(--green);
    border: 1px solid var(--green);
    border-radius: 8px;

    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: 0.2s ease;
}

.button:hover {
    background-color: var(--green-hover);
    border-color: var(--green-hover);
    transform: translateY(-2px);
}

.secondary-button {
    color: var(--green);
    background-color: var(--white);
    border-color: #afccc5;
}

.secondary-button:hover {
    color: var(--green-hover);
    background-color: var(--light-green);
    border-color: var(--green);
}


/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: 115px 24px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(69, 161, 140, 0.2),
            transparent 31%
        ),
        linear-gradient(
            135deg,
            #fbfdfc 0%,
            #edf6f3 100%
        );
    text-align: center;
}

.hero::before {
    position: absolute;
    width: 400px;
    height: 400px;
    top: -230px;
    left: -170px;
    background-color: rgba(45, 122, 105, 0.07);
    border-radius: 50%;
    content: "";
}

.hero > div {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.software-name {
    margin-bottom: 15px;
    color: var(--green);
    font-size: 0.83rem;
    font-weight: bold;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 850px;
    margin-right: auto;
    margin-left: auto;
}

.hero > div > p:not(.software-name) {
    max-width: 680px;
    margin: 0 auto 32px;
    font-size: 1.14rem;
}

.hero-buttons {
    margin-bottom: 29px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 25px;
    color: #49605b;
    font-size: 0.88rem;
    font-weight: bold;
}

.hero-benefits span::before {
    display: inline-grid;
    width: 18px;
    height: 18px;
    margin-right: 7px;
    place-items: center;
    color: var(--green);
    background-color: #dbeee9;
    border-radius: 50%;
    content: "✓";
    font-size: 0.7rem;
}


/* Problem section */

.problem {
    background-color: var(--white);
    text-align: center;
}

.problem > div {
    max-width: 840px;
}

.problem p:not(.section-label) {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.07rem;
}


/* Features */

.features {
    background-color: var(--page-background);
}

.features-container {
    margin-top: 45px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 23px;
}

.feature {
    position: relative;
    min-height: 310px;
    padding: 34px;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.featured {
    color: var(--white);
    background-color: var(--dark-green);
    border-color: var(--dark-green);
    transform: translateY(-10px);
}

.featured h3,
.featured p,
.featured .feature-number {
    color: var(--white);
}

.featured p,
.featured .feature-number {
    opacity: 0.8;
}

.feature-number {
    position: absolute;
    top: 27px;
    right: 29px;
    color: #7b8d88;
    font-size: 0.78rem;
    font-weight: bold;
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 40px;

    display: grid;
    place-items: center;

    color: var(--green);
    background-color: var(--light-green);
    border-radius: 13px;
    font-size: 1.3rem;
    font-weight: bold;
}

.featured .feature-icon {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.14);
}

.feature p {
    margin-bottom: 0;
}


/* Dashboard Preview */

.dashboard-preview {
    background-color: var(--white);
}

.dashboard-description {
    max-width: 700px;
    margin: 0 auto 42px;
    text-align: center;
    font-size: 1.04rem;
}

.summary-cards {
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.summary-card {
    padding: 22px;

    display: flex;
    align-items: center;
    gap: 16px;

    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.summary-icon {
    width: 45px;
    height: 45px;

    display: grid;
    flex-shrink: 0;
    place-items: center;

    color: var(--green);
    background-color: var(--light-green);
    border-radius: 11px;
    font-weight: bold;
}

.warning-icon {
    color: var(--yellow);
    background-color: #fff1d5;
}

.update-icon {
    color: #365f9b;
    background-color: #e7effb;
}

.summary-card h3 {
    margin-bottom: 3px;
    color: var(--text);
    font-size: 0.82rem;
}

.summary-number {
    margin: 0;
    color: var(--heading);
    font-size: 1.7rem;
    font-weight: bold;
    line-height: 1.1;
}


/* Product Preview Table */

.product-table-container {
    width: 100%;
    overflow-x: auto;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.table-heading {
    padding: 24px 27px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-bottom: 1px solid var(--border);
}

.table-heading h3 {
    margin-bottom: 3px;
}

.table-heading p {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.table-heading > span {
    padding: 7px 11px;
    color: var(--text);
    background-color: var(--page-background);
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: bold;
    white-space: nowrap;
}

.product-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    text-align: left;
}

.product-table th,
.product-table td {
    padding: 17px 27px;
    border-bottom: 1px solid #e3ebe9;
}

.product-table th {
    color: #4c615c;
    background-color: #f6faf8;
    font-size: 0.8rem;
    white-space: nowrap;
}

.product-table td {
    color: #425650;
    font-size: 0.92rem;
}

.product-table tbody tr:last-child td {
    border-bottom: 0;
}

.product-table tbody tr:hover {
    background-color: #fafcfb;
}


/* Product status labels */

.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
}

.in-stock {
    color: #236b4e;
    background-color: #dff2e9;
}

.low-stock {
    color: var(--yellow);
    background-color: #fff0ce;
}

.out-of-stock {
    color: var(--red);
    background-color: #f8dddd;
}


/* How It Works */

.how-it-works {
    background-color: var(--page-background);
    text-align: center;
}

.steps-container {
    position: relative;
    margin-top: 46px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 55px;
}

.steps-container::before {
    position: absolute;
    top: 25px;
    right: 16%;
    left: 16%;
    height: 1px;
    background-color: #bfd6d0;
    content: "";
}

.step {
    position: relative;
}

.step-number {
    position: relative;
    z-index: 1;

    width: 52px;
    height: 52px;
    margin: 0 auto 23px;

    display: grid;
    place-items: center;

    color: var(--white);
    background-color: var(--green);
    border: 7px solid var(--page-background);
    border-radius: 50%;
    font-weight: bold;
}

.step p {
    max-width: 280px;
    margin: 0 auto;
}


/* Call to Action */

.call-to-action {
    padding: 82px 24px;
    background-color: var(--dark-green);
}

.call-to-action > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.call-to-action .section-label {
    color: #86c9ba;
    text-align: left;
}

.call-to-action h2 {
    max-width: 720px;
    margin-bottom: 13px;
    color: var(--white);
    text-align: left;
}

.call-to-action p:not(.section-label) {
    max-width: 650px;
    margin-bottom: 0;
    color: #cae0db;
}

.call-to-action .button {
    min-width: 145px;
    color: var(--dark-green);
    background-color: var(--white);
    border-color: var(--white);
    flex-shrink: 0;
}

.call-to-action .button:hover {
    color: var(--dark-green);
    background-color: var(--light-green);
    border-color: var(--light-green);
}


/* Footer */

footer {
    padding: 33px 24px;
    background-color: #0c302a;
}

.footer-container {
    width: min(1180px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
}

.footer-logo img {
    display: block;
    width: 170px;
    height: 42px;
    object-fit: contain;
    object-position: left center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 23px;
}

.footer-links a {
    color: #c8ddd8;
    font-size: 0.85rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--white);
}

footer p {
    margin: 0;
    color: #98b5ae;
    font-size: 0.78rem;
}


/* Tablet and Mobile */

@media (max-width: 820px) {
    .navbar-container {
        position: relative;
        min-height: 78px;
    }

    .navbar-logo {
        width: 220px;
        height: 56px;
    }

    .menu-button {
        display: flex;
    }

    .navbar-links {
        position: absolute;
        top: calc(100% - 1px);
        right: 0;
        left: 0;

        display: none;
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;

        background-color: var(--white);
        border: 1px solid var(--border);
        border-radius: 0 0 13px 13px;
        box-shadow: var(--shadow);
    }

    .navbar-links.is-open {
        display: flex;
    }

    .navbar-links a {
        padding: 12px 14px;
        border-radius: 7px;
    }

    .navbar-links a:hover {
        background-color: var(--page-background);
    }

    .navbar-links .button {
        margin-top: 4px;
        text-align: center;
    }

    section {
        padding: 72px 20px;
    }

    .hero {
        padding: 86px 20px;
    }

    .features-container,
    .summary-cards,
    .steps-container {
        grid-template-columns: 1fr;
    }

    .featured {
        transform: none;
    }

    .feature {
        min-height: 0;
    }

    .steps-container {
        gap: 35px;
    }

    .steps-container::before {
        display: none;
    }

    .call-to-action > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 28px;
    }

    .call-to-action .button {
        min-width: 180px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}


/* Small Mobile Screens */

@media (max-width: 500px) {
    .navbar-container {
        width: calc(100% - 30px);
        min-height: 70px;
    }

    .navbar-logo {
        width: 180px;
        height: 47px;
    }

    section {
        padding: 58px 16px;
    }

    h1 {
        font-size: 2.6rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 67px 16px;
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-buttons .button {
        width: 100%;
    }

    .hero-benefits {
        align-items: center;
        flex-direction: column;
        gap: 8px;
    }

    .feature {
        padding: 28px;
    }

    .summary-card {
        padding: 18px;
    }

    .table-heading {
        padding: 20px;
        align-items: flex-start;
        flex-direction: column;
    }

    .product-table th,
    .product-table td {
        padding: 14px 18px;
    }

    .call-to-action {
        padding: 64px 16px;
    }

    .call-to-action .button {
        width: 100%;
    }

    footer {
        padding: 30px 16px;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}