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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: #f8fafc;
}

header {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 40%, #252547 100%);
    color: white;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    z-index: 1;
    animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    animation: float 30s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.header-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.02);
}

.description {
    font-size: 1.2rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    font-weight: 400;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.button:hover::before {
    left: 100%;
}

.button.primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.button.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.highlight-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: -4rem auto 0;
    position: relative;
    z-index: 10;
}

.highlight-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.highlight-card:hover::before {
    opacity: 1;
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.api-card .card-icon {
    background: linear-gradient(135deg, #eff0fe 0%, #e0e7ff 100%);
    color: #6366f1;
}

.github-card .card-icon {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #1a1a2e;
}

.highlight-card h3 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.highlight-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.api-example {
    display: block;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 1.5rem;
    word-break: break-all;
    border: 1px solid #e2e8f0;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.card-link:hover {
    gap: 0.75rem;
    color: #4f46e5;
}

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

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    font-weight: 800;
}

.features > p {
    text-align: center;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
}

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

.feature {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f0f1ff 0%, #e5e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.6rem;
    color: #6366f1;
    transition: all 0.3s ease;
}

.feature:hover .feature-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    transform: scale(1.05);
}

.feature h3 {
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.feature p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.api-preview {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.api-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 0% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.api-preview h2 {
    position: relative;
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.api-preview > p {
    position: relative;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto 3rem;
}

.code-block {
    position: relative;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.code-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.875rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-header::before {
    content: '';
    display: flex;
    gap: 6px;
    width: 52px;
    height: 12px;
    background: 
        radial-gradient(circle at 6px 6px, #ff5f56 5px, transparent 5px),
        radial-gradient(circle at 26px 6px, #ffbd2e 5px, transparent 5px),
        radial-gradient(circle at 46px 6px, #27ca40 5px, transparent 5px);
    margin-right: 1rem;
}

.code-block pre {
    padding: 1.5rem;
    overflow-x: auto;
    margin: 0;
}

.code-block code {
    color: #e2e8f0;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
}

.demo-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.demo-controls {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.demo-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.demo-row.int-options {
    margin-bottom: 1.5rem;
}

.demo-field {
    flex: 1;
}

.demo-field label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.demo-field input,
.demo-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.demo-field input:focus,
.demo-field select:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(0, 0, 0, 0.4);
}

.demo-field select option {
    background: #1a1a2e;
    color: white;
}

.demo-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.demo-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.demo-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.demo-output {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-output .code-block {
    margin: 0;
    flex: 1;
}

.code-header {
    justify-content: space-between;
}

.demo-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.demo-status.loading {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.demo-status.success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.demo-status.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.demo-results-visual {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 80px;
    align-items: center;
}

.results-placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.result-number {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    animation: popIn 0.3s ease forwards;
    opacity: 0;
    transform: scale(0.8);
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .demo-row {
        flex-direction: column;
    }
}

.faq {
    padding: 6rem 2rem;
    background: white;
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    font-weight: 800;
}

.faq > p {
    text-align: center;
    color: #64748b;
    max-width: 500px;
    margin: 0 auto 4rem;
}

.faq-item {
    max-width: 700px;
    margin: 0 auto 1rem;
    padding: 1.75rem 2rem;
    background: #f8fafc;
    border-radius: 16px;
    border-left: 4px solid #6366f1;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.faq-item h3 {
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.faq-item p {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.95rem;
}

footer {
    background: linear-gradient(135deg, #0a0a12 0%, #0f0f1a 100%);
    color: white;
    padding: 5rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.footer-section h4 {
    color: #6366f1;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-section p {
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-description {
    margin-top: 0.75rem;
    font-size: 0.9rem !important;
    line-height: 1.6;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #6366f1;
    transform: translateX(4px);
}

.footer-section a i {
    width: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #64748b;
}

.parent-company {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.parent-company span {
    color: #64748b;
    font-size: 0.85rem;
}

.parent-logo {
    height: 28px;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.parent-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    header {
        padding: 4rem 1.5rem;
    }

    .header-logo {
        max-width: 300px;
    }

    .description {
        font-size: 1rem;
    }

    .header-buttons {
        flex-direction: column;
        align-items: center;
    }

    .button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .highlight-cards {
        grid-template-columns: 1fr;
        margin-top: -3rem;
        padding: 2rem 1rem;
    }

    .features h2,
    .api-preview h2,
    .faq h2 {
        font-size: 2rem;
    }

    .features,
    .api-preview,
    .faq {
        padding: 4rem 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .code-block {
        border-radius: 12px;
    }
}
