@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&display=swap');

/* ──────────────────────────────────────
   DESIGN TOKENS
   ────────────────────────────────────── */

:root {
    --primary-blue:    #0077FF;
    --primary-dark:    #1a2e5a;
    --primary-light:   #7AB8FF;
    --accent-green:    #10b981;
    --accent-green-lt: #d1fae5;
    --secondary:       #3B6FD4;

    --bg-primary:   #FFFFFF;
    --bg-secondary: #F5F8FD;
    --bg-tertiary:  #EBF1FA;

    --text-primary:   #0F1F3D;
    --text-secondary: #4a5a78;
    --text-muted:     #7286a0;

    --shadow-sm:   0 1px 3px rgba(10, 25, 60, 0.05);
    --shadow-md:   0 4px 14px rgba(10, 25, 60, 0.09);
    --shadow-lg:   0 8px 28px rgba(10, 25, 60, 0.13);
    --shadow-xl:   0 16px 48px rgba(10, 25, 60, 0.16);
    --shadow-2xl:  0 28px 72px rgba(10, 25, 60, 0.22);
    --shadow-blue: 0 10px 36px rgba(0, 119, 255, 0.28);

    --transition-fast: 140ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 260ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  20px;
    --radius-xl:  28px;
    --radius-full: 9999px;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.65;
    overflow-x: hidden;
}

/* ──────────────────────────────────────
   HERO SECTION
   ────────────────────────────────────── */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 25px 9rem 80px;
    overflow: hidden;

    /* Rich layered mesh gradient */
    background:
        radial-gradient(ellipse 120% 90% at 70% 110%, rgba(0, 119, 255, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 80% 70% at 95% 10%,  rgba(59, 111, 212, 0.09) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 10% 80%,  rgba(122, 184, 255, 0.08) 0%, transparent 50%),
        linear-gradient(160deg, #F5F8FD 0%, #EFF5FF 50%, #F8FAFF 100%);
}

/* Subtle dot grid texture */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 100, 220, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
    pointer-events: none;
}

/* Floating ambient blob */
.hero-section::after {
    content: '';
    position: absolute;
    top: -25%;
    right: -12%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(0, 119, 255, 0.06) 0%, transparent 65%);
    border-radius: 50%;
    animation: floatBlob 22s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(24px, -32px) scale(1.04); }
    66%       { transform: translate(-16px, 18px) scale(0.97); }
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ── Hero Text Side ── */

.hero-content {
    animation: slideInLeft 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero-title {
    font-family: "Alan Sans", "Sora", sans-serif;
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.08;
    color: var(--primary-dark);
    margin-bottom: 22px;
    letter-spacing: -0.5px;
    animation: fadeUp 0.75s ease-out 0.2s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1dd3b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 30px;
    max-width: 520px;
    animation: fadeUp 0.75s ease-out 0.32s both;
}

.hero-benefits {
    list-style: none;
    margin-bottom: 38px;
    animation: fadeUp 0.75s ease-out 0.42s both;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 0.97rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.benefit-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    font-size: 0.95rem;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 30px;
    animation: fadeUp 0.75s ease-out 0.52s both;
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 30px;
    font-size: 0.97rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.1px;
}

.btn i {
    transition: transform var(--transition-base);
}

.btn:hover i {
    transform: translateX(3px);
}

.btn-primary {
    background: linear-gradient(135deg, #0077FF 0%, #3B6FD4 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.32),
                inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 119, 255, 0.42),
                inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 119, 255, 0.25);
}

.btn-secondary {
    background: white;
    color: var(--primary-blue);
    border-color: rgba(0, 119, 255, 0.25);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

/* ── Trust bar ── */

.hero-trust {
    display: flex;
    gap: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(0, 31, 80, 0.08);
    animation: fadeUp 0.75s ease-out 0.62s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 650;
}

.trust-item i {
    color: var(--accent-green);
    font-size: 1.05rem;
}

/* ── Hero Visual Side ── */

.hero-visual {
    position: relative;
    animation: slideInRight 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero-visual-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.visual-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        var(--shadow-2xl),
        0 0 0 1px rgba(0, 119, 255, 0.08);

    /* Decorative ring around the image */
    outline: 1px solid rgba(255, 255, 255, 0.7);
    outline-offset: 6px;
}

.visual-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 60%,
        rgba(26, 46, 90, 0.18) 100%
    );
    pointer-events: none;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
    transition: transform 0.6s ease;
}

.visual-card:hover .hero-image {
    transform: scale(1.02);
}

/* ── Scroll indicator ── */

.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: scrollBounce 2.4s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50%       { transform: translateX(-50%) translateY(-8px); opacity: 1; }
}


/* ──────────────────────────────────────
   FEATURES SECTION
   ────────────────────────────────────── */

.features-section {
    padding: 120px 2rem;
    background: var(--bg-primary);
    position: relative;
}

/* Subtle top gradient separator */
.features-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent, rgba(0, 119, 255, 0.12), transparent);
}

.features-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 72px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    background: rgba(0, 119, 255, 0.07);
    color: var(--primary-blue);
    border: 1px solid rgba(0, 119, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 750;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
}

.features-header h2 {
    font-family: "Alan Sans", "Sora", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: -0.3px;
    line-height: 1.15;
}

