/* =====================================================
   RESET
===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--color-surface);
    color: var(--color-ink);

    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open,
body.search-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =====================================================
   TYPOGRAPHY
===================================================== */

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

h1 {
    font-size: clamp(4rem, 7vw, 7.8rem);
}

h2 {
    font-size: clamp(3rem, 5vw, 6rem);
}

h3 {
    font-size: clamp(2rem, 3vw, 3.5rem);
}

p {
    color: var(--color-muted);
}


/* =====================================================
   LAYOUT
===================================================== */

.container {
    width: min(
        calc(100% - (var(--container-padding) * 2)),
        var(--container-width)
    );

    margin-inline: auto;
}

.section {
    padding-block: var(--section-padding);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 28px;

    color: currentColor;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1;

    text-transform: uppercase;
}

.eyebrow-line {
    width: 32px;
    height: 1px;

    background: currentColor;
}


/* =====================================================
   BUTTONS
===================================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    min-height: 52px;
    padding: 0 25px;

    border: 1px solid transparent;
    border-radius: var(--radius-pill);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;

    transition:
        transform var(--transition-fast),
        background var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast);
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    background: var(--color-accent);
    color: var(--color-ink);
}

.button-primary:hover {
    background: var(--color-white);
}

.button-dark {
    background: var(--color-ink);
    color: var(--color-white);
}

.button-dark:hover {
    background: var(--color-ink-soft);
}

.button-light {
    background: var(--color-white);
    color: var(--color-ink);
}

.button-light:hover {
    background: var(--color-accent);
}

.button-ghost {
    border-color: rgba(255, 255, 255, .3);
    color: var(--color-white);
}

.button-ghost:hover {
    background: rgba(255, 255, 255, .1);
}

.button-large {
    min-height: 60px;
    padding-inline: 30px;
}

.button-arrow {
    font-size: 18px;
    transition: transform var(--transition-fast);
}

.button:hover .button-arrow {
    transform: translateX(4px);
}


/* =====================================================
   TEXT LINKS
===================================================== */

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;

    padding-bottom: 7px;

    border-bottom: 1px solid currentColor;

    font-size: 13px;
    font-weight: 700;

    transition:
        gap var(--transition-fast),
        opacity var(--transition-fast);
}

.text-link:hover {
    gap: 22px;
    opacity: .65;
}


/* =====================================================
   REVEAL ANIMATION
===================================================== */

.reveal {
    opacity: 0;
    transform: translateY(40px);

    transition:
        opacity 900ms var(--transition-slow),
        transform 900ms var(--transition-slow);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =====================================================
   PAGE LOADER
===================================================== */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: grid;
    place-items: center;

    background: var(--color-ink);

    transition:
        opacity 700ms ease,
        visibility 700ms ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-mark {
    display: grid;
    place-items: center;

    width: 80px;
    height: 80px;

    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;

    animation: loaderPulse 1.5s infinite ease-in-out;
}

.loader-mark span {
    color: var(--color-white);

    font-size: 15px;
    font-weight: 700;
    letter-spacing: .12em;
}

@keyframes loaderPulse {
    0%,
    100% {
        transform: scale(.9);
        opacity: .5;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}


/* =====================================================
   SELECTION
===================================================== */

::selection {
    background: var(--color-accent);
    color: var(--color-ink);
}


/* =====================================================
   SCROLLBAR
===================================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--color-ink);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-dark);
}


/* =====================================================
   EUROATLANTIC SUPPLIED BRAND ASSETS
===================================================== */

.brand-logo,
.login-brand-logo,
.dashboard-brand-logo {
    display: block;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
}

.brand-logo {
    width: 42px;
    height: 42px;
}

.login-brand-logo {
    width: 42px;
    height: 42px;
}

.dashboard-brand-logo {
    width: 42px;
    height: 42px;
}


/* =====================================================
   HERO PARALLAX BACKGROUND
===================================================== */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-image-wrapper {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    will-change: transform;
    transform: translateY(var(--bg-parallax-offset, 0px));
    transition: transform 0.05s ease-out;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg, 
        rgba(7, 17, 15, 0.82) 0%, 
        rgba(7, 17, 15, 0.95) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}


/* =====================================================
   HERO VISUAL & SILVER METALLIC CARD OVERRIDES
===================================================== */

/* Container transparent: removes dark container box */
.hero-visual {
    position: relative;
    z-index: 2;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* Clear pseudo-element background blocks */
.hero-visual::before,
.hero-visual::after {
    display: none !important;
}

/* Glassmorphic Silver Credit Card */
.hero-card,
.hero-visual .hero-card {
    position: relative;
    z-index: 3;
    padding: 32px;
    border-radius: var(--radius-card, 24px);

    /* Transparent gradient with silver/platinum shine */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(200, 215, 230, 0.10) 50%,
        rgba(255, 255, 255, 0.04) 100%
    ) !important;
    
    /* Silver border trim */
    border: 1px solid rgba(235, 245, 255, 0.65) !important;
    
    /* Subtle glow and inner reflection */
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.75),
        inset 0 -1px 2px rgba(0, 0, 0, 0.25) !important;

    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
}

/* Silver Chip Styling */
.hero-card .card-chip,
.hero-visual .card-chip {
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.65),
        rgba(170, 185, 200, 0.3)
    ) !important;
}

/* Platinum/White Text Colors */
.hero-card .card-label,
.hero-card .card-top,
.hero-card .card-bottom strong {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-card .card-number {
    color: #f8fafc !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-card .card-type,
.hero-card .card-bottom small {
    color: rgba(235, 243, 250, 0.75) !important;
}

/* Floating Stats Cards */
.floating-stat {
    position: absolute;
    z-index: 4;
    padding: 14px 20px;
    border-radius: 16px;
    background: rgba(13, 27, 24, 0.85) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* BRAND LOGO SIZE FIX */
.brand-logo,
.logo img,
.sidebar-logo img,
.nav-logo img,
.header-logo img {
    width: 42px;
    height: 42px;
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
    display: block;
}