:root {
    --bg: #f7f7f9;
    --primary: #ff7d00;
    --primary-dark: #cc6400;
    --secondary: #1d1d1f;
    --muted: #6f6f78;
    --surface: #ffffff;
    --border: #e2e2e8;
    --accent: #c5def3;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    background-color: var(--bg);
    color: var(--secondary);
}

a {
    text-decoration: none;
    color: inherit;
}

.landing-page {
    background: linear-gradient(180deg, #fefefe 0%, #f5f7fa 50%, #f7f7f9 100%);
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 5vw;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    font-weight: 600;
}

.main-nav a {
    color: var(--muted);
}

.main-nav a:hover {
    color: var(--secondary);
}

.btn-ghost,
.btn-primary,
.btn-secondary {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

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

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(255, 125, 0, 0.25);
}

.btn-primary.full {
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--secondary);
}

.btn-secondary.outline {
    background: transparent;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    padding: 4rem 5vw;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin: 0.5rem 0 1rem;
}

.hero-text .subtitle {
    max-width: 42ch;
    color: var(--muted);
    line-height: 1.6;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: var(--muted);
}

.hero-cta {
    margin: 1.5rem 0 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stats {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.stats li strong {
    font-size: 1.5rem;
    display: block;
}

.hero-card {
    background: var(--surface);
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.05);
}

.hero-card__badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #fef2e6;
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-card__illustration {
    margin: 2rem 0;
    position: relative;
    height: 140px;
}

.egg {
    width: 90px;
    height: 120px;
    background: linear-gradient(145deg, #fff7e6, #fff3d4);
    border-radius: 50% 50% 45% 45%;
    position: absolute;
    left: 20%;
    transform: rotate(-12deg);
    box-shadow: inset 0 -10px 15px rgba(0, 0, 0, 0.05);
}

.egg.shadow {
    left: 45%;
    top: 10px;
    background: linear-gradient(145deg, #fff, #ffe8b6);
    opacity: 0.8;
}

.hero-card ul {
    padding-left: 1.2rem;
    color: var(--muted);
}

.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-heading h2 {
    margin: 0.5rem 0;
}

.feature-grid {
    padding: 4rem 5vw;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--surface);
    padding: 1.75rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.feature-card .icon {
    font-size: 2rem;
}

.product-section {
    padding: 4rem 5vw;
    background: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    min-height: 380px;
}

.product-media {
    background: var(--accent);
    padding: 2rem;
    text-align: center;
}

.product-media .placeholder {
    display: inline-block;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

.product-body {
    padding: 1.5rem;
    flex: 1;
}

.product-body h3 {
    margin-top: 0;
}

.product-body p {
    color: var(--muted);
    line-height: 1.5;
}

.price {
    font-weight: 700;
    color: var(--secondary);
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tags span {
    background: #f1f3ff;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.testimony {
    padding: 4rem 5vw;
}

.testimony-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.testimony-card {
    background: var(--surface);
    padding: 1.75rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.03);
}

.quote {
    font-size: 1.1rem;
    line-height: 1.6;
}

.author {
    margin-top: 1.5rem;
    font-weight: 700;
}

.contact {
    padding: 4rem 5vw 5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.contact-card,
.contact-form {
    background: var(--surface);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--border);
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-family: inherit;
}

.main-footer {
    text-align: center;
    padding: 1.5rem 5vw 2rem;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stats {
        flex-direction: column;
        gap: 1rem;
    }

    .product-actions {
        flex-direction: column;
    }
}

/* Halaman Auth (Login & Register) */
.auth-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c5def3 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    width: 100%;
    box-sizing: border-box;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .brand {
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 0.75rem;
}

.auth-header .brand .logo-dot {
    width: 12px;
    height: 12px;
}

.auth-header h1 {
    font-size: 1.75rem;
    margin: 1rem 0 0.5rem;
    color: var(--secondary);
    font-weight: 700;
}

.auth-header h2 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--secondary);
    font-weight: 600;
}

.auth-header p {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
}

.auth-form {
    margin-top: 2rem;
}

.auth-form .btn-primary.full {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: var(--secondary);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--surface);
    color: var(--secondary);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: #a0a0a0;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 125, 0, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-weight: 400;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    accent-color: var(--primary);
}

.checkbox-group span {
    font-size: 0.95rem;
    color: var(--secondary);
}

.alert {
    padding: 1rem 1.125rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert ul {
    margin: 0;
    padding-left: 1.25rem;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.auth-footer p {
    margin: 0.75rem 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Rating Section */
.rating-section {
    padding: 4rem 5vw;
    background: var(--bg);
}

.rating-container {
    max-width: 800px;
    margin: 2rem auto 0;
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr 1fr;
}

.rating-form {
    background: var(--surface);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.rating-form select {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--surface);
    color: var(--secondary);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.rating-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 125, 0, 0.1);
}

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.rating-stars input[type="radio"] {
    display: none;
}

.rating-stars .star-label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating-stars input[type="radio"]:checked ~ .star-label,
.rating-stars input[type="radio"]:checked ~ .star-label ~ .star-label,
.rating-stars .star-label:hover,
.rating-stars .star-label:hover ~ .star-label {
    color: var(--primary);
}

.ratings-display {
    background: var(--surface);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.ratings-display h3 {
    margin: 0 0 1.5rem;
    color: var(--secondary);
    font-size: 1.5rem;
}

.ratings-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.rating-item {
    padding: 1.25rem;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.rating-header strong {
    color: var(--secondary);
    display: block;
    margin-bottom: 0.25rem;
}

.product-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.rating-value {
    display: flex;
    gap: 0.25rem;
}

.rating-value .star {
    font-size: 1.25rem;
    color: #ddd;
}

.rating-value .star.filled {
    color: var(--primary);
}

.rating-comment {
    color: var(--muted);
    margin: 0.75rem 0;
    line-height: 1.6;
}

.rating-date {
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .auth-page {
        padding: 1rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .auth-header h2 {
        font-size: 1.1rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .rating-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .rating-form,
    .ratings-display {
        padding: 1.5rem;
    }
}
