/* =========================================================
   L-Planner Gantt Page
   ========================================================= */

:root {
    --blue: #075dd8;
    --blue-dark: #082451;
    --text: #10264a;
    --muted: #60718f;
    --line: #dbe6f5;
    --green: #21a65b;
    --danger: #d83a3a;
    --shadow: 0 24px 60px rgba(8, 36, 81, .16);
    --shadow-soft: 0 14px 35px rgba(8, 36, 81, .08);
    --radius-sm: 7px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.5;
}

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

.wrapper {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 74px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .08em;
}

.brand-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 2px solid var(--blue);
    border-radius: 6px;
    color: var(--blue);
    font-size: 14px;
}

.nav {
    display: flex;
    gap: 34px;
    font-size: 14px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    font-weight: 700;
}

.mobile-toggle,
.mobile-actions {
    display: none;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(7, 93, 216, .18);
    transition: .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: var(--blue);
}

.btn-secondary {
    color: var(--blue);
    background: #fff;
    border-color: #cddcf1;
}

.btn-dark {
    color: #fff;
    background: #061a39;
}

.btn-lg {
    height: 56px;
    padding: 0 34px;
}

.site-header .btn {
    height: 42px;
    padding: 0 22px;
}

/* Hero */

.hero {
    padding: 82px 0 88px;
    background:
        radial-gradient(circle at 84% 14%, rgba(7, 93, 216, .14), transparent 32%),
        radial-gradient(circle at 12% 95%, rgba(255, 203, 105, .30), transparent 36%),
        linear-gradient(105deg, #fff 0%, #f7fbff 48%, #e8f3ff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 560px;
    gap: 70px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 720px;
    margin: 0 0 24px;
    color: #092755;
    font-size: 58px;
    line-height: 1.04;
    letter-spacing: -.045em;
}

.hero-copy p {
    max-width: 660px;
    margin: 0 0 32px;
    color: #2d4569;
    font-size: 20px;
}

.cta-row {
    display: flex;
    gap: 18px;
    margin-bottom: 34px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    color: #324d73;
    font-size: 14px;
    font-weight: 800;
}

/* Gantt mockup */

.gantt-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #d7e3f4;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.gantt-topbar {
    height: 58px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.gantt-topbar span {
    padding: 7px 12px;
    color: var(--blue);
    background: #edf5ff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.gantt-shell {
    display: grid;
    grid-template-columns: 190px 1fr;
    min-height: 365px;
}

.gantt-sidebar {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-right: 1px solid var(--line);
    font-size: 13px;
}

.gantt-sidebar small {
    color: #677891;
    padding-left: 10px;
}

.gantt-grid {
    position: relative;
    padding-top: 38px;
    overflow: hidden;
    background:
        repeating-linear-gradient(90deg, #fff 0, #fff 55px, #edf2fa 56px),
        repeating-linear-gradient(0deg, transparent 0, transparent 40px, #edf2fa 41px);
}

.months {
    position: absolute;
    top: 10px;
    left: 22px;
    right: 22px;
    display: flex;
    justify-content: space-between;
    color: #7888a2;
    font-size: 12px;
}

.bar {
    position: absolute;
    height: 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, #126ae4, #6ea7ff);
    box-shadow: 0 2px 8px rgba(7, 93, 216, .25);
}

.green {
    background: linear-gradient(90deg, #15884a, #68c786);
}

.b1 { top: 72px; left: 34px; width: 120px; }
.b2 { top: 110px; left: 125px; width: 200px; }
.b3 { top: 148px; left: 70px; width: 145px; }
.b4 { top: 186px; left: 210px; width: 225px; }
.b5 { top: 224px; left: 195px; width: 135px; }
.b6 { top: 262px; left: 300px; width: 190px; }
.b7 { top: 300px; left: 360px; width: 120px; }
.b8 { top: 338px; left: 420px; width: 135px; }

.dependency {
    position: absolute;
    border-top: 2px solid rgba(7, 93, 216, .45);
    border-right: 2px solid rgba(7, 93, 216, .45);
    width: 52px;
    height: 38px;
}

.d1 { top: 86px; left: 145px; }
.d2 { top: 236px; left: 320px; }

.critical {
    position: absolute;
    top: 158px;
    bottom: 38px;
    left: 390px;
    border-left: 3px solid #e62a2a;
}

/* Problem */

.problem-section {
    padding: 78px 0;
}

.problem-grid {
    display: grid;
    grid-template-columns: .9fr 1fr;
    gap: 70px;
    align-items: start;
}

h2 {
    margin: 0 0 24px;
    color: #092755;
    font-size: 40px;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.problem-section p,
.comparison-grid > div:first-child p {
    margin: 0;
    color: #4b6080;
    font-size: 18px;
}

.problem-list {
    display: grid;
    gap: 18px;
}

.problem-list article {
    padding: 24px 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.problem-list span {
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
}

.problem-list h3 {
    margin: 8px 0;
}

.problem-list p {
    color: #4b6080;
    font-size: 15px;
}

/* Features */

.features-section {
    padding: 70px 0 82px;
    background: linear-gradient(90deg, #fff, #f3f8ff);
}

.features-section h2 {
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: 38px;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-grid article {
    padding: 28px 24px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid #d7e3f4;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.icon {
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    display: grid;
    place-items: center;
    color: var(--blue);
    background: #edf5ff;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 900;
}

.feature-grid h3 {
    margin: 0 0 10px;
}

.feature-grid p {
    margin: 0;
    color: #4b6080;
    font-size: 15px;
}

/* Workflow */

.workflow-section {
    padding: 78px 0;
}

.workflow-section h2 {
    text-align: center;
    margin-bottom: 38px;
}

.workflow {
    display: grid;
    grid-template-columns: 1fr 48px 1fr 48px 1fr;
    gap: 16px;
    align-items: center;
}

.workflow article {
    min-height: 220px;
    padding: 28px 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.workflow article.highlight {
    border-color: rgba(7, 93, 216, .35);
    box-shadow: var(--shadow);
}

.workflow span {
    width: 42px;
    height: 42px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--blue);
    border-radius: 50%;
    font-weight: 900;
}

.workflow h3 {
    margin: 0 0 10px;
}

.workflow p {
    margin: 0;
    color: #4b6080;
    font-size: 15px;
}

.arrow {
    color: #516b91;
    font-size: 34px;
    font-weight: 900;
    text-align: center;
}

/* Comparison */

.comparison-section {
    padding: 70px 0;
    background: #f7fbff;
}

.comparison-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.comparison-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 28px;
    background: #fff;
    border: 1px solid #d7e3f4;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.comparison-card h3 {
    margin: 0 0 14px;
}

.comparison-card ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.comparison-card li::before {
    margin-right: 10px;
    font-weight: 900;
}

.bad li::before {
    content: "×";
    color: var(--danger);
}

.good li::before {
    content: "✓";
    color: var(--green);
}

/* CTA */

.final-cta {
    margin: 64px auto 76px;
    padding: 38px 42px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 34px;
    align-items: center;
    color: #fff;
    background: linear-gradient(100deg, #065fe2, #0046b1);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.final-cta h2 {
    margin: 0 0 8px;
    color: #fff;
}

.final-cta p {
    margin: 0;
    color: #dce9ff;
}

/* Footer */

.site-footer {
    padding: 28px 0;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.site-footer .wrapper {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.site-footer strong {
    color: #092755;
}

/* Mobile */

@media (max-width: 960px) {
    .site-header {
        padding: 0 18px;
    }

    .header-actions {
        display: none;
    }

    .mobile-toggle {
        position: relative;
        display: block;
        width: 48px;
        height: 48px;
        padding: 0;
        background: #fff;
        border: 1px solid #dbe6f5;
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: all .2s ease;
    }

    .mobile-toggle:hover {
        background: #f4f8ff;
        border-color: var(--blue);
    }

    .mobile-toggle span {
        position: absolute;
        left: 12px;
        right: 12px;
        height: 2px;
        background: var(--blue);
        border-radius: 2px;
    }

    .mobile-toggle span:nth-child(1) { top: 15px; }
    .mobile-toggle span:nth-child(2) { top: 23px; }
    .mobile-toggle span:nth-child(3) { top: 31px; }

    #mobileNav {
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        z-index: 99999;
        display: none !important;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border-top: 1px solid #dbe6f5;
        box-shadow: 0 16px 40px rgba(8, 36, 81, .12);
    }

    #mobileNav.open {
        display: flex !important;
    }

    #mobileNav a {
        display: block;
        padding: 16px 24px;
        border-bottom: 1px solid #eef4fb;
        font-weight: 700;
    }

    #mobileNav a:hover {
        background: #f7fbff;
    }

    .mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }

    .mobile-actions a:first-child {
        font-weight: 700;
        text-align: center;
    }

    .mobile-actions .btn {
        width: 100%;
        height: 48px;
    }

    .hero-grid,
    .problem-grid,
    .comparison-grid,
    .final-cta {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 44px;
    }

    .gantt-card {
        max-width: 720px;
    }

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

    .workflow {
        grid-template-columns: 1fr;
    }

    .arrow {
        display: none;
    }
}

@media (max-width: 620px) {
    .wrapper {
        width: min(100% - 28px, var(--container));
    }

    .site-header {
        padding: 0 14px;
    }

    .brand {
        font-size: 18px;
    }

    .hero {
        padding: 54px 0 62px;
    }

    .hero-copy h1 {
        font-size: 36px;
    }

    .hero-copy p {
        font-size: 18px;
    }

    .cta-row,
    .trust-row {
        flex-direction: column;
    }

    .gantt-shell,
    .comparison-card {
        grid-template-columns: 1fr;
    }

    .gantt-sidebar {
        display: none;
    }

    .gantt-grid {
        min-height: 360px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 32px;
    }

    .site-footer .wrapper {
        flex-direction: column;
    }
}
