/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Fira+Code:wght@400&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
    --bg-dark: #09090b;
    --bg-card: rgba(24, 24, 27, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --success: #10b981;
    --error: #ef4444;
    --blur: blur(12px);
    --glow: 0 0 20px rgba(139, 92, 246, 0.3);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 40%);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: 0.3s;
    position: relative;
}

nav a:hover, nav a.active {
    color: white;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 15px;
    text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(139, 92, 246, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px 60px;
    animation: fadeIn 0.8s ease-out;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    color: var(--success);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
}

/* Grid Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin: 40px 0;
    animation: fadeIn 1s ease-out;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: #6366f1;
    transform: translateY(-5px);
    background: rgba(30, 30, 35, 0.8);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.05);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 25px;
}

/* Forms */
.form-section {
    max-width: 600px;
    margin: 50px auto;
    animation: fadeIn 0.6s ease-out;
}

.form-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input, 
.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 14px;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

.form-group textarea {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #52525b;
    font-size: 12px;
}

/* Code Blocks & Response */
.response-box {
    margin-top: 25px;
    background: #0f0f12;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 0;
    overflow: hidden;
    display: none;
}

.response-header {
    background: rgba(255,255,255,0.03);
    padding: 8px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.code-content {
    padding: 15px;
    overflow-x: auto;
}

pre {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    color: #e2e8f0;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: 0.2s;
}

.copy-btn:hover {
    background: white;
    color: black;
}

/* Loading */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
footer {
    margin-top: 100px;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    background: rgba(9, 9, 11, 0.5);
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

footer .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    nav { display: none; } /* Mobile menu logic needed separately, or simplify */
    /* Simple Mobile Nav Fix */
    header .container { flex-direction: column; gap: 15px; }
    nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; width: 100%; }
}