.features-header p {
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.features-grid {
    max-width: 1260px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    background: white;
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 31, 80, 0.07);
    transition: all var(--transition-slow);
    overflow: hidden;
    opacity: 0;
    transform: translateY(28px);
}

/* Gradient top border on hover */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), #1dd3b0);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Subtle background bloom on hover */
.feature-card::after {
    content: '';
    position: absolute;
    top: -40px;
    left: -20px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 119, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.55s ease-out, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 119, 255, 0.14);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 22px;
    transition: all var(--transition-base);
    box-shadow: 0 6px 18px rgba(0, 119, 255, 0.25);
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.08) rotate(4deg);
    box-shadow: 0 10px 28px rgba(0, 119, 255, 0.38);
}

.feature-card h3 {
    font-family: "Alan Sans", "Sora", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.1px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.72;
    margin-bottom: 20px;
    font-size: 0.94rem;
    position: relative;
    z-index: 1;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.feature-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--primary-blue);
    transition: width 0.22s ease;
}

.feature-link:hover {
    gap: 10px;
}

.feature-link:hover::after {
    width: calc(100% - 18px);
}

.feature-link i {
    font-size: 0.78rem;
    transition: transform var(--transition-base);
}

.feature-link:hover i {
    transform: translateX(2px);
}


/* ──────────────────────────────────────
   HOW IT WORKS SECTION
   ────────────────────────────────────── */

.how-it-works {
    padding: 120px 2rem;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Background radial glow */
.how-it-works::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(0, 119, 255, 0.04) 0%, transparent 65%);
    pointer-events: none;
}

.works-container {
    max-width: 1024px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.works-header {
    text-align: center;
    margin-bottom: 72px;
}

.works-header h2 {
    font-family: "Alan Sans", "Sora", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 14px;
    letter-spacing: -0.3px;
}

.steps-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 56px;
    position: relative;
}

.step-item {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 31, 80, 0.07);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(28px);
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.step-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 119, 255, 0.12);
}

.step-item.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.55s ease-out, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-number {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    box-shadow:
        0 8px 24px rgba(0, 119, 255, 0.3),
        0 0 0 6px rgba(0, 119, 255, 0.1);
    transition: box-shadow 0.3s ease;
}

.step-item:hover .step-number {
    box-shadow:
        0 10px 32px rgba(0, 119, 255, 0.42),
        0 0 0 10px rgba(0, 119, 255, 0.1);
}

.step-content h3 {
    font-family: "Alan Sans", "Sora", sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.92rem;
}

.step-connector {
    flex: 0 0 60px;
    height: 2px;
    margin-top: 58px; /* align with center of step number */
    position: relative;
    z-index: 0;

    background: linear-gradient(90deg,
        rgba(0, 119, 255, 0.2),
        rgba(0, 119, 255, 0.5),
        rgba(0, 119, 255, 0.2));
}

.step-connector::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid rgba(0, 119, 255, 0.5);
}

.works-cta {
    text-align: center;
}


/* ──────────────────────────────────────
   CTA SECTION
   ────────────────────────────────────── */

.cta-section {
    position: relative;
    padding: 100px 2rem;
    color: white;
    overflow: hidden;

    background:
        radial-gradient(ellipse 80% 100% at 10% 120%, rgba(29, 211, 176, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse 80% 80% at 90% -20%, rgba(122, 184, 255, 0.30) 0%, transparent 50%),
        linear-gradient(145deg, #0d2150 0%, #0a1c45 40%, #0f2860 80%, #1a3a7a 100%);
}

/* Subtle animated grain/grid overlay */
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0);
    background-size: 40px 40px;
    animation: shiftGrid 28s linear infinite;
    pointer-events: none;
}

@keyframes shiftGrid {
    0%   { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

/* Bottom glow */
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(0, 119, 255, 0.3) 0%, transparent 65%);
    pointer-events: none;
    filter: blur(40px);
}

.cta-container {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: "Alan Sans", "Sora", sans-serif;
    font-size: 2.7rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.cta-content p {
    font-size: 1.15rem;
    margin-bottom: 44px;
    opacity: 0.85;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-light {
    background: white;
    color: var(--primary-blue);
    border-color: white;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.92);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-blue);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-decoration {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0.06;
}

.decoration-circle {
    width: 90px;
    height: 90px;
    border: 1.5px solid white;
    border-radius: 50%;
}


/* ──────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────── */

@media (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-section {
        padding: 80px 3rem 80px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .stat-float--1 {
        top: -14px;
        right: -10px;
    }

    .stat-float--2 {
        bottom: 16px;
        left: -10px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 1.5rem 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .features-section,
    .how-it-works,
    .cta-section {
        padding: 80px 1.5rem;
    }

    .features-header h2,
    .works-header h2,
    .cta-content h2 {
        font-size: 2rem;
    }

    .steps-timeline {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .step-item {
        max-width: 100%;
        width: 100%;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        flex: 0 0 40px;
        margin: 0;
        background: linear-gradient(180deg,
            rgba(0, 119, 255, 0.2),
            rgba(0, 119, 255, 0.5),
            rgba(0, 119, 255, 0.2));
    }

    .step-connector::after {
        top: auto;
        bottom: -5px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) rotate(90deg);
    }

    .cta-actions {
        flex-direction: column;
    }

    .stat-float {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.97rem;
    }

    .feature-card {
        padding: 28px 22px;
    }
}