/* 
   RizzTalk - Professional App Landing Page 
   Style V2.0 - Modern, Mobile-First, Interactive
*/

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-blue: #007AFF;
    --accent-pink: #FF2D55;
    --accent-purple: #AF52DE;
    --card-bg: #ffffff;
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    --nav-height: 60px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

body {
    font-family: 'Plus Jakarta Sans', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 50%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    display: none; /* Hidden on mobile by default */
}

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

@media (min-width: 768px) {
    .nav-link { display: block; }
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--text-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s;
}

.download-btn:hover {
    transform: scale(1.02);
    background: #000;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 45, 85, 0.08) 0%, rgba(0, 122, 255, 0.05) 50%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

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

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

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.04);
    padding: 6px 12px 6px 6px; /* Adjust padding for logo */
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.05);
}

.badge-logo {
    width: 20px;
    height: 20px;
    border-radius: 5px;
}

.hero-sub {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 90%;
}

@media (max-width: 900px) {
    .hero-sub { margin: 0 auto 40px; }
}

/* App Store Button */
.app-store-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    transition: transform 0.2s, opacity 0.2s;
}

.app-store-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.app-store-button.white {
    background: white;
    color: black;
}

.apple-icon { width: 24px; height: 24px; }

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.btn-text .small { font-size: 0.65rem; opacity: 0.8; }
.btn-text .big { font-size: 1.1rem; font-weight: 600; }

/* Hero Visual & Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.iphone-mockup-container {
    position: relative;
    z-index: 2;
}

.iphone-mockup {
    position: relative;
    width: 280px;
    background: #000;
    border-radius: 44px;
    padding: 10px;
    border: 8px solid #1d1d1f;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.2);
    margin: 0 auto;
}

.iphone-mockup.bento-mockup {
    /* Slightly different styling for bento cards to fit better if needed, 
       but keeping width 100% of container or fixed depending on column */
    width: 100%;
    max-width: 240px; /* Limit max size in bento cards */
    border-width: 6px;
    padding: 8px;
    box-shadow: none; /* Remove huge shadow inside card */
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: #1d1d1f;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 10;
}

.bento-mockup .iphone-notch {
    width: 70px; /* Smaller notch for smaller mockup */
    height: 20px;
}

.screen-content {
    background: white;
    border-radius: 34px;
    overflow: hidden;
    height: 100%;
}

.bento-mockup .screen-content {
    border-radius: 28px;
}

.mockup-img { width: 100%; display: block; }
.feature-video { width: 100%; display: block; }

/* Floating Cards Animation */
.floating-card {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
    max-width: 220px;
}

.card-1 {
    top: 20%;
    left: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    right: -20px;
    animation-delay: 3s;
}

.bubble { font-size: 0.9rem; font-weight: 600; }
.bubble.gradient { color: var(--accent-pink); }
.avatar { font-size: 1.5rem; }

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

/* Bento Grid Features */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.bento-item {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.bento-item:hover { transform: translateY(-5px); }

.bento-item.large { grid-column: span 2; }

@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-item.large { grid-column: span 1; }
    .bento-item { padding: 30px; }
}

