@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #fbfbfd;
    color: #1d1d1f;
    -webkit-font-smoothing: antialiased;
}

.glass-nav {
    background: rgba(251, 251, 253, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.apple-input {
    transition: all 0.2s ease-in-out;
    background-color: rgba(255, 255, 255, 0.8);
}

.apple-input:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
    outline: none;
}

.btn-primary {
    background-color: #1d1d1f;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #424245;
    transform: scale(1.02);
}

.btn-primary:active {
    transform: scale(0.98);
}

.hero-text-gradient {
    background: linear-gradient(90deg, #1d1d1f 0%, #434343 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-text-gradient {
    background: linear-gradient(90deg, #d4af37 0%, #aa7c11 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    animation: spin 0.8s linear infinite;
}

html {
    scroll-behavior: smooth;
}

/* ==========================================
   STAR RATING (form testimoni)
   ========================================== */
.star-btn {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem;
    line-height: 0;
    transition: transform 0.15s ease;
}

.star-btn:hover {
    transform: scale(1.1);
}

.star-btn:focus {
    outline: none;
}

.star-btn:focus-visible .star-icon {
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.5));
}

.star-icon {
    width: 2.25rem;
    height: 2.25rem;
    color: #e5e7eb;
    fill: transparent;
    stroke-width: 1.5;
    transition: color 0.15s ease, fill 0.15s ease;
}

.star-btn.active .star-icon,
.star-btn.preview .star-icon {
    color: #d4af37;
    fill: #d4af37;
}

/* ==========================================
   TESTIMONI CARD
   ========================================== */
.testimoni-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimoni-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.testimoni-stars {
    color: #d4af37;
}

/* fade-in animasi untuk review baru */
@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.testimoni-card-new {
    animation: fadeInCard 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
