/* ===== PREMIUM MODERN DESIGN SYSTEM ===== */
:root {
    /* Color Palette - High Contrast & Polished */
    --primary: #0F766E;
    /* Deep Teal */
    --primary-light: #14B8A6;
    /* Bright Teal */
    --accent: #F59E0B;
    /* Amber */

    --surface: #FFFFFF;
    --surface-alt: #F1F5F9;
    /* Darker cool gray for better separation */
    --text-main: #020617;
    /* Almost black for sharp contrast */
    --text-muted: #475569;
    /* Darker gray for readability */
    --border: #CBD5E1;
    /* Visible borders */

    /* Gradients - More Vibrant */
    --gradient-hero: linear-gradient(135deg, #F0FDFA 0%, #FFFFFF 60%, #F1F5F9 100%);
    --gradient-text: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
    --gradient-card-1: linear-gradient(135deg, #CCFBF1 0%, #E0F2FE 100%);
    --gradient-card-2: linear-gradient(135deg, #FEF3C7 0%, #FEE2E2 100%);
    --gradient-card-3: linear-gradient(135deg, #E0E7FF 0%, #EDE9FE 100%);

    /* Shadows - More Depth */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-float: 0 25px 50px -12px rgba(15, 118, 110, 0.3);

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: -3px;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--surface);
    background-image: radial-gradient(#E2E8F0 1px, transparent 1px);
    background-size: 32px 32px;
    /* Bigger pattern for cleaner look */
    line-height: 1.7;
    /* Increased line-height */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Crisp text */
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    /* More breathing room */
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

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

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

.logo-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-alt);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    color: var(--text-main);
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    font-weight: 700;
    /* Bold active state */
}

/* Add an underline effect for active link */
.nav-link.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary);
    margin-top: 4px;
    border-radius: 2px;
}

.nav-btn {
    background: var(--primary-light);
    color: white;
    padding: 10px 24px;
    border-radius: 99px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4);
}

.nav-btn:hover {
    background: #020617;
    /* Black on hover for premium feel */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(20, 184, 166, 0.4);
}

/* ===== PAGE HERO ===== */
.page-hero {
    padding: 160px 0 80px;
    text-align: center;
    background: var(--surface-alt);
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-size: 48px;
    margin-bottom: 24px;
    color: var(--text-main);
    line-height: 1.2;
}

.page-hero p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 20px;
    color: var(--text-muted);
}

