/* =============================================
   Intelidata — Design System
   ============================================= */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a78bfa;
    --bg: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-surface: #16162a;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-bright: #f8fafc;
    --border: rgba(99, 102, 241, 0.15);
    --glow: rgba(99, 102, 241, 0.3);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-bright);
}
.header nav {
    display: flex;
    gap: 28px;
}
.header nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}
.header nav a:hover { color: var(--primary-light); }

/* Hero */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
}
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-bright);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.hero-subtitle strong { color: var(--text); font-weight: 600; }
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 0 20px var(--glow);
}
.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 30px var(--glow);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

/* Stats */
.stats {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat-card {
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Sections */
.section { padding: 80px 0; }
.section-dark { background: var(--bg-surface); }
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-bright);
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-size: 1rem;
}

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.08);
}
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 10px;
    font-family: 'Inter', monospace;
}
.card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}
.card-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 600;
}

/* API section */
.api-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.api-method {
    background: #22c55e;
    color: #052e16;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.api-url {
    font-size: 0.9rem;
    color: var(--text);
    word-break: break-all;
}
.api-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}
.api-detail {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.85rem;
}
.api-detail strong { color: var(--text-bright); }
.api-detail span { color: var(--text-muted); }

/* About */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.about-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.8;
}
.about-content strong { color: var(--text); }

/* Footer */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
    text-align: center;
}
.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.footer-logos img {
    height: 50px;
    opacity: 0.8;
    filter: grayscale(0.3);
}
.footer-legal {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
}
.footer-copy {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cards-grid { grid-template-columns: 1fr; }
    .header nav { display: none; }
    .hero { padding: 60px 0 50px; }
    .api-box { flex-direction: column; text-align: center; }
}
