/* CountExpert Website */

:root {
    --primary: #304ffe;
    --primary-dark: #1a2fbe;
    --text: #18202f;
    --muted: #667085;
    --background: #f7f9fc;
    --surface: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 14px 40px rgba(16, 24, 40, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.7;
}

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

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #6d7cff);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
    font-weight: 600;
}

.hero {
    padding: 90px 0 80px;
    background:
        radial-gradient(circle at 80% 20%, rgba(48, 79, 254, 0.12), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.hero-content {
    max-width: 780px;
}

.badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef1ff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

h1 {
    margin: 18px 0;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero p {
    max-width: 680px;
    color: var(--muted);
    font-size: 19px;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-weight: 700;
}

.button:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.button.secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}

.section {
    padding: 70px 0;
}

.section-title {
    max-width: 700px;
    margin-bottom: 30px;
}

.section-title h2 {
    margin: 0 0 10px;
    font-size: 34px;
    letter-spacing: -0.7px;
}

.section-title p {
    margin: 0;
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.card-icon {
    font-size: 28px;
}

.card h3 {
    margin: 14px 0 8px;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.info {
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.policy {
    padding: 70px 0;
}

.policy article {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: clamp(24px, 5vw, 52px);
    box-shadow: var(--shadow);
}

.policy h1 {
    font-size: clamp(36px, 5vw, 54px);
    letter-spacing: -1px;
}

.policy h2 {
    margin-top: 38px;
    font-size: 25px;
}

.policy h3 {
    margin-top: 28px;
    font-size: 19px;
}

.policy .updated {
    color: var(--muted);
    font-size: 14px;
}

.policy li {
    margin-bottom: 8px;
}

.site-footer {
    padding: 35px 0;
    background: #111827;
    color: #d1d5db;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer a {
    color: #ffffff;
}

@media (max-width: 760px) {
    .nav {
        padding: 12px 0;
        align-items: flex-start;
    }

    .nav-links {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

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

    h1 {
        letter-spacing: -1px;
    }
}
