/* Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #0B0F17;
    --panel: rgba(255, 255, 255, 0.05);
    --panel-2: rgba(22, 27, 34, 0.55);
    --stroke: rgba(255, 255, 255, 0.10);
    --stroke-2: rgba(255, 255, 255, 0.14);
    --text-dim: #d1d5db;
    --text-muted: #9ca3af;
    --accent: #00D4FF;
    --accent-2: #7C3AED;
    --accent-3: #10B981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'SF Pro', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(1200px 700px at 20% 10%, rgba(0, 212, 255, 0.10), transparent 60%),
                radial-gradient(1000px 700px at 85% 35%, rgba(124, 58, 237, 0.12), transparent 55%),
                radial-gradient(900px 700px at 40% 95%, rgba(16, 185, 129, 0.08), transparent 60%),
                var(--bg);
    color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem;
    overflow: hidden;
}

.background-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    color: #ffffff;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse 4s ease-in-out infinite;
}

.orb-1 {
    top: 25%;
    left: 25%;
    width: 24rem;
    height: 24rem;
    background-color: rgba(0, 212, 255, 0.2);
}

.orb-2 {
    bottom: 25%;
    right: 25%;
    width: 24rem;
    height: 24rem;
    background-color: rgba(124, 58, 237, 0.2);
    animation-delay: 1s;
}

.orb-3 {
    top: 50%;
    right: 33%;
    width: 16rem;
    height: 16rem;
    background-color: rgba(16, 185, 129, 0.1);
    animation-delay: 2s;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 80rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #00D4FF;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    color: #d1d5db;
    max-width: 48rem;
    margin: 0 auto 2.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 18px 44px rgba(124, 58, 237, 0.35), 0 0 0 1px rgba(0, 212, 255, 0.15) inset;
}

.cta-button:active {
    transform: translateY(0) scale(1.01);
}

.chart-illustration {
    margin-top: 4rem;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.3;
}

.chart-illustration svg {
    width: 100%;
    height: 16rem;
}

/* Trust strip (after hero) */
.trust-strip {
    padding: 2.25rem 1.5rem 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.trust-card {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--stroke);
    border-radius: 1rem;
    padding: 1.1rem 1.2rem;
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.trust-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 212, 255, 0.22);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.trust-icon {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.22) 0%, rgba(124, 58, 237, 0.22) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--accent);
    flex: 0 0 auto;
}

.trust-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.trust-title {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.trust-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.15rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

/* Form Section */
.form-section {
    padding: 5rem 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.application-form {
    max-width: 48rem;
    margin: 0 auto;
    background: var(--panel);
    backdrop-filter: blur(16px);
    border: 1px solid var(--stroke);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #121826;
    border: 1px solid var(--stroke);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.18);
}

.form-group input:focus-visible,
.form-group select:focus-visible {
    outline: none;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--accent);
}

.checkbox-grid,
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

/* Wallet choices layout (shown only after coldWallet = yes) */
.wallet-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--panel-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-label:hover,
.radio-label:hover {
    background-color: rgba(18, 24, 38, 0.9);
    border-color: rgba(0, 212, 255, 0.22);
    transform: translateY(-1px);
}

.checkbox-label:focus-within,
.radio-label:focus-within {
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.checkbox-label input,
.radio-label input {
    width: auto;
    margin-right: 0.75rem;
    cursor: pointer;
}

.checkbox-label input:checked + span,
.radio-label input:checked + span {
    color: #ffffff;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 18px 44px rgba(124, 58, 237, 0.35), 0 0 0 1px rgba(0, 212, 255, 0.15) inset;
}

.submit-button:active {
    transform: translateY(0) scale(1.0);
}

/* Collapsible follow-up (cold wallet) */
.collapsible {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: max-height 0.45s ease, opacity 0.35s ease, transform 0.35s ease;
}

.collapsible.is-open {
    max-height: 700px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.how-it-works-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    font-size: 1rem;
}

/* AI Section */
.ai-section {
    padding: 5rem 1.5rem;
    background-color: rgba(22, 27, 34, 0.28);
}

.ai-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.ai-icon {
    width: 5rem;
    height: 5rem;
    animation: pulse 2s ease-in-out infinite;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-dim);
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 2rem;
}

.success-rate {
    text-align: center;
    margin-bottom: 3rem;
}

.success-rate-number {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00D4FF 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 1rem 2rem;
    border-radius: 1rem;
    background-color: rgba(22, 27, 34, 0.5);
    display: inline-block;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.success-rate-label {
    color: #10B981;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--panel);
    backdrop-filter: blur(16px);
    border: 1px solid var(--stroke);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 212, 255, 0.20);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #ffffff;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 1.5rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--panel);
    backdrop-filter: blur(16px);
    border: 1px solid var(--stroke);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 46px rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.18);
}

.stars {
    color: #10B981;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.author-name {
    font-weight: 600;
}

.author-location {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* How It Works Section */
.how-it-works-section {
    padding: 5rem 1.5rem;
    background-color: rgba(22, 27, 34, 0.28);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
}

.step {
    text-align: center;
}

.step-number {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, #00D4FF 0%, #7C3AED 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.step-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

.step:nth-child(1) .step-icon {
    color: #00D4FF;
}

.step:nth-child(2) .step-icon {
    color: #7C3AED;
}

.step:nth-child(3) .step-icon {
    color: #10B981;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--text-muted);
}

/* Footer Section */
.footer-section {
    padding: 5rem 1.5rem;
    background-color: rgba(22, 27, 34, 0.5);
    text-align: center;
}

.footer-subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

.disclaimer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.disclaimer p {
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 48rem;
    margin: 0 auto;
}

/* Thank You Page */
.thank-you-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.thank-you-content {
    position: relative;
    z-index: 10;
    max-width: 40rem;
    text-align: center;
}

.success-icon {
    width: 8rem;
    height: 8rem;
    background-color: rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    animation: scaleIn 0.5s ease-out;
}

.success-icon svg {
    width: 5rem;
    height: 5rem;
    color: #10B981;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.thank-you-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.thank-you-message {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .application-form {
        padding: 3rem;
    }
    
    .success-rate-number {
        font-size: 5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .steps-grid::before {
        content: '';
        position: absolute;
        top: 5rem;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(135deg, #00D4FF 0%, #7C3AED 100%);
        opacity: 0.3;
    }
}

@media (max-width: 767px) {
    .hero-section {
        /* On mobile, 100vh often creates a large empty area between hero and the next section.
           Let the hero height be driven by content while keeping comfortable padding. */
        min-height: auto;
        padding: 4rem 1.25rem 2.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }

    .chart-illustration {
        /* Reduce vertical footprint so it doesn't look like a huge gap on small screens */
        margin-top: 2.25rem;
    }

    .chart-illustration svg {
        height: 10rem;
    }

    .trust-strip {
        padding-top: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .application-form {
        padding: 1.5rem;
    }
    
    .checkbox-grid,
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .success-rate-number {
        font-size: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
