:root {
    --navy: #14222e;
    --navy-light: #253847;
    --gold: #d1a44c;
    --gold-light: #f0d18d;
    --paper: #f6f8f9;
    --white: #fff;
    --muted: #a9b5bd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-width: 320px;
    margin: 0;
    color: var(--white);
    background: var(--navy);
    font-family: "Montserrat", Arial, sans-serif;
}
a { color: inherit; }
button { font: inherit; }

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    right: 0;
    left: 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: rgba(18, 31, 42, .9);
    backdrop-filter: blur(16px);
}

.nav-shell {
    display: flex;
    width: min(1180px, calc(100% - 40px));
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    margin: auto;
}

.site-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.site-brand img {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    object-fit: cover;
}
.site-brand span { display: flex; flex-direction: column; }
.site-brand strong { font-size: 1rem; letter-spacing: .02em; }
.site-brand small {
    color: var(--gold-light);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.main-navigation {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.nav-links, .nav-actions { display: flex; align-items: center; gap: 26px; }
.nav-links a, .nav-register {
    color: #dce3e7;
    font-size: .76rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}
.nav-links a:hover, .nav-register:hover { color: var(--gold-light); }
.nav-login {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    border: 1px solid rgba(240, 209, 141, .45);
    border-radius: 10px;
    color: #172431;
    background: var(--gold-light);
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
}
.nav-toggle { display: none; }

.hero {
    position: relative;
    display: flex;
    min-height: calc(100vh - 94px);
    align-items: center;
    overflow: hidden;
    padding: 130px 0 70px;
}
.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 31, 42, .98) 0%, rgba(17, 31, 42, .91) 48%, rgba(17, 31, 42, .66) 100%),
        url("../images/fersoft-login-background.png") center / cover no-repeat;
}
.hero-backdrop::after {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 38%, rgba(209,164,76,.2), transparent 26%),
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: auto, 42px 42px, 42px 42px;
    content: "";
}
.hero-shell {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(1180px, calc(100% - 40px));
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .78fr);
    align-items: center;
    gap: clamp(50px, 8vw, 110px);
    margin: auto;
}
.hero-eyebrow {
    margin: 0 0 20px;
    color: var(--gold-light);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .22em;
}
.hero h1 {
    max-width: 720px;
    margin: 0 0 24px;
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    line-height: 1.04;
    letter-spacing: -.04em;
}
.hero h1 span { color: var(--gold-light); }
.hero-description {
    max-width: 640px;
    margin: 0;
    color: #c8d1d7;
    font-size: clamp(.95rem, 1.4vw, 1.08rem);
    line-height: 1.8;
}
.hero-actions { display: flex; gap: 14px; margin-top: 34px; }
.primary-action, .secondary-action {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 0 24px;
    border-radius: 11px;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}
.primary-action { color: #182631; background: var(--gold-light); box-shadow: 0 14px 30px rgba(0,0,0,.2); }
.secondary-action { border: 1px solid rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.05); }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: #b8c3c9; font-size: .68rem; }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.trust-row i {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    color: #1a2a36;
    background: var(--gold-light);
    font-size: .65rem;
    font-style: normal;
    font-weight: 800;
}

.hero-showcase {
    padding: clamp(24px, 3vw, 38px);
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255,255,255,.15), rgba(255,255,255,.05));
    box-shadow: 0 30px 80px rgba(0,0,0,.32);
    backdrop-filter: blur(18px);
}
.showcase-brand { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.showcase-brand img { width: 78px; height: 78px; border-radius: 50%; box-shadow: 0 12px 30px rgba(0,0,0,.3); object-fit: cover; }
.showcase-brand div { display: flex; flex-direction: column; }
.showcase-brand small { color: var(--gold-light); font-size: .65rem; font-weight: 700; letter-spacing: .22em; }
.showcase-brand strong { font-size: 1.5rem; }
.module-grid { display: grid; gap: 11px; }
.module-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(10, 22, 31, .38);
}
.module-card div { display: flex; flex-direction: column; gap: 3px; }
.module-card strong { font-size: .8rem; }
.module-card small { color: var(--muted); font-size: .65rem; }
.module-icon { position: relative; display: block; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; background: rgba(240,209,141,.13); }
.module-icon::before, .module-icon::after { position: absolute; content: ""; }
.module-icon--chart::before { right: 9px; bottom: 9px; left: 9px; height: 15px; border-bottom: 2px solid var(--gold-light); border-left: 2px solid var(--gold-light); }
.module-icon--chart::after { top: 12px; left: 12px; width: 15px; height: 9px; transform: rotate(-22deg); border-top: 2px solid var(--gold-light); }
.module-icon--fiscal::before { inset: 9px 11px; border: 2px solid var(--gold-light); border-radius: 2px; }
.module-icon--fiscal::after { top: 14px; left: 15px; width: 9px; height: 6px; border-top: 2px solid var(--gold-light); border-bottom: 2px solid var(--gold-light); }
.module-icon--cloud::before { top: 15px; left: 9px; width: 20px; height: 11px; border: 2px solid var(--gold-light); border-radius: 10px; }
.showcase-footer { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; color: #acb8bf; font-size: .62rem; }
.showcase-footer span { width: 8px; height: 8px; border-radius: 50%; background: #78c99c; box-shadow: 0 0 0 5px rgba(120,201,156,.12); }

.solutions { color: var(--navy); background: var(--paper); }
.solutions-shell { display: flex; width: min(1180px, calc(100% - 40px)); min-height: 94px; align-items: center; justify-content: space-between; gap: 30px; margin: auto; }
.solutions p { margin: 0; color: #63717b; font-size: .72rem; font-weight: 600; }
.solution-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 26px; }
.solution-list span { color: #2d3e4a; font-size: .72rem; font-weight: 700; }

@media (max-width: 900px) {
    .nav-toggle { display: grid; width: 42px; height: 42px; place-content: center; gap: 5px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: transparent; }
    .nav-toggle span { display: block; width: 19px; height: 2px; background: #fff; }
    .main-navigation { position: absolute; top: 78px; right: 20px; left: 20px; display: none; align-items: stretch; flex-direction: column; padding: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 0 0 16px 16px; background: #172733; box-shadow: 0 20px 40px rgba(0,0,0,.3); }
    .main-navigation--open { display: flex; }
    .nav-links, .nav-actions { align-items: stretch; flex-direction: column; gap: 4px; }
    .nav-links a, .nav-register { padding: 11px 6px; }
    .nav-login { justify-content: center; margin-top: 10px; }
    .hero-shell { grid-template-columns: 1fr; }
    .hero-showcase { display: none; }
}

@media (max-width: 620px) {
    .nav-shell, .hero-shell, .solutions-shell { width: min(100% - 30px, 1180px); }
    .hero { min-height: 100vh; padding: 112px 0 58px; }
    .hero h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .trust-row { align-items: flex-start; flex-direction: column; gap: 12px; }
    .solutions-shell { align-items: flex-start; flex-direction: column; padding: 26px 0; }
    .solution-list { justify-content: flex-start; gap: 16px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
