/* ============================================
   STORYVIBE — Romantic Novel App Landing Page
   ============================================ */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
    --clr-bg: #0a0a0f;
    --clr-bg-alt: #12121a;
    --clr-surface: #1a1a28;
    --clr-surface-hover: #222236;
    --clr-border: rgba(255, 255, 255, 0.06);

    --clr-text: #e8e4f0;
    --clr-text-muted: #9a93a8;
    --clr-text-dim: #6b6580;

    --clr-primary: #e84393;
    --clr-primary-light: #fd79a8;
    --clr-secondary: #a18cd1;
    --clr-accent: #fbc2eb;

    --gradient-primary: linear-gradient(135deg, #e84393, #a18cd1);
    --gradient-hero: linear-gradient(135deg, #e84393 0%, #d63384 25%, #a18cd1 50%, #6c5ce7 75%, #e84393 100%);
    --gradient-glow: radial-gradient(circle, rgba(232, 67, 147, 0.15), transparent 70%);

    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(232, 67, 147, 0.25);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --tap-min: 44px; /* min touch target for mobile */
}

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

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

body {
    font-family: var(--font-body);
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Gradient Text Utility ---------- */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Section Shared Styles ---------- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--clr-primary-light);
    margin-bottom: 16px;
    position: relative;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--clr-primary-light);
    opacity: 0.4;
}

.section-tag::before { left: -40px; }
.section-tag::after { right: -40px; }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--clr-text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: var(--transition);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: #fff;
    box-shadow: var(--shadow-glow);
    animation: gradient-shift 6s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(232, 67, 147, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--clr-border);
    padding: 12px 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;
}

.logo-icon {
    font-size: 1.6rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    position: relative;
}

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

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

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

.nav-cta {
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    flex-shrink: 0;
}

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

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

/* ============================================
   HERO / BANNER SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: blur(2px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, rgba(10,10,15,0.4) 0%, rgba(10,10,15,0.85) 70%, var(--clr-bg) 100%),
        linear-gradient(90deg, rgba(10,10,15,0.9) 0%, transparent 50%, rgba(10,10,15,0.6) 100%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 96px 24px 72px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

/* Hero compact: app name, title, CTA only (no big card) */
.hero--compact .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
}

.hero-content--center .hero-text {
    max-width: 560px;
    margin: 0 auto;
}

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

/* Hero badge (reference: LucidFM feature badge) */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 30px rgba(232, 67, 147, 0.2);
    animation: fadeInUp 0.8s ease-out both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-tagline {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    margin-bottom: 36px;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.25s both;
}

.hero-cta--download {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* Hero store buttons (reference: two-line App Store / Google Play style) */
.hero-cta--download .store-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    min-width: 180px;
    border-radius: var(--radius-md);
    text-align: left;
    transition: var(--transition);
}

.hero-cta--download .store-btn-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-cta--download .store-btn-label {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.9;
}

.hero-cta--download .store-btn-name {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-cta--download .store-btn--apple {
    background: linear-gradient(145deg, #2d1b4e 0%, #1a0f2e 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-cta--download .store-btn--apple:hover {
    background: linear-gradient(145deg, #3d2a5e 0%, #2a1a3e 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(232, 67, 147, 0.2);
}

.hero-cta--download .store-btn--google {
    background: linear-gradient(145deg, #2a2a2e 0%, #1a1a1e 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-cta--download .store-btn--google:hover {
    background: linear-gradient(145deg, #36363a 0%, #252528 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(161, 140, 209, 0.15);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--clr-primary-light);
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--clr-primary-light);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--clr-text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--clr-border);
}

/* Hero compact: no phone mockup */
.hero--compact .hero-visual {
    display: none;
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--clr-text-dim);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeIn 1s ease-out 1s both;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--clr-primary-light);
    border-radius: 4px;
    animation: scroll-bounce 2s ease-in-out infinite;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: 120px 0;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: var(--gradient-glow);
    pointer-events: none;
}

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

.feature-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 67, 147, 0.2);
    box-shadow: 0 20px 60px rgba(232, 67, 147, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(232, 67, 147, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--clr-primary-light);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-primary);
    color: #fff;
    transform: scale(1.05);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

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

/* ============================================
   DOWNLOAD SECTION
   ============================================ */
.download {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background: var(--clr-bg-alt);
}

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

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.08;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--clr-primary);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--clr-secondary);
    bottom: -100px;
    left: -100px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--clr-accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.download-text .section-tag,
.download-text .section-title {
    text-align: left;
}

.download-text .section-tag::before,
.download-text .section-tag::after {
    display: none;
}

.download-description {
    font-size: 1.05rem;
    color: var(--clr-text-muted);
    margin-bottom: 36px;
    line-height: 1.8;
}

.download-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    min-width: 180px;
}

.store-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--clr-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.store-icon {
    color: var(--clr-text);
    flex-shrink: 0;
}

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

