/* =========================================================
   HERO 3D — panggung keramik (piring, lepek, mug, gelas)
   ========================================================= */

.hero-section {
    position: relative;
    padding: clamp(2.2rem, 5vw, 4.2rem) 0 clamp(2.6rem, 5vw, 4.6rem);
    overflow: hidden;
}
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
}
.hero-section::before {
    width: 620px; height: 620px;
    top: -260px; right: -140px;
    background: radial-gradient(circle at 40% 40%, rgba(217, 164, 65, .3), transparent 65%);
}
.hero-section::after {
    width: 520px; height: 520px;
    bottom: -240px; left: -160px;
    background: radial-gradient(circle at 50% 50%, rgba(125, 147, 132, .3), transparent 66%);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 3.4rem);
}

.hero-copy .eyebrow { margin-bottom: .9rem; }
.hero-copy h1 { margin-bottom: .7rem; }
.hero-copy h1 em {
    font-style: normal;
    position: relative;
    color: var(--clay-deep);
}
.hero-copy h1 em::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: .06em;
    height: .32em;
    background: linear-gradient(90deg, rgba(217,164,65,.4), rgba(194,102,75,.16));
    border-radius: var(--radius-pill);
    z-index: -1;
}
.hero-copy > p { max-width: 46ch; font-size: 1.05rem; color: var(--ink-soft); }

.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(36,29,26,.1);
}
.hero-stats strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.1;
}
.hero-stats span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }

/* ---------------- STAGE ---------------- */
.stage3d {
    position: relative;
    height: clamp(340px, 42vw, 470px);
    perspective: 1100px;
    perspective-origin: 50% 35%;
    isolation: isolate;
}

.stage-glow {
    position: absolute;
    inset: 8% 4% 6%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 45%, rgba(255,255,255,.9), transparent 62%),
        conic-gradient(from 210deg, rgba(217,164,65,.28), rgba(194,102,75,.2), rgba(125,147,132,.24), rgba(217,164,65,.28));
    filter: blur(24px);
    z-index: 0;
    animation: spinSlow 40s linear infinite;
}

.stage-rings {
    position: absolute;
    inset: 6% 0;
    z-index: 1;
    display: grid;
    place-items: center;
    transform: rotateX(66deg);
    pointer-events: none;
}
.stage-rings span {
    position: absolute;
    border: 1px dashed rgba(161, 79, 56, .28);
    border-radius: 50%;
}
.stage-rings span:nth-child(1) { width: 78%; height: 78%; }
.stage-rings span:nth-child(2) { width: 96%; height: 96%; border-color: rgba(125,147,132,.22); }
.stage-rings span:nth-child(3) { width: 60%; height: 60%; border-style: solid; border-color: rgba(217,164,65,.24); }

/* Piring */
.plate3d {
    position: absolute;
    left: 50%; top: 50%;
    width: 74%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%) rotateX(64deg) rotateZ(0deg);
    transform-style: preserve-3d;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #fffaf4 0 26%, #f3e6d8 26% 34%, #fffdf9 34% 62%, #ecdccb 62% 78%, #fffaf4 78% 100%);
    box-shadow:
        inset 0 0 0 2px rgba(255,255,255,.9),
        inset 0 14px 30px rgba(160, 126, 100, .22),
        inset 0 -18px 34px rgba(255,255,255,.95),
        0 40px 60px -20px rgba(90, 60, 42, .45);
    animation: plateSpin 26s linear infinite, levitate 7s ease-in-out infinite;
    z-index: 3;
}
.plate3d::after {
    content: '';
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 1px solid rgba(194, 102, 75, .18);
    box-shadow: inset 0 0 24px rgba(194,102,75,.08);
}
.plate-flower {
    position: absolute;
    inset: 40%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(194,102,75,.4), rgba(217,164,65,.18) 70%, transparent 72%);
    filter: blur(.4px);
}

/* Lepek (saucer) */
.saucer3d {
    position: absolute;
    left: 50%; top: 51%;
    width: 96%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%) rotateX(68deg);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #fdf6ee 0 58%, #e9d8c6 74%, #fffdfa 88%, #e3d2c1 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.85),
        inset 0 10px 26px rgba(150, 116, 90, .2),
        0 44px 60px -26px rgba(90, 60, 42, .38);
    z-index: 2;
    animation: levitate 8s ease-in-out infinite;
}

/* Mug */
.mug3d {
    position: absolute;
    right: 8%; top: 20%;
    width: 27%;
    aspect-ratio: .92;
    z-index: 5;
    animation: mugTurn 9s ease-in-out infinite;
    transform-style: preserve-3d;
    filter: drop-shadow(0 22px 24px rgba(90,60,42,.28));
}
.mug-body {
    position: absolute;
    inset: 0 12% 0 0;
    border-radius: 14% 14% 22% 22% / 8% 8% 18% 18%;
    background:
        linear-gradient(100deg, #a8c2b0 0%, #cfe0d4 22%, #f2f8f3 46%, #cadcce 70%, #93ac9c 100%);
    box-shadow: inset -10px 0 22px rgba(60, 90, 70, .22), inset 10px 0 18px rgba(255,255,255,.55);
}
.mug-body::before {
    content: '';
    position: absolute;
    left: 6%; right: 6%; top: 0;
    height: 16%;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 50%, #f7fbf6 0 55%, #b9cfbe 78%, #869e8d 100%);
    box-shadow: inset 0 4px 8px rgba(80,110,88,.35);
}
.mug-body::after {
    content: '';
    position: absolute;
    left: 14%; right: 14%; bottom: 12%;
    height: 24%;
    border-radius: 50% 50% 30% 30%;
    background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0));
}
.mug-handle {
    position: absolute;
    right: 0; top: 26%;
    width: 34%; height: 40%;
    border: 7px solid #c3d7c9;
    border-left-color: transparent;
    border-radius: 0 60% 60% 0 / 0 50% 50% 0;
    box-shadow: 3px 0 8px rgba(80,110,88,.22);
}
.mug-stripe {
    position: absolute;
    left: 12%; right: 12%; top: 46%;
    height: 9%;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(194,102,75,.05), rgba(194,102,75,.55), rgba(194,102,75,.12));
    opacity: .8;
}

