@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
    /* Brand tokens */
    --page: #f6f8fc;
    --surface: #ffffff;
    --surface-muted: #eef4fb;
    --ink: #071936;
    --ink-soft: #30415f;
    --ink-muted: #6b7892;
    --line: #d7e1ee;
    --brand-cyan: #22e6f2;
    --brand-cyan-dark: #08b9df;
    --brand-cyan-soft: #d9fbff;
    --brand-blue: #0757d8;
    --brand-blue-dark: #003a9c;
    --brand-navy: #00194f;
    --brand-navy-deep: #000d35;
    --brand-glow: #52f5ff;
    --blueprint: #195bb9;
    --blueprint-soft: #e8f2ff;
    --repair-red: #b42318;
    --repair-red-soft: #fde7e3;
    --monitor-amber: #b76e00;
    --monitor-amber-soft: #fff0cf;
    --inspected-blue: #2563a6;
    --inspected-blue-soft: #e3eefb;

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-gentle: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--page);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

@keyframes cardSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(34, 230, 242, 0.18); }
    50%       { box-shadow: 0 0 40px rgba(34, 230, 242, 0.34); }
}

/* Animate on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

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

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html { scroll-behavior: auto; }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(0, 13, 53, 0.0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}

nav.scrolled {
    padding: 14px 0;
    background: rgba(0, 13, 53, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: #ffffff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--brand-cyan);
    color: var(--brand-navy-deep);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: background 0.25s ease, transform 0.25s var(--ease-out-back), box-shadow 0.25s ease;
}

.nav-cta:hover {
    background: var(--brand-glow);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 230, 242, 0.28);
}

.nav-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    padding: 4px;
}

.nav-mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(0, 13, 53, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0 16px;
}

.nav-mobile-menu.open {
    display: flex;
}

.nav-mobile-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 24px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-mobile-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-mobile-cta {
    display: block;
    margin: 8px 24px 0;
    padding: 12px 20px;
    background: var(--brand-cyan);
    color: var(--brand-navy-deep);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    text-align: center;
    transition: background 0.2s ease;
}

.nav-mobile-cta:hover {
    background: var(--brand-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    padding: 14px 28px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s var(--ease-out-back);
}

.btn-primary {
    background: var(--brand-cyan);
    color: var(--brand-navy-deep);
}

.btn-primary:hover {
    background: var(--brand-glow);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(34, 230, 242, 0.28);
}

.btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--brand-blue);
    border: 1.5px solid var(--brand-blue);
}

.btn-outline:hover {
    background: var(--brand-cyan-soft);
    transform: translateY(-1px);
}

/* Status pills */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
}

.pill-repair {
    background: var(--repair-red-soft);
    color: var(--repair-red);
}

.pill-monitor {
    background: var(--monitor-amber-soft);
    color: var(--monitor-amber);
}

.pill-inspected {
    background: var(--inspected-blue-soft);
    color: var(--inspected-blue);
}

.pill-ok {
    background: var(--brand-cyan-soft);
    color: var(--brand-navy);
}

/* Section spacing */
section {
    position: relative;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-menu-toggle {
        display: flex;
    }
    .container {
        padding: 0 16px;
    }
}
