:root {
    color-scheme: light;
    --sigma-ink: #0f2a47;
    --sigma-muted: #4b667a;
    --sigma-green: #2b6cb0;
    --sigma-green-dark: #1c4d80;
    --sigma-green-pale: #eef4ff;
    --sigma-blue: #1c4d80;
    --sigma-line: #dbe7f3;
    --sigma-paper: #ffffff;
    --sigma-background: #f7f9fc;
    --sigma-shadow: 0 24px 70px rgba(15, 42, 71, .10);
    --sigma-accent: #ed8936;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body.home {
    margin: 0;
    background: var(--sigma-background);
    color: var(--sigma-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

.sigma-shell {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

.sigma-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(219, 231, 243, .55);
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
}

.brand img {
    display: block;
    width: 43px;
    height: 43px;
    object-fit: contain;
}

.brand-divider {
    width: 1px;
    height: 36px;
    background: var(--sigma-line);
}

.brand-name {
    display: grid;
    gap: 3px;
}

.brand-name strong {
    color: var(--sigma-green-dark);
    font-size: 17px;
    letter-spacing: .12em;
    font-weight: 760;
}

.brand-name small {
    color: var(--sigma-muted);
    font-size: 10px;
    letter-spacing: .03em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-left: auto;
}

.main-nav a {
    color: #4b667a;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: color .18s ease;
}

.main-nav a:hover {
    color: var(--sigma-green-dark);
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    min-height: 52px;
    padding-inline: 26px;
    background: var(--sigma-green-dark);
    box-shadow: 0 10px 24px rgba(28, 77, 128, .18);
    color: #fff;
    border-color: transparent;
}

.button-primary:hover {
    background: var(--sigma-green);
    box-shadow: 0 14px 28px rgba(28, 77, 128, .24);
}

.button-primary span {
    font-size: 18px;
}

.button-ghost {
    min-height: 46px;
    padding-inline: 20px;
    border-color: rgba(219, 231, 243, .7);
    background: rgba(255, 255, 255, .82);
    color: var(--sigma-ink);
    backdrop-filter: blur(4px);
}

.button-ghost:hover {
    border-color: var(--sigma-green-dark);
    color: var(--sigma-green-dark);
}

.button-ghost span {
    font-size: 16px;
}

a:focus-visible {
    outline: 3px solid #ed8936;
    outline-offset: 3px;
}

/* ============================================================
   Hero (video)
   ============================================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--sigma-background);
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 20% 30%, rgba(28, 77, 128, .35), transparent 45%),
        linear-gradient(135deg, rgba(15, 42, 71, .55) 0%, rgba(28, 77, 128, .42) 55%, rgba(15, 42, 71, .70) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 80px 24px 120px;
    max-width: 700px;
    color: #fff;
}

.hero-content .eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .85);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.hero-content .eyebrow > span {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #f4a259;
    box-shadow: 0 0 0 5px rgba(244, 162, 89, .18);
}

.hero-title {
    margin: 0 0 20px;
    font-size: clamp(44px, 5.5vw, 72px);
    font-weight: 780;
    letter-spacing: -.045em;
    line-height: 1.06;
    color: #fff;
}

.hero-title span {
    color: #f4a259;
}

.hero-description {
    max-width: 520px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, .88);
    font-size: 16px;
    line-height: 1.85;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 38px;
}

.hero-meta {
    display: flex;
    gap: 22px;
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
    padding-top: 30px;
}

.hero-meta li {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-meta strong {
    font-size: 17px;
    font-weight: 760;
    color: #fff;
    letter-spacing: -.01em;
}

.hero-meta span {
    font-size: 11px;
    color: rgba(255, 255, 255, .75);
    font-weight: 500;
}

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.hero-scroll:hover {
    background: rgba(255, 255, 255, .3);
    transform: translateX(-50%) translateY(3px);
}

@media (max-width: 900px) {
    .hero-content {
        padding: 64px 20px 100px;
    }

    .hero-title {
        font-size: clamp(40px, 7vw, 56px);
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-meta {
        flex-wrap: wrap;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .main-nav {
        display: none;
    }

    .hero-meta {
        gap: 20px;
    }

    .hero-meta strong {
        font-size: 15px;
    }
}

/* ============================================================
   Login section (embedded in homepage)
   ============================================================ */
.login-section {
    padding: 70px 0 90px;
    background: #fff;
    position: relative;
}

.login-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 56px;
}

.login-copy {
    max-width: 520px;
}

.login-copy .eyebrow {
    color: var(--sigma-green-dark);
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.login-copy .eyebrow > span {
    background: var(--sigma-accent);
    box-shadow: 0 0 0 5px rgba(237, 137, 54, .15);
}

.login-copy h2 {
    margin: 0 0 14px;
    color: var(--sigma-ink);
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 780;
    letter-spacing: -.04em;
    line-height: 1.18;
}

.login-copy > p:last-child {
    margin: 0 0 24px;
    color: var(--sigma-muted);
    font-size: 15px;
    line-height: 1.85;
}

.login-points {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--sigma-muted);
    font-size: 13px;
    line-height: 1.7;
}

.login-points li::before {
    content: "✓";
    flex: 0 0 18px;
    color: var(--sigma-green-dark);
    font-weight: 700;
    font-size: 15px;
}

.login-card {
    width: min(100%, 460px);
    padding: 44px 48px;
    border: 1px solid var(--sigma-line);
    border-radius: 20px;
    background: var(--sigma-paper);
    box-shadow: var(--sigma-shadow);
    justify-self: end;
}

.sigma-login-form {
    display: grid;
    gap: 20px;
    margin-top: 6px;
}

.form-field {
    display: grid;
    gap: 10px;
}

.form-field label {
    color: #4b667a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
}

.form-field input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #d7e0e8;
    border-radius: 10px;
    outline: none;
    background: #fbfcfd;
    color: var(--sigma-ink);
    font: inherit;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form-field input::placeholder {
    color: #9aa8a2;
}

.form-field input:focus {
    border-color: var(--sigma-green-dark);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(43, 108, 176, .10);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 100px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    padding: 6px 10px;
    border: 0;
    background: transparent;
    color: var(--sigma-green-dark);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    transform: translateY(-50%);
    border-radius: 6px;
    transition: background .15s ease, color .15s ease;
}

.password-toggle:hover {
    background: rgba(28, 77, 128, .06);
    color: var(--sigma-green);
}

.submit-button {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    background: var(--sigma-green-dark);
    box-shadow: 0 12px 24px rgba(28, 77, 128, .18);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: .01em;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    background: var(--sigma-green);
    box-shadow: 0 16px 30px rgba(28, 77, 128, .24);
}

.submit-button span {
    font-size: 18px;
}

.main-caption {
    margin: 24px 0 0;
    color: #8b97a6;
    font-size: 11px;
    letter-spacing: .02em;
    text-align: center;
}

.alert {
    margin: 0 0 18px;
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
}

.alert ul {
    margin: 0;
    padding-left: 18px;
}

.alert-danger {
    border-color: rgba(237, 137, 54, .35);
    background: #fff;
    color: #b45309;
}

.alert-success {
    border-color: rgba(43, 108, 176, .2);
    background: var(--sigma-green-pale);
    color: var(--sigma-green-dark);
}

@media (max-width: 900px) {
    .login-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .login-copy {
        max-width: 100%;
    }

    .login-card {
        justify-self: stretch;
        padding: 36px 32px;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 48px 0 60px;
    }

    .login-card {
        padding: 32px 24px;
    }

    .submit-button {
        min-height: 50px;
        font-size: 13px;
    }
}

/* ============================================================
   About section
   ============================================================ */
.about-section {
    padding: 90px 0 100px;
    border-top: 1px solid #e8edf3;
    background: #fff;
    scroll-margin-top: 100px;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 40px;
}

.section-heading .eyebrow {
    margin-bottom: 14px;
    color: var(--sigma-green-dark);
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.section-heading .eyebrow > span {
    background: var(--sigma-accent);
    box-shadow: 0 0 0 5px rgba(237, 137, 54, .15);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 48px);
    letter-spacing: -.04em;
    line-height: 1.25;
    color: var(--sigma-ink);
}

.section-heading > p:last-child {
    max-width: 640px;
    margin: 18px 0 0;
    color: var(--sigma-muted);
    font-size: 15px;
    line-height: 1.85;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.about-card {
    position: relative;
    padding: 36px 34px;
    border: 1px solid var(--sigma-line);
    border-radius: 18px;
    background: linear-gradient(160deg, #ffffff, #f7faff);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: rgba(43, 108, 176, .28);
    box-shadow: 0 24px 54px rgba(15, 42, 71, .09);
}

.about-card-icon {
    position: absolute;
    top: 14px;
    right: 22px;
    color: #a9b9c8;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .12em;
}

.about-card-badge {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--sigma-green-dark), var(--sigma-green));
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.about-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
    color: var(--sigma-ink);
    letter-spacing: -.01em;
}

.about-card p {
    margin: 0;
    color: var(--sigma-muted);
    font-size: 14px;
    line-height: 1.8;
}

@media (max-width: 760px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Footer
   ============================================================ */
.sigma-footer {
    padding: 30px 0;
    background: #0f2a47;
    color: #dbe7f3;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
}

.footer-brand {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .12em;
}

.footer-brand span {
    padding-left: 6px;
    color: #e0a458;
}

.footer-inner p {
    margin: 0;
    color: #b6c8dc;
    font-size: 11px;
}

.footer-inner .footer-office {
    margin-left: auto;
}

.footer-inner small {
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #8aa3b9;
    font-size: 10px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}
