:root {
    --red: #ef3b45;
    --dark: #0f1724;
    --muted: #8b99a6;
    --accent: #ff5a7a;
    --bg: #fbfafd;
    --card: #fff;
    --container: 1200px;
}

/* Entry Animations - Safe CSS-only animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

* {
    box-sizing: border-box
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--dark);
    -webkit-font-smoothing: antialiased
}

.wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 28px
}

/* Header with red background */
.header-red {
    background: var(--red);
    padding: 12px 0 10px 0;
    /* top right bottom left padding*/
    width: 100%;
    position: relative;
}

.header-red .wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

/* Logo section */
.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-width: 200px;
    /* image width */
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-main {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.logo-subtitle {
    font-size: 12px;
    color: #fff;
    font-weight: 400;
}

.logo-stars {
    display: flex;
    gap: 2px;
    margin-top: -2px;
}

.star {
    font-size: 10px;
    color: #ffd700;
}

/* Categories dropdown */
.categories-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #0f1724;
    font-weight: 600;
    cursor: pointer;
}

/* Search bar */
.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 18px;
    padding-left: 44px;
    border: 1px solid #e6e9ee;
    background: #f0f7ff;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    left: 14px;
    color: #8b99a6;
}

.cta {
    margin-left: 12px;
}

.btn {
    padding: 10px 16px;
    border-radius: 22px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

.btn-primary {
    background: var(--red);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid #d8dbe0;
}

/* Bottom navigation bar */
.header-nav {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
    position: relative;
}

.header-nav .wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0;
    font-weight: 500;
    padding: 14px 0;
    width: 100%;
}

