/* Modern CSS Variables */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-elevated: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-dark: #7c3aed;
    --success: #10b981;
    --border: rgba(255, 255, 255, 0.08);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --max-width: 1400px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated gradient background */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(125deg, #0a0a0a 0%, #1a0f2e 50%, #0a0a0a 100%);
    background-size: 200% 200%;
    animation: gradient-shift 20s ease infinite;
    z-index: -2;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 10, 0.7);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-text {
    color: var(--text-primary);
}

.logo-accent {
    color: var(--accent);
}

.nav-cta {
    padding: 0.625rem 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.nav-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 9rem 0 5.5rem;
    min-height: auto;
    position: relative;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 100px;
    color: var(--accent-light);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    animation: fade-in-up 0.6s ease-out;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-headline {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

.line-1 {
    display: block;
    white-space: nowrap;
    animation: fade-in-up 0.6s ease-out 0.1s backwards;
}

.line-2 {
    display: block;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fade-in-up 0.6s ease-out 0.2s backwards;
}

.hero-subtext {
    font-size: 1.375rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.5;
    animation: fade-in-up 0.6s ease-out 0.3s backwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    animation: fade-in-up 0.6s ease-out 0.4s backwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.btn-arrow {
    transition: transform 0.3s;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-secondary {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    animation: fade-in-up 0.6s ease-out 0.5s backwards;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.stat-divider {
    width: 1px;
    background: var(--border);
}

/* Hero Visual - Floating Cards */
.hero-visual {
    position: relative;
    height: 600px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    width: 320px;
    height: auto;
    animation: float 20s infinite ease-in-out;
    transition: transform 0.3s;
}

.floating-card:hover {
    transform: scale(1.05);
}

.card-1 {
    top: 50px;
    right: 100px;
    animation-delay: 0s;
}

.card-2 {
    top: 180px;
    right: 20px;
    animation-delay: 2s;
}

.card-3 {
    top: 320px;
    right: 150px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(10px) rotate(-1deg); }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.card-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.card-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-stars {
    color: #fbbf24;
    margin-bottom: 0.75rem;
}

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

/* How It Works Section */
.how {
    padding: 4.5rem 0 5.5rem;
}

@media (max-width: 640px) {
    .how {
        padding: 3rem 0;
    }
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 100px;
    color: var(--accent-light);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.process {
    display: grid;
    gap: 4rem;
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s;
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(10px);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
}

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

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-visual {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Process Animations */
.pulse-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: pulse-ring 3s infinite;
}

.pulse-ring.delay-1 {
    animation-delay: 1s;
}

.pulse-ring.delay-2 {
    animation-delay: 2s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.typing-animation {
    display: flex;
    gap: 4px;
}

.typing-animation span {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-animation span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-animation span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

.click-animation {
    animation: click 2s infinite;
}

@keyframes click {
    0%, 100% {
        transform: scale(1) rotate(0);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
}

/* Problem Section */
.problem {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

.problem-content {
    text-align: center;
}

.problem-headline {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.problem-subtext {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.problem-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s;
}

.problem-card:hover {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-5px);
}

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.problem-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

/* Solution Section */
.solution {
    padding: 6rem 0;
}

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

.solution-header {
    text-align: center;
    margin-bottom: 4rem;
}

.solution-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.comparison-old,
.comparison-new {
    padding: 2.5rem;
    border-radius: 20px;
}

.comparison-old {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.comparison-new {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.comparison h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.5;
}

.x-mark {
    color: #ef4444;
    font-weight: 700;
    font-size: 1.25rem;
}

.check-mark {
    color: #10b981;
    font-weight: 700;
    font-size: 1.25rem;
}

/* CTA Section */
.final-cta {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

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

.cta-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.cta-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
}

.cta-form input::placeholder {
    color: var(--text-muted);
}

.cta-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.cta-form button {
    padding: 1rem 2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.cta-form button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.cta-note {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-visual {
        position: relative;
        height: auto;
        margin-top: 1rem;
        margin-bottom: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .floating-card {
        position: relative !important;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        animation: none !important;
        transform: none;
        padding: 1rem;
    }

    /* Hide the third card on smaller screens */
    .card-3 {
        display: none;
    }

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

    .process-step {
        grid-template-columns: auto 1fr;
    }

    .step-visual {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 3rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    /* Compact cards on mobile */
    .hero-visual {
        margin-top: 1rem;
        margin-bottom: 1rem;
        display: block !important;
        padding: 0 1.5rem !important;
        height: auto !important;
    }

    .floating-card {
        position: relative !important;
        width: calc(100% - 3rem) !important;
        max-width: 350px !important;
        height: auto !important;
        padding: 0.75rem !important;
        margin: 0 auto 0.5rem !important;
        animation: none !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
    }

    /* Show all cards stacked with pronounced offset */
    .card-1 {
        transform: translateX(-15px) rotate(-1deg) !important;
    }

    .card-2 {
        display: block !important;
        transform: translateX(20px) rotate(0.5deg) !important;
    }

    .card-3 {
        display: block !important;
        transform: translateX(-10px) rotate(-0.5deg) !important;
    }

    .card-text {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        /* Show only 2 lines */
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .card-stars {
        margin-bottom: 0.5rem !important;
        font-size: 0.9rem !important;
    }

    .card-header {
        margin-bottom: 0.5rem !important;
        gap: 0.75rem !important;
    }

    .card-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.7rem !important;
    }

    .card-name {
        font-size: 0.9rem !important;
    }

    .card-time {
        font-size: 0.75rem !important;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: row;
        gap: 1rem;
        justify-content: space-between;
    }

    .stat {
        flex: 1;
        min-width: 0;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.02em;
    }

    .stat-divider {
        width: 1px;
        background: var(--border);
        opacity: 0.3;
    }

    .cta-form {
        flex-direction: column;
    }

    .cta-form button {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

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

    .process-step {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .step-number {
        font-size: 2rem;
    }
}