/* ===== CSS Variables ===== */
:root {
    --color-primary: #E8F540;
    --color-primary-hover: #E8F540;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-background: #ffffff;
    --color-background-cream: #FAF9F6;
    --color-background-light: #F5F5F5;
    --color-border: #e5e5e5;
    --font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    list-style: none;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 400;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

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

.btn-secondary {
    background-color: var(--color-primary);
    color: var(--color-text);
    width: 40%;
    font-weight: 400;
}

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

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

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

.logo {
    display: flex;
    align-items: center;
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 120px;
    height: auto;
    margin-right: 8px;
}

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

.nav-link {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text-light);
}

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

/* ===== Hero Section ===== */
.hero {
    padding: 140px 40px 0px;
    background: linear-gradient(180deg, var(--color-background) 0%, var(--color-background-cream) 100%);
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 80px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    color: var(--color-text);
}

.hero-subtitle {
    font-size: 32px;
    color: var(--color-text-light);
    margin-bottom: 60px;
}

/* ===== Hero Mockup ===== */
.hero-mockup {
    max-width: 900px;
    margin: 0 auto;
}

.mockup-wrapper {
    position: relative;
    width: 100%;
}

.mockup-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}

.mockup-frame {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
    pointer-events: none;
}

.mockup-sidebar {
    width: 100%;
    padding: 20px 16px;
    background: var(--color-background);
    border-right: 1px solid var(--color-border);
    flex-shrink: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--color-text-light);
    border-radius: 6px;
    margin-bottom: 4px;
}

.sidebar-item:first-child {
    background: var(--color-background-light);
}

.sidebar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    flex-shrink: 0;
}

.sidebar-dot.green {
    background: #22c55e;
}

.sidebar-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-cta {
    margin-top: 16px;
    padding: 8px 16px;
    background: var(--color-primary);
    color: var(--color-text);
    font-size: 11px;
    font-weight: 500;
    border-radius: 6px;
    text-align: center;
}

.mockup-main {
    flex: 1;
    padding: 24px;
    background: var(--color-background);
}

.mockup-header {
    margin-bottom: 24px;
}

.greeting h2 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 4px;
}

.greeting p {
    font-size: 12px;
    color: var(--color-text-muted);
}

.mockup-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--color-background-light);
}

.icon-box.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.icon-box.google {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 75%, #ea4335 100%);
}

.icon-box.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%);
}

.icon-box.instagram {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.grid-item {
    aspect-ratio: 1;
    border-radius: 8px;
    background: var(--color-background-light);
}

.grid-item.yellow {
    background: linear-gradient(135deg, #fef08a 0%, #facc15 100%);
}

.grid-item.note {
    background: var(--color-background);
    border: 1px solid var(--color-border);
}

.grid-item.image {
    background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
}

.grid-item.colorful {
    background: linear-gradient(135deg, #f472b6 0%, #a855f7 50%, #3b82f6 100%);
}

/* ===== Download Section ===== */
.download {
    font-family: var(--font-family);
    padding: 80px 40px;
    background: none;
}

.download-container {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: clamp(28px, 4vw, 36px);
    font-family: var(--font-family);
    font-weight: 400;
    letter-spacing: -0.5px;
    color: var(--color-text);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 60px;
    max-width: 800px;
    margin: 60px auto 0;
}

.download-card {
    background: var(--color-background);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--color-primary);
}

.download-card.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: var(--color-background-light);
}

.download-card.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--color-border);
}

.browser-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 4px;
    color: var(--color-text);
}

.card-content p {
    font-size: 14px;
    color: var(--color-text-light);
}

.card-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-background-light);
    color: var(--color-text);
    transition: all 0.3s ease;
}

.download-card:hover .card-arrow {
    background: var(--color-primary);
}

/* ===== Features Section ===== */
.features {
    font-family: var(--font-family);
    padding: 100px 40px;
    background: #ffffff;
    z-index: 99999;
}

.features-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.features-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--color-text);
}

.features-description {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 400px;
    line-height: 1.7;
}

.features-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 20px;
}

/* Vertical slider indicator */
.features-slider {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 44px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-text {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.5;
    transition: color 0.3s ease;
}

/* Feature item hover states */
.feature-item {
    cursor: pointer;
    padding: 12px 16px;
    margin-left: -16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-text,
.feature-item.active .feature-text {
    color: var(--color-text);
}

.features-image {
    display: flex;
    justify-content: flex-end;
}

/* Features gallery */
.features-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 4/4;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.feature-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-img.active {
    opacity: 1;
}

/* ===== Connect Section ===== */
.connect {
    padding: 100px 40px;
    background: var(--color-background);
}

.connect-container {
    max-width: 400;
    margin: 0 auto;
    text-align: center;
}

.connect-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    color: var(--color-text);
}

.connect-description {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

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

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: -0.5px;
    margin-bottom: 40px;
}

.footer-logo .logo-icon {
    width: 33.33vw;
    height: auto;
}

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

.footer-links a {
    font-size: 18px;
    color: var(--color-text-muted);
}

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .features-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-image {
        justify-content: center;
    }

    .features-placeholder {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 14px 24px;
    }

    .nav {
        display: none;
    }

    .hero {
        padding: 120px 24px 60px;
    }

    .hero-subtitle {
        margin-bottom: 40px;
    }

    .mockup-wrapper {
        flex-direction: column;
    }

    .mockup-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 16px;
    }

    .sidebar-item {
        flex: 0 0 auto;
    }

    .sidebar-cta {
        margin-top: 0;
    }

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

    .download,
    .features,
    .connect {
        padding: 60px 24px;
    }

    .footer {
        padding: 40px 24px;
    }
}

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

    .hero-mockup {
        display: none;
    }

    .btn-secondary {
        width: 100%;
        padding: 16px 24px;
    }
}

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

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

/* Initial state - hidden */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

/* Animated state */
.animate-on-scroll.animated {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger delays for children */
.animate-on-scroll.delay-1 {
    animation-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
    animation-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
    animation-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
    animation-delay: 0.4s;
}

.animate-on-scroll.delay-5 {
    animation-delay: 0.5s;
}

.animate-on-scroll.delay-6 {
    animation-delay: 0.6s;
}

/* Hero section - animate on load */
.hero-title,
.hero-subtitle {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-subtitle {
    animation-delay: 0.15s;
}