/* ===================================
   Flowrish Landing Page - Revamped
   Modern, Clean, User-Centered Design
   =================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #0F67FE;
    --primary-light: #298AFF;
    --primary-dark: #0B51EA;
    --secondary: #1A1A1A;
    --background: #0A0A0A;
    --surface: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --border: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 96px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.1s forwards;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.btn-nav {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition);
}

.btn-nav:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 160px 0 var(--spacing-3xl);
    background: 
        radial-gradient(circle at 20% 50%, rgba(15, 103, 254, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(41, 138, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, var(--background) 0%, var(--surface) 50%, var(--background) 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 8px 16px;
    background: rgba(15, 103, 254, 0.1);
    border: 1px solid rgba(15, 103, 254, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.hero-badge i {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

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

.btn i {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(15, 103, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 103, 254, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

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

.hero-trust {
    display: flex;
    gap: var(--spacing-md);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 14px;
}

.trust-item i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-showcase {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.phone-img {
    width: 300px;
    height: auto;
    border-radius: 32px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

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

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

/* Problem/Solution Section */
.problem-solution {
    padding: var(--spacing-3xl) 0;
    background: var(--surface);
}

.section-header {
    margin-bottom: var(--spacing-2xl);
}

.section-header.centered {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.solution-card {
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.solution-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(15, 103, 254, 0.3);
    transform: translateY(-4px);
}

.solution-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(15, 103, 254, 0.2) 0%, rgba(41, 138, 255, 0.1) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.solution-icon i {
    width: 32px;
    height: 32px;
    color: var(--primary-light);
}

.solution-card h3 {
    font-size: 24px;
    margin-bottom: var(--spacing-sm);
}

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

/* How It Works */
.how-it-works {
    padding: var(--spacing-3xl) 0;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
}

.step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.step.reverse {
    direction: rtl;
}

.step.reverse > * {
    direction: ltr;
}

.step-visual {
    position: relative;
}

.step-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.step-number {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(15, 103, 254, 0.1);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-sm);
}

.step-content h3 {
    font-size: 32px;
    margin-bottom: var(--spacing-sm);
}

.step-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.step-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.step-features i {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* Features */
.features {
    padding: var(--spacing-3xl) 0;
    background: var(--surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.feature-card {
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(15, 103, 254, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(15, 103, 254, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 103, 254, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(15, 103, 254, 0.2) 0%, rgba(41, 138, 255, 0.1) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    transition: var(--transition);
}

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

.feature-icon i {
    width: 28px;
    height: 28px;
    color: var(--primary-light);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: var(--spacing-sm);
}

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

/* CTA Section */
.cta-section {
    padding: var(--spacing-3xl) 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(15, 103, 254, 0.15) 0%, transparent 70%),
        var(--background);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.cta-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
}

.btn-label {
    font-size: 12px;
    opacity: 0.8;
}

.btn-platform {
    font-size: 18px;
    font-weight: 700;
}

.cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    color: var(--text-tertiary);
    font-size: 14px;
}

.cta-note i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

/* Footer */
.footer {
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: var(--text-tertiary);
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
    color: var(--text-tertiary);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 8px;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border);
    color: var(--text-tertiary);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .hero-subtitle {
        max-width: 100%;
    }
    
    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-trust {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .solution-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .step {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .step.reverse {
        direction: ltr;
    }
    
    .step-img {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xs: 6px;
        --spacing-sm: 12px;
        --spacing-md: 20px;
        --spacing-lg: 28px;
        --spacing-xl: 40px;
        --spacing-2xl: 56px;
        --spacing-3xl: 72px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Navigation */
    .nav-container {
        padding: var(--spacing-sm);
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-links.mobile-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
        border-top: 1px solid var(--border);
        z-index: 1001;
    }
    
    .nav-link,
    .btn-nav {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
    
    .mobile-menu-btn {
        display: block;
        padding: 8px;
    }
    
    .mobile-menu-btn i {
        width: 24px;
        height: 24px;
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 var(--spacing-2xl);
    }
    
    .hero-badge {
        font-size: 13px;
        padding: 6px 14px;
    }
    
    .hero-title {
        font-size: 36px;
        line-height: 1.15;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .trust-item {
        font-size: 13px;
    }
    
    .phone-img {
        width: 260px;
    }
    
    /* Sections */
    .problem-solution,
    .how-it-works,
    .features,
    .cta-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: var(--spacing-sm);
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .section-header {
        margin-bottom: var(--spacing-xl);
    }
    
    /* Solution Cards */
    .solution-card {
        padding: var(--spacing-md);
    }
    
    .solution-icon {
        width: 56px;
        height: 56px;
        margin-bottom: var(--spacing-sm);
    }
    
    .solution-icon i {
        width: 28px;
        height: 28px;
    }
    
    .solution-card h3 {
        font-size: 20px;
    }
    
    .solution-card p {
        font-size: 15px;
    }
    
    /* Steps */
    .steps-container {
        gap: var(--spacing-2xl);
    }
    
    .step-img {
        max-width: 280px;
    }
    
    .step-number {
        font-size: 13px;
        padding: 6px 14px;
    }
    
    .step-content h3 {
        font-size: 24px;
    }
    
    .step-content p {
        font-size: 16px;
    }
    
    .step-features {
        gap: 10px;
    }
    
    .step-features li {
        font-size: 14px;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .feature-card {
        padding: var(--spacing-md);
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
    }
    
    .feature-icon i {
        width: 24px;
        height: 24px;
    }
    
    .feature-card h3 {
        font-size: 18px;
    }
    
    .feature-card p {
        font-size: 15px;
    }
    
    /* CTA Section */
    .cta-title {
        font-size: 32px;
    }
    
    .cta-subtitle {
        font-size: 16px;
    }
    
    .btn-large {
        padding: 16px 32px;
        font-size: 16px;
        width: 100%;
    }
    
    .cta-note {
        font-size: 13px;
        flex-wrap: wrap;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    /* Policy Pages Mobile */
    .policy-section {
        padding: 100px 0 var(--spacing-2xl);
    }
    
    .policy-content h1 {
        font-size: 32px;
    }
    
    .policy-content h2 {
        font-size: 24px;
    }
    
    .policy-content h3 {
        font-size: 20px;
    }
    
    .policy-content p,
    .policy-content li {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 15px;
    }
    
    .phone-img {
        width: 220px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .solution-card h3 {
        font-size: 18px;
    }
    
    .step-content h3 {
        font-size: 20px;
    }
    
    .cta-title {
        font-size: 28px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    .btn {
        min-height: 48px;
    }
    
    .nav-link,
    .btn-nav {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .solution-card:hover {
        transform: none;
    }
    
    /* Active states for touch */
    .btn:active {
        transform: scale(0.98);
    }
    
    .feature-card:active,
    .solution-card:active {
        transform: scale(0.98);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.hero-visual {
    animation: fadeIn 1s ease-out;
}

/* Policy Pages */
.policy-section {
    padding: 120px 0 var(--spacing-3xl);
    background: var(--background);
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.policy-date {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-bottom: var(--spacing-xl);
}

.policy-content h2 {
    font-size: 32px;
    font-weight: 600;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.policy-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.policy-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.policy-content ul {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.policy-content li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.policy-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.policy-footer {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border);
    text-align: center;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