nav>a {
    color: var(--muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

nav>a::after {
    content: "▼";
    font-size: 10px;
    color: var(--muted);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.user-icon {
    width: 18px;
    height: 18px;
    margin-right: 4px;
}

/* Mobile Menu Toggle (Hamburger) - Floating */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: fixed;
    top: 15px;
    right: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active {
    background: var(--red);
}

.mobile-menu-toggle.active span {
    background: #fff;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero */
.hero {
    display: flex;
    gap: 36px;
    align-items: center;
    padding: 40px 0;
    animation: fadeIn 0.6s ease-out;
}

.hero-left {
    flex: 55%;
}

.hero-left h1 {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-left p {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-left .hero-ctas {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.eyebrow {
    color: var(--muted);
    margin-bottom: 10px
}

.hero h1 {
    font-size: 44px;
    margin: 0 0 10px
}

.hero p {
    color: var(--muted);
    max-width: 620px
}

.hero .hero-ctas {
    margin-top: 22px;
    display: flex;
    gap: 12px
}

.hero .hero-ctas .btn {
    width: 220px;
    text-align: center;
    display: inline-block;
    font-size: 14px;
}

.hero-right {
    flex: 45%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: slideInRight 0.8s ease-out 0.3s both;
}

.hero-right .img-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 36, 0.06);
    width: 350px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-right .img-wrap::after {
    content: '';
    position: absolute;
    right: -45px;
    top: 210px;
    width: 45px;
    height: 90px;
    background: var(--red);
    border-radius: 0 12px 12px 0;
}

.hero-right img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

/* Packages row */
.packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 36px 0
}

.pkg {
    background: var(--card);
    min-height: 160px;
    height: auto;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Allow content to control its own alignment */
    justify-content: center;
    box-shadow: 0 6px 18px rgba(15, 23, 36, 0.03);
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    padding: 15px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    /* Remove default color and font-weight to allow editor styles */
}

/* Allow Quill Editor styles to work - preserve formatting */
.pkg * {
    /* Remove forced styling to allow editor formatting */
    max-width: 100%;
}

.pkg p {
    margin: 0.5em 0;
    line-height: 1.6;
}

.pkg p:first-child {
    margin-top: 0;
}

.pkg p:last-child {
    margin-bottom: 0;
}

.pkg h1, .pkg h2, .pkg h3, .pkg h4, .pkg h5, .pkg h6 {
    margin: 0.5em 0;
    line-height: 1.4;
}

.pkg h1:first-child, 
.pkg h2:first-child, 
.pkg h3:first-child, 
.pkg h4:first-child, 
.pkg h5:first-child, 
.pkg h6:first-child {
    margin-top: 0;
}

.pkg ul, .pkg ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
    text-align: left;
}

.pkg li {
    margin: 0.25em 0;
}

/* Preserve inline styles from Quill Editor - important to override any defaults */
.pkg [style*="color"],
.pkg [style*="background"],
.pkg [style*="font-size"],
.pkg [style*="font-family"],
.pkg [style*="text-align"],
.pkg [style*="font-weight"] {
    /* Let inline styles from editor take precedence */
}

/* Stagger animations for packages */
.packages .pkg:nth-child(1) { animation-delay: 0.1s; }
.packages .pkg:nth-child(2) { animation-delay: 0.2s; }
.packages .pkg:nth-child(3) { animation-delay: 0.3s; }

.pkg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ef3b45, #ff9500, #ffd700, #32cd32, #00bfff, #4b0082);
    border-radius: 0 0 8px 8px;
}

/* categories */
.section-title {
    text-align: center;
    margin: 36px 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.section-title h3 {
    margin: 0;
    font-size: 26px
}

.cats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid #f0f0f0;
    background: #fff
}

.cat {
    padding: 28px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    min-height: 100px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger animations for categories */
.cats .cat:nth-child(1) { animation-delay: 0.1s; }
.cats .cat:nth-child(2) { animation-delay: 0.2s; }
.cats .cat:nth-child(3) { animation-delay: 0.3s; }
.cats .cat:nth-child(4) { animation-delay: 0.4s; }
.cats .cat:nth-child(5) { animation-delay: 0.5s; }
.cats .cat:nth-child(6) { animation-delay: 0.6s; }

.cat:last-child {
    border-right: none
}

.cat img,
.cat svg {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.cat .label {
    font-weight: 600
}

/* Platforms */
.platforms {
    background: linear-gradient(90deg, #fff, #fff);
    padding: 36px;
    border-radius: 12px;
    margin: 40px 0;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.platforms::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #98fb98;
    bottom: -20px;
    right: -20px;
    opacity: 0.1;
}

.platforms .left {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.badges {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 14px;
}

.badge {
    background: white;
    padding: 0;
    border-radius: 50px;
    display: flex;
    align-items: stretch;
    gap: 0;
    cursor: pointer;
    transition: transform 0.2s;
    width: 280px;
    overflow: hidden;
    border: 2px solid #c8e6c9;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger animations for badges */
.badges .badge:nth-child(1) { animation-delay: 0.5s; }
.badges .badge:nth-child(2) { animation-delay: 0.6s; }
.badges .badge:nth-child(3) { animation-delay: 0.7s; }
.badges .badge:nth-child(4) { animation-delay: 0.8s; }

.badge:hover {
    transform: translateY(-2px);
}

.badge-icon-area {
    background: #e8f5e9;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.badge-text {
    flex: 1;
    background: white;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-title {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    line-height: 1.2;
}

.badge-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f1724;
}

.badge-arrow {
    width: 48px;
    height: 48px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 8px 0 0;
    align-self: center;
}

.badge-arrow svg {
    width: 18px;
    height: 18px;
    fill: black;
}

.badge.badge-blue .badge-icon-area,
.badge.badge-blue .badge-arrow {
    background: #e3f2fd;
}

.badge.badge-red .badge-icon-area,
.badge.badge-red .badge-arrow {
    background: #fce4ec;
}

.badge.badge-green .badge-icon-area,
.badge.badge-green .badge-arrow {
    background: #e8f5e9;
}

/* footer */
footer {
    background: #fff;
    padding: 18px;
    margin-top: 28px;
    border-top: 6px solid #eee
}

/* Header specific styles */
.header-red .wrap>div:last-child {
    flex: 1;
    margin-left: 18px;
}

.middle-row {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.categories-dropdown {
    background: transparent;
    color: #0f1724;
    padding: 0;
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-bar {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0px 12px;
    background: #f0f7ff;
    flex: 1;
    position: relative;
    height: 38px;
}

.search-bar svg {
    color: #666;
    margin-right: 8px;
    position: absolute;
    left: 12px;
}

.search-bar input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    width: 100%;
    padding: 10px 12px;
    padding-left: 26px;
    background: transparent;
    height: 100%;
}

/* responsive */
@media(max-width:980px) {
    .hero {
        flex-direction: column-reverse
    }

    .hero-left,
    .hero-right {
        flex: 100% !important;
        width: 100%;
    }

    .hero-right .img-wrap {
        margin: 0 auto;
    }

    .hero-right .img-wrap::after {
        display: none;
    }

    .packages {
        grid-template-columns: repeat(2, 1fr)
    }

    .cats {
        grid-template-columns: repeat(2, 1fr)
    }

    .badges {
        grid-template-columns: 1fr !important;
        justify-items: center;
    }

    .badge {
        grid-column: auto !important;
    }
}

@media(max-width: 768px) {
    .header-red .wrap>div:last-child {
        margin-left: 0;
        width: 100%;
        margin-top: 10px;
    }

    .middle-row {
        gap: 10px;
    }

    .categories-dropdown {
        font-size: 14px;
    }

    .search-bar input {
        font-size: 13px;
    }
}

@media(max-width:600px) {
    .packages {
        grid-template-columns: 1fr
    }

    .cats {
        grid-template-columns: 1fr !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    nav {
        display: none;
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px 28px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 999;
        gap: 0;
        max-height: calc(100vh - 65px);
        overflow-y: auto;
    }

    nav.active {
        display: flex;
    }

    nav > a {
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }

    nav > a::after {
        content: "";
        display: none;
    }

    nav > a:last-of-type {
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-actions {
        flex-direction: column;
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        gap: 10px;
        padding-top: 10px;
        border-top: 1px solid #f0f0f0;
    }

    .nav-actions .btn {
        width: 100%;
        text-align: center;
    }

    .header-nav .wrap {
        position: relative;
        justify-content: space-between;
    }

    .wrap {
        padding: 18px
    }

    .hero h1 {
        font-size: 30px
    }

    .hero .hero-ctas .btn {
        width: 100%;
    }

    .hero .hero-ctas {
        flex-direction: column;
        gap: 10px;
    }

    .header-red .wrap {
        flex-wrap: wrap;
    }

    .logo-brand {
        min-width: 100%;
        margin-bottom: 10px;
    }

    .categories-dropdown {
        font-size: 14px;
    }

    .search-bar input {
        font-size: 12px;
        padding: 10px 14px;
        padding-left: 40px;
    }

    .btn-primary {
        padding: 8px 12px;
        font-size: 14px;
    }

    .badge {
        width: 100%;
        max-width: 280px;
    }

    .hero-right .img-wrap {
        width: 100%;
        max-width: 350px;
        height: auto;
        aspect-ratio: 1;
    }
}

@media(max-width: 600px) {
    .header-red .wrap>div:last-child .row:first-child {
        display: none;
    }

    .header-red .wrap {
        flex-wrap: wrap;
    }

    .logo-brand {
        min-width: 100%;
        margin-bottom: 10px;
    }

    .middle-row {
        flex-direction: row;
        gap: 10px;
    }

    .search-bar {
        width: 100%;
    }

    .categories-dropdown {
        font-size: 13px;
    }
}
