/* ============================================
   Payonclick India — Dark Fintech Theme
   ============================================ */

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1629;
    --bg-card: #141b2d;
    --bg-card-hover: #1a2340;
    --border: rgba(255,255,255,0.06);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #6366f1;
    --accent-2: #8b5cf6;
    --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    --gradient-2: linear-gradient(135deg, #3b82f6, #6366f1);
    --green: #10b981;
    --blue: #3b82f6;
    --orange: #f59e0b;
    --pink: #ec4899;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 60px rgba(99,102,241,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 800;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s;
}

.navbar.scrolled .logo-img {
    filter: brightness(0) invert(1);
}

.footer .logo-img {
    height: 36px;
    filter: brightness(0) invert(1);
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
}

.logo-accent { color: var(--accent); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99,102,241,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.15);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--accent);
}

.btn-ghost {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
}

.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(99,102,241,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}
.glow-1 { width: 500px; height: 500px; background: rgba(99,102,241,0.2); top: -100px; right: -100px; }
.glow-2 { width: 400px; height: 400px; background: rgba(139,92,246,0.15); bottom: -50px; left: -50px; }
.glow-3 { width: 300px; height: 300px; background: rgba(59,130,246,0.1); top: 50%; left: 30%; }

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #a5b4fc;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-btns { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat-item { text-align: center; }
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}
.stat-suffix { font-size: 1.2rem; font-weight: 700; color: var(--accent); }
.stat-label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Code Window */
.hero-visual { position: relative; }

.code-window {
    background: #1a1f36;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow), var(--shadow-glow);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
}

.code-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.code-title { font-size: 0.8rem; color: var(--text-muted); margin-left: auto; }

.code-body {
    padding: 24px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.82rem;
    line-height: 1.8;
    overflow-x: auto;
    color: #e2e8f0;
}

