/* ============================================
   Landing Page Styles
   ============================================ */

/* ============ Navbar ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition-slow);
}

[data-theme="dark"] .navbar {
    background: rgba(10, 10, 11, 0.8);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--foreground);
    text-decoration: none;
}

.navbar-brand .brand-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.navbar-nav a {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    border-radius: var(--radius);
    transition: var(--transition);
}

.navbar-nav a:hover {
    color: var(--foreground);
    background: var(--accent);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 0.5rem;
}

/* ============ Hero ============ */
.hero {
    padding: 8rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

[data-theme="dark"] .hero::before {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin-bottom: 1.25rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-item .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
}

.hero-stat-item .stat-text {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

/* ============ Section ============ */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--muted);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.section-header p {
    color: var(--muted-foreground);
    font-size: 1rem;
    line-height: 1.6;
}

/* ============ Feature Cards ============ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition-slow);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.feature-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* ============ Integration Flow ============ */
.flow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.flow-step {
    text-align: center;
    padding: 1.5rem;
    position: relative;
}

.flow-step::after {
    content: '';
    position: absolute;
    top: 2.5rem;
    right: -0.75rem;
    width: 1.5rem;
    height: 2px;
    background: var(--border);
}

.flow-step:last-child::after {
    display: none;
}

.flow-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.flow-step h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.flow-step p {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

/* ============ API Section ============ */
.api-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.api-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.api-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
}

.api-features li i {
    color: var(--success);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* ============ CTA Section ============ */
.cta-section {
    padding: 5rem 0;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.cta-box h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.cta-box p {
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .btn {
    background: white;
    color: var(--primary);
    font-weight: 600;
}

.cta-box .btn:hover {
    background: #f1f5f9;
}

/* ============ Footer ============ */
.footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.footer-brand .brand-icon {
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    max-width: 300px;
}

.footer h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .flow-grid { grid-template-columns: repeat(2, 1fr); }
    .flow-step::after { display: none; }
    .api-preview { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar-nav { display: none; }
    .navbar-toggle { display: block; }
    
    .hero { padding: 6rem 0 3rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero p { font-size: 1rem; }
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; max-width: 280px; }
    
    .feature-grid { grid-template-columns: 1fr; }
    .flow-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    .section { padding: 3rem 0; }
}
