/* ═══════════════════════════════════════════════════════════════════════════
   Aegis Chess: Champion Edition — Website Stylesheet
   LEDO-TECH GAME STUDIO
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS Variables ───────────────────────────────────────────────────────── */
:root {
    --bg-primary: #0A0F1C;
    --bg-secondary: #0F172A;
    --bg-card: rgba(30, 41, 59, 0.5);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    --gold: #C9A84C;
    --gold-light: #F5E6B8;
    --gold-dark: #A07B2E;
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #64748B;
    --border-subtle: rgba(148, 163, 184, 0.1);
    --border-gold: rgba(201, 168, 76, 0.3);
    --green: #22C55E;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-gold: 0 0 40px rgba(201, 168, 76, 0.08);
    --max-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    min-height: 100vh;
}

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

img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── Utility ─────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.gold { color: var(--gold); }
.text-center { text-align: center; }

/* ─── Navigation ──────────────────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 15, 28, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.nav-brand-icon {
    font-size: 1.5rem;
    color: var(--gold);
    filter: drop-shadow(0 0 8px rgba(201,168,76,0.4));
}

.nav-brand-text {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--gold);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-link {
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
    color: var(--gold);
    background: rgba(201,168,76,0.06);
}

.nav-cta {
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bg-primary);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    margin-left: 0.5rem;
    transition: all 0.25s;
}
.nav-cta:hover {
    color: var(--bg-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ─── Hero Section ────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 6rem 0 4rem;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(201,168,76,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(201,168,76,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border: 1px solid var(--border-gold);
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.1;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    text-decoration: none;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-primary);
}
.btn-gold:hover {
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(201,168,76,0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--gold);
}
.btn-outline:hover {
    background: rgba(201,168,76,0.08);
    color: var(--gold-light);
    transform: translateY(-2px);
}

.hero-chess-bg {
    position: absolute;
    font-size: 18rem;
    opacity: 0.02;
    color: var(--gold);
    pointer-events: none;
    user-select: none;
}
.hero-chess-bg.left { top: 0; left: 5%; transform: rotate(-10deg); }
.hero-chess-bg.right { bottom: -5%; right: 5%; transform: rotate(15deg); font-size: 14rem; }

/* ─── Features Grid ───────────────────────────────────────────────────────── */
.section {
    padding: 5rem 0;
}

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

.section-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.03em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    padding: 1.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    transition: all 0.3s;
}
.feature-card:hover {
    border-color: var(--border-gold);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ─── Pricing / IAP Section ───────────────────────────────────────────────── */
.pricing {
    background: linear-gradient(180deg, transparent, rgba(201,168,76,0.02), transparent);
}

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-card {
    padding: 2rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: var(--bg-card);
    text-align: center;
    transition: all 0.3s;
}
.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(201,168,76,0.02));
    box-shadow: var(--shadow-gold);
}

.pricing-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

.pricing-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.pricing-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 0.75rem;
}
.pricing-price span { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); }

.pricing-features {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pricing-features li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding-left: 1.2rem;
    position: relative;
}
.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

/* ─── Page Content (Privacy, Terms, Rules, Support) ───────────────────────── */
.page-hero {
    padding: 4rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.page-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(201,168,76,0.15);
}
.page-content h2:first-of-type { margin-top: 0; }

.page-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem;
}

.page-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.8;
}

.page-content ul {
    margin: 0.5rem 0 1rem 1.2rem;
    list-style: disc;
}
.page-content li {
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
    line-height: 1.7;
}
.page-content li strong { color: var(--text-primary); }

.info-badge {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    background: rgba(201,168,76,0.04);
    margin: 1.5rem 0;
    font-size: 0.85rem;
    line-height: 1.7;
}
.info-badge span:first-child { font-size: 1.3rem; flex-shrink: 0; }

/* ─── Contact Cards ───────────────────────────────────────────────────────── */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1.5rem 0;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}
.contact-card:hover {
    border-color: var(--border-gold);
    transform: translateX(6px);
    color: inherit;
}

.contact-icon { font-size: 1.6rem; flex-shrink: 0; }
.contact-label { font-size: 0.65rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-value { font-size: 0.95rem; font-weight: 600; color: var(--gold); }

/* ─── Rules: Piece Cards ──────────────────────────────────────────────────── */
.piece-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.85rem;
    margin: 1.5rem 0;
}

.piece-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1.25rem 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    transition: all 0.2s;
}
.piece-card:hover { border-color: var(--border-gold); transform: translateY(-3px); }

.piece-symbol { font-size: 2.5rem; }
.piece-name { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
.piece-move { font-size: 0.72rem; color: var(--text-muted); text-align: center; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand-icon {
    font-size: 2rem;
    color: var(--gold);
    filter: drop-shadow(0 0 8px rgba(201,168,76,0.3));
    margin-bottom: 0.4rem;
}

.footer-brand-name {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.footer-brand-studio {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.footer-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 320px;
}

.footer-heading {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer-link {
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: color 0.2s;
}
.footer-link:hover { color: var(--gold); }

.footer-socials {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-muted);
    transition: all 0.2s;
    text-decoration: none;
}
.social-icon:hover {
    color: var(--gold);
    border-color: var(--border-gold);
    background: rgba(201,168,76,0.06);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.72rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.25rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.72rem;
}
.footer-bottom-links a:hover { color: var(--gold); }

/* ─── Animations ──────────────────────────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.float { animation: float 3s ease-in-out infinite; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 15, 28, 0.98);
        backdrop-filter: blur(20px);
        padding: 1rem;
        border-bottom: 1px solid var(--border-subtle);
    }
    .nav-cta { margin-left: 0; width: 100%; justify-content: center; }

    .hero { padding: 4rem 0 3rem; }
    .pricing-cards { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-links { justify-content: center; }

    .piece-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .piece-grid { grid-template-columns: repeat(2, 1fr); }
}
