/* =========================================================
   MYPROFITA — PUBLIC WEBSITE
   Main stylesheet
   ========================================================= */

:root {
    --green-dark: #00513e;
    --green: #00bc7d;
    --green-mid: #318f72;
    --green-light: #67c2a4;
    --green-soft: #7ac9b0;

    --background: #f8faf8;
    --background-soft: #f1fbf9;
    --white: #ffffff;

    --text: #0f172b;
    --text-muted: #64748b;
    --border: #dce8e3;

    --shadow-sm: 0 4px 16px rgba(15, 23, 43, 0.06);
    --shadow-md: 0 12px 35px rgba(15, 23, 43, 0.09);
    --shadow-lg: 0 24px 60px rgba(15, 23, 43, 0.12);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;

    --container: 1180px;
}

/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================================
   GLOBAL
   ========================================================= */

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.section-label {
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 52px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading h2,
.intro-grid h2,
.solution-box h2,
.cta-box h2 {
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 18px;
}

.section-heading p,
.intro-grid p,
.solution-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 750;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--green-dark);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 81, 62, 0.16);
}

.button-primary:hover {
    background: #003f30;
    box-shadow: 0 12px 25px rgba(0, 81, 62, 0.22);
}

.button-secondary {
    background: var(--white);
    color: var(--green-dark);
    border: 1px solid var(--border);
}

.button-secondary:hover {
    border-color: var(--green-light);
    box-shadow: var(--shadow-sm);
}

.button-light {
    background: var(--white);
    color: var(--green-dark);
}

.button-large {
    min-height: 54px;
    padding-inline: 25px;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 250, 248, 0.94);
    border-bottom: 1px solid rgba(220, 232, 227, 0.8);
    backdrop-filter: blur(12px);
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    color: var(--green-dark);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--green-dark);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.login-link {
    color: var(--green-dark);
    font-size: 0.9rem;
    font-weight: 750;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 90px;
    background:
        radial-gradient(
            circle at 82% 25%,
            rgba(103, 194, 164, 0.15),
            transparent 30%
        ),
        var(--background);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 70px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    margin-bottom: 22px;

    background: var(--background-soft);
    border: 1px solid #d4eee5;
    border-radius: 999px;

    color: var(--green-dark);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.1em;
}

