:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #10B981;
    --bg-dark: #0B0F19;
    --bg-panel: #111827;
    --bg-card: #1F2937;
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --border-color: #374151;
    --gradient-brand: linear-gradient(135deg, #4F46E5 0%, #10B981 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary);
}

/* Header */
header {
    background-color: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    color: white;
}

/* Sections */
section {
    padding: 6rem 2rem;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 8rem;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(11, 15, 25, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #9CA3AF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Features */
.features {
    background-color: var(--bg-panel);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

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

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

/* API Info */
.api-info {
    text-align: center;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-panel) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.api-box {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid var(--primary);
    padding: 3rem;
    border-radius: 16px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(79, 70, 229, 0.1);
}

.api-box h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.api-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Contact */
.contact {
    text-align: center;
}

.contact-box {
    background-color: var(--bg-panel);
    padding: 4rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin: 0 auto;
}

.contact-box a {
    font-size: 1.25rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Legal Page specific */
.legal-content {
    padding-top: 8rem;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.legal-content p, .legal-content ul {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.legal-content ul {
    list-style-position: inside;
    margin-left: 1rem;
}

/* Footer */
footer {
    background-color: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    text-align: center;
}

footer .footer-links {
    margin-bottom: 1rem;
}

footer .footer-links a {
    margin: 0 1rem;
    color: var(--text-muted);
}

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

footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
}
