/* ========================================
   RESET & BASE STYLES
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

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

:root {
    /* Color Palette */
    --primary-color: #FF2D55;
    --secondary-color: #FF3B30;
    --accent-color: #FFB800;
    --dark-bg: #1A1625;
    --light-bg: #FFF0F5;
    --text-dark: #2D2640;
    --text-light: #8B83A0;
    --white: #FFFFFF;

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 100px 20px;
    --container-max: 1200px;

    /* Theme Colors - Dark by default */
    --bg-primary: #0A0A0F;
    --bg-secondary: rgba(255, 255, 255, 0.03);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.65);
    --border-color: rgba(255, 255, 255, 0.66);
    --nav-bg: rgba(0, 0, 0, 0.76);
    --nav-bg-active: rgba(0, 0, 0, 0.96);
    --gradient-overlay-1: rgba(255, 45, 85, 0.12);
    --gradient-overlay-2: rgba(139, 92, 246, 0.10);
    --gradient-overlay-3: rgba(59, 130, 246, 0.08);
    --gradient-overlay-4: rgba(236, 72, 153, 0.09);
    --btn-video-border: rgba(255, 255, 255, 0.2);
    --btn-video-bg-hover: rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] {
    --bg-primary: #FFFFFF;
    --bg-secondary: rgba(0, 0, 0, 0.02);
    --text-primary: #1A1A1F;
    --text-secondary: rgba(0, 0, 0, 0.7);
    --text-tertiary: rgba(0, 0, 0, 0.65);
    --border-color: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.76);
    --nav-bg-active: rgba(255, 255, 255, 0.96);
    --gradient-overlay-1: rgba(255, 45, 85, 0.06);
    --gradient-overlay-2: rgba(139, 92, 246, 0.05);
    --gradient-overlay-3: rgba(59, 130, 246, 0.04);
    --gradient-overlay-4: rgba(236, 72, 153, 0.05);
    --btn-video-border: rgba(0, 0, 0, 0.2);
    --btn-video-bg-hover: rgba(0, 0, 0, 0.05);
}

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

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 40%, var(--gradient-overlay-1) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, var(--gradient-overlay-2) 0%, transparent 55%),
        radial-gradient(circle at 45% 75%, var(--gradient-overlay-3) 0%, transparent 45%),
        radial-gradient(circle at 70% 60%, var(--gradient-overlay-4) 0%, transparent 50%),
        radial-gradient(circle at 30% 85%, var(--gradient-overlay-2) 0%, transparent 40%);
    animation: backgroundShift 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1) translate(0, 0) rotate(0deg);
    }
    33% {
        opacity: 0.95;
        transform: scale(1.05) translate(2%, -2%) rotate(1deg);
    }
    66% {
        opacity: 0.9;
        transform: scale(1.08) translate(-2%, 2%) rotate(-1deg);
    }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ========================================
   REUSABLE COMPONENTS
   ======================================== */

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

.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.9), rgba(255, 59, 48, 0.7));
    color: var(--white);
    box-shadow: 0 4px 0 rgba(255, 45, 85, 0.4), 0 8px 20px rgba(255, 45, 85, 0.3);
    position: relative;
    top: 0;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.9), rgba(255, 45, 85, 0.8));
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(255, 45, 85, 0.4), 0 12px 30px rgba(255, 45, 85, 0.4);
    top: -2px;
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(255, 45, 85, 0.4), 0 4px 15px rgba(255, 45, 85, 0.3);
    top: 2px;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    color: var(--text-primary);
}

.section-title p {
    color: var(--text-secondary);
}

