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

:root {
    --primary: #376e5c;
    --primary-light: #e8f2ef;
    --foreground: #1a1a1a;
    --muted: #666;
    --background: #ffffff;
    --border: #e5e5e5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--background);
    color: var(--foreground);
}

/* Network Canvas Background */
#networkCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Page Wrapper */
.page-wrapper {
    position: relative;
    z-index: 1;
}

/* Hero Screen */
.hero-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 2rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(250,250,250,0.8) 100%);
    position: relative;
    overflow: hidden;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.brand-logo {
    height: 38px;
}

.nav-cta {
    padding: 0.7rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(55, 110, 92, 0.3);
}

/* Hero Center */
.hero-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
    animation: fade-in 0.6s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Dynamic Heading */
.dynamic-heading {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.static-text {
    display: block;
    animation: fade-in 0.8s ease-out 0.2s backwards;
}

.rotating-text {
    display: inline-block;
    color: var(--primary);
    position: relative;
    animation: fade-in 0.8s ease-out 0.4s backwards;
}

.rotating-text::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    right: 0;
    height: 0.15em;
    background: var(--primary);
    opacity: 0.2;
}

.question-mark {
    color: var(--primary);
    animation: fade-in 0.8s ease-out 0.6s backwards;
}

/* Hero Lead */
.hero-lead {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    animation: fade-in 0.8s ease-out 0.8s backwards;
}

.hero-lead strong {
    color: var(--foreground);
    font-weight: 600;
}

/* CTA Group */
.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fade-in 0.8s ease-out 1s backwards;
}

.cta-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: var(--primary);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(55, 110, 92, 0.2);
    height: 60px;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(55, 110, 92, 0.35);
}

.btn-large svg {
    transition: transform 0.3s;
}

.btn-large:hover svg {
    transform: translateX(4px);
}

.btn-large.white {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-large.white:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn-large.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn-large.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 30px rgba(55, 110, 92, 0.35);
}

.cta-hint {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Floating Features Cards */
.features-floating {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-card {
    position: absolute;
    width: 180px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: float-in 0.8s ease-out backwards;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.float-card:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
    z-index: 100;
}

.card-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), transparent);
    border-radius: 1.25rem;
    opacity: 0;
    transition: opacity 0.4s;
    filter: blur(8px);
    z-index: -1;
}

.float-card:hover .card-glow {
    opacity: 0.3;
}

.card-inner {
    text-align: center;
}

.card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce-icon 3s ease-in-out infinite;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.float-card:hover .card-icon {
    animation: none;
    transform: scale(1.15) rotate(5deg);
}

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

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.card-text {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Card Positioning */
.card-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0.2s;
}

.card-2 {
    top: 25%;
    right: 10%;
    animation-delay: 0.4s;
}

.card-3 {
    top: 50%;
    left: 5%;
    animation-delay: 0.6s;
}

.card-4 {
    top: 55%;
    right: 6%;
    animation-delay: 0.8s;
}

.card-5 {
    bottom: 12%;
    left: 12%;
    animation-delay: 1s;
}

.card-6 {
    bottom: 8%;
    right: 18%;
    animation-delay: 1.2s;
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animations */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    /* Hide floating cards on tablet and mobile to prevent overlap */
    .float-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-screen {
        padding: 0 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
}