:root {
    --bg: #050508;
    --accent: #8b5cf6;
    --accent2: #d946ef;
    --text: #f4f4f5;
    --muted: #71717a;
    --border: rgba(255, 255, 255, 0.08);
    --card: rgba(16, 16, 26, 0.75);
    --font-h: 'Outfit', sans-serif;
    --font-b: 'Inter', sans-serif;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-b);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-family: var(--font-h); letter-spacing: -0.03em; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ── BACKGROUND ── */
.bg-mesh {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 70% -10%, rgba(139, 92, 246, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 10% 80%, rgba(217, 70, 239, 0.10) 0%, transparent 60%);
}

/* ── NAV ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    padding: 1.25rem 0;
    transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled {
    background: rgba(5, 5, 8, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo {
    font-family: var(--font-h);
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 2px;
}
.grad {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── BRAND HERO ── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.brand-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 9rem 0 5rem;
    text-align: center;
}
.brand-hero-inner {
    max-width: 680px;
    margin: 0 auto;
    animation: fade-up 0.7s var(--ease) forwards;
}
.h-badge {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: var(--accent);
    margin-bottom: 1.75rem;
}
.brand-hero h1 {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}
.brand-hero p {
    font-size: 1.15rem;
    color: var(--muted);
    line-height: 1.75;
}

/* ── BOOKS SECTION ── */
.books-section { padding: 3rem 0 8rem; }

.section-label {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 2.5rem;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 760px;
}

/* ── BOOK CARD ── */
.book-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    animation: fade-up 0.6s var(--ease) forwards;
}
.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px -12px rgba(139, 92, 246, 0.3);
}

.book-card-top {
    background: linear-gradient(150deg, #0d0019 0%, #1a0535 60%, #2d0f52 100%);
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}
.book-card-top::after {
    content: '';
    position: absolute;
    bottom: -30px; left: 50%; transform: translateX(-50%);
    width: 150px; height: 60px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    filter: blur(12px);
}
.book-card-top .book-emoji { font-size: 3rem; }
.book-card-top h2 {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 40%, rgba(217, 70, 239, 0.85));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.book-card-top .book-sub-title {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.08em;
}

.book-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}
.book-tag {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}
.book-card-body h3 { font-size: 1.2rem; }
.book-card-body p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.65;
    flex: 1;
}
.book-card-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.book-price {
    font-family: var(--font-h);
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── BTN ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    box-shadow: 0 8px 24px -4px rgba(139, 92, 246, 0.45);
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -4px rgba(139, 92, 246, 0.6);
}

/* ── COMING SOON CARD ── */
.book-card-soon {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.02) !important;
    border: 2px dashed rgba(139, 92, 246, 0.2) !important;
    opacity: 0.5;
    animation: fade-up 0.6s 0.15s var(--ease) forwards;
}
.book-card-soon:hover { transform: none !important; box-shadow: none !important; }
.soon-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 2rem;
}
.soon-inner .soon-icon { font-size: 1.75rem; color: var(--accent); }
.soon-inner .soon-title {
    font-family: var(--font-h);
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}
.soon-inner .soon-desc { font-size: 0.82rem; color: var(--muted); }

/* ── FOOTER ── */
footer {
    padding: 3.5rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
footer p { color: var(--muted); font-size: 0.84rem; }
.footer-legal { font-size: 0.72rem; color: rgba(113, 113, 122, 0.5); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .brand-hero h1 { font-size: 3rem; }
    .books-grid { grid-template-columns: 1fr; }
    .book-card-soon { min-height: 160px; }
}
@media (max-width: 480px) {
    .brand-hero { padding: 8rem 0 4rem; }
    .brand-hero h1 { font-size: 2.4rem; }
}
