/* RiFin Landing Page CSS */
:root {
    --color-primary: #1a1a1a;
    --color-accent: #22c55e;
    --color-orange: #f97316;
    --color-background: #E8ECF0;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-secondary: #6b7280;
    --color-text-muted: #9ca3af;
    --color-border: #e5e7eb;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --section-padding: 120px;
    --container-width: 1200px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--font-family);
    background: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast)
}

ul {
    list-style: none
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
    white-space: nowrap
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2)
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25)
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border)
}

.btn-outline:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem
}

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

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700
}

.logo-container {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: white;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700
}

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

/* Privacy Badges */
.privacy-badges {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap
}

.privacy-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text)
}

.privacy-badge svg {
    color: var(--color-accent);
    flex-shrink: 0
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-secondary)
}

.nav-links a:hover {
    color: var(--color-text)
}

.nav-cta {
    padding: 10px 20px
}

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

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 var(--section-padding);
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #f5f5f5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: rgba(34, 197, 94, 0.15);
    top: -200px;
    right: -100px
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(249, 115, 22, 0.1);
    bottom: -100px;
    left: -100px
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(139, 92, 246, 0.08);
    top: 50%;
    left: 30%
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center
}

.hero-content {
    position: relative;
    z-index: 1
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary)
}

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2)
    }
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-accent), #16a34a, var(--color-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    max-width: 520px
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted)
}

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

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center
}

.phone-mockup {
    position: relative
}

.phone-frame {
    position: relative;
    background: #1a1a1a;
    border-radius: 44px;
    padding: 12px;
    box-shadow: var(--shadow-2xl)
}

.phone-notch {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 20px;
    z-index: 10
}

.phone-screen {
    width: 100%;
    border-radius: 36px;
    display: block
}

.phone-main {
    z-index: 2
}

.phone-main .phone-frame {
    width: 300px
}

.phone-secondary {
    position: absolute;
    left: -60px;
    top: 60px;
    z-index: 1;
    transform: rotate(-8deg);
    opacity: 0.85
}

.phone-secondary .phone-frame {
    width: 240px
}

.floating-card {
    position: absolute;
    background: white;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 6s ease-in-out infinite;
    z-index: 10
}

.card-1 {
    top: 80px;
    right: 20px
}

.card-2 {
    bottom: 120px;
    left: -20px;
    animation-delay: 3s
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-15px)
    }
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem
}

.card-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-accent)
}

.card-icon.orange {
    background: rgba(249, 115, 22, 0.1)
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 2px
}

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

.card-value {
    font-size: 1rem;
    font-weight: 700
}

/* Sections */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7
}

/* Features */
.features {
    padding: var(--section-padding) 0;
    background: white
}

.features-rows {
    display: flex;
    flex-direction: column;
    gap: 120px;
    padding-top: 64px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.feature-visual .phone-mockup {
    width: 320px;
    max-width: 100%;
    transform: none !important;
    /* Reset hover effects */
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
}

.feature-text h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.feature-text p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

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

.feature-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--color-text);
}

.feature-list-item svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

/* Response for Tablet/Mobile */
@media(max-width: 1024px) {

    .feature-row,
    .feature-row:nth-child(even) {
        flex-direction: column;
        gap: 64px;
        text-align: center;
    }

    .feature-visual .phone-mockup {
        width: 280px;
    }

    .feature-icon-wrapper {
        margin: 0 auto 24px;
    }

    .feature-list {
        align-items: center;
    }
}

/* How It Works */
.how-it-works {
    padding: var(--section-padding) 0;
    background: var(--color-background)
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap
}

.step {
    flex: 1;
    min-width: 280px;
    max-width: 340px;
    text-align: center;
    padding: 32px
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 24px;
    opacity: 0.8
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px
}

.step-content p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7
}

.step-connector {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-border));
    margin-top: 56px;
    flex-shrink: 0
}

/* Screenshots */
.screenshots {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, #fff, #f0f0f0);
    overflow: hidden
}