/* ===== HERO SHOWCASE ===== */
.hero-showcase {
    padding-top: 140px;
    padding-bottom: 80px;
    background: var(--gradient-hero);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

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

/* Hero Text */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 184, 166, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-headline {
    font-size: 64px;
    line-height: 1.05;
    font-weight: 900;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subheadline {
    font-size: 21px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 540px;
    font-weight: 400;
}

.app-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.store-btn img {
    height: 52px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.store-btn:hover img {
    transform: translateY(-3px) scale(1.02);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.trust-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatars {
    display: flex;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
}

.avatar-circle:first-child {
    margin-left: 0;
}

.trust-text {
    font-size: 14px;
    color: var(--text-muted);
}

/* Hero Visual - CSS Mockup */
.hero-visual {
    position: relative;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 40px;
    border: 14px solid #1a1a1a;
    margin: 0 auto;
    position: relative;
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    overflow: hidden;
    z-index: 2;
}

.phone-screen {
    background: #F8FAFC;
    height: 100%;
    width: 100%;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    margin-top: 30px;
    /* dynamic island space */
}

.app-logo-small {
    width: 30px;
    height: 30px;
    background: var(--primary-light);
    border-radius: 8px;
}

.app-menu-dots {
    width: 30px;
    height: 30px;
    background: #E2E8F0;
    border-radius: 8px;
}

.scan-frame {
    flex: 1;
    background: #E2E8F0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-light);
    box-shadow: 0 0 10px var(--primary-light);
    animation: scan 2s infinite ease-in-out;
}

.product-placeholder {
    color: var(--text-muted);
    font-size: 14px;
}

.result-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.toxicity-score {
    background: #DCFCE7;
    color: #15803D;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
}

.line {
    height: 8px;
    background: #F1F5F9;
    border-radius: 4px;
    margin-bottom: 8px;
}

.line.long {
    width: 100%;
}

.line.medium {
    width: 70%;
}

.line.short {
    width: 40%;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.glow-effect {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 140px 0;
    /* More space */
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

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

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    z-index: 2;
    position: relative;
}

.step-card {
    padding: 48px 32px;
    background: white;
    border-radius: 32px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Watermark Number */
.step-card::after {
    content: attr(data-step);
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 160px;
    font-weight: 800;
    color: var(--surface-alt);
    line-height: 1;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
    font-family: var(--font-heading);
    transition: transform 0.5s ease;
}

/* Since I can't easily add data-step to HTML without editing HTML, I'll use nth-child for CSS-only approach */
.step-card:nth-child(1)::after {
    content: "01";
}

.step-card:nth-child(2)::after {
    content: "02";
}

.step-card:nth-child(3)::after {
    content: "03";
}

.step-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-xl);
}

.step-card:hover::after {
    transform: translate(-10px, 10px) rotate(-5deg);
    color: rgba(20, 184, 166, 0.05);
}

.step-icon-box {
    margin: 0 auto 32px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F0FDFA, #CCFBF1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.step-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.step-card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}


/* ===== SHOWCASE SECTION (Alternating) ===== */
.showcase-section {
    padding: 0;
    background: var(--surface);
}

.showcase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    margin-bottom: 160px;
    /* Huge spacing for premium feel */
}

.showcase-row.reverse {
    direction: rtl;
}

.showcase-row.reverse .showcase-text {
    direction: ltr;
}

.feature-tag {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
    /* Pop of color */
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(245, 158, 11, 0.1);
    padding: 6px 14px;
    border-radius: 99px;
}

.showcase-text h2 {
    font-size: 48px;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    /* Tight heading */
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.showcase-text p {
    font-size: 19px;
    /* Slightly larger readability */
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 500;
}

.feature-list li::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary-light);
    color: white;
    border-radius: 50%;
    font-size: 12px;
}

/* Visual Cards */
.visual-card {
    aspect-ratio: 4/3;
    border-radius: 32px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s ease;
}

.visual-card:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.gradient-1 {
    background: var(--gradient-card-1);
}

.gradient-2 {
    background: var(--gradient-card-2);
}

.gradient-3 {
    background: var(--gradient-card-3);
}

/* CSS Artwork for features */
.score-circle {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    border: 8px solid var(--primary-light);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    line-height: 1;
}

.score-circle small {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.status-badge {
    position: absolute;
    bottom: 20%;
    background: #065F46;
    color: white;
    padding: 8px 24px;
    border-radius: 99px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.profile-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-card {
    background: white;
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    animation: simpleFloat 4s ease-in-out infinite;
}

.profile-card:nth-child(2) {
    animation-delay: 1s;
    margin-left: 20px;
}

.profile-card:nth-child(3) {
    animation-delay: 2s;
    margin-left: -10px;
}

.graph-placeholder {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 150px;
}

.bar {
    width: 24px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.bar-1 {
    height: 40%;
}

.bar-2 {
    height: 60%;
}

.bar-3 {
    height: 50%;
}

.bar-4 {
    height: 80%;
    background: var(--primary-light);
}

.bar-5 {
    height: 90%;
    background: var(--primary);
}

/* ===== TESTIMONIAL ===== */
.testimonial-section {
    background: var(--surface-alt);
    padding: 80px 0;
    text-align: center;
}

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

.stars {
    font-size: 24px;
    margin-bottom: 24px;
}

blockquote {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 32px;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.6;
    position: relative;
    padding: 0 40px;
}

blockquote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 80px;
    color: var(--primary-light);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.author strong {
    display: block;
    font-size: 18px;
}

.author span {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== CTA FINAL ===== */
/* ===== CTA FINAL ===== */
.cta-final {
    background: radial-gradient(circle at top right, #0F766E, #111827);
    padding: 140px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Updated Glow to work on dark bg */
.cta-final::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), transparent 70%);
    transform: translateY(-50%);
    z-index: 1;
}

.cta-box {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    /* Removed card styling for full-width look */
}

.cta-box h2 {
    color: white;
    font-size: 56px;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 22px;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Specific button styling for CTA section */
.cta-final .app-buttons {
    justify-content: center;
}

.cta-final .store-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: none;
}

.cta-final .store-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-final .store-btn img {
    height: 48px;
    transition: transform 0.3s ease;
    /* Blend mode to remove black background from badge */
    mix-blend-mode: screen;
}

.cta-final .store-btn:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .cta-box {
        padding: 40px 24px;
        border-radius: 32px;
    }

    .cta-box h2 {
        font-size: 36px;
    }

    .cta-box p {
        font-size: 18px;
    }

    .cta-final {
        padding: 60px 0;
    }
}

/* ===== LEGAL PAGES ===== */
.legal-section {
    padding: 60px 0;
    background: var(--surface);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-main);
}

.legal-content h2 {
    font-size: 24px;
    margin: 40px 0 20px;
    color: var(--primary);
}

.legal-content p,
.legal-content li {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 16px;
}

.legal-content ul {
    padding-left: 24px;
    list-style: disc;
    margin-bottom: 24px;
}

/* Make badges white for dark bg */

/* ===== FOOTER ===== */
.main-footer {
    padding: 80px 0 40px;
    background: #F8FAFC;
    /* Light gray background */
    border-top: 1px solid #CBD5E1;
    position: relative;
    z-index: 10;
}

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

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
    margin-top: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 24px;
}

.footer-logo-icon {
    width: 50px;
}

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 14px;
}

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

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

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    /* Reduced from -20px */
    100% {
        transform: translateY(0px);
    }
}

/* Subtle Fade In (Replacing left/right slides) */
.fade-in,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transform: translateY(20px);
    /* Upward only */
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Smooth easing */
}

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

