/* ============================================================
   OyaShop — Premium landing design layer
   Glassmorphism · 3D depth · aurora light · custom motion
   Additive & scoped; fully disabled for reduced-motion users.
   ============================================================ */

:root {
    --oya-green: #16a34a;
    --oya-green-600: #15803d;
    --oya-green-glow: rgba(34, 197, 94, 0.45);
    --oya-gold: #f5b400;
    --oya-ink: #0f2417;
    --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.32));
    --glass-border: rgba(255, 255, 255, 0.65);
    --glass-shadow: 0 18px 48px -12px rgba(12, 45, 27, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ---------- Aurora light orbs (hero depth) ---------- */
.oya-aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.oya-aurora span {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    mix-blend-mode: screen;
    animation: oyaFloatOrb 18s ease-in-out infinite;
}
.oya-aurora span:nth-child(1) { width: 460px; height: 460px; top: -120px; left: -80px;
    background: radial-gradient(circle at 30% 30%, #a7f3d0, transparent 70%); animation-delay: 0s; }
.oya-aurora span:nth-child(2) { width: 380px; height: 380px; bottom: -140px; right: -60px;
    background: radial-gradient(circle at 60% 40%, #fde68a, transparent 70%); animation-delay: -4s; }
.oya-aurora span:nth-child(3) { width: 300px; height: 300px; top: 30%; right: 22%;
    background: radial-gradient(circle at 50% 50%, #6ee7b7, transparent 70%); animation-delay: -9s; }

@keyframes oyaFloatOrb {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33%      { transform: translate3d(40px, -30px, 0) scale(1.12); }
    66%      { transform: translate3d(-30px, 24px, 0) scale(0.94); }
}

/* Fine grain overlay so gradients don't read as flat "AI" fills */
.oya-grain::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Scroll reveal ---------- */
.oya-reveal { opacity: 0; transform: translateY(28px); }
.oya-reveal.oya-in {
    opacity: 1; transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============================================================
   HOW IT WORKS — premium glass steps
   ============================================================ */
.oya-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 68rem;
    margin: 0 auto;
}
@media (max-width: 860px) { .oya-steps { grid-template-columns: 1fr; gap: 2.5rem; } }

/* Connecting dotted rail behind the cards (desktop) */
.oya-steps::before {
    content: "";
    position: absolute;
    top: 62px;
    left: 12%;
    right: 12%;
    height: 2px;
    background-image: linear-gradient(90deg, rgba(22, 163, 74, 0.5) 40%, transparent 0);
    background-size: 16px 2px;
    z-index: 0;
}
@media (max-width: 860px) { .oya-steps::before { display: none; } }

.oya-step {
    position: relative;
    z-index: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.6rem 1.75rem 2rem;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transform-style: preserve-3d;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    will-change: transform;
}
.oya-step:hover {
    box-shadow: 0 30px 60px -18px rgba(12, 45, 27, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Floating number chip */
.oya-step__num {
    position: absolute;
    top: -16px; left: 50%;
    transform: translateX(-50%) translateZ(40px);
    width: 34px; height: 34px;
    display: grid; place-items: center;
    font-size: 0.85rem; font-weight: 800; color: #14532d;
    background: linear-gradient(135deg, #fde047, #f5b400);
    border-radius: 50%;
    box-shadow: 0 8px 18px -4px rgba(245, 180, 0, 0.6);
}

/* Icon medallion — gradient ring + glass core */
.oya-step__icon {
    width: 96px; height: 96px;
    margin: 0 auto 1.4rem;
    border-radius: 26px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #22c55e, #15803d);
    box-shadow: 0 16px 34px -10px var(--oya-green-glow),
                inset 0 2px 4px rgba(255, 255, 255, 0.35),
                inset 0 -6px 12px rgba(0, 0, 0, 0.18);
    transform: translateZ(30px);
    position: relative;
}
.oya-step__icon::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.55), transparent 55%);
}
.oya-step__icon svg { width: 46px; height: 46px; position: relative; z-index: 1; }
.oya-step__icon svg path,
.oya-step__icon svg circle,
.oya-step__icon svg line { stroke-linecap: round; stroke-linejoin: round; }

.oya-step:hover .oya-step__icon { animation: oyaIconPop 0.6s ease; }
@keyframes oyaIconPop {
    0% { transform: translateZ(30px) scale(1) rotate(0); }
    45% { transform: translateZ(48px) scale(1.08) rotate(-4deg); }
    100% { transform: translateZ(30px) scale(1) rotate(0); }
}

.oya-step__title {
    font-weight: 800; font-size: 1.2rem;
    color: #14532d; margin-bottom: 0.5rem; letter-spacing: -0.01em;
}
.oya-step__desc { color: #3f6a4e; font-size: 0.96rem; line-height: 1.55; }

/* Animated dashed stroke on the step icons when revealed */
.oya-in .oya-step__icon svg .draw {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: oyaDraw 1.1s 0.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes oyaDraw { to { stroke-dashoffset: 0; } }

/* ============================================================
   Premium buttons — shine sweep
   ============================================================ */
.oya-shine { position: relative; overflow: hidden; }
.oya-shine::before {
    content: "";
    position: absolute; top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}
.oya-shine:hover::before { left: 130%; }

/* Section-heading gradient shimmer accent */
.oya-shimmer {
    background: linear-gradient(100deg, #14532d 30%, #22c55e 50%, #14532d 70%);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: oyaShimmer 5s linear infinite;
}
@keyframes oyaShimmer { to { background-position: 200% center; } }

/* Softer, branded scrollbar */
@media (pointer: fine) {
    html::-webkit-scrollbar { width: 11px; }
    html::-webkit-scrollbar-track { background: #f1f5f2; }
    html::-webkit-scrollbar-thumb {
        background: linear-gradient(#22c55e, #15803d);
        border-radius: 20px; border: 2px solid #f1f5f2;
    }
}

/* ============================================================
   Oya assistant section — glass panel, chat mockup, feature cards
   ============================================================ */
.oya-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}
.oya-panel::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(120% 90% at 100% 0%, rgba(34, 197, 94, 0.10), transparent 55%);
    pointer-events: none;
}

/* Chat mockup */
.oya-chat__bar { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; }
.oya-chat__brand {
    width: 34px; height: 34px; border-radius: 11px;
    display: grid; place-items: center; color: #fff; font-weight: 800;
    background: linear-gradient(145deg, #22c55e, #15803d);
    box-shadow: 0 8px 16px -6px var(--oya-green-glow), inset 0 2px 3px rgba(255, 255, 255, 0.3);
}
.oya-chat__name { font-weight: 800; color: #14532d; line-height: 1.1; }
.oya-chat__status { font-size: 0.72rem; color: #16a34a; display: flex; align-items: center; gap: 5px; }
.oya-chat__status::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e; box-shadow: 0 0 0 0 var(--oya-green-glow);
    animation: oyaLiveDot 2s infinite;
}
@keyframes oyaLiveDot { 0% { box-shadow: 0 0 0 0 var(--oya-green-glow); } 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.oya-bubble {
    max-width: 86%; padding: 0.8rem 1.05rem; font-size: 0.92rem; line-height: 1.5;
    margin-bottom: 0.85rem; border-radius: 20px;
    opacity: 0; transform: translateY(12px);
    animation: oyaBubbleIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.oya-bubble--user {
    margin-left: auto; color: #fff; border-bottom-right-radius: 6px;
    background: linear-gradient(135deg, #22c55e, #15803d);
    box-shadow: 0 10px 22px -10px var(--oya-green-glow);
}
.oya-bubble--oya {
    background: #fff; color: #24303a; border: 1px solid #eef3ef; border-bottom-left-radius: 6px;
    box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.2);
}
.oya-bubble:nth-child(2) { animation-delay: 0.15s; }
.oya-bubble:nth-child(3) { animation-delay: 0.5s; }
.oya-bubble:nth-child(4) { animation-delay: 0.85s; }
@keyframes oyaBubbleIn { to { opacity: 1; transform: none; } }

.oya-shopcard {
    display: flex; align-items: center; gap: 0.7rem;
    background: #f6faf7; border: 1px solid #e8f1ea; border-radius: 14px;
    padding: 0.6rem 0.8rem; margin-top: 0.5rem;
}
.oya-shopcard__ic {
    width: 34px; height: 34px; border-radius: 10px; flex: none;
    display: grid; place-items: center; color: #15803d;
    background: linear-gradient(145deg, #dcfce7, #bbf7d0);
}

/* Waveform (voice) indicator */
.oya-wave { display: inline-flex; align-items: center; gap: 3px; height: 18px; }
.oya-wave span {
    width: 3px; border-radius: 3px; background: currentColor;
    animation: oyaWave 1s ease-in-out infinite;
}
.oya-wave span:nth-child(1) { height: 40%; animation-delay: 0s; }
.oya-wave span:nth-child(2) { height: 90%; animation-delay: 0.15s; }
.oya-wave span:nth-child(3) { height: 60%; animation-delay: 0.3s; }
.oya-wave span:nth-child(4) { height: 100%; animation-delay: 0.45s; }
.oya-wave span:nth-child(5) { height: 50%; animation-delay: 0.6s; }
@keyframes oyaWave { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }

/* Feature cards */
.oya-feature {
    display: flex; gap: 1rem; align-items: flex-start;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.45));
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px; padding: 1.3rem 1.4rem;
    box-shadow: 0 12px 34px -18px rgba(12, 45, 27, 0.3);
    transform-style: preserve-3d;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    will-change: transform;
}
.oya-feature:hover { box-shadow: 0 26px 50px -20px rgba(12, 45, 27, 0.4); }
.oya-feature__icon {
    flex: none; width: 54px; height: 54px; border-radius: 16px;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(145deg, #22c55e, #15803d);
    box-shadow: 0 12px 24px -8px var(--oya-green-glow),
                inset 0 2px 3px rgba(255, 255, 255, 0.35),
                inset 0 -4px 8px rgba(0, 0, 0, 0.16);
    transform: translateZ(24px);
}
.oya-feature__icon svg { width: 27px; height: 27px; stroke-linecap: round; stroke-linejoin: round; }
.oya-feature__title { font-weight: 800; color: #14532d; font-size: 1.06rem; margin-bottom: 0.25rem; }
.oya-feature__desc { color: #45694f; font-size: 0.9rem; line-height: 1.55; }

/* ---------- Respect user motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
    .oya-bubble { opacity: 1 !important; transform: none !important; animation: none !important; }
    .oya-chat__status::before, .oya-wave span { animation: none !important; }
    .oya-feature { transition: none !important; }
    .oya-aurora span,
    .oya-step:hover .oya-step__icon,
    .oya-shimmer,
    .oya-in .oya-step__icon svg .draw { animation: none !important; }
    .oya-reveal { opacity: 1 !important; transform: none !important; }
    .oya-step { transition: none !important; }
}