.hero h1 {
    max-width: 650px;
    color: var(--text);
    font-size: clamp(3rem, 6vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    margin-bottom: 26px;
}

.hero h1 span {
    display: block;
    color: var(--green-dark);
}

.hero-text {
    max-width: 650px;
    color: var(--text-muted);
    font-size: 1.12rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 30px;
}

.hero-note {
    margin-top: 16px;
    color: #82918c;
    font-size: 0.84rem;
}

/* =========================================================
   PROFIT HIGHLIGHTS
   ========================================================= */

.profit-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.profit-highlights span {
    padding: 8px 12px;
    border: 1px solid #d6eae3;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);

    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 750;
}

/* =========================================================
   PRODUCT PREVIEW
   ========================================================= */

.product-visual {
    position: relative;
}

.browser-window {
    overflow: hidden;
    background: var(--white);
    border: 1px solid #dce9e4;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.browser-top {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 18px;
    background: #f3f7f5;
    border-bottom: 1px solid #e1ebe7;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c8d5d0;
}

.browser-address {
    flex: 1;
    max-width: 240px;
    height: 26px;
    display: flex;
    align-items: center;
    padding-left: 12px;
    background: var(--white);
    border: 1px solid #dce6e2;
    border-radius: 6px;
    color: #91a09b;
    font-size: 0.68rem;
}

.dashboard-preview {
    min-height: 480px;
    display: grid;
    grid-template-columns: 145px 1fr;
}

.preview-sidebar {
    padding: 24px 13px;
    background: #f7faf9;
    border-right: 1px solid #e3ebe8;
}

.preview-logo {
    padding: 0 8px 22px;
    color: var(--green-dark);
    font-size: 0.9rem;
    font-weight: 900;
}

.preview-menu {
    padding: 10px 9px;
    margin-bottom: 4px;
    border-radius: 7px;
    color: #81908b;
    font-size: 0.69rem;
    font-weight: 650;
}

.preview-menu.active {
    background: #e2f4ee;
    color: var(--green-dark);
}

.preview-main {
    padding: 28px;
    background: #ffffff;
}

.preview-heading small,
.preview-card small {
    color: #91a09b;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.preview-heading h3 {
    margin-top: 5px;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.preview-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    margin-top: 22px;
}

.preview-card {
    min-height: 145px;
    padding: 17px;
    border: 1px solid #e1ebe7;
    border-radius: 12px;
    background: #fbfdfc;
}

.preview-card strong {
    display: block;
    margin-top: 9px;
    color: var(--green-dark);
    font-size: 1rem;
}

.mini-chart {
    height: 35px;
    margin-top: 17px;
    border-bottom: 2px solid var(--green);
    border-radius: 50% 50% 0 0;
    transform: skewY(-5deg);
}

.mini-bars {
    height: 42px;
    display: flex;
    align-items: end;
    gap: 5px;
    margin-top: 12px;
}

.mini-bars i {
    display: block;
    width: 14px;
    border-radius: 4px 4px 0 0;
    background: var(--green-light);
}

.mini-bars i:nth-child(1) {
    height: 40%;
}

.mini-bars i:nth-child(2) {
    height: 65%;
}

.mini-bars i:nth-child(3) {
    height: 52%;
}

.mini-bars i:nth-child(4) {
    height: 85%;
}

.profit-periods {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
}

.period-label {
    width: 100%;
    margin-bottom: 3px;
    color: #8b9994;
    font-size: 0.62rem;
    font-weight: 750;
}

.period {
    padding: 6px 8px;
    border: 1px solid #dce8e3;
    border-radius: 6px;
    background: #ffffff;
    color: #74827e;
    font-size: 0.6rem;
}

.period.active {
    border-color: #a9daca;
    background: #e8f7f1;
    color: var(--green-dark);
    font-weight: 750;
}

.preview-table {
    margin-top: 18px;
    border: 1px solid #e5ece9;
    border-radius: 10px;
    overflow: hidden;
}

.table-title {
    padding: 11px 13px;
    border-bottom: 1px solid #e8efec;
    color: #687772;
    font-size: 0.68rem;
    font-weight: 800;
}

.table-row {
    display: flex;
    justify-content: space-between;
    padding: 9px 13px;
    border-bottom: 1px solid #edf2f0;
    color: #83908c;
    font-size: 0.62rem;
}

.table-row:last-child {
    border-bottom: 0;
}

/* =========================================================
   INTRO
   ========================================================= */

.intro-section {
    padding: 105px 0;
    background: var(--white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 90px;
    align-items: start;
}

/* =========================================================
   FEATURES
   ========================================================= */

.features-section {
    padding: 105px 0;
    background: var(--background);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    padding: 30px;
    min-height: 245px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 27px;

    border-radius: 10px;
    background: #e5f6ef;
    color: var(--green-dark);

    font-size: 0.72rem;
    font-weight: 900;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 1.08rem;
    letter-spacing: -0.015em;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* =========================================================
   WORKFLOW
   ========================================================= */

.workflow-section {
    padding: 105px 0;
    background: var(--white);
}

.workflow-grid {
    display: grid;
    grid-template-columns: 1fr 70px 1fr 70px 1fr;
    align-items: center;
}

.workflow-step {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;

    border-radius: 50%;
    background: var(--green-dark);
    color: var(--white);

    font-size: 0.75rem;
    font-weight: 850;
}

.workflow-step h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.workflow-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.workflow-line {
    height: 1px;
    background: #cfe2db;
}

/* =========================================================
   SOLUTIONS
   ========================================================= */

.solutions-section {
    padding: 105px 0;
    background: var(--background);
}

.solution-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;

    padding: 60px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.solution-list {
    display: grid;
    gap: 0;
}

.solution-list > div {
    padding: 20px 0;
    border-bottom: 1px solid #e5eeeb;
}

.solution-list > div:first-child {
    padding-top: 0;
}

.solution-list > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.solution-list strong {
    display: block;
    margin-bottom: 5px;
    color: var(--green-dark);
    font-size: 0.96rem;
}

.solution-list span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* =========================================================
   CTA
   ========================================================= */

.cta-section {
    padding: 105px 0;
    background: var(--white);
}

.cta-box {
    padding: 75px 40px;
    text-align: center;

    background: var(--green-dark);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.cta-box .section-label {
    color: #9ce1c9;
}

.cta-box h2 {
    color: var(--white);
}

.cta-box p {
    max-width: 580px;
    margin: 0 auto 30px;
    color: #c6e3da;
    font-size: 1rem;
    line-height: 1.8;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 65px 0 25px;
    background: #f2f7f5;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 50px;
    padding-bottom: 55px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 15px;
}

.footer-grid > div:first-child p {
    max-width: 270px;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.7;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h4 {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 0.85rem;
}

.footer-column a {
    color: var(--text-muted);
    font-size: 0.83rem;
}

.footer-column a:hover {
    color: var(--green-dark);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid #dce8e3;

    color: #87958f;
    font-size: 0.76rem;
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .nav-links {
        gap: 17px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .hero-content {
        max-width: 760px;
    }

    .product-visual {
        max-width: 760px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .intro-grid,
    .solution-box {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .workflow-line {
        width: 1px;
        height: 35px;
        margin: 0 auto;
    }

    .solution-box {
        padding: 45px;
    }
}

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .container {
        width: min(100% - 28px, var(--container));
    }

    .navbar {
        min-height: 68px;
        flex-wrap: wrap;
        padding: 12px 0;
        gap: 13px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 17px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .nav-links a {
        white-space: nowrap;
        font-size: 0.78rem;
    }

    .nav-actions {
        gap: 9px;
    }

    .login-link {
        font-size: 0.78rem;
    }

    .nav-actions .button {
        min-height: 39px;
        padding-inline: 13px;
        font-size: 0.78rem;
    }

    .hero {
        padding: 60px 0 65px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .browser-window {
        border-radius: 18px;
    }

    .dashboard-preview {
        grid-template-columns: 90px 1fr;
        min-height: 400px;
    }

    .preview-sidebar {
        padding: 18px 7px;
    }

    .preview-logo {
        font-size: 0.7rem;
        padding-inline: 5px;
    }

    .preview-menu {
        padding: 8px 5px;
        font-size: 0.58rem;
    }

    .preview-main {
        padding: 17px;
    }

    .preview-heading h3 {
        font-size: 0.9rem;
    }

    .preview-card {
        min-height: 125px;
        padding: 12px;
    }

    .preview-card strong {
        font-size: 0.78rem;
    }

    .preview-cards {
        gap: 7px;
    }

    .period {
        font-size: 0.53rem;
        padding: 5px 6px;
    }

    .intro-section,
    .features-section,
    .workflow-section,
    .solutions-section,
    .cta-section {
        padding: 75px 0;
    }

    .section-heading h2,
    .intro-grid h2,
    .solution-box h2,
    .cta-box h2 {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: auto;
    }

    .solution-box {
        padding: 30px 24px;
        border-radius: 22px;
    }

    .cta-box {
        padding: 55px 22px;
        border-radius: 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px 25px;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 7px;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .nav-links {
        justify-content: flex-start;
    }

    .dashboard-preview {
        grid-template-columns: 76px 1fr;
    }

    .preview-main {
        padding: 12px;
    }

    .preview-cards {
        grid-template-columns: 1fr;
    }

    .preview-card {
        min-height: 100px;
    }

    .profit-highlights span {
        font-size: 0.7rem;
    }
}