@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #F5F5F5;
    --bg-gradient: radial-gradient(circle at top right, #FFF5F5, #F5F5F5 50%);
    --text-primary: #1A1A1A;
    --text-secondary: #5A6070;
    --accent-color: #E53935;
    --accent-gradient: #E53935;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.45);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    font-family: var(--font-family);
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.6);
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

/* Contrast AA Text Fixes for Glass Panels */
.glass-panel p,
.feature-card p,
.showcase-text p,
.comparison-card li {
    color: var(--text-secondary);
}

/* Header */
header {
    padding: 2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
    padding: 1rem 0;
    background: rgba(245, 245, 245, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(27%) sepia(93%) saturate(5411%) hue-rotate(349deg) brightness(96%) contrast(89%);
}

.logo span {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    padding: 14rem 0 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}


.hero-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

/* Phone Mockup Frame (iPhone 15 Pro Style) */
.phone-mockup {
    position: relative;
    width: 300px;
    height: 620px;
    border-radius: 44px;
    background: #000;
    border: 6px solid #1A1A1E;
    outline: 2px solid #2C2C30;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 35px rgba(229, 57, 53, 0.08);
    animation: float 6s ease-in-out infinite;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gloss Glare on Device Screen */
.phone-mockup::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 300%;
    height: 100%;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
    pointer-events: none;
    z-index: 4;
}

/* Simulated dynamic island */
.phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 95px;
    height: 24px;
    background: #000;
    border-radius: 12px;
    z-index: 5;
    border: 1px solid #1A1A1E;
}

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

/* Features Section */
.features {
    padding: 8rem 0 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(229, 57, 53, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(229, 57, 53, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--glass-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    border: 1px solid var(--glass-border);
    color: var(--accent-color);
}

.feature-svg {
    width: 28px;
    height: 28px;
    color: var(--accent-color);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover .feature-svg {
    transform: scale(1.15) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Problem & Solution Section */
.problem-solution {
    padding: 6rem 0;
    position: relative;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.comparison-card {
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.comparison-card:hover {
    transform: translateY(-5px);
}

.comparison-card.problem {
    border-color: rgba(239, 68, 68, 0.12);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.02) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.comparison-card.problem:hover {
    border-color: rgba(239, 68, 68, 0.3);
}

.comparison-card.solution {
    border-color: rgba(34, 197, 94, 0.12);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.02) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.comparison-card.solution:hover {
    border-color: rgba(34, 197, 94, 0.3);
}

.card-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.tag-problem {
    background: rgba(229, 57, 53, 0.08);
    color: #E53935;
    border: 1px solid rgba(229, 57, 53, 0.25);
}

.tag-solution {
    background: rgba(22, 163, 74, 0.08);
    color: #16A34A;
    border: 1px solid rgba(22, 163, 74, 0.25);
}

.comparison-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.comparison-card ul {
    list-style: none;
    padding: 0;
}

.comparison-card li {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.5;
    position: relative;
    padding-left: 2.2rem;
    color: #4A4A4A;
}

.comparison-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.comparison-card.problem li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EF4444' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

.comparison-card.solution li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322C55E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Showcase Section */
.showcase {
    padding: 6rem 0;
}

.showcase-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
}

.showcase-row:last-child {
    margin-bottom: 0;
}

.showcase-row.reverse {
    flex-direction: row-reverse;
}

.showcase-text {
    flex: 1;
}

.showcase-text h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.showcase-text p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

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

.showcase-visual .phone-mockup {
    animation: none;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.faq-item:hover {
    border-color: rgba(229, 57, 53, 0.3);
    background: rgba(255, 255, 255, 0.85);
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(229, 57, 53, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03), 0 0 15px rgba(229, 57, 53, 0.02);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 2.5rem;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-family);
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-arrow {
    font-size: 0.9rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-secondary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 2.5rem;
}

.faq-answer p {
    line-height: 1.7;
    font-size: 1rem;
    padding-bottom: 1.8rem;
}

.faq-pro-list {
    list-style: none;
    padding: 0 0 1.8rem 0;
    margin: 0.2rem 0 0 0;
}

.faq-pro-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.faq-pro-list li:last-child {
    margin-bottom: 0;
}

.faq-pro-list li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    background: var(--accent-gradient);
    border-radius: 50%;
}

/* Premium Store Buttons */
.store-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.btn-store {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    color: #FFFFFF !important;
    background: var(--accent-color);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 220px;
    text-align: left;
}

.btn-store .store-img-icon {
    filter: brightness(0) invert(1);
}

.btn-store:not(.disabled-store):hover {
    transform: translateY(-3px);
    background: #c62828;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(229, 57, 53, 0.3);
}

.btn-store.disabled-store {
    opacity: 0.55;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-store.disabled-store:hover {
    transform: none;
    background: var(--accent-color);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: none;
}

.btn-store.disabled-store:hover .store-img-icon {
    transform: none;
}

.store-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: #FFFFFF !important;
    transition: color 0.3s;
}

.btn-store:hover .store-icon {
    color: var(--accent-color) !important;
}

.store-img-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-store:hover .store-img-icon {
    transform: scale(1.1);
}

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

.store-subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.store-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

/* CTA Section */
.cta {
    padding: 6rem 0 8rem;
    text-align: center;
}

.cta-box {
    padding: 5rem 2rem;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    display: none;
}

.cta-box h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.pricing-card.featured {
    border-color: rgba(229, 57, 53, 0.35);
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.02) 0%, rgba(255, 255, 255, 0.95) 100%);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04), 0 0 25px rgba(229, 57, 53, 0.05);
}

.pricing-card.featured:hover {
    border-color: rgba(229, 57, 53, 0.55);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08), 0 0 30px rgba(229, 57, 53, 0.12);
}

.pricing-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-card.featured .pricing-header h3 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.price-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    min-height: 44px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
    flex-grow: 1;
}

.pricing-features li {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pricing-features li svg {
    flex-shrink: 0;
}

/* Styled specific icons for Forkie Pro */
.pro-heart,
.pro-bookmark,
.pro-image,
.pro-sliders,
.pro-award {
    color: #E53935 !important;
}

.btn-secondary {
    background: #FFFFFF;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .hero {
        padding: 10rem 0 5rem;
    }

    .hero-content, .showcase-row {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    
    .showcase-row.reverse {
        flex-direction: column;
    }

    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        gap: 2rem;
    }
    
    .pricing-card {
        padding: 2.5rem 1.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    header {
        padding: 1.5rem 0;
    }
    
    header.scrolled {
        padding: 0.8rem 0;
    }

    .hero {
        padding: 7.5rem 0 3.5rem;
    }
    
    .cta-box {
        padding: 3rem 1.25rem;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }
    
    .faq-question {
        padding: 1.2rem 1.2rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1.2rem;
    }
    
    .faq-answer p {
        padding-bottom: 1.2rem;
        font-size: 0.95rem;
    }
    
    .store-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-store {
        width: 100%;
        max-width: 280px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .footer-links a {
        margin: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.1rem;
        line-height: 1.2;
        letter-spacing: -1px;
    }

    .phone-mockup {
        width: 260px;
        height: 540px;
        border-radius: 38px;
    }
    
    .phone-notch {
        width: 85px;
        height: 22px;
        top: 12px;
    }

    .comparison-card {
        padding: 2rem 1.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}
