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

:root {
    --blue:       #0A66C2;
    --blue-dark:  #004182;
    --blue-hover: #0856A0;
    --bg:         #0f1318;
    --bg-card:    #1a1f26;
    --bg-card2:   #222830;
    --border:     #2d3440;
    --text:       #e2e8f0;
    --text-muted: #8b95a1;
    --radius:     12px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ───────────────────────────────────────────────────────────────── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 19, 24, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.app-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}

nav {
    display: flex;
    gap: 8px;
}

nav a {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: background 0.15s, color 0.15s;
}

nav a:hover {
    background: var(--bg-card2);
    color: var(--text);
    text-decoration: none;
}

nav a.active {
    background: var(--blue);
    color: white;
}

/* ── Main ─────────────────────────────────────────────────────────────────── */
main { flex: 1; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 80px 24px 60px;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(10,102,194,0.15) 0%, transparent 70%);
}

.hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(10,102,194,0.4);
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 30%, #7ab8f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.tagline {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 28px;
}

.badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* ── Features ─────────────────────────────────────────────────────────────── */
.features {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Policy page ──────────────────────────────────────────────────────────── */
.policy-main {
    padding: 48px 24px 80px;
}

.policy-container {
    max-width: 760px;
    margin: 0 auto;
}

.policy-container h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.last-updated {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    padding-left: 14px;
    border-left: 3px solid var(--blue);
}

.policy-section p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.7;
}

.policy-section ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.policy-section ul li {
    font-size: 15px;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.policy-section ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 700;
}

.policy-section strong {
    color: var(--text);
    font-weight: 600;
}

code {
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    font-size: 13px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    padding: 2px 7px;
    border-radius: 5px;
    color: #7ab8f5;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

footer a { color: var(--text-muted); }
footer a:hover { color: var(--blue); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .header-inner { padding: 0 16px; }
    .hero { padding: 56px 16px 40px; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .policy-container h1 { font-size: 28px; }
}
