/* ========================================
   Recipal Landing Page Styles
   Color palette from the iOS app:
   - Terracotta: #B85729
   - Terracotta Light: #D17A47
   - Background Beige: #EBD6B8
   - Card Background: #FCF5E5
   - Text Dark: #2E1F0F
   - Text Muted: #A68A66
   - Sparkle Gold: #E0AD47
   ======================================== */

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

:root {
    --terracotta: #B85729;
    --terracotta-light: #D17A47;
    --terracotta-dark: #943F1A;
    --bg-beige: #EBD6B8;
    --bg-warm: #E8C9A0;
    --card-bg: #FCF5E5;
    --card-bg-alt: #FDF8F0;
    --text-dark: #2E1F0F;
    --text-muted: #A68A66;
    --text-cream: #FFF8F0;
    --gold: #E0AD47;
    --green: #85946B;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(46, 31, 15, 0.06);
    --shadow-md: 0 4px 20px rgba(46, 31, 15, 0.1);
    --shadow-lg: 0 8px 40px rgba(46, 31, 15, 0.12);
    --shadow-xl: 0 20px 60px rgba(46, 31, 15, 0.15);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--card-bg-alt);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.nav.scrolled {
    background: rgba(252, 245, 229, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
}

.nav-logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-link:hover {
    opacity: 1;
    color: var(--terracotta);
}

.nav-cta-link {
    text-decoration: none;
    background: var(--terracotta);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-cta-link:hover {
    background: var(--terracotta-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(5.3px) translateX(5.3px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-5.3px) translateX(5.3px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, var(--bg-warm) 0%, var(--bg-beige) 50%, #D9C4A0 100%);
    overflow: hidden;
    padding-top: 80px;
}

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

.hero-shape {
    position: absolute;
    border-radius: 50%;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 87, 41, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(224, 173, 71, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--terracotta);
    margin-bottom: 24px;
    border: 1px solid rgba(184, 87, 41, 0.15);
}

.sparkle {
    color: var(--gold);
    font-size: 1.1rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

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

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

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: inherit;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--text-dark);
    color: var(--white);
    padding: 16px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: #1a1008;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.05rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

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

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--terracotta);
}

.hero-stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(46, 31, 15, 0.15);
}

/* Hero Phone Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-phone {
    position: relative;
    width: 260px;
    aspect-ratio: 9 / 19.5;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 5px solid #1a1a1a;
    background: #1a1a1a;
    z-index: 2;
}

.hero-phone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    z-index: 3;
}

.hero-phone-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-mascot {
    position: absolute;
    bottom: -20px;
    left: -40px;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.hero-mascot-img {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(46, 31, 15, 0.2));
}

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

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

.section-tag {
    display: inline-block;
    background: rgba(184, 87, 41, 0.1);
    color: var(--terracotta);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 120px 0;
    background: var(--card-bg-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    border: 1px solid rgba(46, 31, 15, 0.05);
}

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

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 18px;
    display: inline-block;
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ========================================
   Screenshots Section
   ======================================== */
.screenshots {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-beige) 0%, var(--bg-warm) 100%);
}

.screenshots-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}

.screenshot-card {
    text-align: center;
}

.screenshot-card:nth-child(even) {
    margin-top: 40px;
}

.screenshot-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.screenshot-card:hover .screenshot-img {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.screenshot-label {
    margin-top: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    opacity: 0.7;
}

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works {
    padding: 120px 0;
    background: var(--card-bg-alt);
}

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

.step-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    flex: 1;
    max-width: 320px;
    border: 1px solid rgba(46, 31, 15, 0.05);
    transition: var(--transition);
}

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

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--bg-beige);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.step-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.step-arrow {
    font-size: 1.8rem;
    color: var(--terracotta-light);
    opacity: 0.5;
    flex-shrink: 0;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(160deg, var(--bg-warm) 0%, var(--bg-beige) 50%, #D9C4A0 100%);
    overflow: hidden;
}

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

.cta-shape {
    position: absolute;
    border-radius: 50%;
}

.cta-shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184, 87, 41, 0.06) 0%, transparent 70%);
    top: -200px;
    left: -100px;
}

.cta-shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(224, 173, 71, 0.08) 0%, transparent 70%);
    bottom: -100px;
    right: -50px;
}

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

.cta-mascot {
    margin-bottom: 24px;
}

.cta-mascot-img {
    width: 120px;
    height: auto;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 8px 20px rgba(46, 31, 15, 0.15));
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 460px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--text-dark);
    color: var(--text-cream);
    padding: 60px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.footer-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-cream);
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 248, 240, 0.5);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 60px;
}

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

.footer-col-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 248, 240, 0.4);
    margin-bottom: 4px;
}

.footer-link {
    text-decoration: none;
    color: rgba(255, 248, 240, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 248, 240, 0.35);
}

.footer-credit {
    text-decoration: none;
    font-size: 0.8rem;
    color: rgba(255, 248, 240, 0.35);
    transition: var(--transition);
}

.footer-credit:hover {
    color: var(--text-cream);
}

.footer-credit-brand {
    font-weight: 700;
    color: rgba(255, 248, 240, 0.6);
    transition: var(--transition);
}

.footer-credit:hover .footer-credit-brand {
    color: var(--gold);
}

/* ========================================
   Reveal Animation
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }

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

    .screenshots-carousel {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshot-card:nth-child(even) {
        margin-top: 0;
    }

    .steps-grid {
        flex-wrap: wrap;
        gap: 20px;
    }

    .step-arrow {
        display: none;
    }

    .step-card {
        max-width: 100%;
        flex-basis: calc(33.33% - 14px);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-link, .nav-cta-link {
        font-size: 1.1rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-phone {
        width: 220px;
        border-radius: 30px;
    }

    .hero-mascot {
        left: 0px;
        bottom: -10px;
    }

    .hero-mascot-img {
        width: 100px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .screenshots-carousel {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .steps-grid {
        flex-direction: column;
    }

    .step-card {
        flex-basis: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 36px;
    }

    .footer-links {
        gap: 40px;
    }

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

@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
    }

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

    .hero-phone {
        width: 190px;
        border-radius: 26px;
    }

    .hero-phone::before {
        width: 80px;
        height: 20px;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-stat-value {
        font-size: 1.3rem;
    }

    .screenshots-carousel {
        grid-template-columns: 1fr 1fr;
    }

    .btn-primary {
        padding: 14px 22px;
        font-size: 0.9rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .features, .screenshots, .how-it-works, .cta-section {
        padding: 80px 0;
    }
}
