/* ===== CSS Variables ===== */
:root {
    --cachly-green: #31a350;
    --cachly-green-dark: #278a42;
    --cachly-green-light: #4cb868;
    --cachly-green-pale: #e8f5eb;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-light: #6b6b8a;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-100: #f1f3f4;
    --gray-200: #e8eaed;
    --gray-800: #2d2d44;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

.highlight {
    color: var(--cachly-green);
}

.section-label {
    display: inline-block;
    padding: 8px 16px;
    background: var(--cachly-green-pale);
    color: var(--cachly-green);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

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

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

.btn-secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--gray-200);
}

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

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

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

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    transition: color var(--transition-fast);
}

.navbar.scrolled .nav-logo {
    color: var(--text-primary);
}

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

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

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.navbar.scrolled .nav-menu a {
    color: var(--text-secondary);
}

.nav-menu a:hover {
    color: var(--cachly-green-light);
}

.navbar.scrolled .nav-menu a:hover {
    color: var(--cachly-green);
}

.nav-icon {
    display: flex;
    align-items: center;
    padding: 8px;
}

.nav-icon svg {
    fill: rgba(255, 255, 255, 0.9);
    transition: fill var(--transition-fast);
}

.navbar.scrolled .nav-icon svg {
    fill: var(--text-secondary);
}

.nav-icon:hover svg {
    fill: var(--cachly-green-light);
}

.navbar.scrolled .nav-icon:hover svg {
    fill: var(--cachly-green);
}

.nav-cta {
    background: var(--cachly-green) !important;
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
}

.nav-cta:hover {
    background: var(--cachly-green-dark) !important;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-arrow {
    transition: transform var(--transition-fast);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 1000;
    margin-top: 10px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--white);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary) !important;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--cachly-green) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-fast);
}

.navbar.scrolled .nav-toggle span {
    background: var(--text-primary);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cachly-green) 0%, var(--cachly-green-dark) 100%);
}

.hero-parallax {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    transform: translateZ(0);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-text h1 .highlight {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 8px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary {
    background: transparent;
    padding: 0;
    overflow: hidden;
    border: none;
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    background: transparent;
}

.appstore-badge {
    height: 54px;
    width: auto;
}

.authorized-badge {
    height: 54px;
    width: auto;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

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

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-screenshot {
    max-height: 750px;
    width: auto;
    border-radius: 0;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-slow);
}

.hero-screenshot:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== Features Section ===== */
.features {
    padding: 120px 0;
    background: var(--off-white);
}

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

.feature-card {
    position: relative;
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.pro-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--cachly-green);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--cachly-green-pale);
}

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

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--cachly-green);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== CarPlay Section ===== */
.carplay {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(180deg, var(--gray-800) 0%, #1a1a2e 100%);
    overflow: hidden;
}

.carplay-parallax {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(49,163,80,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.carplay-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.carplay-text {
    color: var(--white);
}

.carplay-text .section-label {
    background: rgba(49, 163, 80, 0.2);
}

.carplay-text h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.carplay-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    line-height: 1.7;
}

.carplay-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.carplay-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.carplay-features svg {
    width: 20px;
    height: 20px;
    color: var(--cachly-green);
    flex-shrink: 0;
}

.carplay-images {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.carplay-screen {
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-normal);
}

.carplay-screen:hover {
    transform: scale(1.02);
}

.carplay-screen img {
    width: 100%;
    display: block;
}

.carplay-screen-1 {
    transform: translateX(20px);
}

.carplay-screen-2 {
    transform: translateX(-20px);
}

/* ===== Screenshots Section ===== */
.screenshots {
    padding: 120px 0;
    background: var(--white);
    overflow: hidden;
}

/* Carousel Container */
.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.carousel {
    position: relative;
    overflow: hidden;
    margin: 0 60px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 20px;
}

/* Carousel Screenshot */
.carousel-screenshot {
    max-height: 700px;
    width: auto;
    border-radius: 0;
    transition: transform 0.4s ease;
}

.carousel-screenshot:hover {
    transform: scale(1.02);
}

/* Slide Caption */
.slide-caption {
    text-align: center;
    max-width: 500px;
    animation: fadeInUp 0.5s ease;
}

.slide-caption h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.slide-caption p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--cachly-green);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:hover svg {
    color: var(--white);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-200);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    padding: 0;
}

.indicator:hover {
    background: var(--cachly-green-light);
}

.indicator.active {
    background: var(--cachly-green);
    width: 32px;
    border-radius: 6px;
}

/* Carousel Progress Bar */
.carousel-progress {
    width: 200px;
    height: 3px;
    background: var(--gray-200);
    border-radius: 3px;
    margin: 24px auto 0;
    overflow: hidden;
}

