/* Modeh Ani — 802 Flamingo App Portfolio
   Light Mode · Gold Accent · Inter Typography
   ============================================ */

:root {
    /* Light mode tokens */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFAF8;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F9F7F2;
    --text-primary: #111111;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;
    --border: #E5E7EB;
    --border-hover: #D1D5DB;

    /* App accent — gold */
    --app-accent: #C9A84C;
    --app-accent-subtle: rgba(201, 168, 76, 0.08);
    --app-accent-hover: #B8963A;
    --app-accent-glow: rgba(201, 168, 76, 0.15);

    /* Typography */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-app: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Animation easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================
   Header
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.header-app-name {
    font-family: var(--font-app);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Hero
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--app-accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    from { opacity: 0.3; transform: translateX(-50%) scale(1); }
    to { opacity: 0.6; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
    text-align: center;
    max-width: 640px;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-label {
    display: inline-block;
    font-family: var(--font-app);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--app-accent);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
}

/* ============================================
   Brief
   ============================================ */

.brief {
    padding: 8rem 2rem;
    display: flex;
    justify-content: center;
}

.brief-content {
    max-width: 640px;
}

.section-label {
    font-family: var(--font-app);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--app-accent);
    margin-bottom: 2rem;
}

.brief-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* ============================================
   Section Headings
   ============================================ */

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateY(20px);
}

.section-subheading {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(15px);
}

/* ============================================
   Demo — Phone Preview
   ============================================ */

.demo-section {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.demo-container {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.demo-phone {
    width: 320px;
    background: #0A0A0A;
    border-radius: 2.5rem;
    padding: 1rem;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.demo-screen {
    background: #060608;
    border-radius: 2rem;
    padding: 3rem 1.5rem 2rem;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.demo-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: radial-gradient(ellipse at center top, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.demo-time {
    font-family: var(--font-app);
    font-size: 2.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.demo-time.visible { opacity: 1; }

.demo-prayer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.prayer-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.prayer-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.prayer-hebrew {
    font-size: 1.25rem;
    color: #C9A84C;
    direction: rtl;
    line-height: 1.8;
}

.prayer-transliteration {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.prayer-english {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
}

.demo-dismiss {
    font-family: var(--font-app);
    font-size: 0.8rem;
    color: #C9A84C;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 9999px;
    padding: 0.6rem 1.5rem;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease, background 0.2s ease;
}

.demo-dismiss.visible {
    opacity: 1;
    transform: translateY(0);
}

.demo-dismiss:hover {
    background: rgba(201, 168, 76, 0.1);
}

/* ============================================
   Features Grid
   ============================================ */

.features {
    padding: 6rem 2rem;
}

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

.feature-card {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card:hover {
    border-color: var(--app-accent);
    box-shadow: 0 8px 30px var(--app-accent-subtle);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--app-accent-subtle);
    border-radius: 0.75rem;
    color: var(--app-accent);
    margin-bottom: 1.25rem;
}

.feature-title {
    font-family: var(--font-app);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ============================================
   More from 802 Flamingo
   ============================================ */

.more-section {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.more-container {
    max-width: 960px;
    margin: 0 auto;
}

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

.more-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    aspect-ratio: 4/3;
    border-radius: 1rem;
    background: var(--card-gradient, linear-gradient(135deg, #333 0%, #111 100%));
    color: #fff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.more-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.more-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.more-card-title {
    position: relative;
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.more-card-desc {
    position: relative;
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.4;
}

/* ============================================
   CTA
   ============================================ */

.cta-section {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.cta-container {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.cta-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.cta-link-secondary {
    font-family: var(--font-app);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.cta-link-secondary:hover {
    color: var(--app-accent);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    padding: 2rem;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-brand:hover {
    color: var(--app-accent);
}

.footer-portfolio-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-link {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--app-accent);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .demo-phone {
        width: 280px;
    }

    .demo-screen {
        min-height: 460px;
        padding: 2.5rem 1.25rem 1.5rem;
    }

    .brief {
        padding: 5rem 1.5rem;
    }

    .features,
    .demo-section,
    .cta-section,
    .more-section {
        padding: 4rem 1.5rem;
    }

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

    .more-card {
        aspect-ratio: 16/9;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .features-grid {
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}
