/* ============================================
   FINYLIO - Premium Landing Page Styles
   Inspired by Wealthsimple's Editorial Design
   ============================================ */

/* Reset & Variables */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #10b981;
    --accent-warm: #f59e0b;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg-primary: #ffffff;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #10b981 0%, #059669 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.15);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: var(--transition-base);
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    transition: var(--transition-base);
}

.navbar.scrolled::before {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar.scrolled .logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: var(--transition-fast);
}

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

.cta-nav {
    background: white;
    color: var(--text-primary) !important;
    padding: 12px 24px;
    border-radius: 100px;
    -webkit-text-fill-color: var(--text-primary);
}

.cta-nav::after {
    display: none;
}

.cta-nav:hover {
    background: var(--primary);
    color: white !important;
    -webkit-text-fill-color: white;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: white;
    transition: var(--transition-fast);
}

/* Navbar scrolled state - dark text on white background */
.navbar.scrolled .nav-link {
    color: var(--text-secondary);
}

.navbar.scrolled .nav-link:hover {
    color: var(--text-primary);
}

.navbar.scrolled .nav-link::after {
    background: var(--primary);
}

.navbar.scrolled .cta-nav {
    background: var(--text-primary);
    color: white !important;
    -webkit-text-fill-color: white;
}

.navbar.scrolled .cta-nav:hover {
    background: var(--primary);
}

.navbar.scrolled .mobile-menu-btn span {
    background: var(--text-primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-video-container,
.hero-bg-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video,
.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.85) 0%,
        rgba(15, 23, 42, 0.7) 50%,
        rgba(99, 102, 241, 0.4) 100%
    );
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.eyebrow-line {
    width: 40px;
    height: 2px;
    background: white;
}

