/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    transition: all 0.3s ease;
}

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

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav__logo i {
    font-size: 1.8rem;
}

.nav__list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav__link--cta {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.nav__link--cta:hover {
    background-color: var(--primary-dark);
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Main */
.main {
    padding-top: 70px;
}

/* Hero Section */
.hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero__title-accent {
    color: var(--primary-color);
}

.hero__description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

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

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

.btn--secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.hero__stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

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

.hero__stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.hero__stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Hero Mockup */
.hero__mockup {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.hero__mockup-header {
    background: var(--bg-dark);
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero__mockup-dots {
    display: flex;
    gap: 0.375rem;
}

.hero__mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #64748b;
}

.hero__mockup-dots span:first-child {
    background-color: #ef4444;
}

.hero__mockup-dots span:nth-child(2) {
    background-color: #f59e0b;
}

.hero__mockup-dots span:nth-child(3) {
    background-color: #10b981;
}

.hero__mockup-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.hero__mockup-content {
    padding: 1rem;
}

.hero__mockup-map {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    height: 200px;
    border-radius: 10px;
    position: relative;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
}

.hero__mockup-pin {
    position: absolute;
    font-size: 1.5rem;
    transform: translate(-50%, -50%);
}

.hero__mockup-pin--user {
    color: var(--primary-color);
    top: 50%;
    left: 50%;
}

.hero__mockup-pin--cctv {
    color: var(--accent-color);
}

.hero__mockup-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero__mockup-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.hero__mockup-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.hero__mockup-item-name {
    font-weight: 500;
    font-size: 0.875rem;
}

.hero__mockup-item-dist {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Sections */
section {
    padding: 4rem 0;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

/* Features */
.features {
    background-color: var(--bg-primary);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature__card {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.feature__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
    color: var(--primary-color);
}

.feature__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature__description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* API Section */
.api {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.api__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.api__info-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.api__endpoint {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-dark);
    color: #10b981;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.api__method {
    background-color: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.api__url {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.875rem;
    white-space: nowrap;
}

.api__params-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.api__params {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.api__param {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.875rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.api__param code {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--primary-color);
    width: fit-content;
}

.api__param span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.api__example-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.api__code {
    background: var(--bg-dark);
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.8125rem;
    line-height: 1.7;
    box-shadow: var(--shadow-lg);
}

/* Download Section */
.download {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

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

.download__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.download__description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
}

.download__buttons {
    margin-bottom: 1.5rem;
}

.download__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
}

.download__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.download__btn i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.download__btn-small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.download__btn-large {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
}

.download__note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.download__mockup {
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.download__android-icon {
    font-size: 6rem;
    color: white;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer__logo i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.footer__description {
    color: #cbd5e1;
    line-height: 1.7;
}

.footer__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: white;
}

.footer__bottom {
    padding-top: 1.5rem;
    border-top: 1px solid #334155;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Responsive Design */
@media screen and (max-width: 968px) {
    .hero__container,
    .api__content,
    .download__content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero__image {
        order: -1;
    }
    
    .footer__content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease;
        padding: 4rem 2rem 2rem;
    }
    
    .nav__menu.active {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .nav__toggle,
    .nav__close {
        display: block;
    }
    
    .nav__close {
        position: absolute;
        top: 1.25rem;
        right: 1.5rem;
    }
    
    .hero__title {
        font-size: 2.25rem;
    }
    
    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero__stats {
        gap: 1.5rem;
    }
    
    .section__title {
        font-size: 1.875rem;
    }
    
    .features__grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .api__endpoint {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .api__url {
        white-space: normal;
        word-break: break-all;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 4rem 0 3rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero__title {
        font-size: 1.875rem;
    }
    
    .hero__description {
        font-size: 1rem;
    }
    
    .download__title {
        font-size: 2rem;
    }
}


/* Download Section Extended */
.download__main { display: grid; gap: 2rem; margin-top: 2rem; }
.download__card { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border-radius: 20px; padding: 2rem; border: 1px solid rgba(255,255,255,0.2); }
.download__card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.download__app-icon { width: 70px; height: 70px; background: white; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #2563eb; font-size: 2rem; flex-shrink: 0; }
.download__app-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.download__app-version { opacity: 0.9; font-size: 0.9rem; }
.download__app-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; padding: 1rem; background: rgba(255,255,255,0.1); border-radius: 12px; }
.download__meta-item { display: flex; align-items: center; gap: 0.75rem; }
.download__meta-item i { font-size: 1.5rem; opacity: 0.9; }
.download__meta-label { display: block; font-size: 0.75rem; opacity: 0.8; }
.download__meta-value { display: block; font-weight: 600; font-size: 0.9rem; }
.download__btn--active { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; }
.download__btn--active:hover { box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.5); }
.download__btn--active i { color: white; }
.download__btn--active .download__btn-small, .download__btn--active .download__btn-large { color: white; }
.download__warning { display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 1rem; padding: 1rem; background: rgba(245, 158, 11, 0.2); border: 1px solid rgba(245, 158, 11, 0.5); border-radius: 12px; font-size: 0.875rem; line-height: 1.6; }
.download__warning i { font-size: 1.25rem; color: #fbbf24; flex-shrink: 0; margin-top: 0.125rem; }
.download__details { display: grid; gap: 1.5rem; }
.download__section { background: white; color: #0f172a; border-radius: 16px; padding: 1.5rem; box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1); }
.download__section-title { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; color: #2563eb; }
.download__section-title i { font-size: 1.5rem; }
.download__changelog-version { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.download__changelog-badge { display: inline-block; padding: 0.25rem 0.75rem; background: #2563eb; color: white; border-radius: 8px; font-weight: 600; font-size: 0.875rem; }
.download__changelog-date { color: #64748b; font-size: 0.875rem; }
.download__changelog-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; padding-left: 0.5rem; }
.download__changelog-list li { position: relative; padding-left: 1.25rem; color: #0f172a; font-size: 0.9rem; }
.download__changelog-list li::before { content: '•'; position: absolute; left: 0.5rem; color: #2563eb; font-weight: bold; }
.download__permissions { display: grid; gap: 0.75rem; }
.download__permission-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.875rem; background: #f8fafc; border-radius: 10px; }
.download__permission-item i { font-size: 1.25rem; color: #2563eb; flex-shrink: 0; margin-top: 0.125rem; }
.download__permission-item strong { display: block; margin-bottom: 0.25rem; color: #0f172a; }
.download__permission-item p { color: #475569; font-size: 0.875rem; line-height: 1.5; }
.download__info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0.75rem; }
.download__info-box { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem; background: #f8fafc; border-radius: 10px; font-size: 0.875rem; color: #0f172a; }
.download__info-box i { color: #06b6d4; font-size: 1rem; flex-shrink: 0; }
.download__faq { display: grid; gap: 0.75rem; }
.download__faq-item { border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.download__faq-question { padding: 0.875rem 1rem; background: #f8fafc; cursor: pointer; font-weight: 600; color: #0f172a; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.download__faq-question:hover { background: #e2e8f0; }
.download__faq-question::-webkit-details-marker { display: none; }
.download__faq-question::after { content: '+'; font-size: 1.25rem; color: #2563eb; }
.download__faq-item[open] .download__faq-question::after { content: '-'; }
.download__faq-answer { padding: 0.875rem 1rem; color: #475569; line-height: 1.6; font-size: 0.9rem; background: white; }
.download__notes ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.download__notes li { position: relative; padding-left: 1.25rem; color: #0f172a; font-size: 0.9rem; line-height: 1.6; }
.download__notes li::before { content: '▸'; position: absolute; left: 0.5rem; color: #2563eb; }
@media screen and (max-width: 768px) { .download__card { padding: 1.25rem; } .download__card-header { flex-direction: column; text-align: center; } .download__app-meta { grid-template-columns: 1fr; } .download__info-grid { grid-template-columns: 1fr; } .download__buttons { flex-direction: column; } }
