:root {
    --primary: #1a5bba;
    --primary-dark: #124085;
    --accent: #ff6b35;
    --accent-hover: #e55b2a;
    --yellow: #ffd150;
    --yellow-dark: #f0b91a;
    --bg-color: #fcfbfa;
    --bg-hero: linear-gradient(135deg, #fffcf5 0%, #fff1d8 100%);
    --text-main: #2a2a2a;
    --text-light: #666666;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 16px;
    --border-radius-lg: 24px;
    font-size: 14px; /* Scales down all rem units */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--primary);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(26, 91, 186, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 91, 186, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* Hero Section */
.hero {
    background: var(--bg-hero);
    padding: 40px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg-color);
    border-radius: 50% 50% 0 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 550px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.badge-yellow {
    background-color: var(--yellow);
    color: #8c6a00;
}

.hero-text h1 {
    font-size: 2.8rem;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.8);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.subtitle strong {
    color: var(--primary);
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    font-weight: 500;
}

.tag svg {
    color: var(--primary);
    width: 24px;
    height: 24px;
}

/* Hero Image Composition */
.hero-image {
    flex: 1;
    position: relative;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-composition {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 280px;
}

.mockup-book {
    position: absolute;
    width: 110px;
    height: 160px;
    border-radius: 6px 12px 12px 6px;
    box-shadow: -5px 10px 20px rgba(0,0,0,0.15);
    background: var(--white);
    transition: transform 0.5s ease;
}

.book-cover {
    width: 100%;
    height: 100%;
    border-radius: 8px 16px 16px 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-left: 6px solid rgba(0,0,0,0.1);
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.05) 100%);
}

.book-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #333;
    background: rgba(255,255,255,0.95);
    padding: 2px 8px;
    border-radius: 15px;
    margin-bottom: auto;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    width: 95%;
}

.mockup-illustration {
    width: 60px;
    height: 60px;
    margin-top: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.book-1 {
    top: 40px;
    left: 10%;
    transform: rotate(-12deg);
    z-index: 3;
}

.book-2 {
    top: 20px;
    left: 35%;
    transform: rotate(2deg);
    z-index: 2;
}

.book-3 {
    top: 50px;
    left: 60%;
    transform: rotate(15deg);
    z-index: 1;
}

.mockup-page {
    position: absolute;
    width: 120px;
    height: 170px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: 4px;
    padding: 8px;
    bottom: 0px;
    transition: transform 0.3s;
}

.page-1 {
    left: 20%;
    transform: rotate(-6deg);
    z-index: 5;
}

.page-2 {
    left: 50%;
    transform: rotate(6deg);
    z-index: 4;
}

.hero-image:hover .book-1 { transform: rotate(-15deg) translateY(-10px); }
.hero-image:hover .book-2 { transform: rotate(0deg) translateY(-15px); }
.hero-image:hover .book-3 { transform: rotate(18deg) translateY(-5px); }
.hero-image:hover .page-1 { transform: rotate(-4deg) scale(1.05); z-index: 6; }
.hero-image:hover .page-2 { transform: rotate(4deg) scale(1.05); z-index: 6; }

/* Decoration */
.dec-stars {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: twinkle 3s infinite alternate;
}

.dec-1 { top: 15%; left: 10%; }
.dec-2 { top: 20%; right: 15%; animation-delay: 1s; }

@keyframes twinkle {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.2); opacity: 1; }
}

/* Pricing Section */
.pricing {
    padding: 30px 0;
    position: relative;
    z-index: 10;
}

.pricing-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    margin-top: -30px; /* Pull up over hero */
}

.pricing-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 30px 20px;
    text-align: center;
    width: 100%;
    max-width: 320px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.card-basic {
    border: 2px solid rgba(0,0,0,0.05);
    margin-top: 20px;
    height: fit-content;
}

.card-pro {
    border: 3px solid var(--primary);
    position: relative;
}

.badge-best-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(26, 91, 186, 0.4);
}

.badge-best-value::after {
    content: "★";
    position: absolute;
    right: -10px;
    top: 5px;
    color: var(--yellow);
    font-size: 24px;
    transform: rotate(15deg);
}

.card-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.card-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    color: var(--primary);
    margin-bottom: 10px;
}

.price-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.price-unit {
    font-size: 1.2rem;
    font-weight: 500;
    margin-left: 8px;
}

.card-desc {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.card-footer {
    background: #fff4d1;
    color: #b58600;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* Samples Section */
.samples {
    padding: 20px 0 60px;
}

.alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 50px;
    font-weight: 500;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.alert-yellow {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.sample-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.sample-card {
    background: var(--white);
    border-radius: 16px;
    padding: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
}

.sample-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.sample-img-container {
    width: 100%;
    aspect-ratio: 4/5;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    overflow: hidden;
}

.sample-img-container svg {
    width: 60%;
    height: 60%;
    color: #cbd5e1;
}

.sample-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.sample-desc {
    font-size: 0.85rem;
    color: var(--primary);
    background: #f0f7ff;
    padding: 4px 12px;
    border-radius: 20px;
}

.center-btn {
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-tags {
        justify-content: center;
    }
    
    .hero-image {
        width: 100%;
        margin-top: 30px;
        height: 380px;
    }
    
    .mockup-composition {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .pricing-container {
        flex-direction: column;
        align-items: center;
        margin-top: 0;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero::after {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2.4rem;
        margin-top: 15px;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .hero-image {
        height: 280px;
        margin-top: 20px;
    }
    
    .mockup-composition {
        transform: scale(0.7);
        transform-origin: center center;
    }
    
    .action-buttons {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .alert {
        border-radius: 12px;
        text-align: center;
    }
    
    .feature-tags {
        gap: 10px;
    }
    
    .tag {
        font-size: 0.85rem;
        justify-content: center;
    }
}