.carousel-progress-bar {
    height: 100%;
    background: var(--cachly-green);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

/* Slide animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-slide.slide-in-right .slide-content {
    animation: slideInRight 0.5s ease forwards;
}

.carousel-slide.slide-in-left .slide-content {
    animation: slideInLeft 0.5s ease forwards;
}

/* ===== Apple Watch Section ===== */
.watch {
    padding: 120px 0;
    background: var(--off-white);
}

.watch-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.watch-text .section-label {
    margin-bottom: 16px;
}

.watch-text h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.watch-text > p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.watch-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.watch-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.watch-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--cachly-green-pale);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.watch-feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--cachly-green);
}

.watch-feature h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

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

.watch-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.watch-screenshot {
    max-width: 280px;
    height: auto;
}

/* ===== Cachly Intelligence Section ===== */
.intelligence {
    padding: 120px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.intelligence::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="aiGrid" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23aiGrid)"/></svg>');
    pointer-events: none;
}

.intelligence-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.intelligence-text .section-label {
    background: rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
    margin-right: 10px;
    margin-bottom: 16px;
}

.intelligence-text h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.intelligence-text h2 .highlight {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intelligence-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 40px;
}

.intelligence-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.intelligence-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.intelligence-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.intelligence-feature-icon svg {
    width: 24px;
    height: 24px;
    color: #a78bfa;
}

.intelligence-feature h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--white);
}

.intelligence-feature p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.intelligence-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.intelligence-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.intelligence-icon-large {
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.intelligence-icon-large svg {
    width: 180px;
    height: 180px;
    color: #a78bfa;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ===== Pro Section ===== */
.pro {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--cachly-green) 0%, var(--cachly-green-dark) 100%);
    position: relative;
    overflow: hidden;
}

.pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="proGrid" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23proGrid)"/></svg>');
    pointer-events: none;
}

.pro::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 50%;
    height: 160%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.pro .section-header {
    position: relative;
    z-index: 2;
}

.pro .section-header h2 {
    color: var(--white);
}

.pro .section-header h2 .highlight {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 6px;
}

.pro .section-header p {
    color: rgba(255, 255, 255, 0.85);
}

.pro .section-label {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.pro-features-showcase {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.pro-feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: none;
    position: relative;
    overflow: hidden;
}

.pro-feature-card:hover {
    transform: none;
}

.pro-feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--cachly-green) 0%, var(--cachly-green-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(49, 163, 80, 0.3);
}

.pro-feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.pro-feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pro-feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Coming Soon Section */
.pro-coming-soon {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-xl);
    padding: 50px;
    text-align: center;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.pro-coming-soon h4 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 35px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.coming-soon-items {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.coming-soon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-weight: 600;
    font-size: 1.15rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.version-badge {
    background: var(--cachly-green);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
}

/* ===== Download Section ===== */
.download {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    text-align: center;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(49, 163, 80, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(49, 163, 80, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.download-parallax {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid2" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="0.5" fill="rgba(255,255,255,0.15)"/></pattern></defs><rect width="100" height="100" fill="url(%23grid2)"/></svg>');
}

/* Floating elements */
.download::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(49, 163, 80, 0.2);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-20px, 20px) rotate(5deg); }
    50% { transform: translate(0, 40px) rotate(0deg); }
    75% { transform: translate(20px, 20px) rotate(-5deg); }
}

.download-content {
    position: relative;
    z-index: 2;
}

.download-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    margin: 0 auto 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 30px rgba(49, 163, 80, 0.2); }
    to { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 50px rgba(49, 163, 80, 0.4); }
}

.download h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download > .container > .download-content > p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.download-button {
    display: inline-block;
    transition: all var(--transition-normal);
    padding: 4px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-button:hover {
    transform: translateY(-4px) scale(1.02);
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.download-button img {
    height: 56px;
    width: auto;
    display: block;
}

.download-platforms {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.download-platforms span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-platforms span::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--cachly-green);
    border-radius: 50%;
}

/* ===== Footer ===== */
.footer {
    background: #2a2a2a;
    color: var(--white);
    padding: 80px 0 40px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.footer-brand > p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    max-width: 300px;
    line-height: 1.6;
}

.footer-badge {
    height: 40px;
    opacity: 0.8;
}

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

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--cachly-green-light);
}

.footer-api {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}

.footer-api p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.footer-api strong {
    color: var(--cachly-green-light);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-bottom: 8px;
}

/* ===== Features More Link ===== */
.features-more {
    text-align: center;
    margin-top: 50px;
}

.features-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cachly-green);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 30px;
    border: 2px solid var(--cachly-green);
    border-radius: 50px;
    transition: all var(--transition-fast);
}

.features-link:hover {
    background: var(--cachly-green);
    color: var(--white);
}

.features-link svg {
    transition: transform var(--transition-fast);
}

