/*
Theme Name: PiqSaw
Theme URI: https://piqsaw.fun
Description: App landing page theme for PiqSaw — Surprise Reveals & Announcements
Author: PiqSaw
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: piqsaw
*/

/* =============================================
   CSS VARIABLES & RESET
   ============================================= */

:root {
    --dark: #252A34;
    --teal: #08D9D6;
    --pink: #FF2E63;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-400: #ADB5BD;
    --gray-600: #6C757D;
    --gray-800: #343A40;
    --font-main: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    --section-padding: 100px 0;
    --container-width: 1140px;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    font-size: 17px;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

/* =============================================
   NAVIGATION
   ============================================= */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.site-nav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.03em;
}

.nav-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-logo {
    color: var(--dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-600);
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dark);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--pink);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
    padding: 160px 0 100px;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(8, 217, 214, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 46, 99, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 540px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 46, 99, 0.08);
    color: var(--pink);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge .badge-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.hero-phone-placeholder {
    width: 280px;
    height: 560px;
    background: var(--white);
    border-radius: 40px;
    border: 3px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.hero-phone-placeholder .phone-notch {
    width: 100px;
    height: 28px;
    background: var(--gray-200);
    border-radius: 20px;
    margin-top: 4px;
}

.hero-phone-placeholder .phone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.hero-phone-placeholder .phone-bar {
    width: 120px;
    height: 5px;
    background: var(--gray-200);
    border-radius: 10px;
    margin-bottom: 4px;
}

.hero h1 {
    font-size: clamp(40px, 5vw, 58px);
    color: var(--dark);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero h1 .accent {
    background: linear-gradient(135deg, var(--pink), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 460px;
}

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

.btn-appstore {
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.btn-appstore img {
    height: 54px;
    width: auto;
}

.btn-appstore:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    background: var(--white);
}

.btn-secondary:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image .phone-mockup {
    max-width: 320px;
    width: 100%;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
}

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

.hero-image .hero-screenshot {
    max-width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

/* =============================================
   SECTION SHARED STYLES
   ============================================= */

section {
    padding: var(--section-padding);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--pink);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 4vw, 44px);
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 600px;
    line-height: 1.7;
}

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

.text-center .section-subtitle {
    margin: 0 auto;
}

/* =============================================
   HOW IT WORKS
   ============================================= */

.how-it-works {
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.step-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius);
    background: var(--gray-100);
    position: relative;
    transition: var(--transition);
}

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

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), #FF6B8A);
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
}

.step-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px dashed var(--gray-400);
    margin-bottom: 16px;
    transition: var(--transition);
}

.step-icon-circle.teal {
    border-color: var(--teal);
    color: var(--teal);
}

.step-icon-circle.pink {
    border-color: var(--pink);
    color: var(--pink);
}

.step-card:hover .step-icon-circle {
    background: rgba(0, 0, 0, 0.03);
    transform: scale(1.05);
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark);
}

.step-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Connector arrows between steps */
.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--gray-400);
    border-right: 2px solid var(--gray-400);
    transform: rotate(45deg) translateY(-50%);
}

/* =============================================
   FEATURES
   ============================================= */

.features {
    background: var(--gray-100);
}

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

.feature-card {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

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

.feature-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px dashed var(--gray-400);
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-icon-circle.teal {
    border-color: var(--teal);
    color: var(--teal);
}

.feature-icon-circle.pink {
    border-color: var(--pink);
    color: var(--pink);
}

.feature-icon-circle.dark {
    border-color: var(--dark);
    color: var(--dark);
}

.feature-card:hover .feature-icon-circle {
    transform: scale(1.08);
}

.feature-card:hover .feature-icon-circle.teal {
    background: rgba(8, 217, 214, 0.08);
}

.feature-card:hover .feature-icon-circle.pink {
    background: rgba(255, 46, 99, 0.06);
}

.feature-card:hover .feature-icon-circle.dark {
    background: rgba(37, 42, 52, 0.06);
}

.feature-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* =============================================
   OCCASIONS / USE CASES
   ============================================= */

.occasions {
    background: var(--white);
}

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

.occasion-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: default;
    transition: var(--transition);
}

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

