/* =============================================
   Kip Website - Style
   Theme: Dark with Green (#78DE78) accent
   ============================================= */

:root {
    --green: #78DE78;
    --green-dark: #5BC25B;
    --green-light: #A0F0A0;
    --green-glow: rgba(120, 222, 120, 0.15);
    --green-glow-strong: rgba(120, 222, 120, 0.3);
    --pink: #FF5A78;
    --orange: #FF9500;

    --bg: #0A0A0A;
    --bg-card: #141414;
    --bg-card-2: #1E1E1E;
    --bg-nav: rgba(10, 10, 10, 0.8);

    --text: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --text-quaternary: rgba(255, 255, 255, 0.3);

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--green), var(--green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   Navigation
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 20px;
}

.nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--green);
    color: var(--bg) !important;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
    background: var(--green-dark) !important;
    transform: translateY(-1px);
}

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

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* =============================================
   Hero
   ============================================= */
.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--green-glow);
    border: 1px solid rgba(120, 222, 120, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--green);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(120, 222, 120, 0.3);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
    border-radius: 16px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.hero-stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

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

/* Phone mockup */
.hero-phone {
    flex-shrink: 0;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: var(--bg-card);
    border-radius: 40px;
    padding: 12px;
    border: 2px solid var(--border);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 60px var(--green-glow);
    position: relative;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

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

.section-header h2 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* =============================================
   Features
   ============================================= */
.features {
    padding: 100px 0;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: border-color 0.3s, transform 0.3s;
}

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

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-glow);
    border-radius: 14px;
    color: var(--green);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =============================================
   Screenshots
   ============================================= */
.screenshots {
    padding: 100px 0;
}

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

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

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

.screenshot-item img {
    width: 220px;
    height: 476px;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.screenshot-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.screenshot-item span {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* =============================================
   Workouts
   ============================================= */
.workouts {
    padding: 100px 0;
}

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

.workout-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-2));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.workout-card:hover {
    border-color: rgba(120, 222, 120, 0.2);
    transform: translateY(-4px);
}

.workout-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-glow);
    border-radius: 20px;
    color: var(--green);
    margin: 0 auto 24px;
}

.workout-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.workout-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =============================================
   Privacy
   ============================================= */
.privacy {
    padding: 100px 0;
}

.privacy-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-2));
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 80px;
    position: relative;
    overflow: hidden;
}

.privacy-card::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
    pointer-events: none;
}

.privacy-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.privacy-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-glow);
    border-radius: 20px;
    color: var(--green);
    margin-bottom: 32px;
}

.privacy h2 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

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

.privacy-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.privacy-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.privacy-list svg {
    color: var(--green);
    flex-shrink: 0;
}

.privacy-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--green);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.privacy-link:hover {
    opacity: 0.8;
}

/* =============================================
   Legal Pages (Privacy, Terms, Support)
   ============================================= */
.legal-page {
    padding: 120px 0 80px;
}

.legal-header {
    margin-bottom: 48px;
}

.legal-header h1 {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.legal-date {
    font-size: 15px;
    color: var(--text-tertiary);
}

.legal-content {
    max-width: 760px;
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text);
}

.legal-content h3 {
    font-size: 17px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 10px;
    color: var(--text);
}

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

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

.legal-content li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 6px;
}

.legal-content a {
    color: var(--green);
    text-decoration: none;
    transition: opacity 0.2s;
}

.legal-content a:hover {
    opacity: 0.8;
}

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

/* FAQ items */
.faq-item {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.faq-item h3 {
    margin-top: 0;
    color: var(--text);
}

.faq-item p {
    margin-bottom: 0;
}

/* Support contact */
.support-contact {
    margin-top: 32px;
}

/* =============================================
   Download CTA
   ============================================= */
.download {
    padding: 120px 0;
}

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

.download h2 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.download p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* =============================================
   Footer
   ============================================= */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

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

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

.footer-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

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

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 13px;
    color: var(--text-quaternary);
}

/* =============================================
   Mobile Responsive
   ============================================= */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 44px;
    }

    .section-header h2 {
        font-size: 36px;
    }

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

    .privacy-card {
        padding: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 48px;
    }

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

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

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

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

    .phone-frame {
        width: 240px;
        height: 500px;
    }

    .section-header h2 {
        font-size: 32px;
    }

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

    .privacy-card {
        padding: 32px;
        border-radius: 24px;
    }

    .privacy h2 {
        font-size: 32px;
    }

    .download h2 {
        font-size: 36px;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .screenshot-item img {
        width: 180px;
        height: 390px;
    }
}

/* Mobile nav active state */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.navbar.scrolled {
    border-bottom-color: var(--border-hover);
}

/* Scroll animations */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.15s; }
.feature-card:nth-child(5) { transition-delay: 0.25s; }
.feature-card:nth-child(6) { transition-delay: 0.3s; }

.workout-card:nth-child(2) { transition-delay: 0.1s; }
.workout-card:nth-child(3) { transition-delay: 0.2s; }

.screenshot-item:nth-child(2) { transition-delay: 0.05s; }
.screenshot-item:nth-child(3) { transition-delay: 0.1s; }
.screenshot-item:nth-child(4) { transition-delay: 0.15s; }
.screenshot-item:nth-child(5) { transition-delay: 0.2s; }
.screenshot-item:nth-child(6) { transition-delay: 0.25s; }

@media (max-width: 480px) {
    .hero h1 {
        font-size: 30px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
    }
}
