:root {
    /* Core Kerael Palette - Investor Grade */
    --primary-900: #0B1F33;
    /* Deep Tech Navy - Brand Primary */
    --primary-800: #0E1116;
    /* Graphite Black - Contrast/Dark Text */
    --primary-600: #334155;
    /* Muted Navy/Grey - Body Text */

    --bg-main: #F7F9FC;
    /* Main Background */
    --bg-card: #FFFFFF;
    /* Card Background */
    --bg-section: #EEF2F6;
    /* Section Alternate Background */

    --accent-glow: #D4AF37;
    /* Metallic Gold - Replaced Blue */
    --accent-gold: #D4AF37;
    /* Metallic Gold - Micro-accents only */
    --accent-gold-rich: #C69214;
    /* Deep Rich Gold - Headlines/Text */

    --border: #E2E8F0;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
}


/* Base Reset & Typography */
/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--primary-600);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-900);
    line-height: 1.2;
    font-weight: 800;
    /* Bold, Technical */
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4rem;
    color: var(--primary-800);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

/* Gold Micro-Accent on H2 */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gold);
    margin-top: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.text-center h2::after {
    margin-left: auto;
    margin-right: auto;
}

.text-accent {
    color: var(--accent-gold-rich);
}

.bg-white {
    background-color: var(--bg-card);
}

.section {
    padding: 6rem 0;
}

/* Grids */
.grid,
.grid-2,
.grid-3 {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* Buttons - High Tech */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    /* Sharper */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-900);
    color: #ffffff;
    border: 1px solid var(--primary-900);
    box-shadow: 0 4px 15px rgba(11, 31, 51, 0.2);
    /* Navy Shadow */
}

.btn-primary:hover {
    background-color: var(--primary-800);
    border-color: var(--accent-gold);
    box-shadow: 0 6px 20px rgba(11, 31, 51, 0.4);
    transform: translateY(-2px);
    color: var(--accent-gold);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-900);
    border: 1px solid var(--primary-900);
}

.btn-outline:hover {
    background-color: var(--primary-900);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(11, 31, 51, 0.2);
}

/* Header */
header {
    height: var(--header-height);
    background-color: rgba(247, 249, 252, 0.95);
    /* Matches bg-main */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-900);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo img {
    height: 44px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo span {
    font-size: 0.7rem;
    color: var(--accent-gold-rich);
    /* Gold Accent */
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary-900);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-glow);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-gold);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-900);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* No padding-top to ensure true vertical center */
    background:
        radial-gradient(circle at 100% 0%, rgba(14, 17, 22, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(212, 175, 55, 0.05) 0%, transparent 40%);
}

.hero-capsule {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-900);
    border: 1px solid var(--accent-gold);
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.35rem;
    max-width: 650px;
    margin: 0 auto 3rem auto;
    color: var(--primary-600);
    font-weight: 400;
}

/* Cards - Engineering Grade */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    /* Sharper */
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-gold);
    /* Gold Border on Hover */
}

/* Card Icon Box */
.card-icon {
    width: 56px;
    height: 56px;
    background: #FFFFFF;
    color: var(--accent-glow);
    /* Electric Blue Icons */
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.card:hover .card-icon {
    border-color: var(--accent-gold);
    background: var(--primary-900);
    color: #ffffff;
}

/* Real Brochure Images */
.card-img-full {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Show full technical detail */
    padding: 1rem;
    transition: transform 0.5s ease;
}

.card:hover .card-img-full {
    transform: scale(1.02);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--bg-section);
    color: var(--primary-900);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    /* Consistent spacing */
}

.badge-blue {
    display: table;
    /* Forces line break but fits content width */
    background: var(--accent-glow);
    color: #ffffff;
    border: none;
    margin-bottom: 1rem;
}

/* Footer - Deep Navy with Graphite Top for Logo Visibility */
/* Footer - Deep Navy with Graphite Top for Logo Visibility */
footer {
    background: linear-gradient(180deg, #334155 0%, #0B1F33 100%);
    /* Graphite to Deep Navy */
    color: #e2e8f0;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(11, 31, 51, 0.1);
    /* Subtle dark separation */
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h5 {
    color: var(--accent-gold);
    /* Gold Headers in Footer */
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-col ul li a {
    color: #cbd5e1;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--accent-glow);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    /* Layout Adjustments */
    .section {
        padding: 4rem 0;
        /* Reduced from 6rem */
    }

    .container {
        padding: 0 1.5rem;
        /* Better spacing for mobile */
    }

    /* Typography */
    h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Navigation */
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--accent-gold);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
        /* Larger touch targets */
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
        display: block;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-col h5::after {
        margin-left: auto;
        margin-right: auto;
    }

    /* Grid Collapse */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Animation utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Advanced Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Global Dynamic Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(11, 31, 51, 0.03) 0%, transparent 25%);
    z-index: -1;
    pointer-events: none;
    animation: pulseBg 10s ease-in-out infinite alternate;
}

@keyframes pulseBg {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Typing Effect Cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--accent-gold);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}