/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #050505;
    --background-dark: #050505;
    --background-light: #f5f7fb;
    --panel-bg: #141414;
    --panel-strong: #0d0d0d;
    --text-primary: #f8f8f8;
    --text-secondary: #c4c4c4;
    --text-muted: #8d8d8d;
    --border: #333333;
    --border-soft: rgba(248, 248, 248, 0.1);
    --accent: #ffffff;
    --shadow: rgba(0, 0, 0, 0.4);
    --grid-color: rgba(255, 255, 255, 0.04);
    --navbar-bg: rgba(0, 0, 0, 0.95);
    --btn-primary-bg: #ffffff;
    --btn-primary-text: #000000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
}

body.light-mode {
    --background: #f8fafc;
    --panel-bg: #ffffff;
    --panel-strong: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #cbd5e1;
    --border-soft: rgba(15, 23, 42, 0.08);
    --accent: #0f172a;
    --shadow: rgba(15, 23, 42, 0.1);
    --grid-color: rgba(15, 23, 42, 0.08);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --btn-primary-bg: #0f172a;
    --btn-primary-text: #ffffff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: var(--navbar-bg);
    border-bottom: 2px solid var(--border);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.03em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--text-primary);
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

body.light-mode .navbar {
    border-color: var(--border);
}

body.light-mode .nav-logo,
body.light-mode .nav-links a,
body.light-mode .theme-toggle-btn {
    color: var(--text-primary);
}

body.light-mode .theme-toggle-btn {
    border-color: var(--border);
    background: var(--panel-bg);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--panel-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
    transform: translateY(-1px);
    background: var(--panel-strong);
    border-color: var(--text-muted);
}

.mobile-menu-btn span {
    width: 26px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--border);
}

.hero::before {
    content: '';
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 320px;
    height: 320px;
    border: 3px solid var(--border);
    opacity: 0.2;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 4rem;
    left: 1rem;
    width: 260px;
    height: 260px;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.6;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 1s ease forwards;
}

.hero-badge {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: var(--text-primary);
    color: var(--background);
    border: 3px solid var(--text-primary);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease forwards;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
    color: var(--text-primary);
}

.hero-title span {
    display: inline-block;
    border-bottom: 8px solid var(--border);
    padding-bottom: 0.1rem; 
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s forwards;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 3px solid var(--border);
    text-transform: uppercase;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-secondary {
    background: #ffffff30;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border);
    color: var(--text-primary);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease 0.5s forwards;
    opacity: 0;
}

.app-icon-container {
    width: 280px;
    height: 280px;
    background: var(--panel-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
    position: relative;
    border: 1px solid var(--border);
}

.app-icon {
    width: 200px;
    height: 200px;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    background: #000;
    border: 1px solid var(--border);
}

.app-icon img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: var(--panel-bg);
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 24px 24px;
    border-bottom: 2px solid var(--border);
}

.changelog {
    padding: 6rem 2rem;
    background: var(--background);
    border-bottom: 2px solid var(--border);
}

.changelog-list {
    display: grid;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.changelog-item {
    background: var(--panel-bg);
    border: 3px solid var(--border);
    border-radius: 28px;
    padding: 1.75rem;
}

.changelog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.changelog-version {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--panel-strong);
    border: 1px solid var(--border);
}

.changelog-item p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
}

.error-text {
    color: #f87171;
    text-align: center;
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 4rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    background: var(--panel-bg);
    color: var(--text-primary);
    border: 2px solid var(--border);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-description {
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--panel-bg);
    padding: 2rem;
    border: 3px solid var(--border);
    transition: all 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 10px 10px 0 var(--shadow);
    border-color: var(--text-muted);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--text-primary);
    color: var(--background);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--text-primary);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* About Section */
.about {
    padding: 6rem 2rem;
    background: var(--background);
    border-bottom: 2px solid var(--border);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-container {
    background: var(--panel-bg);
    padding: 2rem;
    overflow: hidden;
    border: 3px solid var(--border);
}

.about-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.5;
    pointer-events: none;
}

.about-phone {
    background: var(--panel-strong);
    border-radius: 18px;
    padding: 1rem;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    border: 1px solid var(--border);
}

.about-phone img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.about-text h2 span {
    color: var(--text-muted);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-list {
    list-style: none;
    margin-top: 2rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* FAQ Section */
.faq {
    padding: 6rem 2rem;
    background: var(--background);
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 24px 24px;
    border-bottom: 2px solid var(--border);
}

.faq .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq .section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    background: var(--panel-bg);
    color: var(--text-primary);
    border: 2px solid var(--border);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.faq .section-title {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.faq .section-description {
    margin: 0 auto;
    max-width: 650px;
    color: var(--text-secondary);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--panel-bg);
    border-radius: 0;
    border: 3px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--text-muted);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.faq-icon {
    width: 34px;
    height: 34px;
    background: var(--text-primary);
    color: var(--background);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    border: 2px solid var(--text-primary);
    transform-origin: center;
    line-height: 34px;
}

.faq-icon::before {
    content: '+';
    font-size: 1.25rem;
    font-weight: 800;
}

.faq-item.active .faq-icon {
    transform: rotateZ(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 400px;
}

/* Download Section */
.download {
    padding: 6rem 2rem;
    text-align: center;
    background: var(--panel-strong);
}

.download-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--panel-bg);
    padding: 4rem 2rem;
    border: 3px solid var(--border);
    position: relative;
    overflow: hidden;
}

.download-box::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 1px dashed var(--border);
    pointer-events: none;
    opacity: 0.5;
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.download-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-radius: 0;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 3px solid var(--btn-primary-bg);
}

.download-btn:hover {
    transform: scale(1.02);
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

.download-info {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.download-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* When the toggle is moved into the mobile drawer (.nav-links) make it look appropriate */
.nav-links .theme-toggle-btn {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-top: 0.5rem;
    border: 1px solid var(--border);
    background: var(--panel-bg);
    color: var(--text-primary);
}

/* Footer */
.footer {
    padding: 4rem 2rem 2rem;
    background: var(--panel-bg);
    border-top: 3px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}



/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .section-container {
        padding: 0 0.25rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background-dark);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 2px solid var(--border);
    }

    body.light-mode .nav-links {
        background: var(--panel-bg);
        border-bottom-color: var(--border);
    }

    .theme-toggle-btn {
        order: 3;
        margin-left: 0.75rem;
    }

    body.light-mode .mobile-menu-btn span,
    body.light-mode .theme-toggle-btn {
        color: var(--text-primary);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding: 6rem 1rem 3rem;
        min-height: auto;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        display: none;
    }

    .hero-stats {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .app-icon-container {
        width: 180px;
        height: 180px;
        margin-top: 1rem;
    }

    .app-icon {
        width: 130px;
        height: 130px;
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .download-title {
        font-size: 1.8rem;
    }

    .download-box {
        padding: 3rem 1.5rem;
        width: 100%;
        max-width: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 1rem 2rem;
    }

    .hero-badge{
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }

    .hero-title {
        font-size: 1.5rem;
        margin: 1.5rem auto;
    }
    
    .hero-stats {
        gap: 1rem;
        margin: 3rem auto;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        margin-top: 3.5rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.5rem;
    }

    .app-icon-container {
        width: 120px;
        height: 120px;
    }

    .app-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .download-box {
        padding: 2.5rem 1.25rem;
    }
    
    .download{
        padding: 6rem 0.3rem;
    }

    .download-info {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        font-size: 0.8rem;
    }
}

.scroll-animate {
    opacity: 1;
    transform: none;
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: none;
}
