/* ============================================================
   AlphaJoy — Shared styles
   ============================================================ */
:root {
    --brand: #0984E3;
    --brand-dark: #0769b8;
    --brand-soft: #dceeff;
    --accent: #7B61FF;
    --accent-soft: #ece4ff;
    --sky: #87CEEB;
    --sky-light: #b8e6ff;
    --green: #6BCB77;
    --pink: #FF6B9D;
    --yellow: #FFD93D;
    --orange: #FF6B35;
    --ink: #2D3436;
    --text: #2D3436;
    --muted: #636E72;
    --bg: #f0f9ff;
    --card: #ffffff;
    --border: #d8e8f5;
    --shadow-sm: 0 4px 14px rgba(45, 52, 54, 0.06);
    --shadow: 0 10px 30px rgba(45, 52, 54, 0.08);
    --shadow-lg: 0 24px 60px rgba(45, 52, 54, 0.14);
    --radius: 16px;
    --radius-lg: 22px;
    --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 22px;
}

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--ink);
    font-size: 19px;
    letter-spacing: -0.2px;
}

.brand img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: transparent;
    object-fit: cover;
    flex-shrink: 0;
}

.brand .brand-name { white-space: nowrap; }

.brand-letter {
    display: inline-block;
    font-weight: 900;
}

.brand-letter.c1 { color: #FF4757; }
.brand-letter.c2 { color: #FF6B35; }
.brand-letter.c3 { color: #FFD93D; }
.brand-letter.c4 { color: #6BCB77; }
.brand-letter.c5 { color: #0984E3; }
.brand-letter.c6 { color: #7B61FF; }
.brand-letter.c7 { color: #FF6B9D; }
.brand-letter.c8 { color: #00B894; }

.footer .brand img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    display: block;
    box-shadow: 0 8px 24px rgba(45, 52, 54, 0.15);
}

.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
}
.nav-links a:hover { color: var(--brand); text-decoration: none; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: var(--brand);
    color: #fff !important;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14.5px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 6px 18px rgba(9, 132, 227, 0.28);
    border: none;
    cursor: pointer;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 10px 22px rgba(9, 132, 227, 0.32); }

.btn.accent { background: var(--accent); box-shadow: 0 6px 18px rgba(123, 97, 255, 0.32); }
.btn.accent:hover { box-shadow: 0 10px 22px rgba(123, 97, 255, 0.4); }
.btn.ghost {
    background: transparent;
    color: var(--brand) !important;
    border: 2px solid var(--brand);
    box-shadow: none;
}
.btn.ghost:hover { background: var(--brand-soft); }
.btn.danger { background: #dc2626; box-shadow: 0 6px 18px rgba(220, 38, 38, 0.32); }
.btn.danger:hover { box-shadow: 0 10px 22px rgba(220, 38, 38, 0.4); }

.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2.4px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-title { font-size: 36px; margin: 0 0 14px; letter-spacing: -0.5px; color: var(--ink); text-align: center; }
.section-sub { color: var(--muted); text-align: center; max-width: 640px; margin: 0 auto 50px; font-size: 17px; }

/* ---------- Footer ---------- */
.footer {
    background: var(--ink);
    color: #cdd6e8;
    padding: 56px 0 30px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
}
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 14.5px; }
.footer a { color: #cdd6e8; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; }
.footer .copyright {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: #8896b3;
    text-align: center;
}

@media (max-width: 820px) {
    .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 18px 22px; gap: 14px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
    .nav-links.open { display: flex; }
    .hamburger { display: block; }
    section { padding: 60px 0; }
    .section-title { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}
