/* ========================================
   Careverse Service Page - Stylesheet
   Dark Mode / Neon Accent / Medical Tech
   ======================================== */

/* === CSS Variables === */
:root {
    /* Dark Mode Colors */
    --bg-dark-primary: #0A0E27;
    --bg-dark-secondary: #111827;
    --bg-dark-tertiary: #1F2937;

    /* Neon Accent Colors */
    --neon-blue: #00A8E8;
    --neon-cyan: #00C9A7;
    --neon-purple: #9B59B6;
    --neon-pink: #E91E63;

    /* Text Colors */
    --text-light: #FFFFFF;
    --text-muted: #94A3B8;
    --text-secondary: #CBD5E1;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0052CC 0%, #00A8E8 50%, #00C9A7 100%);
    --gradient-glow: radial-gradient(circle, rgba(0, 168, 232, 0.3) 0%, transparent 70%);

    /* Effects */
    --glow-sm: 0 0 10px rgba(0, 168, 232, 0.5);
    --glow-md: 0 0 20px rgba(0, 168, 232, 0.6);
    --glow-lg: 0 0 40px rgba(0, 168, 232, 0.7);
    --box-shadow-neon: 0 0 20px rgba(0, 168, 232, 0.3);

    /* Typography */
    --font-primary: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --container-width: 1400px;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark-primary);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
}

/* === Medical Professional Verification Modal === */
.verification-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease;
}

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

.modal-content {
    background: var(--bg-dark-secondary);
    border: 2px solid rgba(0, 168, 232, 0.3);
    border-radius: 24px;
    padding: 60px 48px;
    max-width: 500px;
    text-align: center;
    box-shadow: var(--box-shadow-neon);
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-icon {
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.modal-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.btn-modal {
    padding: 16px 48px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.btn-yes {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: var(--glow-md);
}

.btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-lg);
}

.btn-no {
    background: transparent;
    color: var(--text-muted);
    border: 2px solid rgba(148, 163, 184, 0.3);
}

.btn-no:hover {
    border-color: rgba(148, 163, 184, 0.6);
    color: var(--text-secondary);
}

.modal-notice {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === Language Selector === */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-selector select {
    padding: 10px 16px;
    border: 2px solid rgba(0, 168, 232, 0.3);
    border-radius: 8px;
    background: var(--bg-dark-secondary);
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector select:hover {
    border-color: var(--neon-blue);
    box-shadow: var(--glow-sm);
}

/* === Navigation === */
.service-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 168, 232, 0.1);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo svg text {
    transition: fill 0.3s ease;
}

.nav-logo:hover svg text {
    fill: var(--neon-cyan);
    filter: drop-shadow(var(--glow-sm));
}

.btn-back {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.btn-back:hover {
    color: var(--text-light);
    border-color: rgba(0, 168, 232, 0.3);
    background: rgba(0, 168, 232, 0.05);
}

/* === Hero Section === */
.hero-service {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 168, 232, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 168, 232, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-greeting {
    font-size: 24px;
    font-weight: 400;
    color: var(--neon-cyan);
    margin-bottom: 16px;
    text-shadow: var(--glow-sm);
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.hero-title {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: slideInLeft 0.8s ease 0.2s both;
}

.neon-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--glow-md);
    filter: drop-shadow(var(--glow-sm));
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    animation: slideInLeft 0.8s ease 0.4s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    animation: slideInLeft 0.8s ease 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Hero Visual 3D === */
.hero-visual-3d {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.digital-body {
    position: relative;
    width: 400px;
    height: 600px;
}

.body-layer {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50% 50% 45% 45%;
    opacity: 0.3;
    animation: layerFloat 6s ease-in-out infinite;
}

.layer-1 {
    width: 200px;
    height: 300px;
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.3), transparent);
    border: 2px solid rgba(0, 168, 232, 0.5);
    animation-delay: 0s;
}

.layer-2 {
    width: 240px;
    height: 340px;
    background: linear-gradient(135deg, rgba(0, 201, 167, 0.2), transparent);
    border: 2px solid rgba(0, 201, 167, 0.4);
    animation-delay: 0.5s;
}

.layer-3 {
    width: 280px;
    height: 380px;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.2), transparent);
    border: 2px solid rgba(0, 82, 204, 0.3);
    animation-delay: 1s;
}

@keyframes layerFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
    50% { transform: translate(-50%, -50%) translateY(-20px); }
}

.scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    box-shadow: var(--glow-md);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { top: 0%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* === Mission Section === */
.mission-section {
    padding: 120px 0;
    background: var(--bg-dark-secondary);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-card {
    background: var(--bg-dark-primary);
    padding: 48px;
    border-radius: 20px;
    border: 1px solid rgba(0, 168, 232, 0.2);
    transition: all 0.4s ease;
}

.mission-card:hover {
    border-color: var(--neon-blue);
    box-shadow: var(--box-shadow-neon);
    transform: translateY(-4px);
}

.mission-card h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mission-card p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* === Products Overview === */
.products-overview {
    padding: 120px 0;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 80px;
}

.product-pathway {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.pathway-item {
    text-align: center;
    padding: 32px;
    background: rgba(0, 168, 232, 0.05);
    border: 2px solid rgba(0, 168, 232, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.pathway-item:hover {
    border-color: var(--neon-blue);
    box-shadow: var(--glow-sm);
    transform: translateY(-4px);
}

.pathway-icon {
    margin-bottom: 16px;
}

.pathway-item h4 {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 600;
}

.pathway-arrow {
    font-size: 28px;
    color: var(--neon-blue);
}

/* === Digital Products === */
.digital-products {
    padding: 120px 0;
    background: var(--bg-dark-secondary);
}

.products-grid-digital {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.digital-card {
    position: relative;
    background: var(--bg-dark-primary);
    border: 2px solid rgba(0, 168, 232, 0.2);
    border-radius: 24px;
    padding: 48px 36px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.digital-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.card-glow {
    position: absolute;
    inset: -100px;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.digital-card:hover .card-glow {
    opacity: 1;
}

.digital-card:hover {
    border-color: var(--neon-blue);
    box-shadow: var(--box-shadow-neon);
    transform: translateY(-8px);
}

.card-icon {
    margin-bottom: 24px;
}

.digital-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-light);
}

.digital-card > p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    padding-left: 28px;
    color: var(--text-secondary);
    font-size: 14px;
    position: relative;
    border-bottom: 1px solid rgba(0, 168, 232, 0.1);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    font-weight: 700;
}

/* === Research Section === */
.research-section {
    padding: 120px 0;
}

.research-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 1000px;
    margin: 80px auto 60px;
}

.research-stat {
    text-align: center;
    padding: 40px;
    background: var(--bg-dark-secondary);
    border-radius: 20px;
    border: 2px solid rgba(0, 168, 232, 0.2);
    transition: all 0.3s ease;
}

.research-stat:hover {
    border-color: var(--neon-blue);
    box-shadow: var(--glow-sm);
    transform: translateY(-4px);
}

.stat-big {
    font-size: 56px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.research-stat p {
    font-size: 16px;
    color: var(--text-muted);
}

.journal-logos {
    text-align: center;
    padding: 40px;
    background: rgba(0, 168, 232, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(0, 168, 232, 0.15);
}

.journal-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* === Platform Section === */
.platform-section {
    padding: 120px 0;
    background: var(--bg-dark-secondary);
}

.workflow-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 80px 0 60px;
}

.workflow-step {
    text-align: center;
    padding: 24px 32px;
    background: var(--bg-dark-primary);
    border: 2px solid rgba(0, 168, 232, 0.2);
    border-radius: 12px;
    min-width: 120px;
}

.workflow-step.highlight {
    border-color: var(--neon-blue);
    box-shadow: var(--glow-sm);
}

.step-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.workflow-step p {
    font-size: 13px;
    color: var(--text-muted);
}

.workflow-arrow {
    font-size: 24px;
    color: var(--neon-blue);
}

.platform-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.benefit-card {
    text-align: center;
    padding: 36px 28px;
    background: rgba(0, 168, 232, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(0, 168, 232, 0.2);
}

.benefit-card h4 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.benefit-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* === CTA Section === */
.cta-section {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.1) 0%, rgba(0, 168, 232, 0.05) 100%);
}

.cta-section h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.btn-cta {
    display: inline-block;
    padding: 20px 60px;
    background: var(--gradient-primary);
    color: var(--text-light);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    border-radius: 16px;
    box-shadow: var(--glow-md);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-lg);
}

/* === Footer === */
.service-footer {
    background: var(--bg-dark-tertiary);
    padding: 60px 0 32px;
    border-top: 1px solid rgba(0, 168, 232, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 28px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-light);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 168, 232, 0.1);
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

/* === Responsive Design === */
@media (max-width: 1200px) {
    .hero-visual-3d {
        right: 5%;
    }

    .digital-body {
        width: 300px;
        height: 450px;
    }
}

@media (max-width: 968px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-visual-3d {
        display: none;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .research-stats {
        grid-template-columns: 1fr;
    }

    .platform-benefits {
        grid-template-columns: 1fr;
    }

    .products-grid-digital {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 40px 32px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}
