@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800;900&family=Sora:wght@300;400;600&display=swap');

:root {
    --bg-dark: #020617;
    --bg-card: rgba(30, 41, 59, 0.4);
    --accent-blue: #0ea5e9;
    --accent-purple: #8b5cf6;
    --accent-pink: #d946ef;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Sora', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(217, 70, 239, 0.05) 0%, transparent 40%);
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
}

/* Background grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* Floating Navigation */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1160px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 0.9;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 480px;
}

.hero-image {
    position: relative;
    width: 100%;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 0 80px rgba(14, 165, 233, 0.2);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Sections */
section {
    padding: 8rem 0;
}

.section-title {
    margin-bottom: 5rem;
    text-align: center;
}

.section-title h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 3rem;
    transition: all 0.4s ease;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Endpoints */
.endpoint-item {
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 1rem;
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.endpoint-item:hover {
    border-color: var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
}

.method {
    font-family: 'Outfit', sans-serif;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
}

.get {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.put {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
}

.post {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

.delete {
    background: rgba(248, 81, 73, 0.2);
    color: #ff7b72;
}

.head {
    background: rgba(88, 166, 255, 0.2);
    color: #79c0ff;
}

.path {
    font-family: monospace;
    margin-left: 2rem;
    font-size: 1.1rem;
}

.desc {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Tabs */
.tabs-container {
    margin-top: 2rem;
}

.tabs-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--accent-blue);
    background: rgba(14, 165, 233, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content code {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid var(--glass-border);
    padding: 2rem !important;
    border-radius: 12px;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        margin: 0 auto 3rem;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-image {
        order: 1;
        max-width: 600px;
        margin: 0 auto;
    }
}

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

    .section-title h2 {
        font-size: 2.5rem;
    }
}