.tag {
    display: inline-block;
    background: var(--text-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 16px;
    align-self: flex-start;
}

.icon-circle {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.bento-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.img-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* Benefits Section (Custom Animated Visuals) */
.benefits {
    padding: 120px 0;
    background: var(--bg-primary);
}

.benefits-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .benefits-grid-modern {
        grid-template-columns: 1fr;
    }
}

.benefit-card-modern {
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.08); /* Sharper border */
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.benefit-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card-visual-area {
    height: 240px;
    background: #fcfcfc;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-text-area {
    padding: 32px;
}

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

.card-text-area p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ANIMATION 1: Infinite Chat Flow */
.anim-chat-container {
    width: 200px;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.anim-bubble {
    background: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    opacity: 0;
    animation: flowUp 4s infinite ease-in-out;
    max-width: 80%;
}

.anim-bubble.left {
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.anim-bubble.right {
    align-self: flex-end;
    background: var(--text-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.anim-typing {
    align-self: flex-start;
    background: rgba(0,0,0,0.05);
    padding: 10px 14px;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    display: flex;
    gap: 4px;
    animation: fadeIn 0.3s ease 3.5s forwards;
    opacity: 0;
}

.anim-typing span {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: typingBounce 1s infinite;
}

.anim-typing span:nth-child(2) { animation-delay: 0.2s; }
.anim-typing span:nth-child(3) { animation-delay: 0.4s; }

.delay-1 { animation-delay: 0s; }
.delay-2 { animation-delay: 1s; }
.delay-3 { animation-delay: 2s; }
.delay-4 { animation-delay: 3s; }

@keyframes flowUp {
    0% { transform: translateY(20px); opacity: 0; }
    10% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(-40px); opacity: 1; }
    100% { transform: translateY(-60px); opacity: 0; }
}

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

/* ANIMATION 2: Instant Speed */
.anim-speed-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.anim-cursor {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
    transform: translate(20px, 20px);
    animation: cursorClick 3s infinite;
}

.anim-button {
    background: black;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.1s;
}

.btn-sparkle {
    display: none;
}

.anim-result-card {
    position: absolute;
    bottom: 40px;
    width: 160px;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    animation: popResult 3s infinite;
}

.skeleton-line {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 6px;
}
.w-75 { width: 75%; }
.w-50 { width: 50%; }

@keyframes cursorClick {
    0% { transform: translate(30px, 30px); }
    40% { transform: translate(-10px, -5px); } /* Hover */
    45% { transform: translate(-10px, -5px) scale(0.9); } /* Click */
    50% { transform: translate(-10px, -5px) scale(1); }
    100% { transform: translate(-10px, -5px); } /* Stay */
}

@keyframes popResult {
    0%, 45% { opacity: 0; transform: scale(0.9) translateY(10px); }
    50% { opacity: 1; transform: scale(1) translateY(0); }
    90% { opacity: 1; transform: scale(1) translateY(0); }
    100% { opacity: 0; transform: scale(1) translateY(-10px); }
}

/* ANIMATION 3: Orbit Apps */
.anim-apps-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-phone {
    width: 60px;
    height: 100px;
    background: white;
    border: 2px solid #1d1d1f;
    border-radius: 12px;
    z-index: 5;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.orbit-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.icon-1 { animation: orbit1 6s infinite linear; }
.icon-2 { animation: orbit2 6s infinite linear; }
.icon-3 { animation: orbit3 6s infinite linear; }

@keyframes orbit1 {
    from { transform: rotate(0deg) translateX(70px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(70px) rotate(-360deg); }
}

@keyframes orbit2 {
    from { transform: rotate(120deg) translateX(70px) rotate(-120deg); }
    to { transform: rotate(480deg) translateX(70px) rotate(-480deg); }
}

@keyframes orbit3 {
    from { transform: rotate(240deg) translateX(70px) rotate(-240deg); }
    to { transform: rotate(600deg) translateX(70px) rotate(-600deg); }
}

/* FAQ Accordion */
.faq { padding: 80px 0; background: var(--bg-secondary); }

.accordion { max-width: 800px; margin: 0 auto; }

.accordion-item {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.accordion-header {
    width: 100%;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: left;
    color: var(--text-primary);
}

.accordion-header .icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(45deg);
}

.accordion-content {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.accordion-item.active .accordion-content {
    height: auto;
    padding-bottom: 24px;
}

/* Footer CTA */
.footer-cta {
    padding: 80px 24px;
    background: #000;
    color: white;
    text-align: center;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    margin-top: 40px;
}

.cta-box h2 {
    color: white;
    margin-bottom: 16px;
}

.cta-box p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    margin-right: 24px;
    font-size: 0.9rem;
}

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

.copyright { color: rgba(255,255,255,0.4); font-size: 0.9rem; }

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-links a { margin: 0 10px; }
}

/* Legal Pages */
.legal-page {
    padding: 120px 24px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.legal-page .last-updated {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.legal-page .intro {
    font-size: 1.1rem;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

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

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.legal-section p, .legal-section li {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.legal-section ul {
    list-style-position: inside;
    margin-bottom: 16px;
}
