:root {
    --bee-yellow: #f5bc00;
    --honey-gold: #ff9d00;
    --dark-hive: #0f0d0b;
    --wood-brown: #3d2b1f;
    --cream: #fffaf0;
    --glass: rgba(255, 255, 255, 0.7);
    --mesh-color: rgba(245, 188, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--cream);
    color: var(--dark-hive);
    line-height: 1.6;
    background-image: radial-gradient(var(--mesh-color) 1px, transparent 0);
    background-size: 24px 24px;
}

nav {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 1rem 10%;
    display: flex;
    justify-content: center;
    /* Centers items by default */
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(245, 188, 0, 0.2);
    height: 80px;
    /* Set a fixed height for consistent centering */
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark-hive);
    display: flex;
    align-items: center;
    gap: 12px;
    /* Slight increase for better breathing room */
}

.logoimage {
    height: 50px;
    /* Scaled slightly for a cleaner look */
    width: auto;
    display: block;
}

.logo i {
    color: var(--bee-yellow);
}

header {
    padding: 180px 10% 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--wood-brown);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
    max-width: 500px;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--bee-yellow);
    color: var(--dark-hive);
    box-shadow: 0 4px 15px rgba(245, 188, 0, 0.4);
}

.btn-primary:hover {
    background: var(--honey-gold);
    transform: translateY(-3px);
}

/* ── PHONE SLIDER ── */
.hero-phone {
    flex-shrink: 0;
    width: 280px;
    height: 580px;
    background: var(--dark-hive);
    border-radius: 40px;
    border: 8px solid var(--wood-brown);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

/* notch */
.hero-phone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: var(--dark-hive);
    border-radius: 0 0 14px 14px;
    z-index: 10;
}

.phone-slider-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.phone-slider {
    display: flex;
    width: 400%;
    /* 4 slides */
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}

.phone-slide {
    width: 25%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* Slide header bar */
.slide-bar {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 8px;
    font-weight: 700;
    font-size: 0.85rem;
}

.slide-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.slide-body {
    flex: 1;
    background: #1a1714;
    padding: 12px;
    overflow: hidden;
}

/* Category row */
.cat-row {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.cat-chip {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Product grid */
.prod-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.prod-card {
    border-radius: 10px;
    overflow: hidden;
    background: #2a2420;
}

.prod-img {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.prod-info {
    padding: 5px 6px;
}

.prod-name {
    font-size: 0.58rem;
    color: #ddd;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prod-price {
    font-size: 0.65rem;
    font-weight: 700;
}

/* Order button */
.slide-footer {
    padding: 10px 14px;
    background: #1a1714;
}

.wa-btn {
    background: #25D366;
    color: white;
    border: none;
    border-radius: 20px;
    width: 100%;
    padding: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Slider dots & labels */
.slider-controls {
    background: #1a1714;
    padding: 6px 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.slider-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #555;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--bee-yellow);
    width: 18px;
    border-radius: 3px;
}

.slide-label {
    font-size: 0.58rem;
    color: #888;
    letter-spacing: 0.5px;
}

/* Arrow buttons */
.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 6px;
    pointer-events: none;
    z-index: 5;
}

.phone-slider-wrapper {
    position: relative;
}

.arrow {
    width: 24px;
    height: 24px;
    background: rgba(245, 188, 0, 0.85);
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 0.65rem;
    cursor: pointer;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.arrow:hover {
    background: var(--honey-gold);
}

/* Features */
.features {
    padding: 80px 10%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border-bottom: 4px solid var(--bee-yellow);
    transition: 0.3s;
    text-align: center;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--honey-gold);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--wood-brown);
}

/* Pricing */
.pricing {
    padding: 100px 10%;
    background: var(--dark-hive);
    color: white;
    text-align: center;
    border-radius: 50px 50px 0 0;
}

.price-box {
    background: rgba(255, 255, 255, 0.05);
    max-width: 400px;
    margin: 40px auto;
    padding: 50px;
    border-radius: 30px;
    border: 1px solid var(--bee-yellow);
    position: relative;
    overflow: hidden;
}

.badge {
    background: var(--honey-gold);
    color: var(--dark-hive);
    padding: 5px 20px;
    position: absolute;
    top: 50px;
    right: -50px;
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 0.8rem;
    width: 230px;
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--bee-yellow);
}

.hosting-info {
    margin-top: 20px;
    color: #aaa;
    font-size: 0.9rem;
}

.hosting-info strong {
    color: var(--honey-gold);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: var(--cream);
    padding: 40px;
    border-radius: 30px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    color: var(--wood-brown);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: var(--bee-yellow);
}

.form-group input:invalid:focus {
    border-color: #ff4d4d;
}

.custom-checkbox {
    display: none;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--wood-brown);
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        margin: 0 auto 2rem;
    }
}

@media (max-width: 992px) {
    .features {
        /* On tablets and smaller, drop to 2 columns or 1 for better readability */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features {
        grid-template-columns: 1fr;
    }
}

/* Back-link to the BeePOS site (nav) */
.back-to-beepos {
    position: absolute;
    inset-inline-end: 10%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--bee-yellow);
    border-radius: 50px;
    background: transparent;
    color: var(--dark-hive);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.back-to-beepos:hover {
    background: var(--bee-yellow);
    color: var(--dark-hive);
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .back-to-beepos {
        inset-inline-end: 4%;
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-beepos {
        transition: none;
    }

    .back-to-beepos:hover {
        transform: none;
    }
}
