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

:root {
    --accent: #2563EB;
    --accent-hover: #1d4ed8;
    --text: #1a1a1a;
    --text-secondary: #555;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.12);
    --nav-height: 64px;
    --max-width: 1100px;
    --radius: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

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

/* ===== Layout ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.site-nav {
    background: var(--bg);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
}

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav-brand:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.hero .tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ===== Sections ===== */
.section {
    padding: 60px 0;
}

.section:nth-child(even) {
    background: var(--bg-alt);
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

.section-title.centered {
    text-align: center;
}

/* ===== Card Grid ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.card-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
}

.card .platform {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

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

.card .app-store-link {
    display: inline-block;
    margin-top: 14px;
}

.card .app-store-link img {
    height: 40px;
    width: auto;
}

/* ===== Client Grid ===== */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.client-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
}

.client-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

a.client-item {
    color: inherit;
    text-decoration: none;
}

a.client-item:hover {
    color: inherit;
}

.client-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.client-item .role {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ===== Page Content ===== */
.page-content {
    padding: 60px 0 80px;
}

.page-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.page-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 14px;
}

.page-content p {
    margin-bottom: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.page-content ul {
    margin-bottom: 14px;
    padding-left: 24px;
    color: var(--text-secondary);
}

.page-content ul li {
    margin-bottom: 6px;
    line-height: 1.6;
}

/* ===== App Page ===== */
.app-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    box-shadow: var(--card-shadow);
}

.app-header h1 {
    margin-bottom: 0;
}

.app-header .app-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 4px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.app-store-badge {
    display: inline-block;
    margin-top: 8px;
}

.app-store-badge img {
    height: 48px;
}

/* ===== Stat Cards ===== */
.stat-row {
    display: flex;
    gap: 20px;
    margin: 28px 0;
}

.stat-card {
    flex: 1;
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-card .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== Contact Form ===== */
.contact-form {
    max-width: 560px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid var(--card-border);
    padding: 32px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    list-style: none;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

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

/* ===== Privacy Policy ===== */
.policy h2 {
    font-size: 1.25rem;
    margin-top: 32px;
    margin-bottom: 10px;
}

.policy p, .policy ul {
    font-size: 0.92rem;
}

.policy .effective-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ===== Dark Mode ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --accent: #60a5fa;
        --accent-hover: #93bbfd;
        --text: #e5e7eb;
        --text-secondary: #9ca3af;
        --bg: #111827;
        --bg-alt: #1f2937;
        --card-bg: #1f2937;
        --card-border: #374151;
        --card-shadow: 0 1px 3px rgba(0,0,0,0.3);
        --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.4);
    }

    .card-icon,
    .client-icon,
    .app-icon {
        box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }

    .form-group input,
    .form-group textarea {
        background: var(--bg);
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

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

    .card-grid .card {
        padding: 16px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .card-icon {
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }

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

    .client-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .client-icon {
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }

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

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 16px 24px;
        gap: 12px;
        border-bottom: 1px solid var(--card-border);
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }

    .nav-links.open {
        display: flex;
    }

    .page-content h1 {
        font-size: 1.7rem;
    }

    .app-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 0 40px;
    }

    .section {
        padding: 40px 0;
    }
}
