:root {
    --bg: #000A1A;
    --fg: #F8FAFC;
    --accent: #04D9FF;
    --muted: rgba(248, 250, 252, 0.7);
    --card: rgba(248, 250, 252, 0.02);
    --border: rgba(4, 217, 255, 0.12);
    --cyan: #00E5FF;
    --green: #34D399;
    --amber: #FBBF24;
    --red-alert: #FF4D6A;
    --gray-500: rgba(248, 250, 252, 0.5);
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Enhanced Dynamic Background */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.fluid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(4, 217, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 229, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(52, 211, 153, 0.04) 0%, transparent 50%);
    animation: fluidMove 20s ease-in-out infinite;
}

@keyframes fluidMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(2%, 1%) scale(1.02); }
    50% { transform: translate(-1%, 2%) scale(1.01); }
    75% { transform: translate(1%, -1%) scale(1.03); }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(4, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(4, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 70%);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s ease-in-out infinite;
}

.floating-element:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 20%; left: 80%; animation-delay: 2s; }
.floating-element:nth-child(3) { top: 60%; left: 20%; animation-delay: 4s; }
.floating-element:nth-child(4) { top: 70%; left: 70%; animation-delay: 6s; }
.floating-element:nth-child(5) { top: 40%; left: 90%; animation-delay: 8s; }
.floating-element:nth-child(6) { top: 80%; left: 40%; animation-delay: 10s; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    25% { transform: translateY(-20px) translateX(10px); opacity: 0.6; }
    50% { transform: translateY(-40px) translateX(-5px); opacity: 0.4; }
    75% { transform: translateY(-20px) translateX(15px); opacity: 0.5; }
}

/* Geometric Shapes */
.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.geo-shape {
    position: absolute;
    opacity: 0.1;
    border: 1px solid var(--accent);
}

.geo-shape.triangle {
    width: 0;
    height: 0;
    border: none;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid rgba(4, 217, 255, 0.1);
}

.geo-shape.triangle:nth-child(1) { top: 15%; left: 5%; transform: rotate(15deg); }
.geo-shape.square { width: 30px; height: 30px; top: 25%; right: 10%; transform: rotate(45deg); }
.geo-shape.hexagon { 
    width: 40px; 
    height: 23px; 
    background: transparent;
    border: 1px solid var(--accent);
    top: 70%; 
    left: 8%;
}
.geo-shape.hexagon::before,
.geo-shape.hexagon::after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    left: -1px;
}
.geo-shape.hexagon::before {
    bottom: 100%;
    border-bottom: 11px solid var(--accent);
}
.geo-shape.hexagon::after {
    top: 100%;
    border-top: 11px solid var(--accent);
}
.geo-shape.triangle:nth-child(4) { top: 50%; right: 5%; transform: rotate(-30deg); }

/* Geometric Accents */
.geometric-accent {
    position: absolute;
    border: 1px solid rgba(4, 217, 255, 0.08);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.accent-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.accent-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: -50px;
    animation-delay: 2s;
}

.accent-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 5%;
    animation-delay: 4s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

/* Mouse Glow */
.mouse-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(4, 217, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* Navigation Header */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(0, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-logo-link:hover {
    opacity: 0.8;
}

.nav-logo-image {
    height: 32px;
    width: auto;
}

.nav-logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fg);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.client-login-button {
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.client-login-button:hover {
    background: var(--accent);
    color: var(--bg);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--fg);
    transition: all 0.3s ease;
}

/* Main Content */
.main-content {
    padding-top: 100px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0 6rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title .accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 1000px;
    margin: 0 auto 2rem;
}

.hero-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.hero-contact:hover {
    opacity: 0.8;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--fg);
}

.section-subtitle {
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Trust Grid */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* Trust Card */
.trust-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.trust-card:hover {
    border-color: rgba(4, 217, 255, 0.3);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 217, 255, 0.1);
    border-radius: 10px;
    color: var(--accent);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--fg);
}

.card-content {
    color: var(--muted);
    font-size: 0.95rem;
}

.card-content ul {
    list-style: none;
    padding: 0;
}

.card-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.card-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* Certification Badges */
.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(4, 217, 255, 0.05);
    border: 1px dashed var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--muted);
    font-family: var(--font-mono);
}

.cert-badge.coming-soon {
    opacity: 0.7;
}

.cert-badge .status {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    background: rgba(251, 191, 36, 0.2);
    color: var(--amber);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: 0.9rem;
    color: var(--green);
    font-family: var(--font-mono);
}

/* Slim Footer */
.slim-footer {
    padding: 2rem;
    background: rgba(0, 10, 26, 0.6);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-image {
    height: 24px;
    width: auto;
}

.footer-logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fg);
}

.footer-address {
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-left p {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-link {
    color: var(--muted);
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent);
}

.back-to-top {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(0, 10, 26, 0.95);
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-section {
        padding: 2rem 0 4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        margin-top: 1rem;
    }

    .section {
        padding: 2rem 0;
    }

    .container {
        padding: 0 1rem;
    }
}