.code-body code { font-family: inherit; }
.code-kw { color: #c084fc; }
.code-fn { color: #60a5fa; }
.code-str { color: #34d399; }
.code-num { color: #fbbf24; }
.code-cm { color: #64748b; }

/* Floating Cards */
.floating-card {
    position: absolute;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
    animation: float 3s ease-in-out infinite;
}

.card-1 { bottom: -20px; left: -30px; color: var(--green); }
.card-1 i { color: var(--green); }
.card-2 { top: 20px; right: -20px; color: var(--blue); animation-delay: -1.5s; }
.card-2 i { color: var(--blue); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---- SECTIONS COMMON ---- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
}

/* ---- SERVICES ---- */
.services {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99,102,241,0.2);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.service-icon.aeps { background: rgba(99,102,241,0.15); color: #818cf8; }
.service-icon.dmt { background: rgba(59,130,246,0.15); color: #60a5fa; }
.service-icon.recharge { background: rgba(16,185,129,0.15); color: #34d399; }
.service-icon.bbps { background: rgba(245,158,11,0.15); color: #fbbf24; }
.service-icon.pan { background: rgba(236,72,153,0.15); color: #f472b6; }
.service-icon.aadhaar { background: rgba(139,92,246,0.15); color: #a78bfa; }

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.service-features {
    list-style: none;
    margin-bottom: 20px;
}

.service-features li {
    padding: 5px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li i {
    color: var(--green);
    font-size: 0.75rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s;
}
.service-link:hover { gap: 10px; }

/* ---- WHY US ---- */
.why-us { padding: 100px 0; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    border-color: rgba(99,102,241,0.2);
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(99,102,241,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    margin: 0 auto 18px;
}

.feature-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* ---- API DOCS ---- */
.api-docs {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.api-showcase {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.api-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.api-tab {
    padding: 16px 32px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    font-family: inherit;
    white-space: nowrap;
}

.api-tab:hover { color: var(--text-secondary); }
.api-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: rgba(99,102,241,0.05);
}

.api-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.api-panel.active { display: grid; }

.api-info {
    padding: 36px;
    border-right: 1px solid var(--border);
}

.api-method {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.method-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.method-badge.post { background: rgba(99,102,241,0.15); color: #818cf8; }
.method-badge.get { background: rgba(16,185,129,0.15); color: #34d399; }

.api-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.api-info > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.api-params h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.params-table {
    width: 100%;
    border-collapse: collapse;
}

.params-table td {
    padding: 10px 0;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}

.params-table td:first-child code {
    background: rgba(99,102,241,0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #a5b4fc;
}

.params-table td:nth-child(2) {
    color: var(--text-muted);
    font-size: 0.8rem;
    padding-left: 12px;
    padding-right: 12px;
}

.params-table td:last-child { color: var(--text-secondary); }

.api-code {
    background: #0d1117;
    display: flex;
    align-items: stretch;
}

.api-code .code-window {
    width: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.api-code .code-window.dark .code-header {
    background: rgba(255,255,255,0.03);
}

/* ---- INTEGRATION STEPS ---- */
.integration { padding: 100px 0; }

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 36px;
    text-align: center;
    flex: 1;
    max-width: 320px;
    position: relative;
    transition: all 0.3s;
}

.step-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99,102,241,0.2);
    transform: translateY(-6px);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    position: absolute;
    top: 12px;
    right: 20px;
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(99,102,241,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin: 0 auto 20px;
}

.step-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step-card p { color: var(--text-secondary); font-size: 0.9rem; }

.step-connector {
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 0 20px;
}

/* ---- PRICING ---- */
.pricing {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.price-card:hover {
    border-color: rgba(99,102,241,0.2);
    transform: translateY(-6px);
}

.price-card.popular {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(99,102,241,0.08) 0%, var(--bg-card) 100%);
    box-shadow: 0 0 40px rgba(99,102,241,0.15);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 20px;
    background: var(--gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
}

.price-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.price-amount {
    margin-bottom: 16px;
}

.price-currency { font-size: 1.5rem; font-weight: 700; vertical-align: top; }
.price-value { font-size: 3rem; font-weight: 900; }
.price-period { font-size: 0.9rem; color: var(--text-muted); }

.price-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.price-features {
    list-style: none;
    margin-bottom: 28px;
    text-align: left;
}

.price-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features li i { color: var(--green); font-size: 0.8rem; }

/* ---- SOLUTIONS / WHITE-LABEL ---- */
.solutions {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.solutions::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,0.08), transparent 70%);
    border-radius: 50%;
}

.solutions-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 20px;
}

/* Showcase mockup */
.showcase-card {
    position: relative;
}

.screen-mockup {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow), var(--shadow-glow);
}

.screen-header {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
}

.dot-sm {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}

.dot-sm:nth-child(1) { background: #ef4444; }
.dot-sm:nth-child(2) { background: #f59e0b; }
.dot-sm:nth-child(3) { background: #10b981; }

.screen-body {
    padding: 28px;
}

.mock-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mock-logo i {
    font-size: 1.3rem;
}

.mock-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.mock-stat {
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
}

.mock-stat span {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.mock-stat small {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mock-chart {
    height: 80px;
    background: linear-gradient(180deg, rgba(99,102,241,0.15) 0%, transparent 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.mock-chart::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

/* Solution items */
.solutions-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.solution-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.solution-item:hover {
    border-color: rgba(99,102,241,0.3);
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(99,102,241,0.1);
}

.solution-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.solution-icon.wl { background: rgba(99,102,241,0.12); color: #818cf8; }
.solution-icon.custom { background: rgba(59,130,246,0.12); color: #60a5fa; }
.solution-icon.mobile { background: rgba(16,185,129,0.12); color: #34d399; }
.solution-icon.infra { background: rgba(245,158,11,0.12); color: #fbbf24; }

.solution-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.solution-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.solutions-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
}

.cta-note {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Trust bar */
.clients-trust {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.trust-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.trust-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.trust-item i {
    color: var(--accent);
    font-size: 1rem;
}

.trust-item span {
    font-weight: 800;
    color: var(--text-primary);
    margin-right: 2px;
}

@media (max-width: 768px) {
    .solutions-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .solutions-showcase { order: 2; }
    .solutions-content { order: 1; }
    .trust-stats { gap: 24px; }
    .solutions-cta { flex-direction: column; align-items: flex-start; }
}

/* ---- CONTACT ---- */
.contact { padding: 100px 0; }

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info .section-badge { margin-bottom: 16px; }
.contact-info h2 { font-size: 2rem; margin-bottom: 16px; text-align: left; }
.contact-info > p { color: var(--text-secondary); margin-bottom: 36px; }

.contact-details { display: flex; flex-direction: column; gap: 20px; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(99,102,241,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-item strong { display: block; font-size: 0.85rem; }
.contact-item span { color: var(--text-secondary); font-size: 0.9rem; }

.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-secondary); }
.form-group textarea { resize: vertical; min-height: 80px; }

/* ---- FOOTER ---- */
.footer {
    padding: 80px 0 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 16px 0 24px;
    max-width: 300px;
}

.social-links { display: flex; gap: 12px; }

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---- FAQ ---- */
.faq { padding: 100px 0; }

.faq-grid {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    background: linear-gradient(135deg, rgba(99,102,241,0.04) 0%, rgba(139,92,246,0.04) 100%);
    margin-bottom: 15px;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgba(99,102,241,0.25);
}

.faq-item.active {
    background: var(--bg-card);
    box-shadow: 0 15px 40px rgba(99,102,241,0.12);
    border-color: var(--accent);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    gap: 12px;
    user-select: none;
}

.faq-question:hover { color: var(--accent); }

.faq-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.8;
}

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */
body.light-mode {
    --bg-primary: #f5f7fb;
    --bg-secondary: #edf0f7;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f2fa;
    --border: rgba(0,0,0,0.08);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-glow: 0 0 60px rgba(99,102,241,0.08);
    --green: #059669;
}

/* Navbar */
body.light-mode .navbar.scrolled {
    background: rgba(245,247,251,0.92);
    border-bottom-color: rgba(0,0,0,0.06);
}
body.light-mode .nav-links li a { color: #475569; }
body.light-mode .nav-links li a:hover { color: var(--accent); }

/* Mobile nav */
body.light-mode .nav-links {
    background: rgba(245,247,251,0.98);
}

/* Logo — show original colors in light mode */
body.light-mode .logo-img,
body.light-mode .navbar.scrolled .logo-img,
body.light-mode .footer .logo-img {
    filter: none;
}

/* Buttons */
body.light-mode .btn-outline {
    border-color: rgba(0,0,0,0.15);
    color: #1e293b;
}
body.light-mode .btn-outline:hover {
    background: rgba(99,102,241,0.08);
    border-color: var(--accent);
    color: var(--accent);
}
body.light-mode .btn-ghost {
    background: rgba(0,0,0,0.04);
    color: #475569;
}
body.light-mode .btn-ghost:hover {
    background: rgba(99,102,241,0.08);
    color: var(--accent);
}

/* Theme toggle */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #f59e0b;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.theme-toggle:hover {
    background: rgba(99,102,241,0.15);
    border-color: rgba(99,102,241,0.3);
}
body.light-mode .theme-toggle {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.1);
    color: var(--accent);
}
body.light-mode .theme-toggle:hover {
    background: rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.3);
}

/* Hero */
body.light-mode .hero { background: var(--bg-primary); }
body.light-mode .grid-overlay {
    background-image: linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
}
body.light-mode .glow { opacity: 0.4; }
body.light-mode .hero-badge {
    background: rgba(99,102,241,0.08);
    border-color: rgba(99,102,241,0.15);
    color: var(--accent);
}
body.light-mode .hero-desc { color: #475569; }
body.light-mode .hero-stats .stat-value { color: #1e293b; }

/* Code window */
body.light-mode .code-window {
    background: #1e293b;
}
body.light-mode .code-header {
    background: rgba(255,255,255,0.05);
}

/* Section badges */
body.light-mode .section-badge {
    background: rgba(99,102,241,0.08);
    border-color: rgba(99,102,241,0.15);
    color: var(--accent);
}

/* Floating card */
body.light-mode .floating-card {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* Service cards */
body.light-mode .service-card {
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
body.light-mode .service-card:hover {
    box-shadow: 0 8px 30px rgba(99,102,241,0.1);
}

/* Feature cards */
body.light-mode .feature-card {
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
body.light-mode .feature-number {
    color: rgba(99,102,241,0.12);
}

/* API section */
body.light-mode .api-showcase {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
body.light-mode .api-tab.active {
    background: rgba(99,102,241,0.06);
}
body.light-mode .api-code {
    background: #0d1117;
}
body.light-mode .api-code .code-window {
    background: transparent;
}
body.light-mode .params-table td:first-child code {
    background: rgba(99,102,241,0.08);
    color: var(--accent);
}
body.light-mode .method-badge.post { background: rgba(99,102,241,0.1); color: #6366f1; }
body.light-mode .method-badge.get { background: rgba(16,185,129,0.1); color: #059669; }

/* Step cards */
body.light-mode .step-card {
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Price cards */
body.light-mode .price-card {
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
body.light-mode .price-card.popular {
    background: linear-gradient(180deg, rgba(99,102,241,0.06) 0%, #ffffff 100%);
    box-shadow: 0 4px 30px rgba(99,102,241,0.12);
}

/* Solutions */
body.light-mode .screen-mockup {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 0 40px rgba(99,102,241,0.06);
}
body.light-mode .screen-header {
    background: rgba(0,0,0,0.03);
}
body.light-mode .dot-sm { background: rgba(0,0,0,0.12); }
body.light-mode .dot-sm:nth-child(1) { background: #ef4444; }
body.light-mode .dot-sm:nth-child(2) { background: #f59e0b; }
body.light-mode .dot-sm:nth-child(3) { background: #10b981; }

body.light-mode .solution-item {
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
body.light-mode .solution-item:hover {
    box-shadow: 0 4px 20px rgba(99,102,241,0.08);
}

/* Contact form */
body.light-mode .contact-form-wrap {
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
body.light-mode .form-group input,
body.light-mode .form-group select,
body.light-mode .form-group textarea {
    background: #f5f7fb;
    color: #1e293b;
}
body.light-mode .form-group select option {
    background: #f5f7fb;
}

/* Footer */
body.light-mode .social-links a {
    background: rgba(0,0,0,0.04);
}

/* Mobile toggle hamburger */
body.light-mode .mobile-toggle span {
    background: #1e293b;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin: 0 auto 36px; }
    .hero-btns { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .api-panel { grid-template-columns: 1fr; }
    .api-info { border-right: none; border-bottom: 1px solid var(--border); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { 
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10,14,26,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--border);
    }
    body.light-mode .nav-links {
        background: rgba(245,247,251,0.98);
    }
    .nav-links.active { display: flex; }
    .nav-links li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
    .mobile-toggle { display: flex; }
    .services-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { flex-direction: column; gap: 20px; }
    .step-connector { transform: rotate(90deg); }
    .step-card { max-width: 100%; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .hero { padding: 100px 0 60px; }
}

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 16px; }
    .stat-divider { width: 40px; height: 1px; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; justify-content: center; }
    .api-tabs { gap: 0; }
    .api-tab { padding: 12px 16px; font-size: 0.8rem; }
}