@keyframes simpleFloat {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes scan {
    0% {
        top: 0;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 0;
    }
}

/* Transitions */
.fade-in,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.visible {
    opacity: 1;
    transform: translate(0);
}

/* Responsive */
@media (max-width: 968px) {

    .hero-grid,
    .showcase-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-showcase {
        text-align: center;
        padding-top: 120px;
    }

    .hero-badge,
    .app-buttons,
    .trust-row {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .showcase-row.reverse {
        direction: ltr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links,
    .nav-btn {
        display: none;
    }

    /* Simplified for quick mobile */
    .mobile-menu-btn {
        display: block;
    }
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    margin-bottom: 5px;
}

/* ===== FEATURES PAGE ===== */
.feature-grid-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 80px 0;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-card .icon-box {
    width: 64px;
    height: 64px;
    background: var(--surface-alt);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--primary);
    transition: transform 0.4s ease;
}

.feature-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

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

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

@media (max-width: 900px) {
    .feature-grid-page {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .feature-grid-page {
        grid-template-columns: 1fr;
    }
}


/* ===== DOWNLOAD PAGE ===== */
.platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 60px auto;
}

.platform-card {
    background: white;
    padding: 48px;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.platform-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.platform-icon {
    font-size: 64px;
    margin-bottom: 24px;
    display: inline-block;
}

.version {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-family: monospace;
    background: var(--surface-alt);
    padding: 4px 12px;
    border-radius: 99px;
    display: inline-block;
}

@media (max-width: 768px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== DOWNLOAD HERO ===== */
.download-hero {
    padding-top: 140px;
    text-align: center;
    background: var(--gradient-hero);
    min-height: 80vh;
}

.qr-box {
    margin-top: 60px;
    padding: 32px;
    background: white;
    border-radius: 20px;
    display: inline-block;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    animation: fade-in-up 1s forwards 0.5s;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== APP BREAKDOWN SECTION ===== */
.app-breakdown-section {
    padding: 100px 0;
    background: var(--surface);
    overflow: visible;
    position: relative;
    z-index: 10;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    /* Align top to prevent cutting off tall images */
}

.breakdown-visual {
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 10;
    overflow: visible !important;
    height: auto !important;
    min-height: 1px;
}

.phone-mockup {
    width: 100%;
    max-width: 480px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    transform: none;
    transition: transform 0.3s ease;
    overflow: visible !important;
    height: auto !important;
}

#app-preview-image {
    transition: opacity 0.2s ease, transform 0.2s ease;
    will-change: opacity, transform;
}

.breakdown-item {
    cursor: pointer;
    border: 2px solid transparent;
    /* Prepare for border change */
}

.breakdown-item.active {
    border-color: var(--primary);
    background: #f8fafc;
    /* Slight highlight */
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.breakdown-item.active .breakdown-icon {
    background: var(--primary);
    color: white;
}

.phone-mockup:hover {
    transform: rotate(0deg) scale(1.02);
}

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

.breakdown-content h2 {
    font-size: 42px;
    margin-bottom: 40px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.breakdown-item {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.breakdown-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.breakdown-icon {
    min-width: 50px;
    height: 50px;
    background: var(--surface-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.breakdown-text h4 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.breakdown-text p {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== HERO RAW IMAGE ===== */
.hero-main-image {
    width: 100%;
    height: auto;
    max-width: 1200px;
    border-radius: 20px;
    box-shadow: var(--shadow-2xl);
    display: block;
    margin: 0 0 0 auto;
    /* Align right */
    transition: transform 0.3s ease;
}

.hero-main-image:hover {
    transform: scale(1.02);
}

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

    .breakdown-visual {
        order: -1;
        margin-bottom: 40px;
    }

    .breakdown-item {
        text-align: left;
    }

    .phone-mockup {
        width: 280px;
        transform: rotate(0);
    }

    /* Hero Mobile Adjustments */
    .hero-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .hero-visual {
        width: 100%;
        display: flex;
        justify-content: center;
        order: 2;
        /* Image on bottom for better text-first experience */
    }

    .hero-text {
        order: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-main-image {
        margin: 0 auto !important;
        width: 100%;
        max-width: 420px;
        height: auto;
        display: block;
        position: static;
        /* Removed the left: -15px hack */
        transform: none !important;
        /* Stable on mobile */
    }

    .hero-showcase {
        padding: 110px 0 60px 0;
        min-height: auto;
    }

    .hero-headline {
        font-size: 32px;
        line-height: 1.25;
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .hero-subheadline {
        font-size: 16px;
        max-width: 90%;
        margin: 0 auto 30px auto;
    }

    .app-buttons {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
}



/* ===== CAROUSEL DOTS ===== */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.4);
}

.dot:hover {
    background: var(--primary-light);
}