:root {
    --navy: #0f2742;
    --blue: #0b63e5;
    --blue-dark: #084fb8;
    --soft-blue: #e8f1ff;
    --text: #17324d;
    --muted: #5c7188;
    --line: #dbe5f0;
    --bg: #f5f8fc;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(15, 39, 66, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}

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

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

.logo img {
    width: 112px;
    height: auto;
    display: block;
}

.nav-container {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
    margin: 0;
    padding: 0;
    font-weight: 700;
    color: var(--navy);
}

.nav-links > li {
    position: relative;
}

.nav-links a:not(.cta) {
    transition: color 0.2s ease;
}

.nav-links a:not(.cta):hover {
    color: var(--blue);
}

.dashboard-link {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--navy);
    border-radius: 999px;
    padding: 9px 15px;
    font-weight: 800;
}

.dashboard-link:hover {
    border-color: var(--blue);
    color: var(--blue) !important;
}

.dropdown > a::after {
    content: " ▾";
    font-size: 12px;
}

.dropdown-content,
.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 16px);
    min-width: 230px;
    list-style: none;
    padding: 10px;
    margin: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.dropdown:hover .dropdown-content,
.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a,
.user-dropdown a,
.user-id {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 650;
}

.dropdown-content a:hover,
.user-dropdown a:hover {
    background: var(--soft-blue);
}

.user-id {
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
    overflow-wrap: anywhere;
}

.user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--navy);
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 800;
    cursor: pointer;
}

