/* Typography Overrides */
.h1,
h1 {
    font-size: 3.5rem;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--blue-900);
    background: linear-gradient(120deg, var(--blue-900), var(--blue-600));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    line-height: 1.1;
}

.h2,
h2 {
    font-size: 2.25rem;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--blue-900);
    position: relative;
    display: inline-block;
}

.h3,
h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--blue-900);
    letter-spacing: -0.01em;
}

.lead {
    font-size: 1.15rem;
    color: var(--slate-500);
    max-width: 60ch;
    line-height: 1.7;
    font-weight: 400;
}

.text-white {
    color: white;
}

.text-accent {
    color: var(--accent);
}

.text-highlight {
    color: var(--highlight);
}

/* Dark Section Overrides */
.section--dark .h1,
.section--dark .h2 {
    background: linear-gradient(to right, #fff, var(--slate-300));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section--dark .lead,
.section--dark .muted {
    color: var(--slate-400);
}

/* HEADER & NAV */
.header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--trans-smooth);
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blue-900);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 101;
}

.brand__mark {
    width: 26px;
    height: 26px;
    /* Pictogram simulation: Blue block with Orange accent */
    background: var(--blue-800);
    border-radius: 6px;
    position: relative;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.3);
}

.brand__mark::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    background: var(--highlight);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--highlight);
}

.nav__link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--slate-500);
    padding: 8px 12px;
    transition: var(--trans-fast);
    position: relative;
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--blue-950);
}

.nav__link.is-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--highlight);
    border-radius: 2px;
}

@media (max-width: 900px) {

    .nav,
    .header .btn,
    .header .flex.gap-sm {
        display: none;
    }
}

/* BURGER */
.burger {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--blue-900);
    transition: 0.3s;
}

@media (max-width: 900px) {
    .burger {
        display: flex;
    }
}

/* DRAWER */
.drawer {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 99;
    padding: 100px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer.is-open {
    transform: translateX(0);
}

.drawer__link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-900);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 901px) {
    .drawer {
        display: none !important;
    }
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--trans-fast);
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    gap: 10px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

/* WOW Style: Primary Blue with Orange detail */
.btn--primary {
    background: var(--blue-800);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Orange underline detail */
    border-bottom: 2px solid var(--highlight);
}

.btn--primary:hover {
    background: var(--blue-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.3), 0 0 0 1px var(--highlight);
}

.btn--ghost {
    background: transparent;
    color: var(--blue-900);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    background: white;
    border-color: var(--highlight);
    color: var(--highlight);
    box-shadow: var(--shadow-sm);
}

.btn--accent {
    background: var(--grad-orange);
    color: white;
    box-shadow: var(--shadow-orange);
}

.btn--accent:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-orange), 0 0 20px rgba(249, 115, 22, 0.4);
}

/* HERO WOW */
.hero-wow {
    position: relative;
    background: var(--slate-50);
    /* Subtle tech pattern */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 20%);
    overflow: hidden;
}

/* Grid overlay */
.hero-wow::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(30, 58, 138, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 138, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}

/* CARDS */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 35px;
    transition: var(--trans-smooth);
    position: relative;
    overflow: hidden;
    /* Soft shadow + glass hint */
    box-shadow: var(--shadow-sm);
}

.card:hover {
    border-color: var(--highlight);
    box-shadow: var(--shadow-lg), 0 0 15px rgba(249, 115, 22, 0.1);
    transform: translateY(-4px);
    z-index: 10;
}

.card__icon {
    width: 60px;
    height: 60px;
    background: var(--slate-50);
    color: var(--primary);
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    font-size: 28px;
    margin-bottom: 25px;
    transition: var(--trans-smooth);
    border: 1px solid var(--slate-100);
}

.card:hover .card__icon {
    background: var(--blue-800);
    color: white;
    border-color: var(--blue-800);
    transform: scale(1.05);
    box-shadow: 0 10px 20px -5px rgba(30, 58, 138, 0.3);
}

/* Card highlight bar */
.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-accent);
    opacity: 0;
    transition: 0.3s;
}

.card:hover::after {
    opacity: 1;
}


/* TIMELINE */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--slate-200);
}

.timeline-item {
    padding-left: 60px;
    margin-bottom: 50px;
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--blue-600);
    border-radius: 50%;
    z-index: 1;
    transition: 0.3s;
}

.timeline-item:hover .timeline-marker {
    border-color: var(--highlight);
    /* Orange on hover */
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
    transform: scale(1.1);
}

/* FOOTER */
.footer {
    background-color: var(--blue-950);
    background-image: var(--grad-dark);
    color: var(--slate-300);
    padding: 80px 0 30px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .brand {
    color: white;
}

.footer .brand__mark {
    background: var(--highlight);
}

.footer a {
    color: var(--slate-400);
    text-decoration: none;
    transition: 0.2s;
}

.footer a:hover {
    color: var(--highlight);
    padding-left: 2px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--slate-500);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Animations & Utils */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bg-tech-grid {
    background-image:
        linear-gradient(rgba(30, 58, 138, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 138, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Check list */
.tech-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.tech-list li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(249, 115, 22, 0.15);
    /* Orange bg */
    color: var(--highlight);
    font-weight: 900;
    font-size: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

.section--dark .tech-list li::before {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cyan-400);
}

/* Cookie UI */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
    z-index: 9999;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.cookie-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.cookie-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cookie-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.cookie-option {
    border-bottom: 1px solid var(--slate-100);
    padding-bottom: 15px;
}

.cookie-option:last-child {
    border: none;
    padding: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--slate-500);
}/* Accessibility Widget */
.acc-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10001;
    /* Above cookie consent */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.acc-trigger {
    width: 50px;
    height: 50px;
    background: var(--blue-800);
    color: white;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: var(--trans-fast);
}

.acc-trigger:hover,
.acc-trigger.is-active {
    background: var(--highlight);
    transform: scale(1.1);
}

.acc-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 15px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--trans-fast);
}

.acc-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.acc-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px;
    background: var(--slate-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--blue-900);
    transition: 0.2s;
}

.acc-btn:hover {
    background: white;
    border-color: var(--highlight);
}

.acc-btn.is-active {
    background: var(--blue-800);
    color: white;
    border-color: var(--blue-800);
}

.acc-reset {
    margin-top: 5px;
    text-align: center;
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    color: var(--slate-500);
    background: none;
    border: none;
    width: 100%;
}