/* =========================================================
   LOGIC APPS — ANCO SOLUTIONS
   Main Stylesheet
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {

    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-dark: #0f172a;

    --text: #0f172a;
    --text-light: #64748b;
    --text-white: #ffffff;

    --accent: #2563eb;
    --accent-dark: #1d4ed8;

    --border: #e2e8f0;

    --success: #16a34a;

    --radius: 18px;
    --radius-small: 12px;

    --shadow:
        0 10px 30px rgba(15, 23, 42, 0.08);

    --shadow-hover:
        0 18px 45px rgba(15, 23, 42, 0.13);

    --container: 1180px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background: var(--bg);
    color: var(--text);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}


img {
    max-width: 100%;
    display: block;
}


a {
    color: inherit;
    text-decoration: none;
}


button {
    font: inherit;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {

    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {

    position: sticky;
    top: 0;
    z-index: 1000;

    background:
        rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(14px);

    border-bottom:
        1px solid var(--border);
}


.header-inner {

    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {

    display: flex;
    align-items: center;

    gap: 11px;

    white-space: nowrap;
}


.logo-mark {

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background:
        var(--surface-dark);

    color:
        var(--text-white);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: -0.5px;
}


.logo-text {

    font-size: 15px;

    letter-spacing: 1.2px;

    color: var(--text);
}


.logo-text strong {
    font-weight: 800;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.main-nav {

    display: flex;
    align-items: center;

    gap: 28px;
}


.main-nav > a {

    font-size: 14px;
    font-weight: 600;

    color:
        var(--text-light);

    transition:
        color 0.2s ease;
}


.main-nav > a:hover {
    color: var(--text);
}


/* =========================================================
   LANGUAGE SELECTOR
   ========================================================= */

.language-selector {

    position: relative;
}


.language-button {

    display: flex;
    align-items: center;
    gap: 6px;

    padding: 9px 12px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-small);

    background:
        var(--surface);

    color:
        var(--text);

    cursor: pointer;

    font-size: 13px;
    font-weight: 700;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.language-button:hover {

    border-color:
        #cbd5e1;

    box-shadow:
        0 4px 12px
        rgba(15, 23, 42, 0.06);
}


.language-arrow {

    font-size: 14px;

    color:
        var(--text-light);
}


.language-menu {

    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    width: 190px;

    padding: 7px;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-small);

    box-shadow:
        var(--shadow);

    display: none;

    z-index: 2000;
}


.language-menu.open {
    display: block;
}


.language-menu button {

    width: 100%;

    display: block;

    padding: 9px 10px;

    border: 0;

    border-radius: 8px;

    background: transparent;

    color:
        var(--text);

    text-align: left;

    cursor: pointer;

    font-size: 13px;

    transition:
        background 0.2s ease;
}


.language-menu button:hover {

    background:
        #f1f5f9;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {

    padding:
        100px 0 110px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 100%
        );
}


.hero-content {

    display: grid;

    grid-template-columns:
        1.1fr 0.9fr;

    align-items: center;

    gap: 70px;
}


.eyebrow {

    margin-bottom: 15px;

    color:
        var(--accent);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.7px;
}


.hero h1 {

    max-width: 720px;

    margin-bottom: 24px;

    font-size:
        clamp(42px, 6vw, 72px);

    line-height: 1.04;

    letter-spacing: -3px;

    font-weight: 800;
}


.hero-description {

    max-width: 620px;

    margin-bottom: 32px;

    color:
        var(--text-light);

    font-size: 18px;

    line-height: 1.7;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.hero-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}


.btn {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding:
        0 20px;

    border-radius:
        var(--radius-small);

    font-size: 14px;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.btn:hover {

    transform:
        translateY(-2px);
}


.btn-primary {

    background:
        var(--surface-dark);

    color:
        var(--text-white);

    box-shadow:
        0 8px 20px
        rgba(15, 23, 42, 0.15);
}


.btn-primary:hover {

    background:
        #1e293b;
}


.btn-secondary {

    background:
        var(--surface);

    color:
        var(--text);

    border:
        1px solid var(--border);
}


.btn-secondary:hover {

    background:
        #f8fafc;
}


/* =========================================================
   HERO VISUAL
   ========================================================= */

.hero-visual {

    display: flex;

    justify-content: center;
}


.hero-card {

    width: 100%;

    max-width: 420px;

    min-height: 420px;

    padding: 34px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    border-radius:
        28px;

    background:
        var(--surface-dark);

    color:
        var(--text-white);

    box-shadow:
        0 30px 70px
        rgba(15, 23, 42, 0.18);

    overflow: hidden;

    position: relative;
}


.hero-card::before {

    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    right: -100px;
    bottom: -100px;

    border-radius: 50%;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);
}


