/* ========================================
   HeyDidYou — GH Creation X Website
   Colors from the app's Material 3 theme
   ======================================== */

:root {
    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --primary-light: #E3F2FD;
    --secondary: #2E7D32;
    --background: #FAFAFA;
    --surface: #FFFFFF;
    --text: #1A1A1A;
    --text-secondary: #555555;
    --accent-blue: #1565C0;
    --accent-purple: #7B1FA2;
    --accent-teal: #00838F;
    --accent-orange: #EF6C00;
    --accent-green: #2E7D32;
    --accent-red: #C62828;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --nav-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

/* ---- Navigation ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--surface);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: box-shadow 0.3s;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s;
}

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

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

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Screen reader only (SEO) ---- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Hero ---- */
.hero {
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--background) 60%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-app-icon {
    width: 140px;
    height: 140px;
    margin-bottom: 20px;
    border-radius: 28px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.15;
    margin-bottom: 12px;
}

.tagline {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    line-height: 1.7;
}

.play-badge img {
    height: 80px;
    transition: transform 0.2s;
}

.play-badge:hover img {
    transform: scale(1.05);
}

.hero-image {
    flex: 0 0 auto;
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    height: 560px;
    background: #1A1A1A;
    border-radius: 36px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: #333;
    border-radius: 3px;
}

.phone-mockup.small {
    width: 200px;
    height: 400px;
    border-radius: 28px;
    padding: 8px;
}

.phone-mockup.small::before {
    top: 12px;
    width: 56px;
    height: 4px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--background);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup.small .phone-screen {
    border-radius: 20px;
}

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

.screenshot-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), #E8F5E9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ---- Problem Statement ---- */
.problem {
    padding: 80px 24px;
    background: var(--surface);
}

.problem .container {
    max-width: 720px;
    text-align: center;
}

.problem h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 20px;
}

.problem p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.problem strong {
    color: var(--primary);
}

/* ---- Features ---- */
.features {
    padding: 80px 24px;
    background: var(--background);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text);
}

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

.feature-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Screenshots ---- */
.screenshots {
    padding: 80px 24px;
    background: var(--surface);
}

.screenshots-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 16px 0 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.screenshots-scroll::-webkit-scrollbar {
    height: 6px;
}

.screenshots-scroll::-webkit-scrollbar-track {
    background: var(--background);
    border-radius: 3px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

.screenshot-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    text-align: center;
}

.screenshot-label {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ---- Audience ---- */
.audience {
    padding: 80px 24px;
    background: var(--background);
}

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

.audience-card {
    text-align: center;
    padding: 32px 24px;
}

.audience-emoji {
    font-size: 3rem;
    margin-bottom: 16px;
}

.audience-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text);
}

.audience-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Pricing ---- */
.pricing {
    padding: 80px 24px;
    background: var(--surface);
}

.pricing-table {
    max-width: 640px;
    margin: 0 auto;
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pricing-table th,
.pricing-table td {
    padding: 14px 20px;
    text-align: center;
    font-size: 0.95rem;
}

.pricing-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.pricing-table th:first-child {
    text-align: left;
}

.pricing-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.pricing-table tbody tr {
    border-bottom: 1px solid #E8E8E8;
}

.pricing-table tbody tr:nth-child(even) {
    background: var(--background);
}

.pro-col {
    background: rgba(21, 101, 192, 0.04);
}

.pricing-table th.pro-col {
    background: var(--primary-dark);
}

.price-tag {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.9;
    display: block;
}

.check {
    color: var(--secondary);
    font-size: 1.2rem;
    font-weight: 700;
}

.cross {
    color: #999;
    font-size: 1.2rem;
}

.pricing-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---- Download CTA ---- */
.download-cta {
    padding: 80px 24px;
    background: var(--primary);
    text-align: center;
}

.download-cta h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 12px;
}

.download-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.download-cta .play-badge img {
    margin: 0 auto;
    filter: brightness(1.1);
}

/* ---- Footer ---- */
.footer {
    padding: 48px 24px 24px;
    background: #1A1A1A;
    color: #CCCCCC;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.footer-brand .logo-text {
    color: white;
    font-size: 1.1rem;
}

.footer-tagline {
    font-size: 0.85rem;
    margin-top: 4px;
    color: #999;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: #CCCCCC;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #888;
}

.footer-note {
    margin-top: 4px;
    font-size: 0.75rem !important;
    color: #666 !important;
}

/* ---- Fade-in Animation ---- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

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

    .play-badge {
        display: inline-block;
    }
}

@media (max-width: 640px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s, opacity 0.3s;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .hero {
        padding: 100px 24px 60px;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
        border-radius: 28px;
    }

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

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

    .section-title {
        font-size: 1.6rem;
    }

    .problem h2 {
        font-size: 1.5rem;
    }

    .download-cta h2 {
        font-size: 1.5rem;
    }

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

    .pricing-table th,
    .pricing-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* ---- Privacy Page ---- */
.privacy-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 100px 24px 80px;
}

.privacy-content h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.privacy-content .last-updated {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.privacy-content h2 {
    font-size: 1.3rem;
    color: var(--text);
    margin-top: 32px;
    margin-bottom: 12px;
}

.privacy-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.privacy-content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.privacy-content li {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.privacy-content strong {
    color: var(--text);
}

.privacy-content a {
    color: var(--primary);
    text-decoration: underline;
}