.features-link:hover svg {
    transform: translateX(5px);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: var(--cachly-green);
    color: var(--white);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-header {
    padding: 40px 40px 20px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

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

.modal-content {
    padding: 30px 40px 40px;
    overflow-y: auto;
    max-height: calc(85vh - 150px);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.modal-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cachly-green);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cachly-green);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--gray-100);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--cachly-green);
    border-radius: 50%;
}

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

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

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

    .hero-image {
        order: -1;
    }

    .hero-screenshot {
        transform: none;
        max-height: 600px;
    }

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

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

    .carplay-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .carplay-features {
        align-items: center;
    }

    .carplay-screen-1,
    .carplay-screen-2 {
        transform: none;
    }

    .watch-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .watch-visual {
        order: -1;
    }

    .watch-features {
        align-items: center;
    }

    .watch-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .intelligence-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .intelligence-visual {
        order: -1;
    }

    .intelligence-text h2 {
        font-size: 2.25rem;
    }

    .intelligence-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .intelligence-features {
        align-items: center;
    }

    .intelligence-icon-large {
        width: 160px;
        height: 160px;
    }

    .intelligence-icon-large svg {
        width: 140px;
        height: 140px;
    }

    .intelligence-glow {
        width: 200px;
        height: 200px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand > p {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-badge {
        display: block;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 40px;
        gap: 24px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-normal);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        color: var(--text-primary) !important;
        font-size: 1.1rem;
    }

    .nav-menu .nav-icon {
        justify-content: center;
    }

    .nav-menu .nav-icon svg {
        fill: var(--text-primary);
    }

    .nav-menu .nav-cta {
        width: 100%;
        text-align: center;
        padding: 14px 20px !important;
        color: var(--white) !important;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span {
        background: var(--text-primary);
    }

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

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    /* Mobile dropdown */
    .nav-dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        background: var(--gray-100);
        box-shadow: none;
        border-radius: 8px;
        margin-top: 8px;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        padding: 0;
        transition: max-height var(--transition-normal), padding var(--transition-normal);
    }

    .dropdown-menu::before {
        display: none;
    }

    .nav-dropdown.active .dropdown-menu {
        max-height: 300px;
        padding: 8px 0;
    }

    .nav-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu a {
        padding: 12px 20px;
        font-size: 1rem !important;
    }

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

    .hero-content {
        padding: 40px 24px;
    }

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

    .stat {
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }

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

    .feature-card {
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto 20px;
    }

    /* Modal responsive */
    .modal {
        max-height: 90vh;
        border-radius: 15px;
    }

    .modal-header {
        padding: 30px 20px 15px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-content {
        padding: 20px;
        grid-template-columns: 1fr;
        max-height: calc(90vh - 120px);
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }

    .carplay,
    .watch,
    .features,
    .screenshots {
        padding: 80px 0;
    }

    /* Carousel responsive */
    .carousel {
        margin: 0 50px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }

    .carousel-screenshot {
        max-height: 580px;
    }

    .slide-caption h3 {
        font-size: 1.25rem;
    }

    .pro-card {
        padding: 40px 24px;
    }

    .pro-features-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pro-feature-card {
        padding: 24px 20px;
    }

    .coming-soon-items {
        gap: 24px;
    }

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

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 16px;
    }

    .hero-screenshot {
        max-height: 500px;
    }

    .carousel-screenshot {
        max-height: 480px;
    }

    .carousel {
        margin: 0 40px;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
    }

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

    .slide-content {
        gap: 24px;
        padding: 10px;
    }

    .pro-features-showcase {
        grid-template-columns: 1fr;
    }

    .pro-coming-soon {
        padding: 30px 20px;
    }

    .coming-soon-items {
        flex-direction: column;
        gap: 16px;
    }

    .slide-caption {
        padding: 0 10px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .appstore-badge {
        height: 48px;
    }

    .carplay-images {
        padding: 0 16px;
    }

    .download-button img {
        height: 50px;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.15s; }
.feature-card:nth-child(4) { animation-delay: 0.2s; }
.feature-card:nth-child(5) { animation-delay: 0.25s; }
.feature-card:nth-child(6) { animation-delay: 0.3s; }
.feature-card:nth-child(7) { animation-delay: 0.35s; }
.feature-card:nth-child(8) { animation-delay: 0.4s; }
.feature-card:nth-child(9) { animation-delay: 0.45s; }
.feature-card:nth-child(10) { animation-delay: 0.5s; }
.feature-card:nth-child(11) { animation-delay: 0.55s; }
.feature-card:nth-child(12) { animation-delay: 0.6s; }
.feature-card:nth-child(13) { animation-delay: 0.65s; }
.feature-card:nth-child(14) { animation-delay: 0.7s; }
.feature-card:nth-child(15) { animation-delay: 0.75s; }

/* Parallax scroll effect enhancement */
@supports (transform: translateZ(0)) {
    .hero-parallax,
    .carplay-parallax,
    .download-parallax {
        will-change: transform;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--cachly-green);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.4);
    }
}
