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

:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-400: #60a5fa;
    --purple-600: #9333ea;
    --purple-500: #a855f7;
    --purple-400: #c084fc;
    --cyan-600: #0891b2;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --green-600: #16a34a;
    --green-500: #22c55e;
    --green-400: #4ade80;
    --red-600: #dc2626;
    --red-500: #ef4444;
    --red-400: #f87171;
    --orange-500: #f97316;
    --yellow-500: #eab308;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--slate-950);
    color: white;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--slate-800);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--blue-500), var(--purple-600));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.nav-links {
    display: none;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    color: var(--slate-300);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.nav-link:hover {
    color: white;
    background: var(--slate-800);
}

.nav-link.active {
    background: var(--blue-600);
    color: white;
}

.btn-primary {
    padding: 0.5rem 1.5rem;
    background: linear-gradient(to right, var(--blue-600), var(--purple-600));
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.3);
}

/* Sections */
section {
    min-height: 100vh;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

section:first-of-type {
    padding-top: 0;
}

/* Hero Section */
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--slate-950), var(--slate-900), var(--slate-950));
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s infinite ease-in-out;
}

.hero-blob:nth-child(1) {
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent);
}

.hero-blob:nth-child(2) {
    bottom: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2), transparent);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(90deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 10rem 0 5rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 9999px;
    color: var(--blue-400);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s 0.2s ease-out backwards;
}

.gradient-text {
    background: linear-gradient(to right, var(--blue-400), var(--purple-400), var(--cyan-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--slate-300);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s 0.4s ease-out backwards;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 5rem;
    animation: fadeInUp 0.8s 0.6s ease-out backwards;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.btn-large {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-gradient {
    background: linear-gradient(to right, var(--blue-600), var(--purple-600));
    color: white;
}

.btn-gradient:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(8px);
    color: white;
    border: 1px solid var(--slate-700);
}

.btn-secondary:hover {
    background: var(--slate-800);
    transform: scale(1.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 48rem;
    margin: 0 auto;
    animation: fadeInUp 0.8s 0.8s ease-out backwards;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--slate-400);
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--slate-400);
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: color 0.3s;
}

.scroll-indicator:hover {
    color: white;
}

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

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Cards */
.card {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid var(--slate-800);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--slate-700);
    transform: translateY(-5px);
}

.card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card-desc {
    color: var(--slate-400);
    line-height: 1.6;
}

/* Server Image Container */
.server-showcase {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 25px 50px -12px rgba(6, 182, 212, 0.2);
}

.server-container {
    position: relative;
    aspect-ratio: 4/3;
}

.server-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transition: opacity 0.8s ease-in-out;
}

/* Scan line effect */
.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 8rem;
    background: linear-gradient(to bottom, transparent, rgba(34, 211, 238, 0.2), transparent);
    pointer-events: none;
    animation: scan 3s linear infinite;
}

@keyframes scan {
    from { top: -8rem; }
    to { top: 100%; }
}

/* Grid overlay */
.grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.2;
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(6, 182, 212, 0.3) 25%, rgba(6, 182, 212, 0.3) 26%, transparent 27%, transparent 74%, rgba(6, 182, 212, 0.3) 75%, rgba(6, 182, 212, 0.3) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(6, 182, 212, 0.3) 25%, rgba(6, 182, 212, 0.3) 26%, transparent 27%, transparent 74%, rgba(6, 182, 212, 0.3) 75%, rgba(6, 182, 212, 0.3) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
}

/* Glowing corners */
.corner {
    position: absolute;
    width: 5rem;
    height: 5rem;
    opacity: 0.6;
}

.corner-tl {
    top: 0;
    left: 0;
    border-left: 2px solid var(--cyan-400);
    border-top: 2px solid var(--cyan-400);
}

.corner-tr {
    top: 0;
    right: 0;
    border-right: 2px solid var(--cyan-400);
    border-top: 2px solid var(--cyan-400);
}

.corner-bl {
    bottom: 0;
    left: 0;
    border-left: 2px solid var(--cyan-400);
    border-bottom: 2px solid var(--cyan-400);
}

.corner-br {
    bottom: 0;
    right: 0;
    border-right: 2px solid var(--cyan-400);
    border-bottom: 2px solid var(--cyan-400);
}

.server-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--slate-950), transparent, rgba(2, 6, 23, 0.5));
}

.glow-pulse {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 60px rgba(6, 182, 212, 0.3);
    pointer-events: none;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Server indicator */
.server-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.indicator-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background: var(--slate-600);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator-dot:hover {
    background: var(--slate-500);
}

.indicator-dot.active {
    background: var(--cyan-400);
    width: 2rem;
}

/* Floating cards */
.floating-card {
    position: absolute;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: float-card 3s ease-in-out infinite;
}

.floating-card-1 {
    top: -1.5rem;
    right: -1.5rem;
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 25px 50px -12px rgba(6, 182, 212, 0.2);
}

.floating-card-2 {
    bottom: -1.5rem;
    left: -1.5rem;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.2);
    animation-delay: -1.5s;
}

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

.floating-card-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.floating-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Charts */
.chart-container {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid var(--slate-800);
    border-radius: 1rem;
    padding: 2rem;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-300);
    margin-bottom: 0.5rem;
}

input, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--slate-700);
    border-radius: 0.5rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--blue-500);
}

input::placeholder, textarea::placeholder {
    color: var(--slate-500);
}

textarea {
    resize: none;
}

/* Success message */
.success-message {
    text-align: center;
    padding: 3rem 0;
}

.success-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--slate-800);
    padding: 3rem 0;
    margin-top: 5rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    color: var(--slate-500);
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-20 {
    margin-bottom: 5rem;
}

.mt-20 {
    margin-top: 5rem;
}

.max-w-4xl {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.max-w-6xl {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .floating-card {
        display: none;
    }
}

/* Animation on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
