/* ==========================================================================
   CashFlicks Premium Landing Page Stylesheet (Obsidian Theme)
   Structured & Formatted Exactly like CoinWalk (https://coinwalk.innocoda.cc)
   ========================================================================== */

/* --- Design Tokens & Variables --- */
:root {
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Plus Jakarta Sans', sans-serif;

    /* Color Palette */
    --bg-base: #05020c;
    --bg-surface: #0a0618;
    
    --accent-green: #00f59b;
    --accent-green-hover: #05ff96;
    
    --accent-purple: #8b5cf6;
    --accent-indigo: #6366f1;

    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #8e9cae;
    --text-dim: #4e5a6b;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.07);
    
    /* Layout & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    --shadow-premium: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
    --shadow-green: 0 0 30px rgba(0, 245, 155, 0.25);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, .logo-text, .gradient-text {
    font-family: var(--font-primary);
    color: var(--text-primary);
    font-weight: 700;
}

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

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

/* --- Background Ambient Glows --- */
.ambient-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    top: -10vw;
    right: -10vw;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

.glow-2 {
    bottom: -10vw;
    left: -10vw;
    background: radial-gradient(circle, var(--accent-green) 0%, transparent 70%);
    opacity: 0.08;
}

/* --- Reusable Components & Containers --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 100px 0;
    position: relative;
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tagline {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-green);
    display: inline-block;
    margin-bottom: 12px;
    background: rgba(0, 245, 155, 0.08);
    padding: 4px 14px;
    border-radius: 30px;
    border: 1px solid rgba(0, 245, 155, 0.15);
}

.section-title {
    font-size: 2.75rem;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-green) 0%, #00d586 100%);
    color: #020106;
    box-shadow: 0 4px 20px rgba(0, 245, 155, 0.25);
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 245, 155, 0.45);
}

.btn-primary:hover::before {
    left: 100%;
}

/* App Store Badge Button styling */
.app-store-btn {
    display: inline-block;
    transition: var(--transition-smooth);
}

.app-store-btn:hover {
    transform: translateY(-4px) scale(1.02);
}

.app-store-svg {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 2, 12, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px rgba(0, 245, 155, 0.4));
}

.logo-highlight {
    color: var(--accent-green);
    position: relative;
}

.logo-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-green);
    box-shadow: 0 0 6px var(--accent-green);
}

.nav-menu ul {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

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

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

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

.nav-cta {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: var(--border-radius-sm);
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 180px;
    padding-bottom: 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.badge-text {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 4.25rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ios-only-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* --- Hero Mockup & Device --- */
.hero-mockup-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-bg-circle {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 65%);
    border-radius: 50%;
    filter: blur(20px);
    z-index: 0;
    pointer-events: none;
}

.phone-mockup-container {
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6));
}

/* iPhone 15 Pro Custom CSS Device Frame */
.device-frame {
    width: 320px;
    height: 640px;
    background: #18181b;
    border-radius: 46px;
    padding: 12px;
    position: relative;
    box-shadow: 
        inset 0 0 4px 2px rgba(255, 255, 255, 0.15),
        inset 0 0 0 6px #27272a,
        0 20px 40px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}

.device-speaker {
    width: 60px;
    height: 4px;
    background: #09090b;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
}

.device-screen {
    width: 100%;
    height: 100%;
    border-radius: 36px;
    overflow: hidden;
    background: #000;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.9);
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    pointer-events: none;
}

.device-home-bar {
    width: 110px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
}

/* --- Key Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 40px 24px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-premium);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: rgba(0, 245, 155, 0.08);
    color: var(--accent-green);
    border: 1px solid rgba(0, 245, 155, 0.15);
    transition: var(--transition-smooth);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(0, 245, 155, 0.15);
    box-shadow: 0 0 15px rgba(0, 245, 155, 0.2);
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Screenshots Section --- */
.preview-mockup-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 48px;
    position: relative;
}

.mockup-bg-circle.large {
    position: absolute;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(0, 245, 155, 0.12) 0%, transparent 65%);
    border-radius: 50%;
    filter: blur(25px);
    z-index: 0;
    pointer-events: none;
}

.phone-mockup-container.static {
    animation: float 7s ease-in-out infinite;
}

/* --- Footer --- */
.footer {
    background-color: #030107;
    border-top: 1px solid var(--glass-border);
    padding: 60px 0;
    text-align: center;
    font-size: 0.95rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-links-row {
    display: flex;
    gap: 16px;
    align-items: center;
    font-weight: 500;
}

.footer-link {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

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

.footer-dot {
    color: var(--text-dim);
}

.footer-contact {
    color: var(--text-muted);
}

.email-link {
    color: var(--accent-green);
    font-weight: 600;
    transition: var(--transition-fast);
}

.email-link:hover {
    color: var(--accent-green-hover);
    text-decoration: underline;
}

.footer-copyright {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* --- Physics Animations --- */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* --- Media Queries / Responsiveness --- */

/* Tablet & Smaller Devices */
@media (max-width: 992px) {
    .hero-section {
        padding-top: 140px;
        padding-bottom: 80px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 64px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-description {
        margin: 0 auto 32px auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .header-container {
        padding: 16px 20px;
    }
    
    /* Hide nav menu on extreme mobile screens to keep layout extremely clean, as there are only 4 links */
    .nav-menu {
        display: none;
    }

    /* Hero */
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }
    
    .app-store-btn {
        width: 100%;
        max-width: 260px;
    }
    
    .app-store-svg {
        width: 100%;
        height: auto;
    }

    .device-frame {
        width: 280px;
        height: 560px;
        border-radius: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .mockup-bg-circle.large {
        width: 320px;
        height: 320px;
    }
    
    .footer-links-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-dot {
        display: none;
    }
}
