:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --accent: #f59e0b;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo-text {
    font-family: 'Outfit', sans-serif;
}

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

.section-padding {
    padding: 6rem 0;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: 2rem;
}

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

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

.header-right {
    display: flex;
    align-items: center;
}

.github-icon-link {
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.github-icon-link:hover {
    color: var(--text-main);
    transform: scale(1.1);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    padding-top: 12rem;
    padding-bottom: 8rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.hero-title .accent {
    color: var(--accent);
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mesh-animation {
    position: relative;
    width: 300px;
    height: 300px;
}

.node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
    animation: pulse 3s infinite alternate;
}

.node-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.node-2 {
    top: 10%;
    right: 10%;
    animation-delay: 0.5s;
}

.node-3 {
    bottom: 10%;
    right: 10%;
    animation-delay: 1s;
}

.node-4 {
    bottom: 10%;
    left: 10%;
    animation-delay: 1.5s;
}

.mesh-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1;
}

.line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 4s ease-out forwards infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

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

@keyframes draw {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0.2;
    }

    50% {
        stroke-dashoffset: 0;
        opacity: 0.5;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0.8;
    }
}

/* Section Common */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.3);
    background: rgba(30, 41, 59, 0.9);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.use-case-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.use-case-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.3);
}

.use-case-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.use-case-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

.use-case-icon-bg {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(245, 158, 11, 0.1));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.use-case-card:hover .use-case-icon-bg {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(245, 158, 11, 0.2));
}

.use-case-icon-bg i {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
}

/* Screenshots */
.screenshots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.screenshot-column h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

.screenshot-group {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.android-screenshots {
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 1.5rem;
}

.android-screenshots .screenshot-wrapper {
    max-width: 280px;
    flex: 1;
}

.android-screenshots .screenshot-wrapper img {
    height: auto;
    max-height: 550px;
    width: 100%;
}

.screenshot-wrapper {
    background: #000;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

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

.screenshot-wrapper img {
    width: auto;
    max-width: 100%;
    max-height: 500px;
    margin: 0 auto;
    border-radius: 8px;
    display: block;
}

.screenshot-wrapper .caption {
    text-align: center;
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Download */
.download-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 1) 0%, rgba(15, 23, 42, 1) 100%);
    padding: 4rem 2rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
}

.btn-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    width: 160px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.btn-download .icon-wrapper {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-download .icon-wrapper svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.btn-download span {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.btn-download .subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.btn-download:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.btn-download:hover .icon-wrapper {
    color: var(--primary);
}

.install-instructions {
    margin-top: 2rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Reveal Animations */
.reveal-init {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-init.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

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

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .header-content {
        height: 70px;
        position: relative;
    }

    .header-right {
        order: 2;
        margin-left: auto;
        margin-right: 1.5rem;
    }

    .mobile-menu-toggle {
        order: 3;
    }

    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
        order: 4;
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .screenshot-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero {
        padding-top: 8rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .use-case-item,
    .use-case-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

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

    .android-screenshots .screenshot-wrapper img {
        height: auto;
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}