.hero-card-top {

    display: flex;

    align-items: center;

    gap: 9px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;

    color:
        #cbd5e1;
}


.status-dot {

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        #22c55e;
}


.hero-icon {

    width: 100px;
    height: 100px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 25px;

    background:
        rgba(255, 255, 255, 0.08);

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    font-size: 32px;

    font-weight: 800;

    letter-spacing: -2px;
}


.hero-card h2 {

    position: relative;

    margin-top: auto;
    margin-bottom: 15px;

    font-size: 32px;

    line-height: 1.15;

    letter-spacing: -1px;
}


.hero-card p {

    color:
        #94a3b8;

    font-size: 14px;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-heading {

    max-width: 720px;

    margin-bottom: 50px;
}


.section-heading h2 {

    margin-bottom: 18px;

    font-size:
        clamp(34px, 5vw, 52px);

    line-height: 1.08;

    letter-spacing: -2px;
}


.section-heading > p:last-child {

    color:
        var(--text-light);

    font-size: 17px;

    max-width: 650px;
}


/* =========================================================
   APPLICATIONS
   ========================================================= */

.apps-section {

    padding:
        100px 0;
}


.apps-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;
}


.app-card {

    overflow: hidden;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.app-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        var(--shadow-hover);
}


.app-image {

    min-height: 210px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #e2e8f0,
            #f8fafc
        );
}


.app-placeholder {

    font-size: 25px;

    font-weight: 800;

    letter-spacing: -1px;

    color:
        #475569;
}


.app-content {

    padding: 26px;
}


.app-category {

    display: inline-block;

    margin-bottom: 10px;

    color:
        var(--accent);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.3px;
}


.app-content h3 {

    margin-bottom: 10px;

    font-size: 24px;

    letter-spacing: -0.7px;
}


.app-content p {

    min-height: 75px;

    margin-bottom: 20px;

    color:
        var(--text-light);

    font-size: 14px;

    line-height: 1.65;
}


.app-link {

    color:
        var(--text);

    font-size: 14px;

    font-weight: 800;

    transition:
        color 0.2s ease;
}


.app-link:hover {

    color:
        var(--accent);
}


/* =========================================================
   PLANS / PRICING
   ========================================================= */

.plans-section {

    padding:
        110px 0;

    background:
        #f1f5f9;
}


.product-plans {

    margin-bottom: 80px;
}


.product-heading {

    margin-bottom: 24px;
}


.product-heading h3 {

    margin-top: 4px;

    font-size: 30px;

    letter-spacing: -1px;
}


.plans-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}


