/* ========================================
   Turnr Website - Style Sheet
   ======================================== */

/* CSS Variables */
:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #4ade80;
    --primary-subtle: rgba(34, 197, 94, 0.1);

    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;

    --border-color: #e2e8f0;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;

    --container-max: 1200px;
    --container-padding: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

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

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-block {
    width: 100%;
}

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

/* Section Styles */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-subtle);
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--border-radius-full);
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

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

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

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

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
}

.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);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu a {
    font-size: 1.125rem;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-subtle);
    border-radius: var(--border-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.badge-icon {
    font-size: 1rem;
}

.hero h1 {
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

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

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

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: auto;
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.phone-mockup img {
    border-radius: 30px;
    width: 100%;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: 0.875rem;
    animation: float 3s ease-in-out infinite;
}

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

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

.card-icon {
    font-size: 1.25rem;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-subtle) 0%, transparent 70%);
    z-index: -1;
    border-radius: 0 0 0 100px;
}

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

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

.feature-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

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

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

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-rotate .feature-icon {
    background: #fef3c7;
    color: #d97706;
}

.feature-duplicates .feature-icon {
    background: #ede9fe;
    color: #7c3aed;
}

.feature-screenshots .feature-icon {
    background: #ccfbf1;
    color: #0d9488;
}

.feature-storage .feature-icon {
    background: #dbeafe;
    color: #2563eb;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 700;
}

/* ========================================
   How It Works
   ======================================== */
.how-it-works {
    padding: 100px 0;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 280px;
    opacity: 0;
    transform: translateY(30px);
}

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

.step-number {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 24px;
}

