/* CapJet.io Landing Page Styles */

/* ── Utilities ─────────────────────────────────── */

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 720px;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Scroll fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Hero ──────────────────────────────────────── */

.hero {
    position: relative;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Aurora gradient background */
.hero-aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-aurora::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(56, 189, 248, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(167, 139, 250, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(244, 114, 182, 0.08) 0%, transparent 50%);
    animation: aurora-drift 25s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
    33%  { transform: translate(30px, -20px) rotate(2deg) scale(1.05); }
    66%  { transform: translate(-20px, 15px) rotate(-1deg) scale(0.98); }
    100% { transform: translate(10px, -10px) rotate(1deg) scale(1.02); }
}

/* Dot grid background */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at center, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* Cursor glow */
.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    pointer-events: none;
    z-index: 0;
    transition: left 0.3s ease-out, top 0.3s ease-out;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Neon glow on primary CTA */
.btn-glow {
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(56, 189, 248, 0.2); }
    50%      { box-shadow: 0 0 40px rgba(56, 189, 248, 0.35), 0 0 80px rgba(167, 139, 250, 0.1); }
}

/* Code window */
.code-window {
    padding: 0;
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(10, 14, 26, 0.5);
    border-bottom: 1px solid var(--border-subtle);
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-dot.red { background: #F87171; }
.code-dot.yellow { background: #FBBF24; }
.code-dot.green { background: #34D399; }

.code-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.code-body {
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
    overflow-x: auto;
    color: var(--text-secondary);
}

.code-body code {
    font-family: inherit;
}

/* Syntax highlighting */
.c-kw { color: var(--accent-violet); }
.c-mod { color: var(--text-primary); }
.c-var { color: var(--accent-cyan); }
.c-str { color: var(--success); }
.c-num { color: var(--accent-magenta); }
.c-cmt { color: var(--text-muted); font-style: italic; }

/* ── Steps ─────────────────────────────────────── */

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step {
    flex: 1;
    max-width: 280px;
    padding: 2rem;
    text-align: center;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.step code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
    padding: 0.1em 0.4em;
    border-radius: 4px;
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: var(--bg-deep);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 1rem;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
    opacity: 0.4;
    flex-shrink: 0;
}

/* ── Bento Grid ────────────────────────────────── */

.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.bento-card {
    padding: 2rem;
}

.bento-wide {
    grid-column: span 2;
}

.bento-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.bento-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── Pricing ───────────────────────────────────── */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-featured {
    border-color: rgba(56, 189, 248, 0.3);
}

/* Gradient border on featured */
.pricing-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(56, 189, 248, 0.4),
        rgba(167, 139, 250, 0.4),
        rgba(244, 114, 182, 0.4));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-brand);
    color: var(--bg-deep);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.pricing-price {
    margin-bottom: 1.5rem;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 700;
}

.pricing-per {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-subtle);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '\2713 ';
    color: var(--success);
    margin-right: 0.5rem;
}

/* ── FAQ ───────────────────────────────────────── */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
    padding: 0.1em 0.4em;
    border-radius: 4px;
}

/* ── CTA Section ───────────────────────────────── */

.cta-section {
    padding: 4rem 0;
}

/* ── Responsive ────────────────────────────────── */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-code {
        max-width: 500px;
        margin: 0 auto;
    }

    .steps {
        flex-direction: column;
        gap: 1rem;
    }

    .step-connector {
        width: 2px;
        height: 30px;
        background: linear-gradient(180deg, var(--accent-cyan), var(--accent-violet));
    }

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

    .bento-wide {
        grid-column: span 1;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}