.plan-card {

    min-height: 330px;

    display: flex;

    flex-direction: column;

    padding: 26px;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        0 6px 20px
        rgba(15, 23, 42, 0.05);

    position: relative;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.plan-card:hover {

    transform:
        translateY(-4px);

    box-shadow:
        var(--shadow);
}


.plan-card.featured {

    border:
        2px solid var(--accent);

    padding:
        25px;
}


.plan-badge {

    align-self: flex-start;

    margin-bottom: 15px;

    padding:
        5px 9px;

    border-radius: 999px;

    background:
        #eff6ff;

    color:
        var(--accent);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.8px;
}


.plan-card h4 {

    margin-bottom: 10px;

    font-size: 22px;

    letter-spacing: -0.5px;
}


.plan-card p {

    min-height: 60px;

    color:
        var(--text-light);

    font-size: 14px;

    line-height: 1.55;
}


.plan-price {

    margin-top: auto;

    margin-bottom: 20px;

    font-size: 30px;

    font-weight: 800;

    letter-spacing: -1px;
}


.plan-button {

    width: 100%;

    min-height: 46px;

    padding:
        0 15px;

    border:
        0;

    border-radius:
        var(--radius-small);

    background:
        var(--surface-dark);

    color:
        var(--text-white);

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.plan-button:hover {

    background:
        #1e293b;

    transform:
        translateY(-1px);
}


/* =========================================================
   PAYMENT NOTICE
   ========================================================= */

.payment-notice {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    max-width: 650px;

    margin: 20px auto 0;

    padding:
        15px 20px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-small);

    background:
        var(--surface);

    color:
        var(--text-light);

    font-size: 13px;

    text-align: center;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-section {

    padding:
        110px 0;

    background:
        var(--surface);
}


.about-grid {

    display: grid;

    grid-template-columns:
        0.8fr 1.2fr;

    gap: 80px;
}


.about-title h2 {

    font-size:
        clamp(36px, 5vw, 52px);

    line-height: 1.08;

    letter-spacing: -2px;
}


.about-text p {

    margin-bottom: 22px;

    color:
        var(--text-light);

    font-size: 17px;

    line-height: 1.8;
}


.about-text strong {

    color:
        var(--text);
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {

    padding:
        100px 0;
}


.contact-box {

    max-width: 850px;

    padding:
        70px 40px;

    margin: 0 auto;

    text-align: center;

    background:
        var(--surface-dark);

    color:
        var(--text-white);

    border-radius:
        28px;

    box-shadow:
        0 25px 60px
        rgba(15, 23, 42, 0.16);
}


.contact-box .eyebrow {

    color:
        #93c5fd;
}


.contact-box h2 {

    margin-bottom: 18px;

    font-size:
        clamp(34px, 5vw, 50px);

    line-height: 1.1;

    letter-spacing: -2px;
}


.contact-box p {

    max-width: 560px;

    margin:
        0 auto 30px;

    color:
        #94a3b8;

    font-size: 16px;
}


.contact-box .btn-primary {

    background:
        var(--surface);

    color:
        var(--text);
}


.contact-box .btn-primary:hover {

    background:
        #f1f5f9;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {

    padding:
        30px 0;

    background:
        #020617;

    color:
        #94a3b8;

    font-size: 13px;
}


.footer-inner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.footer-inner > div:first-child {

    display: flex;

    align-items: center;

    gap: 8px;
}


.footer-inner strong {

    color:
        var(--text-white);

    letter-spacing: 1px;
}


.footer-inner span {

    color:
        #64748b;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {


    .hero-content {

        grid-template-columns:
            1fr;

        gap: 50px;
    }


    .hero-visual {

        justify-content:
            flex-start;
    }


    .apps-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .plans-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .about-grid {

        grid-template-columns:
            1fr;

        gap: 40px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {


    .container {

        width:
            min(
                calc(100% - 28px),
                var(--container)
            );
    }


    .header-inner {

        min-height: 70px;

        align-items:
            flex-start;

        padding:
            14px 0;
    }


    .main-nav {

        gap: 10px;

        flex-wrap: wrap;

        justify-content:
            flex-end;
    }


    .main-nav > a {

        display: none;
    }


    .language-button {

        min-height: 38px;
    }


    .hero {

        padding:
            70px 0 80px;
    }


    .hero h1 {

        font-size:
            clamp(38px, 12vw, 54px);

        letter-spacing:
            -2px;
    }


    .hero-description {

        font-size:
            16px;
    }


    .hero-buttons {

        flex-direction:
            column;

        align-items:
            stretch;
    }


    .btn {

        width:
            100%;
    }


    .hero-card {

        min-height:
            350px;

        padding:
            28px;
    }


    .apps-section,
    .plans-section,
    .about-section,
    .contact-section {

        padding:
            80px 0;
    }


    .apps-grid {

        grid-template-columns:
            1fr;
    }


    .plans-grid {

        grid-template-columns:
            1fr;
    }


    .plan-card {

        min-height:
            300px;
    }


    .about-text p {

        font-size:
            16px;
    }


    .contact-box {

        padding:
            55px 22px;
    }


    .footer-inner {

        flex-direction:
            column;

        text-align:
            center;
    }


    .language-menu {

        right:
            0;

        width:
            180px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {


    .logo-text {

        font-size:
            13px;
    }


    .logo-mark {

        width:
            36px;

        height:
            36px;
    }


    .hero-card h2 {

        font-size:
            28px;
    }


    .section-heading h2 {

        font-size:
            36px;
    }


    .plan-card {

        padding:
            22px;
    }

}