.step-content h3 {
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.step-connector {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    margin-top: 32px;
    flex-shrink: 0;
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

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

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.popular.animate-in {
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 20px;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.pricing-desc {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.pricing-price {
    margin: 24px 0;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}

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

.pricing-savings {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.pricing-features {
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.check {
    color: var(--primary);
    font-weight: 700;
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials {
    padding: 100px 0;
}

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

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(30px);
}

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

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-card p {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* ========================================
   Download CTA
   ======================================== */
.download-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
}

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

.cta-content > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 32px;
}

.cta-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-top: 16px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
}

.footer-love {
    margin-top: 8px !important;
    font-size: 0.875rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    padding: 8px 0;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

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

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

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

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

    .hero-image {
        margin-top: 40px;
    }

    .floating-card {
        display: none;
    }

    .hero-bg {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card.popular {
        transform: none;
        order: -1;
    }

    .pricing-card.popular.animate-in,
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

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

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .nav-links {
        display: none;
    }

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

    .mobile-menu {
        display: flex;
    }

    .hero {
        padding: 120px 0 80px;
    }

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

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

    .phone-mockup {
        width: 240px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .btn-lg {
        padding: 14px 24px;
    }
}

/* Animation Delays */
.feature-card:nth-child(1) { transition-delay: 0ms; }
.feature-card:nth-child(2) { transition-delay: 100ms; }
.feature-card:nth-child(3) { transition-delay: 200ms; }
.feature-card:nth-child(4) { transition-delay: 300ms; }

.step:nth-child(1) { transition-delay: 0ms; }
.step:nth-child(3) { transition-delay: 200ms; }
.step:nth-child(5) { transition-delay: 400ms; }

.pricing-card:nth-child(1) { transition-delay: 0ms; }
.pricing-card:nth-child(2) { transition-delay: 100ms; }
.pricing-card:nth-child(3) { transition-delay: 200ms; }

.testimonial-card:nth-child(1) { transition-delay: 0ms; }
.testimonial-card:nth-child(2) { transition-delay: 100ms; }
.testimonial-card:nth-child(3) { transition-delay: 200ms; }

/* ========================================
   2030 Visual Refresh
   ======================================== */
body.theme-2030 {
    --primary: #7c5cff;
    --primary-dark: #5f3eff;
    --primary-light: #18e1ff;
    --primary-subtle: rgba(124, 92, 255, 0.18);
    --bg-primary: #070b1b;
    --bg-secondary: #0b1227;
    --bg-tertiary: #121a35;
    --text-primary: #f4f8ff;
    --text-secondary: #a7b3d1;
    --text-tertiary: #7380a8;
    --border-color: rgba(145, 170, 255, 0.2);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 80px rgba(17, 22, 44, 0.65);
    --shadow-xl: 0 32px 90px rgba(0, 0, 0, 0.7);
    background:
        radial-gradient(circle at 12% 12%, rgba(24, 225, 255, 0.24), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(124, 92, 255, 0.35), transparent 45%),
        linear-gradient(160deg, #060915 0%, #0a1024 45%, #0b1738 100%);
    color: var(--text-primary);
}

.theme-2030::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,0.2) 0.5px, transparent 0.5px);
    background-size: 3px 3px;
    opacity: 0.08;
    z-index: -1;
}

.theme-2030 h1,
.theme-2030 h2,
.theme-2030 .logo span {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.theme-2030 .navbar {
    border-bottom: 1px solid transparent;
}

.theme-2030 .navbar.scrolled {
    background: rgba(8, 12, 29, 0.72);
    border-bottom-color: rgba(147, 170, 255, 0.25);
}

.theme-2030 .hero {
    padding-top: 150px;
}

.theme-2030 .hero-badge,
.theme-2030 .feature-card,
.theme-2030 .pricing-card,
.theme-2030 .testimonial-card,
.theme-2030 .footer,
.theme-2030 .mobile-menu,
.theme-2030 .step,
.theme-2030 .hero-stats {
    background: linear-gradient(145deg, rgba(15, 22, 46, 0.95), rgba(9, 14, 34, 0.82));
    border: 1px solid rgba(145, 170, 255, 0.2);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.theme-2030 .hero-badge {
    color: #d6f2ff;
}

.theme-2030 .hero h1 {
    background: linear-gradient(100deg, #ffffff 10%, #b4f5ff 40%, #a693ff 75%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.theme-2030 .phone-mockup {
    border: 1px solid rgba(123, 230, 255, 0.45);
    box-shadow: 0 20px 80px rgba(24, 225, 255, 0.25);
}

.theme-2030 .phone-mockup img,
.theme-2030 .feature-showcase img {
    filter: saturate(1.1) contrast(1.05);
}

.theme-2030 .floating-card,
.theme-2030 .popular-badge,
.theme-2030 .step-number,
.theme-2030 .btn-primary {
    background: linear-gradient(120deg, #7c5cff 0%, #18e1ff 100%);
    color: #fff;
    border: none;
}

.theme-2030 .btn {
    border: 1px solid rgba(155, 190, 255, 0.3);
}

.theme-2030 .btn-secondary,
.theme-2030 .btn-white {
    background: rgba(22, 32, 64, 0.9);
    color: #e8f0ff;
}

.theme-2030 .section-tag {
    color: #b6e9ff;
    background: rgba(24, 225, 255, 0.12);
    border: 1px solid rgba(125, 226, 255, 0.28);
}

.theme-2030 .feature-icon,
.theme-2030 .stat-number,
.theme-2030 .check,
.theme-2030 .price {
    color: #89f1ff;
}

.theme-2030 .download-cta {
    background: linear-gradient(130deg, rgba(123, 92, 255, 0.95) 0%, rgba(24, 225, 255, 0.82) 100%);
}

.theme-2030 .footer-bottom,
.theme-2030 .pricing-features li {
    border-color: rgba(145, 170, 255, 0.2);
}

.theme-2030 .feature-card:hover,
.theme-2030 .pricing-card:hover,
.theme-2030 .testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(138, 246, 255, 0.6);
}

@media (max-width: 768px) {
    .theme-2030 .hero h1 {
        background-size: 180%;
    }
}