.hero-title {
    font-size: clamp(48px, 7vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: white;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.1s forwards;
}

.title-highlight {
    background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 480px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.btn-white {
    background: white;
    color: var(--text-primary);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-ghost {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* Hero Visual - BIGGER PHONE */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s ease 0.4s forwards;
}

.phone-showcase {
    position: relative;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

/* BIGGER PHONE FRAME */
.phone-frame {
    width: 340px;
    height: 700px;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 50px;
    padding: 12px;
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: #0f172a;
    border-radius: 12px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0f172a;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

.phone-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.phone-screen-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.phone-screen-img.active {
    opacity: 1;
}

/* REMOVED CAROUSEL INDICATORS */
.carousel-indicators {
    display: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

.scroll-text {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-arrow {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ============================================
   TRUST BANNER
   ============================================ */
.trust-banner {
    background: var(--bg-dark);
    padding: 60px 24px;
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
}

.trust-stat {
    text-align: center;
}

.trust-number {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.trust-label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.trust-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   FEATURES SECTION (with Images)
   ============================================ */
.features-section {
    background: var(--bg-primary);
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.feature-block-reverse {
    direction: rtl;
}

.feature-block-reverse > * {
    direction: ltr;
}

.feature-media {
    position: relative;
    overflow: hidden;
}

.feature-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

.feature-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feature-block:hover .feature-image {
    transform: scale(1.03);
}

.feature-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

.feature-block-reverse .feature-image-overlay {
    background: linear-gradient(
        -90deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

/* Dark overlay for market section */
.feature-image-dark {
    background: var(--bg-dark);
}

.feature-overlay-dark {
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.3) 0%,
        rgba(15, 23, 42, 0.5) 100%
    ) !important;
}

/* Phone Showcase Visual */
.feature-phone-showcase {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.feature-phone-showcase::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
}

.feature-phone-showcase::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, transparent 60%);
}

.showcase-phone-frame {
    width: 300px;
    height: 620px;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 44px;
    padding: 10px;
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.showcase-phone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #0f172a;
    border-radius: 20px;
    z-index: 10;
}

.showcase-phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 36px;
}

.feature-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    background: var(--bg-primary);
}

.feature-content-inner {
    max-width: 480px;
}

.feature-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 20px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 100px;
}

.feature-label-light {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.feature-title {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.feature-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.feature-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    color: var(--accent);
    flex-shrink: 0;
}

/* IPO Preview Cards */
.ipo-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.ipo-card-mini {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.ipo-card-mini:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.ipo-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.ipo-status.live {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.ipo-status.upcoming {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.ipo-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.ipo-progress {
    height: 6px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 12px;
}

.ipo-progress-bar {
    height: 100%;
    width: var(--progress);
    background: var(--gradient-accent);
    border-radius: 100px;
    transition: width 1s ease;
}

.ipo-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.ipo-card-mini.upcoming {
    background: rgba(99, 102, 241, 0.03);
    border-color: rgba(99, 102, 241, 0.1);
}

/* Market Preview Cards (Light Theme) */
.market-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.market-card-light {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.market-card-light:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.market-header-light {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.market-label-light {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.market-change-light {
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
}

.market-change-light.positive {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.market-change-light.negative {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.market-value-light {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.market-chart-light {
    height: 50px;
}

.market-chart-light svg {
    width: 100%;
    height: 100%;
}

.live-indicator-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 8px;
}

.live-dot-light {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

/* Professional Mini Grid */
.professional-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 32px;
}

.professional-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    transition: var(--transition-base);
}

.professional-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.professional-mini-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.professional-mini-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.professional-mini-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.professional-mini-count {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   SHOWCASE SECTION (Market)
   ============================================ */
.showcase-section {
    padding: 160px 24px;
    position: relative;
    overflow: hidden;
}

.showcase-dark {
    background: var(--bg-dark);
    color: white;
}

.showcase-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.showcase-title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.showcase-description {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    max-width: 420px;
}

.showcase-visual {
    display: flex;
    justify-content: center;
}

/* Market Display */
.market-display {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.market-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 16px;
    backdrop-filter: blur(20px);
    transition: var(--transition-base);
}

.market-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.market-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.market-change {
    font-size: 14px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
}

.market-change.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.market-value {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.market-chart {
    height: 80px;
}

.market-chart svg {
    width: 100%;
    height: 100%;
}

.chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 16px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

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

/* Floating Particles */
.floating-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(99, 102, 241, 0.4);
    border-radius: 50%;
    animation: floatParticle 15s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 3s; }
.particle:nth-child(3) { left: 50%; animation-delay: 6s; }
.particle:nth-child(4) { left: 70%; animation-delay: 9s; }
.particle:nth-child(5) { left: 90%; animation-delay: 12s; }

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

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-section {
    padding: 160px 24px;
    background: var(--bg-primary);
}

.how-container {
    max-width: 1200px;
    margin: 0 auto;
}

.how-header {
    text-align: center;
    margin-bottom: 100px;
}

.how-title {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.how-step {
    text-align: center;
}

.step-visual {
    position: relative;
    margin-bottom: 32px;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 24px;
    color: white;
    position: relative;
    z-index: 1;
}

.step-number {
    position: absolute;
    top: -10px;
    right: calc(50% - 60px);
    font-size: 80px;
    font-weight: 900;
    color: rgba(99, 102, 241, 0.08);
    line-height: 1;
    z-index: 0;
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 280px;
    margin: 0 auto;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    padding: 200px 24px;
    overflow: hidden;
}

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

.cta-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.9) 0%,
        rgba(139, 92, 246, 0.9) 100%
    );
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.cta-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: white;
    margin-bottom: 24px;
}

.cta-description {
    font-size: 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 48px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-darker);
    padding: 80px 24px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.logo-img {
    border-radius: 10px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.footer-link {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Scroll-triggered animations */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .hero-container {
        gap: 60px;
    }
    
    .professional-mini-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-eyebrow {
        justify-content: center;
    }
    
    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    /* Phone responsive */
    .phone-frame {
        width: 280px;
        height: 580px;
    }
    
    .feature-block,
    .feature-block-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .feature-image-wrapper {
        min-height: 50vh;
    }
    
    .feature-phone-showcase {
        min-height: 60vh;
    }
    
    .showcase-phone-frame {
        width: 260px;
        height: 540px;
    }
    
    .feature-content {
        padding: 60px 24px;
    }
    
    .showcase-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .showcase-description {
        margin: 0 auto 48px;
    }
    
    .how-steps {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .trust-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .trust-divider {
        width: 60px;
        height: 1px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 100px 16px 60px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-description {
        font-size: 17px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    /* Phone responsive */
    .phone-frame {
        width: 260px;
        height: 540px;
    }
    
    .feature-title,
    .showcase-title,
    .how-title,
    .cta-title {
        font-size: 32px;
    }
    
    .professional-mini-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 120px 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-video {
        display: none;
    }
}
