/* Extracted verbatim from how-blockchain-works.html — OpenWord Web3 Card inline <style> */
.ow-web3-card-wrapper {
    max-width: 500px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ow-web3-card-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes ow-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ow-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ow-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes ow-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes ow-gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.ow-card-container {
    position: relative;
    width: 100%;
    animation: ow-fadeInUp 0.8s ease-out;
}

.ow-card {
    position: relative;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.25);
}

.ow-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #6366F1, #8B5CF6, #d73743, #6366F1);
    background-size: 300% 300%;
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: ow-gradientShift 4s ease infinite;
}

.ow-card:hover::before {
    opacity: 1;
}

.ow-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.ow-content-wrapper {
    position: relative;
    z-index: 2;
}

.ow-icon-wrapper {
    margin: 0 auto 2rem auto;
    width: 80px;
    height: 80px;
    position: relative;
    animation: ow-float 3s ease-in-out infinite;
}

.ow-icon-svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.ow-card:hover .ow-icon-svg {
    transform: rotate(5deg) scale(1.1);
}

.ow-icon-svg path {
    stroke: url(#owIconGradient);
    stroke-width: 2;
    fill: none;
    transition: all 0.3s ease;
}

.ow-card:hover .ow-icon-svg path {
    stroke-width: 2.5;
}

.ow-card h2 {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    animation: ow-fadeIn 0.8s ease-out 0.2s both;
    line-height: 1.2;
}

.ow-card p {
    font-family: inherit;
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
    animation: ow-fadeIn 0.8s ease-out 0.4s both;
}

.ow-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #d73743 0%, #e74c59 50%, #c12f3a 100%);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px -3px rgba(215, 55, 67, 0.4);
    position: relative;
    overflow: hidden;
    animation: ow-fadeIn 0.8s ease-out 0.6s both, ow-pulse 2s ease-in-out infinite;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1;
    border: none;
    cursor: pointer;
}

.ow-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.ow-cta-button:hover::before {
    left: 100%;
}

.ow-cta-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px -3px rgba(215, 55, 67, 0.6);
    background: linear-gradient(135deg, #c12f3a 0%, #d73743 50%, #a92832 100%);
}

.ow-corner-accent {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(215, 55, 67, 0.2) 0%, rgba(139, 92, 246, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: ow-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .ow-web3-card-wrapper *,
    .ow-web3-card-wrapper *::before,
    .ow-web3-card-wrapper *::after {
        animation: none !important;
        transition: none !important;
    }
}

.ow-cta-button:focus-visible {
    outline: 3px solid #d73743;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .ow-card {
        padding: 2rem;
    }
    .ow-card h2 {
        font-size: 1.5rem;
    }
    .ow-icon-wrapper {
        width: 60px;
        height: 60px;
    }
}