.occasion-card .occasion-bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Fallback gradient backgrounds when no image is set */
.occasion-card .occasion-gradient {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.occasion-card .occasion-gradient.gender-reveal {
    background: linear-gradient(135deg, #89CFF0, #FFB6C1);
}

.occasion-card .occasion-gradient.birthday {
    background: linear-gradient(135deg, #FF6B8A, #FFA07A);
}

.occasion-card .occasion-gradient.pregnancy {
    background: linear-gradient(135deg, #DDA0DD, #FFB6C1);
}

.occasion-card .occasion-gradient.engagement {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.occasion-card .occasion-gradient.invitation {
    background: linear-gradient(135deg, var(--teal), #4ECDC4);
}

.occasion-card .occasion-gradient.surprise {
    background: linear-gradient(135deg, #7C3AED, #A78BFA);
}

.occasion-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(37, 42, 52, 0.8) 100%);
}

.occasion-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    z-index: 1;
    color: var(--white);
}

.occasion-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    color: var(--white);
    margin-bottom: 10px;
}

.occasion-content h3 {
    font-size: 20px;
    margin-bottom: 4px;
    color: var(--white);
}

.occasion-content p {
    font-size: 14px;
    opacity: 0.85;
}

/* =============================================
   APP PREVIEW VIDEO
   ============================================= */

.video-section {
    background: var(--dark);
    color: var(--white);
    padding: 100px 0;
}

.video-section .section-label {
    color: var(--teal);
}

.video-section .section-title {
    color: var(--white);
}

.video-section .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.video-wrapper {
    margin-top: 48px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    gap: 16px;
}

.video-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.3;
}

/* =============================================
   SCREENSHOT GALLERY
   ============================================= */

.gallery {
    background: var(--gray-100);
    overflow: hidden;
}

.gallery-scroll {
    display: flex;
    gap: 24px;
    margin-top: 48px;
    padding: 0 24px 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex-shrink: 0;
    scroll-snap-align: center;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
}

.gallery-item img {
    height: 500px;
    width: auto;
    object-fit: cover;
}

/* =============================================
   PRIVACY / TRUST SECTION
   ============================================= */

.privacy-section {
    background: var(--white);
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.privacy-card {
    text-align: center;
    padding: 36px 24px;
}

.privacy-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px dashed var(--gray-400);
    margin: 0 auto 16px;
    transition: var(--transition);
}

.privacy-icon-circle.teal {
    border-color: var(--teal);
    color: var(--teal);
}

.privacy-icon-circle.pink {
    border-color: var(--pink);
    color: var(--pink);
}

.privacy-icon-circle.dark {
    border-color: var(--dark);
    color: var(--dark);
}

.privacy-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--dark);
}

.privacy-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

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

.final-cta {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1e26 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 46, 99, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.final-cta .container {
    position: relative;
    z-index: 1;
}

.final-cta .section-title {
    color: var(--white);
    font-size: clamp(36px, 5vw, 52px);
    margin-bottom: 16px;
}

.final-cta .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 auto 40px;
}

.cta-price {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 12px 24px;
    margin-bottom: 32px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.cta-price strong {
    color: var(--teal);
    font-size: 18px;
}

.cta-tagline {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
    background: #111318;
    color: rgba(255, 255, 255, 0.5);
    padding: 48px 0;
    text-align: center;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 20px;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

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

.footer-love {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-image {
        order: -1;
    }

    .hero-image .phone-mockup,
    .hero-image .hero-screenshot {
        max-width: 280px;
    }

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

    .step-card:not(:last-child)::after {
        display: none;
    }

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

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

@media (max-width: 768px) {
    :root {
        --section-padding: 72px 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 120px 0 72px;
    }

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

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

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

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

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

    .gallery-item img {
        height: 380px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-badge {
        font-size: 12px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

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

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }

    .gallery-item img {
        height: 300px;
    }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