.user-initial {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: white;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    color: white !important;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 16px 32px rgba(11, 99, 229, 0.26);
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta {
    min-height: 42px;
    padding: 0 20px;
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(11, 99, 229, 0.32);
}

.secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid #b8c7d8;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

.content {
    overflow: hidden;
}

.landing-page {
    position: relative;
    min-height: 700px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    gap: 70px;
    align-items: center;
    padding: 72px 9vw 54px;
    background:
        radial-gradient(circle at 78% 28%, rgba(11, 99, 229, 0.13), transparent 28%),
        linear-gradient(135deg, #f7fbff 0%, #edf4fc 58%, #f9fbff 100%);
    border-bottom: 1px solid var(--line);
}

.hero-shape {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    pointer-events: none;
}

.hero-shape-one {
    width: 360px;
    height: 360px;
    background: rgba(11, 99, 229, 0.08);
    right: -120px;
    top: 120px;
}

.hero-shape-two {
    width: 220px;
    height: 220px;
    background: rgba(15, 39, 66, 0.07);
    left: -80px;
    bottom: 70px;
}

.landing-text,
.landing-visual,
.feature-section,
.workflow-section {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 22px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #dbeaff;
    color: #0758bd;
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.landing-text h1 {
    max-width: 720px;
    margin: 0;
    color: var(--navy);
    font-size: clamp(40px, 4.2vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.landing-text h2 {
    max-width: 720px;
    margin: 28px 0 0;
    color: #31526f;
    font-size: clamp(18px, 1.4vw, 23px);
    line-height: 1.65;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 34px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    max-width: 620px;
    gap: 14px;
    margin-top: 34px;
}

.hero-stats div {
    padding: 18px;
    border: 1px solid rgba(184, 199, 216, 0.75);
    border-radius: 18px;
    background: rgba(255,255,255,0.68);
    box-shadow: 0 12px 30px rgba(15, 39, 66, 0.06);
}

.hero-stats strong,
.hero-stats span {
    display: block;
}

.hero-stats strong {
    color: var(--navy);
    font-size: 22px;
    margin-bottom: 4px;
}

.hero-stats span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.landing-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    position: relative;
    width: min(100%, 660px);
    padding: 22px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: var(--shadow);
}

.visual-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: 35px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(11,99,229,0.16));
}

.visual-card img {
    width: 100%;
    display: block;
    border-radius: 24px;
}

.floating-card {
    position: absolute;
    display: flex;
    gap: 10px;
    align-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    box-shadow: 0 18px 45px rgba(15, 39, 66, 0.14);
    color: var(--navy);
    font-weight: 850;
}

.floating-card-top {
    top: -18px;
    left: 32px;
    padding: 13px 16px;
}

.floating-card-bottom {
    right: 28px;
    bottom: -24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 14px 18px;
}

.floating-card-ai {
    top: 96px;
    left: -38px;
    width: 218px;
    display: block;
    padding: 15px 16px;
    border-color: rgba(132, 92, 225, 0.28);
    background: rgba(255, 255, 255, 0.97);
}

.ai-card-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #5c3bb3;
    font-size: 13px;
    font-weight: 900;
}

.ai-spark {
    display: inline-grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 7px;
    color: white;
    background: linear-gradient(135deg, #8f63df, #4f83e8);
}

.floating-card-ai p {
    margin: 11px 0 6px;
    color: var(--navy);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
}

.ai-card-note {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.floating-card-bottom span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #17b26a;
    box-shadow: 0 0 0 6px rgba(23,178,106,0.12);
}

.feature-section,
.workflow-section {
    padding: 74px 9vw 0;
    background: var(--bg);
}

.calculation-section {
    padding: 74px 9vw 18px;
    background: var(--bg);
}

.calculation-heading {
    max-width: 820px;
}

.calculation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.calculation-card {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 16px 42px rgba(15, 39, 66, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.calculation-card:hover {
    transform: translateY(-4px);
    border-color: #b9d2ef;
    box-shadow: 0 22px 50px rgba(15, 39, 66, 0.12);
}

.calculation-card-top {
    display: none;
}

.calculation-number {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    background: var(--soft-blue);
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 900;
}

.calculation-card h3 {
    color: var(--navy);
    font-size: 22px;
    letter-spacing: -0.02em;
}

.module-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: var(--blue-dark);
    font-size: 14px;
    font-weight: 850;
}

.module-link span {
    font-size: 19px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.module-link:hover {
    color: var(--blue);
}

.module-link:hover span {
    transform: translateX(4px);
}

.section-heading {
    max-width: 780px;
    margin-bottom: 28px;
}

.section-heading h2,
.workflow-card h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(32px, 3vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    min-height: 238px;
    padding: 26px;
    border-radius: 26px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 18px 48px rgba(15, 39, 66, 0.08);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--soft-blue);
    color: var(--blue-dark);
    font-size: 27px;
    font-weight: 900;
}

.feature-icon-ai {
    color: #5c3bb3;
    background: #eee9ff;
}

.feature-card h3 {
    margin: 22px 0 10px;
    color: var(--navy);
    font-size: 21px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 550;
}

.workflow-section {
    padding-bottom: 80px;
}

.workflow-card {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 32px;
    align-items: center;
    padding: 34px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--navy), #16466f);
    color: white;
    box-shadow: var(--shadow);
}

.workflow-card .eyebrow {
    background: rgba(255,255,255,0.12);
    color: #d8eaff;
}

.workflow-card h2 {
    color: white;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.workflow-steps span {
    display: flex;
    min-height: 102px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.16);
    font-weight: 850;
}

.workflow-steps small {
    display: block;
    margin-bottom: 10px;
    color: #a9d0ff;
    font-size: 12px;
    letter-spacing: 0.08em;
}

@media (max-width: 1120px) {
    .landing-page {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .landing-text h1,
    .landing-text h2 {
        max-width: 860px;
    }

    .landing-visual {
        justify-content: flex-start;
    }

    .floating-card-ai {
        left: 18px;
    }

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

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

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

@media (max-width: 720px) {
    header,
    .site-header {
        min-height: auto;
        padding: 16px 20px;
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
    }

    .logo img {
        width: 104px;
    }

    .nav-links {
        width: 100%;
        gap: 16px;
        flex-wrap: wrap;
        font-size: 14px;
    }

    .landing-page {
        min-height: auto;
        padding: 48px 22px;
    }

    .hero-stats,
    .feature-grid,
    .calculation-grid,
    .workflow-card,
    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .feature-section,
    .calculation-section,
    .workflow-section {
        padding-left: 22px;
        padding-right: 22px;
    }

    .floating-card {
        display: none;
    }
}