.screenshots-carousel {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding: 20px 0 40px;
    scrollbar-width: none;
    -ms-overflow-style: none
}

.screenshots-carousel::-webkit-scrollbar {
    display: none
}

.screenshot-item {
    flex-shrink: 0;
    text-align: center
}

.screenshot-item .phone-mockup {
    margin-bottom: 24px;
    transition: transform var(--transition-medium)
}

.screenshot-item:hover .phone-mockup {
    transform: translateY(-10px)
}

.screenshot-item .phone-frame {
    width: 220px;
    box-shadow: var(--shadow-xl)
}

.screenshot-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px
}

.screenshot-item p {
    font-size: 0.875rem;
    color: var(--color-text-muted)
}

/* CTA */
.cta-section {
    position: relative;
    padding: var(--section-padding) 0;
    background: var(--color-primary);
    overflow: hidden
}

.cta-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px)
}

.cta-shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(34, 197, 94, 0.2);
    top: -100px;
    right: 10%
}

.cta-shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(249, 115, 22, 0.15);
    bottom: -50px;
    left: 20%
}

.cta-content {
    position: relative;
    text-align: center;
    z-index: 1
}

.cta-content h2 {
    font-size: 2.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: var(--color-text);
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-medium)
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3)
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.store-text span {
    font-size: 0.7rem;
    color: var(--color-text-muted)
}

.store-text strong {
    font-size: 1.1rem;
    font-weight: 600
}

/* Footer */
.footer {
    background: #0a0a0a;
    padding: 80px 0 32px;
    color: rgba(255, 255, 255, 0.7)
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 64px;
    margin-bottom: 48px
}

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

.footer-brand .logo-container {
    width: 36px;
    height: 36px;
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.footer-brand .logo-img {
    width: 100% !important;
    height: 100% !important;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.footer-brand .logo-icon {
    background: white;
    color: var(--color-primary)
}

.footer-brand .logo span {
    color: white
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 280px
}

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

.footer-column h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px
}

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

.footer-column a {
    font-size: 0.9rem
}

.footer-column a:hover {
    color: white
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1)
}

.footer-bottom p {
    font-size: 0.875rem
}



/* Responsive */
@media(max-width:1024px) {
    :root {
        --section-padding: 80px
    }

    .hero-title {
        font-size: 3rem
    }

    .section-title {
        font-size: 2.25rem
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .phone-main .phone-frame {
        width: 260px
    }

    .phone-secondary {
        display: none
    }

    .step-connector {
        display: none
    }
}

@media(max-width:768px) {

    .nav-links,
    .nav-cta {
        display: none
    }

    .mobile-menu-btn {
        display: flex
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px
    }

    .hero-title {
        font-size: 2.5rem
    }

    .hero-subtitle {
        margin: 0 auto 32px
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap
    }

    .hero-stats {
        justify-content: center
    }

    .hero-visual {
        height: auto;
        order: -1
    }

    .phone-main .phone-frame {
        width: 240px
    }

    .floating-card {
        display: none
    }

    .features-grid {
        grid-template-columns: 1fr
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr)
    }

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center
    }

    .cta-content h2 {
        font-size: 2rem
    }

    .download-buttons {
        flex-direction: column;
        align-items: center
    }
}

@media(max-width:480px) {
    .hero-title {
        font-size: 2rem
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px
    }

    .stat-divider {
        width: 40px;
        height: 1px
    }

    .feature-card {
        padding: 24px
    }

    .footer-links {
        grid-template-columns: 1fr
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 0.95rem
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.hero-content>* {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0
}

.hero-badge {
    animation-delay: 0s
}

.hero-title {
    animation-delay: 0.1s
}

.hero-subtitle {
    animation-delay: 0.2s
}

.hero-cta {
    animation-delay: 0.3s
}

.hero-stats {
    animation-delay: 0.4s
}

.hero-visual {
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0
}
