/* ═══════════════════════════════════════════════════════════
   services-enhanced.css
   Premium visual enhancements for Neu Ink LP
   ═══════════════════════════════════════════════════════════ */

/* ── Animated Gradient Mesh (Hero Background) ── */
.hero-gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-gradient-mesh::before,
.hero-gradient-mesh::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    animation: mesh-float 15s ease-in-out infinite;
}

.hero-gradient-mesh::before {
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.hero-gradient-mesh::after {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    bottom: -200px;
    left: -100px;
    animation-delay: -7s;
}

[data-theme="dark"] .hero-gradient-mesh::before {
    opacity: 0.08;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

[data-theme="dark"] .hero-gradient-mesh::after {
    opacity: 0.06;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
}

@keyframes mesh-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Third mesh orb */
.hero-gradient-mesh .mesh-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.08;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: mesh-pulse 12s ease-in-out infinite;
}

@keyframes mesh-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.08;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.05;
    }
}

/* ── Hero Enhancements ── */
.services-hero {
    position: relative;
    overflow: hidden;
}

.services-hero>.container {
    position: relative;
    z-index: 1;
}

.services-hero h1 .gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .services-hero h1 .gradient-text {
    background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Step anchor nav in hero */
.hero-steps-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-steps-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    border: 1px solid var(--stroke-struct);
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-sub);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .hero-steps-nav a {
    background: rgba(255, 255, 255, 0.05);
}

.hero-steps-nav a:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.hero-steps-nav .step-num {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    opacity: 0.6;
}

/* ── Phase/Step Card Enhancements ── */
.phase-section {
    position: relative;
}

/* Gradient left accent */
.phase-section .phase-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.phase-section .phase-content {
    position: relative;
    padding-left: 1.5rem;
}

.phase-section.revealed .phase-content::before {
    opacity: 1;
}

/* Step-specific accent colors */
.phase-section[data-step="00"] .phase-content::before {
    background: linear-gradient(180deg, #6b7280, #9ca3af);
}

.phase-section[data-step="01"] .phase-content::before {
    background: linear-gradient(180deg, #667eea, #764ba2);
}

.phase-section[data-step="02"] .phase-content::before {
    background: linear-gradient(180deg, #43e97b, #38f9d7);
}

.phase-section[data-step="03"] .phase-content::before {
    background: linear-gradient(180deg, #D4AF37, #F0D060);
}

/* ── CTA Button Enhancements ── */
.cta-primary {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%) !important;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .cta-primary {
    background: linear-gradient(135deg, #f0f0f0 0%, #d4d4d4 100%) !important;
}

.cta-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.cta-primary:hover::after {
    left: 100%;
}

.cta-secondary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--text-main);
    z-index: -1;
    transition: width 0.3s ease;
    border-radius: inherit;
}

.cta-secondary:hover::before {
    width: 100%;
}

.cta-secondary:hover {
    color: var(--bg-base) !important;
}

/* Floating CTA Pulse */
.floating-cta a {
    position: relative;
}

.floating-cta a::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: var(--text-main);
    opacity: 0;
    z-index: -1;
    animation: cta-pulse 2s ease-in-out infinite;
}

@keyframes cta-pulse {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 0.15;
        transform: scale(1.08);
    }
}

/* ── Glassmorphism Pricing Cards (Neu Chat) ── */
.neu-chat-grid>div {
    backdrop-filter: blur(12px) !important;
    background: rgba(245, 245, 247, 0.7) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

[data-theme="dark"] .neu-chat-grid>div {
    background: rgba(16, 24, 40, 0.6) !important;
}

.neu-chat-grid>div:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="dark"] .neu-chat-grid>div:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
}

/* Recommended card glow */
.neu-chat-grid>div:nth-child(3) {
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15) !important;
}

.neu-chat-grid>div:nth-child(3):hover {
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.25) !important;
}

/* ── FAQ Section ── */
.faq-section {
    padding: 6rem 0;
    background: var(--bg-card);
}

.faq-section .section-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--stroke-struct);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: 'Noto Sans JP', sans-serif;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #667eea;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 0 1.5rem;
    color: var(--text-sub);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ── Scroll Reveal Animations ── */
/* Only hide elements when JS has confirmed it's ready (body.sr-ready) */
body.sr-ready .scroll-reveal-enhanced {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.sr-ready .scroll-reveal-enhanced.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for children */
body.sr-ready .scroll-reveal-enhanced:nth-child(2) {
    transition-delay: 0.1s;
}

body.sr-ready .scroll-reveal-enhanced:nth-child(3) {
    transition-delay: 0.2s;
}

body.sr-ready .scroll-reveal-enhanced:nth-child(4) {
    transition-delay: 0.3s;
}

/* Phase visual enhanced animation */
body.sr-ready .scroll-reveal-enhanced .phase-visual {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

body.sr-ready .scroll-reveal-enhanced.revealed .phase-visual {
    opacity: 1;
    transform: scale(1);
}

/* ── Social Proof Counter Animation ── */
.proof-number {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.proof-section.revealed .proof-number {
    opacity: 1;
}

/* ── Vision Card Enhancements ── */
.vision-card {
    position: relative;
    overflow: hidden;
}

.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ── Index.html Partnership Cards ── */
.partnership-enhanced .neu-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.partnership-enhanced .neu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .partnership-enhanced .neu-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.partnership-enhanced .neu-card:nth-child(3) {
    border-top-color: #667eea !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
}

.partnership-enhanced .neu-card:nth-child(3)::after {
    content: 'おすすめ';
    position: absolute;
    top: 12px;
    right: 12px;
    background: #667eea;
    color: #fff;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 768px) {

    .hero-gradient-mesh::before,
    .hero-gradient-mesh::after {
        width: 300px;
        height: 300px;
        filter: blur(80px);
    }

    .hero-gradient-mesh .mesh-orb {
        width: 200px;
        height: 200px;
        filter: blur(60px);
    }

    .hero-steps-nav {
        gap: 0.5rem;
    }

    .hero-steps-nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.72rem;
    }

    .phase-section .phase-content {
        padding-left: 1rem;
    }

    .faq-question {
        font-size: 0.9rem;
        padding: 1.2rem 0;
    }

    .faq-answer p {
        font-size: 0.85rem;
    }
}