:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);

    --font-ui: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-ui);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.background-glob {
    position: fixed;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -2;
    animation: float 10s ease-in-out infinite;
}

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
    color: var(--text-main);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-serif);
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.cta-button) {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button.primary {
    background: var(--text-main);
    color: var(--bg-dark);
}

.cta-button.primary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.3);
}

.cta-button.secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.cta-button.secondary:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.cta-button.nav-cta {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.cta-button.nav-cta:hover {
    background: #4f46e5;
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        left: 150%;
    }
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 90%;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    margin-left: -10px;
    background-color: #334155;
    background-size: cover;
}

.avatar:nth-child(1) {
    background-color: #cbd5e1;
    margin-left: 0;
}

.avatar:nth-child(2) {
    background-color: #94a3b8;
}

.avatar:nth-child(3) {
    background-color: #64748b;
}

/* Visual Hero (Cards) */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-card-stack {
    position: relative;
    width: 250px;
    height: 350px;
}

.book-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.card-1 {
    z-index: 2;
    transform: rotate(-3deg);
    background: linear-gradient(to bottom right, #4338ca, #1e1b4b);
}

.card-2 {
    z-index: 1;
    transform: rotate(6deg) translate(20px, 10px);
    background: linear-gradient(to bottom right, #c2410c, #451a03);
}

.book-cover {
    text-align: center;
    color: white;
}

.book-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.book-author {
    font-size: 0.9rem;
    opacity: 0.8;
}

.floating-badge {
    position: absolute;
    padding: 0.6rem 1.2rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

.floating-badge.focus {
    top: -20px;
    left: -40px;
    color: #38bdf8;
    animation-delay: 0s;
}

.floating-badge.insight {
    bottom: 40px;
    right: -50px;
    color: #fbbf24;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Features Section */
.features {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(30, 41, 59, 0.9);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-box.blue {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.icon-box.orange {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.icon-box.purple {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Preview Section */
.preview-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.phone-mockup {
    max-width: 350px;
    margin: 0 auto;
    background: #0b141a;
    /* WA Dark Mode Bg */
    border-radius: 30px;
    border: 8px solid #334155;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.phone-header {
    background: #202c33;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #2a3942;
}

.ph-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
}

.ph-info {
    display: flex;
    flex-direction: column;
}

.ph-name {
    font-weight: 600;
    color: #e9edef;
}

.ph-status {
    font-size: 0.75rem;
    color: #8696a0;
}

.phone-body {
    padding: 1rem;
    min-height: 400px;
    background-image: radial-gradient(#2a3942 1px, transparent 1px);
    background-size: 20px 20px;
}

.msg-bubble {
    background: #202c33;
    padding: 0.8rem;
    border-radius: 0 10px 10px 10px;
    margin-bottom: 1rem;
    color: #e9edef;
    font-size: 0.9rem;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.msg-bubble strong {
    color: var(--accent);
}

.read-more {
    margin-top: 0.5rem;
    color: #53bdeb;
    cursor: pointer;
    font-size: 0.85rem;
}

.time {
    display: block;
    text-align: right;
    font-size: 0.7rem;
    color: #8696a0;
    margin-top: 0.3rem;
}

.phone-footer {
    padding: 1rem;
    background: #202c33;
    text-align: center;
}

.join-btn {
    display: block;
    width: 100%;
    padding: 0.6rem;
    background: #00a884;
    color: #111b21;
    border-radius: 20px;
    font-weight: 600;
    text-align: center;
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
    text-align: center;
    position: relative;
}

.cta-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 60%);
    z-index: -1;
}

.cta-button.large {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    margin-top: 2rem;
    background: var(--primary);
    color: white;
}

.cta-button.large:hover {
    background: #4f46e5;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
}

.small-text {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: var(--font-serif);
    font-weight: 700;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .social-proof {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    /* .nav-links {
        display: none; 
    } */

    .navbar {
        justify-content: center;
        /* Center logo and button on mobile if needed, or keep space-between */
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
        /* Smaller gap */
    }

    .navbar {
        height: 70px;
    }
}