/* ===================================
   AutoPBN Landing Page Styles
   Based on original PBN design + API
   =================================== */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --text-primary: #ffffff;
    --text-secondary: #8b8b9e;
    --accent-cyan: #00f5d4;
    --accent-purple: #9b5de5;
    --accent-pink: #f15bb5;
    --accent-yellow: #fee440;
    --gradient-main: linear-gradient(135deg, #00f5d4, #9b5de5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===================================
   Animated Background
   =================================== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(155, 93, 229, 0.4), transparent 70%);
    top: -200px;
    right: -200px;
    animation: float1 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.3), transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: float2 25s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(241, 91, 181, 0.3), transparent 70%);
    top: 50%;
    left: 50%;
    animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-100px, 100px) scale(1.1); }
    50% { transform: translate(-50px, 200px) scale(0.9); }
    75% { transform: translate(50px, 100px) scale(1.05); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(150px, -100px) scale(1.15); }
    66% { transform: translate(100px, -200px) scale(0.95); }
}

@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    25% { transform: translate(-40%, -60%) scale(1.2); }
    50% { transform: translate(-60%, -40%) scale(0.8); }
    75% { transform: translate(-45%, -55%) scale(1.1); }
}

/* Noise texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

/* ===================================
   Navigation
   =================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo svg {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-main);
    color: var(--bg-primary);
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.nav-cta:hover::before {
    left: 100%;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 245, 212, 0.3);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 4rem 4rem;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black, transparent);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(60px); }
}

.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-100px) scale(1); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease, badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.2); }
    50% { box-shadow: 0 0 20px 5px rgba(0, 245, 212, 0.1); }
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-main);
    color: var(--bg-primary);
    padding: 1.1rem 2.5rem;
    border-radius: 100px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(0, 245, 212, 0.4);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(5px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 1.1rem 2.5rem;
    border-radius: 100px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-secondary:hover {
    border-color: transparent;
    color: var(--bg-primary);
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-secondary span {
    position: relative;
    z-index: 1;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.stat {
    text-align: center;
    position: relative;
}

.stat::after {
    content: '';
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1), transparent);
}

.stat:last-child::after {
    display: none;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Solutions Section (Two Paths)
   =================================== */
.solutions {
    padding: 8rem 4rem;
    position: relative;
}

.solutions-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.solution-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 245, 212, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.solution-card:hover::before {
    transform: scaleX(1);
}

.solution-card.featured {
    border-color: rgba(0, 245, 212, 0.3);
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.05), rgba(155, 93, 229, 0.05));
}

.solution-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.solution-badge.accent {
    background: rgba(0, 245, 212, 0.15);
    color: var(--accent-cyan);
}

.solution-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.solution-icon svg {
    width: 100%;
    height: 100%;
}

.solution-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.solution-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.solution-price {
    margin-bottom: 2rem;
}

.solution-price .price-value {
    font-size: 3rem;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.solution-price .price-unit {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: 0.25rem;
}

.solution-features {
    list-style: none;
    margin-bottom: 2rem;
}

.solution-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.solution-features li svg {
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.solution-btn {
    width: 100%;
    justify-content: center;
}

/* ===================================
   Section Header
   =================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    position: relative;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--accent-cyan);
    opacity: 0.5;
}

.section-tag::before {
    right: calc(100% + 15px);
}

.section-tag::after {
    left: calc(100% + 15px);
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
}

/* ===================================
   How It Works
   =================================== */
.how-it-works {
    padding: 8rem 4rem;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.steps-line {
    position: absolute;
    top: 60px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    opacity: 0.3;
}

.steps-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    animation: lineProgress 3s ease-in-out infinite;
}

@keyframes lineProgress {
    0% { left: 0; }
    50% { left: 70%; }
    100% { left: 0; }
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid rgba(0, 245, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step:hover .step-number {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 0 50px rgba(0, 245, 212, 0.5);
}

.step-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.1), rgba(155, 93, 229, 0.1));
    border-radius: 20px;
    transition: all 0.4s ease;
}

.step:hover .step-icon {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 245, 212, 0.2);
}