.section-subtitle {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

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

nav {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    width: auto;
    max-width: calc(var(--container-max) + 40px);
    margin: 0 auto;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
}

section {
    position: relative;
    z-index: 1;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    max-width: 100%;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo svg {
    width: 24px;
    height: 24px;
}

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

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

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s;
    border-radius: 8px;
}

.theme-toggle:hover {
    background: rgba(255, 45, 85, 0.1);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

:root[data-theme="light"] .sun-icon {
    display: block;
}

:root[data-theme="light"] .moon-icon {
    display: none;
}

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

.hero {
    margin-top: 0;
    padding: 140px 20px 0;
    background: transparent;
    position: relative;
    overflow: visible;
    min-height: 100vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

.title-line {
    display: block;
    font-size: 1em;
}

.title-line.large {
    font-size: 1.3em;
    letter-spacing: -0.02em;
}

.hero-text .highlight {
    background: linear-gradient(120deg, #FF2D55 0%, #FF3B30 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.btn-video {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--btn-video-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    box-shadow: 0 4px 0 var(--btn-video-border), 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    top: 0;
}

.btn-video:hover {
    background: var(--btn-video-bg-hover);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--btn-video-border), 0 12px 30px rgba(0, 0, 0, 0.3);
    top: -2px;
}

.btn-video:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--btn-video-border), 0 4px 15px rgba(0, 0, 0, 0.2);
    top: 2px;
}

.btn-video svg {
    width: 16px;
    height: 16px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
    height: 100%;
}

.phone-hand-mockup {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
}

.phone-hand-mockup img {
    width: 100%;
    height: auto;
    display: block;
}

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

.features {
    padding: var(--section-padding);
    background: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2.5rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 45, 85, 0.5);
    box-shadow: 0 20px 40px rgba(255, 45, 85, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.9), rgba(255, 59, 48, 0.7));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-tertiary);
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials {
    padding: var(--section-padding);
    background: transparent;
    color: var(--text-primary);
}

.testimonials .section-subtitle {
    color: var(--primary-color);
}

.testimonials h2 {
    color: var(--text-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--white);
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========================================
   PRICING SECTION
   ======================================== */

.pricing {
    padding: var(--section-padding);
    background: transparent;
}

.pricing-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 45, 85, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(255, 45, 85, 0.2);
}

.pricing-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.price .currency {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.price .amount {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(120deg, #FF2D55 0%, #FF3B30 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price .period {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-top: 2rem;
}

.price-detail {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin: 0;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.feature-item svg {
    flex-shrink: 0;
    color: var(--primary-color);
    width: 24px;
    height: 24px;
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.125rem;
    box-shadow: 0 6px 0 rgba(255, 45, 85, 0.4), 0 12px 30px rgba(255, 45, 85, 0.3);
}

.btn-large:hover {
    box-shadow: 0 8px 0 rgba(255, 45, 85, 0.4), 0 16px 40px rgba(255, 45, 85, 0.4);
}

.btn-large:active {
    box-shadow: 0 3px 0 rgba(255, 45, 85, 0.4), 0 6px 20px rgba(255, 45, 85, 0.3);
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta {
    padding: var(--section-padding);
    background: transparent;
    text-align: center;
}

.cta h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.cta p {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--text-secondary);
}

.app-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.app-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #000000;
    color: var(--white);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    top: 0;
}

.app-store-badge:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.5), 0 12px 30px rgba(0, 0, 0, 0.4);
    top: -2px;
}

.app-store-badge:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), 0 4px 15px rgba(0, 0, 0, 0.3);
    top: 2px;
}

.app-store-badge svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

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

.badge-subtitle {
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.badge-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: -2px;
}

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

footer {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 20px 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

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

.footer-logo svg {
    width: 20px;
    height: 20px;
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s;
    box-shadow: 0 3px 0 rgba(255, 255, 255, 0.15), 0 6px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    top: 0;
}

.social-link svg {
    width: 20px;
    height: 40px;
    flex-shrink: 0;
    display: block;          /* removes baseline spacing */
    margin: auto; 
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 0 rgba(255, 255, 255, 0.15), 0 10px 25px rgba(0, 0, 0, 0.3);
    top: -2px;
}

.social-link:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.15), 0 4px 10px rgba(0, 0, 0, 0.2);
    top: 1px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.theme-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.theme-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.theme-btn:hover {
    background: rgba(255, 45, 85, 0.1);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.theme-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

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

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

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

    .hero {
        padding: 120px 20px 40px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
        order: 1;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

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

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

    .hero-image {
        order: 2;
        justify-content: center;
        align-items: center;
    }

    .phone-hand-mockup {
        max-width: 350px;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: fixed;
        top: 90px;
        left: 20px;
        right: 20px;
        width: auto;
        height: auto;
        max-height: calc(100vh - 120px);
        background: var(--nav-bg-active);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        flex-direction: column;
        padding: 2rem;
        border-radius: 16px;
        transition: opacity 0.3s ease, transform 0.3s ease;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        border: 1px solid var(--border-color);
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
    }

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

    .menu-toggle {
        display: flex;
    }

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