:root {
    --bg: #081427;
    --bg-deep: #0b1b34;
    --bg-soft: #112645;
    --surface: rgba(16, 31, 56, 0.9);
    --surface-strong: rgba(18, 36, 66, 0.97);
    --surface-card: rgba(14, 31, 58, 0.93);
    --ink: #f4f7fb;
    --muted: #97a8c2;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --accent: #f0b44b;
    --accent-strong: #ffcb73;
    --accent-soft: rgba(240, 180, 75, 0.14);
    --navy-glow: rgba(65, 116, 197, 0.18);
    --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    font-family: Bahnschrift, "Segoe UI Variable Display", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(240, 180, 75, 0.1), transparent 26%),
        radial-gradient(circle at top right, rgba(64, 114, 196, 0.22), transparent 28%),
        linear-gradient(180deg, #061326 0%, #081a33 35%, #0a1d39 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container-shell {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(7, 18, 34, 0.84);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topbar-shell {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(90deg, rgba(8, 21, 42, 0.98) 0%, rgba(12, 30, 56, 0.98) 100%);
    color: var(--muted);
    font-size: 0.88rem;
}

.topbar-shell .container-shell,
.nav-shell .container-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.topbar-shell .container-shell { min-height: 44px; }

.topbar-links,
.topbar-actions,
.nav-links-shell,
.nav-cta-shell {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-actions a:last-child {
    color: var(--accent-strong);
}

.topbar-links a,
.topbar-actions a,
.topbar-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.84);
}

.topbar-meta {
    color: rgba(255, 255, 255, 0.72);
}

.topbar-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    flex-shrink: 0;
}

.nav-shell .container-shell { min-height: 82px; }

.brand-shell {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-shell img {
    width: 170px;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.nav-links-shell a {
    position: relative;
    padding: 10px 0;
    font-size: 0.96rem;
    font-weight: 700;
    color: rgba(244, 247, 251, 0.78);
}

.nav-links-shell a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

.nav-links-shell a:hover,
.nav-links-shell a.is-active {
    color: #fff;
}

.nav-links-shell a:hover::after,
.nav-links-shell a.is-active::after {
    transform: scaleX(1);
}

.button-shell,
.button-shell-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.94rem;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button-shell {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #0d1625;
    box-shadow: 0 14px 30px rgba(240, 180, 75, 0.2);
}

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

.button-shell-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.13);
    color: #fff;
}

.button-shell-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 180, 75, 0.4);
    background: rgba(255, 255, 255, 0.07);
}

.mobile-toggle-shell {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-toggle-shell span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
}

.page-shell { padding: 42px 0 96px; }
.section-shell { padding: 80px 0; }
.section-shell-tight { padding: 58px 0; }

.section-label {
    margin: 0 0 12px;
    color: var(--accent-strong);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    font-weight: 800;
}

.section-title {
    margin: 0;
    color: #fff;
    font-size: clamp(2.2rem, 3.7vw, 4.1rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.section-intro {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.8;
}

.card-grid-shell {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
}

.surface-card {
    background: linear-gradient(180deg, rgba(17, 27, 45, 0.92) 0%, rgba(12, 20, 35, 0.96) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.flash-message {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(17, 26, 42, 0.86);
}

.flash-message.success { color: #93ddb4; border-color: rgba(82, 163, 114, 0.32); }
.flash-message.error { color: #ffb2b2; border-color: rgba(194, 84, 84, 0.32); }

.footer-shell {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(240, 180, 75, 0.16), transparent 24%),
        linear-gradient(180deg, #07101d 0%, #060a12 100%);
    color: rgba(255, 255, 255, 0.88);
    padding: 84px 0 24px;
}

.footer-grid-shell {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
    gap: 34px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-brand img {
    width: 156px;
    height: auto;
}

.footer-shell h3 {
    margin: 0 0 18px;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff0cf;
}

.footer-shell p,
.footer-shell li,
.footer-shell a {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.72;
    font-size: 0.95rem;
}

.footer-shell ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.footer-vifyo {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
}

.footer-vifyo a {
    color: var(--accent-strong);
}

.footer-bottom-shell {
    margin-top: 38px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.88rem;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.75s ease, transform 0.75s ease;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .nav-links-shell,
    .nav-cta-shell { display: none; }
    .mobile-toggle-shell { display: block; }

    .nav-shell.is-open .container-shell {
        align-items: flex-start;
        flex-wrap: wrap;
        padding-top: 14px;
    }

    .nav-shell.is-open .nav-links-shell,
    .nav-shell.is-open .nav-cta-shell {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 18px;
    }

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

@media (max-width: 720px) {
    .topbar-shell { display: none; }
    .page-shell { padding: 30px 0 70px; }
    .section-shell { padding: 56px 0; }
    .section-shell-tight { padding: 46px 0; }
    .section-title { font-size: 2.1rem; }
    .reveal-on-scroll,
    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .footer-grid-shell { grid-template-columns: 1fr; }
    .footer-bottom-shell { flex-direction: column; align-items: flex-start; }
}