.store-label {
    font-size: 0.65rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.store-name {
    font-size: 1.05rem;
    font-weight: 600;
}

.download-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

.trust-item svg {
    color: var(--clr-primary-light);
}

/* Floating Book Cards */
.download-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.book-card {
    position: absolute;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    overflow: hidden;
}

.book-card:hover {
    z-index: 10;
    box-shadow: 0 28px 70px rgba(232, 67, 147, 0.25);
}

.book-card-1:hover { transform: rotate(-8deg) scale(1.05); }
.book-card-2:hover { transform: rotate(4deg) scale(1.05); }
.book-card-3:hover { transform: rotate(-3deg) scale(1.05); }

.book-cover {
    width: 160px;
    height: 220px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(135deg, #ff6b9d 0%, #a18cd1 100%);
    overflow: hidden;
}

.book-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.book-cover::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

.book-genre,
.book-title-small {
    position: relative;
    z-index: 2;
}

.book-genre {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 4px;
}

.book-title-small {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.book-card-1 {
    top: 20%;
    left: 10%;
    transform: rotate(-8deg);
    animation: float-1 6s ease-in-out infinite;
}

.book-card-2 {
    top: 10%;
    left: 40%;
    transform: rotate(4deg);
    animation: float-2 5s ease-in-out infinite;
}

.book-card-3 {
    top: 40%;
    right: 10%;
    transform: rotate(-3deg);
    animation: float-3 7s ease-in-out infinite;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: 120px 0;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: var(--gradient-glow);
    pointer-events: none;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    color: var(--clr-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--clr-text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--clr-primary);
    background: rgba(232, 67, 147, 0.04);
    box-shadow: 0 0 0 3px rgba(232, 67, 147, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.info-card:hover {
    border-color: rgba(232, 67, 147, 0.2);
    transform: translateX(4px);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(232, 67, 147, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary-light);
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.info-card p {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

.info-card p a {
    color: var(--clr-primary-light);
}

.info-card p a:hover {
    text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--clr-bg-alt);
    border-top: 1px solid var(--clr-border);
    padding: 60px 0 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--clr-border);
    margin-bottom: 30px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    margin-top: 12px;
    max-width: 280px;
}

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

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-text);
    margin-bottom: 16px;
}

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

.footer-col a {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.footer-col a:hover {
    color: var(--clr-primary-light);
}

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

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--clr-text-dim);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-text-muted);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

@keyframes float-1 {
    0%, 100% { transform: rotate(-8deg) translateY(0); }
    50% { transform: rotate(-8deg) translateY(-15px); }
}

@keyframes float-2 {
    0%, 100% { transform: rotate(4deg) translateY(0); }
    50% { transform: rotate(4deg) translateY(-20px); }
}

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

/* UI-style graphic animations */
@keyframes soft-glow-pulse {
    0%, 100% { opacity: 0.6; filter: brightness(1); }
    50% { opacity: 0.9; filter: brightness(1.08); }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes card-enter {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Particle */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* LucidFM-inspired: smooth scroll reveal and card hover */
.feature-card,
.info-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.feature-card.revealed,
.info-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

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

    .hero-visual {
        order: -1;
    }

    .phone-mockup {
        width: 220px;
    }

    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-text .section-tag,
    .download-text .section-title {
        text-align: center;
    }

    .download-buttons {
        justify-content: center;
    }

    .download-trust {
        justify-content: center;
    }

    .download-visual {
        height: 280px;
        min-height: 240px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Mobile: restructure download cards into horizontal scroll row */
@media (max-width: 768px) {
    .download-visual {
        height: auto;
        min-height: 200px;
        padding: 24px 0 16px;
        justify-content: flex-start;
    }

    .floating-cards {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 20px;
        overflow-x: auto;
        overflow-y: visible;
        padding: 8px 16px 16px;
        margin: 0 -16px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .floating-cards::-webkit-scrollbar {
        height: 6px;
    }

    .floating-cards::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.06);
        border-radius: 3px;
    }

    .floating-cards::-webkit-scrollbar-thumb {
        background: var(--clr-primary);
        border-radius: 3px;
    }

    .book-card {
        position: relative;
        flex-shrink: 0;
        transform: none;
        animation: none;
        scroll-snap-align: center;
    }

    .book-card-1,
    .book-card-2,
    .book-card-3 {
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        animation: none;
    }

    .book-card:hover,
    .book-card-1:hover,
    .book-card-2:hover,
    .book-card-3:hover {
        transform: scale(1.02);
    }

    .book-cover {
        width: 100px;
        height: 140px;
        padding: 10px;
    }

    .book-thumb {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--clr-border);
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

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

    .hero-content {
        padding: 88px 20px 48px;
    }

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

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

    .hero-cta--download {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta--download .store-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .features,
    .download,
    .contact {
        padding: 64px 0;
    }

    .stat-divider {
        display: none;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .footer-top {
        flex-direction: column;
    }

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

    .book-cover {
        width: 100px;
        height: 140px;
        padding: 10px;
    }

    .book-genre {
        font-size: 0.6rem;
    }

    .book-title-small {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .contact-form {
        padding: 20px 16px;
    }

    .hero-scroll {
        display: none;
    }

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

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

    .btn {
        min-height: var(--tap-min);
        padding: 12px 24px;
    }

    .store-btn {
        min-height: var(--tap-min);
        padding: 12px 20px;
    }

    .form-group input,
    .form-group textarea {
        min-height: var(--tap-min);
        padding: 12px 16px;
    }

    .nav-toggle {
        min-width: var(--tap-min);
        min-height: var(--tap-min);
        padding: 12px;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        min-height: var(--tap-min);
        line-height: 1.4;
    }

    .download-visual {
        padding: 20px 0 12px;
    }

    .floating-cards {
        gap: 14px;
        padding: 8px 12px 12px;
        margin: 0 -12px;
    }

    .book-cover {
        width: 88px;
        height: 124px;
        padding: 8px;
    }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .nav-container {
        padding-left: max(24px, env(safe-area-inset-left));
        padding-right: max(24px, env(safe-area-inset-right));
    }

    .container {
        padding-left: max(24px, env(safe-area-inset-left));
        padding-right: max(24px, env(safe-area-inset-right));
    }

    @media (max-width: 480px) {
        .container {
            padding-left: max(16px, env(safe-area-inset-left));
            padding-right: max(16px, env(safe-area-inset-right));
        }
    }
}