.step-icon svg {
    width: 36px;
    height: 36px;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===================================
   Step Animations
   =================================== */
.step-animation {
    width: 180px;
    height: 140px;
    margin: 0 auto 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Step 1: Send Request Animation --- */
.anim-send-request {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.anim-terminal {
    width: 120px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.anim-terminal-header {
    display: flex;
    gap: 4px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.anim-terminal-header span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.anim-terminal-header span:nth-child(1) { background: #ff5f56; }
.anim-terminal-header span:nth-child(2) { background: #ffbd2e; }
.anim-terminal-header span:nth-child(3) { background: #27ca40; }

.anim-terminal-body {
    padding: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
}

.anim-typing-line {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.anim-prompt {
    color: var(--accent-cyan);
}

.anim-cursor {
    width: 6px;
    height: 12px;
    background: var(--accent-cyan);
    animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.anim-query {
    color: var(--accent-purple);
    font-size: 0.55rem;
    padding: 2px 4px;
    margin: 3px 0;
    background: rgba(155, 93, 229, 0.1);
    border-radius: 3px;
    opacity: 0;
    transform: translateX(-10px);
}

.anim-query-1 { animation: queryAppear 3s infinite 0.5s; }
.anim-query-2 { animation: queryAppear 3s infinite 1s; }
.anim-query-3 { animation: queryAppear 3s infinite 1.5s; }

@keyframes queryAppear {
    0%, 100% { opacity: 0; transform: translateX(-10px); }
    20%, 80% { opacity: 1; transform: translateX(0); }
}

.anim-send-arrow {
    position: absolute;
    right: 10px;
    width: 30px;
    height: 30px;
    animation: arrowPulse 2s infinite;
}

.anim-send-arrow svg {
    width: 100%;
    height: 100%;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(10px); opacity: 1; }
}

/* --- Step 2: Search Animation --- */
.anim-search {
    position: relative;
    width: 140px;
    height: 140px;
}

.anim-search-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    opacity: 0;
}

.anim-ring-1 {
    width: 40px;
    height: 40px;
    animation: ringPulse 2s infinite 0s;
}

.anim-ring-2 {
    width: 70px;
    height: 70px;
    animation: ringPulse 2s infinite 0.4s;
}

.anim-ring-3 {
    width: 100px;
    height: 100px;
    animation: ringPulse 2s infinite 0.8s;
}

@keyframes ringPulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

.anim-search-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 30px rgba(0, 245, 212, 0.3);
}

.anim-search-center svg {
    width: 24px;
    height: 24px;
}

.anim-competitor {
    position: absolute;
    padding: 4px 8px;
    background: var(--bg-card);
    border: 1px solid rgba(155, 93, 229, 0.3);
    border-radius: 6px;
    font-size: 0.55rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-purple);
    opacity: 0;
    white-space: nowrap;
}

.anim-comp-1 {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation: compAppear 3s infinite 0.3s;
}

.anim-comp-2 {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    animation: compAppear 3s infinite 0.6s;
}

.anim-comp-3 {
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation: compAppear 3s infinite 0.9s;
}

.anim-comp-4 {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    animation: compAppear 3s infinite 1.2s;
}

@keyframes compAppear {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    30%, 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.anim-comp-1 { animation: compAppear1 3s infinite 0.3s; }
.anim-comp-2 { animation: compAppear2 3s infinite 0.6s; }
.anim-comp-3 { animation: compAppear3 3s infinite 0.9s; }
.anim-comp-4 { animation: compAppear4 3s infinite 1.2s; }

@keyframes compAppear1 {
    0%, 100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    30%, 70% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes compAppear2 {
    0%, 100% { opacity: 0; transform: translateY(-50%) translateX(-10px); }
    30%, 70% { opacity: 1; transform: translateY(-50%) translateX(0); }
}

@keyframes compAppear3 {
    0%, 100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    30%, 70% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes compAppear4 {
    0%, 100% { opacity: 0; transform: translateY(-50%) translateX(10px); }
    30%, 70% { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* --- Step 3: Extract Animation --- */
.anim-extract {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.anim-doc {
    width: 70px;
    padding: 12px 10px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.anim-doc-line {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 5px 0;
}

.anim-doc-line.anim-highlight-line {
    background: rgba(0, 245, 212, 0.3);
    animation: highlightPulse 2s infinite;
}

@keyframes highlightPulse {
    0%, 100% { background: rgba(0, 245, 212, 0.2); }
    50% { background: rgba(0, 245, 212, 0.5); }
}

.anim-phrases {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.anim-phrase {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.1), rgba(155, 93, 229, 0.1));
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 6px;
    opacity: 0;
    transform: translateX(-20px);
}

.anim-phrase-text {
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
}

.anim-phrase-count {
    font-size: 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-cyan);
    font-weight: 700;
}

.anim-phrase-1 { animation: phraseSlide 3s infinite 0.3s; }
.anim-phrase-2 { animation: phraseSlide 3s infinite 0.6s; }
.anim-phrase-3 { animation: phraseSlide 3s infinite 0.9s; }

@keyframes phraseSlide {
    0%, 100% { opacity: 0; transform: translateX(-20px); }
    25%, 75% { opacity: 1; transform: translateX(0); }
}

/* --- Step 4: Result Animation --- */
.anim-result {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.anim-json {
    width: 130px;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    color: var(--text-secondary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.anim-json-brace {
    color: var(--text-primary);
    font-size: 0.6rem;
}

.anim-json-line {
    padding: 2px 0 2px 8px;
    opacity: 0;
}

.anim-json-key {
    color: var(--accent-cyan);
}

.anim-json-line-1 { animation: jsonLineAppear 4s infinite 0.3s; }
.anim-json-line-2 { animation: jsonLineAppear 4s infinite 0.6s; }
.anim-json-line-3 { animation: jsonLineAppear 4s infinite 0.9s; }
.anim-json-line-4 { animation: jsonLineAppear 4s infinite 1.2s; }

@keyframes jsonLineAppear {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
}

.anim-success-icon {
    position: absolute;
    top: 5px;
    right: 15px;
    width: 30px;
    height: 30px;
    opacity: 0;
    animation: successPop 4s infinite 1.5s;
}

.anim-success-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes successPop {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    30%, 70% { opacity: 1; transform: scale(1); }
    40%, 60% { transform: scale(1.1); }
}

/* ===================================
   Features
   =================================== */
.features {
    padding: 8rem 4rem;
    position: relative;
    overflow: hidden;
}

.features-bg-element {
    position: absolute;
    width: 800px;
    height: 800px;
    border: 1px solid rgba(0, 245, 212, 0.05);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotateSlow 60s linear infinite;
}

.features-bg-element:nth-child(2) {
    width: 600px;
    height: 600px;
    animation-direction: reverse;
    animation-duration: 45s;
}

.features-bg-element:nth-child(3) {
    width: 1000px;
    height: 1000px;
    animation-duration: 75s;
}

@keyframes rotateSlow {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(22, 22, 31, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(0, 245, 212, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.15), rgba(155, 93, 229, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(-5deg) scale(1.1);
}

.feature-icon svg {
    width: 36px;
    height: 36px;
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===================================
   API Section
   =================================== */
.api-section {
    padding: 8rem 4rem;
    background: var(--bg-secondary);
}

.api-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.api-info h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.api-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.api-features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.api-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.api-features-list li svg {
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.api-code {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-dots {
    display: flex;
    gap: 8px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27ca40; }

.code-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.code-block {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.code-comment { color: #6a737d; }
.code-keyword { color: var(--accent-cyan); }
.code-string { color: #a5d6ff; }
.code-number { color: var(--accent-purple); }

/* ===================================
   Pricing
   =================================== */
.pricing {
    padding: 8rem 4rem;
}

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

.pricing-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    transition: all 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
    border-color: rgba(0, 245, 212, 0.3);
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.05), rgba(155, 93, 229, 0.05));
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-main);
    color: var(--bg-primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

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

.pricing-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

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

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

.pricing-price .price-value {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-price .price-period {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

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

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-features li svg {
    color: var(--accent-cyan);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.pricing-btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
}

.pricing-note {
    max-width: 600px;
    margin: 3rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pricing-note svg {
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.pricing-note strong {
    color: var(--accent-cyan);
}

/* ===================================
   Comparison
   =================================== */
.comparison {
    padding: 8rem 4rem;
    background: var(--bg-secondary);
}

.comparison-table {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
    transition: all 0.3s ease;
}

.comparison-row:not(.comparison-header):hover {
    background: rgba(0, 245, 212, 0.03);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-header {
    background: rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.comparison-header span:nth-child(2) {
    color: var(--accent-cyan);
}

.comparison-row span:first-child {
    color: var(--text-secondary);
}

.comparison-row span:nth-child(2),
.comparison-row span:nth-child(3) {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
}

.check {
    color: var(--accent-cyan);
    display: inline-flex;
}

.check svg {
    width: 24px;
    height: 24px;
}

.cross {
    color: var(--text-secondary);
    opacity: 0.4;
    display: inline-flex;
}

.cross svg {
    width: 20px;
    height: 20px;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    padding: 8rem 4rem;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0, 245, 212, 0.15), transparent),
        radial-gradient(ellipse 40% 30% at 20% 50%, rgba(155, 93, 229, 0.1), transparent);
}

.cta-particles {
    position: absolute;
    inset: 0;
}

.cta-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: ctaFloat 6s ease-in-out infinite;
}

@keyframes ctaFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-50px) scale(1.5); opacity: 0.8; }
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

/* ===================================
   Footer
   =================================== */
footer {
    padding: 3rem 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ===================================
   Scroll Animations
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===================================
   Hamburger Menu
   =================================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    nav {
        padding: 1rem 2rem;
    }

    .hero {
        padding: 6rem 2rem 3rem;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .steps-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .steps-line {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .api-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 1000;
        padding: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li a {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .stat::after {
        display: none;
    }

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

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

    .comparison-row {
        font-size: 0.9rem;
        padding: 1rem 1.5rem;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    nav, .hero, .solutions, .how-it-works, .features, .api-section, .pricing, .comparison, .cta-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .solution-card, .feature-card, .pricing-card {
        padding: 2rem 1.5rem;
    }

    .step-animation {
        transform: scale(0.85);
    }
}