/* Gelas */
.glass3d {
    position: absolute;
    left: 4%; bottom: 8%;
    width: 20%;
    aspect-ratio: .7;
    z-index: 6;
    animation: levitate 6.4s ease-in-out infinite .6s;
    filter: drop-shadow(0 18px 20px rgba(90,60,42,.24));
}
.glass-body {
    position: absolute;
    inset: 0;
    clip-path: polygon(12% 0, 88% 0, 74% 100%, 26% 100%);
    background:
        linear-gradient(100deg, rgba(255,255,255,.4) 0 12%, rgba(214, 232, 240, .72) 26%, rgba(255,255,255,.9) 48%, rgba(198, 222, 232, .65) 72%, rgba(255,255,255,.42) 88%);
    border-radius: 8px;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    box-shadow: inset 0 0 14px rgba(255,255,255,.8);
}
.glass-body::after {
    content: '';
    position: absolute;
    left: 30%; top: 12%;
    width: 12%; height: 62%;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.1));
}
.glass-tea {
    position: absolute;
    left: 24%; right: 24%; bottom: 6%;
    height: 46%;
    border-radius: 6px 6px 22px 22px;
    background: linear-gradient(180deg, rgba(217,164,65,.42), rgba(161,79,56,.44));
    filter: blur(.4px);
}

/* Sparkles */
.sparkles { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.sparkles i {
    position: absolute;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0 30%, rgba(217,164,65,.9) 60%, transparent 70%);
    box-shadow: 0 0 12px rgba(217,164,65,.8);
    animation: twinkle 3.6s ease-in-out infinite;
}
.sparkles i:nth-child(1) { top: 12%; left: 18%; animation-delay: 0s; }
.sparkles i:nth-child(2) { top: 24%; right: 12%; width: 10px; height: 10px; animation-delay: .5s; }
.sparkles i:nth-child(3) { bottom: 26%; left: 8%; animation-delay: 1.1s; }
.sparkles i:nth-child(4) { bottom: 12%; right: 28%; width: 5px; height: 5px; animation-delay: 1.7s; }
.sparkles i:nth-child(5) { top: 46%; left: 44%; width: 5px; height: 5px; animation-delay: 2.2s; }
.sparkles i:nth-child(6) { top: 6%; left: 52%; animation-delay: 2.7s; }

/* Floating chips */
.hero-chip {
    position: absolute;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .85rem;
    border-radius: 16px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 16px 34px -18px rgba(70,47,36,.55);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    backdrop-filter: blur(16px) saturate(1.5);
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.2;
    animation: levitate 6s ease-in-out infinite;
}
.hero-chip small { display: block; font-size: .64rem; font-weight: 600; color: var(--ink-mute); letter-spacing: .04em; }
.hero-chip .chip-ico {
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: rgba(194,102,75,.14);
    font-size: .95rem;
}
.hero-chip.chip-a { top: 6%; left: 2%; animation-delay: .2s; }
.hero-chip.chip-b { bottom: 14%; right: 0; animation-delay: 1.3s; }
.hero-chip.chip-c { bottom: 2%; left: 22%; animation-delay: 2.1s; }

/* ---------------- KEYFRAMES ---------------- */
@keyframes levitate {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -14px; }
}
@keyframes twinkle {
    0%, 100% { opacity: .25; transform: scale(.7); }
    50% { opacity: 1; transform: scale(1.25); }
}
@keyframes plateSpin {
    from { transform: translate(-50%, -50%) rotateX(64deg) rotateZ(0deg); }
    to { transform: translate(-50%, -50%) rotateX(64deg) rotateZ(360deg); }
}
@keyframes mugTurn {
    0%, 100% { transform: rotateY(-8deg) rotateX(3deg) translateY(0); }
    50% { transform: rotateY(12deg) rotateX(-2deg) translateY(-10px); }
}

/* ---------------- CATEGORY 3D CARDS ---------------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}
.cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.1rem;
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(255,255,255,.85), rgba(255,255,255,.45));
    border: 1px solid rgba(255,255,255,.85);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
    transform-style: preserve-3d;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-card .cat-thumb {
    aspect-ratio: 1.35;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: .55rem;
    background: var(--sand-deep);
}
.cat-card .cat-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-card:hover .cat-thumb img { transform: scale(1.07); }
.cat-card strong { font-size: .95rem; }
.cat-card span { font-size: .75rem; color: var(--ink-mute); }
.cat-card .cat-ico {
    position: absolute; top: .8rem; right: .8rem;
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    box-shadow: var(--shadow-sm);
    font-size: .9rem;
}

@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr; }
    .stage3d { order: -1; height: clamp(320px, 70vw, 430px); }
    .hero-copy { text-align: left; }
    .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .hero-chip { font-size: .68rem; padding: .45rem .65rem; }
    .hero-chip.chip-c { display: none; }
    .cat-grid { grid-template-columns: 1fr; }
}
