/* ===== Animations ===== */
@keyframes breathing {
    0%, 100% {
        box-shadow: 0 0 10px rgba(74, 144, 226, 0.7),
                   0 0 20px rgba(74, 144, 226, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(74, 144, 226, 0.9),
                   0 0 40px rgba(74, 144, 226, 0.5);
        transform: scale(1.02);
    }
}

/* ===== Base Styles ===== */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a202c 0%, #0a0a0a 100%);
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    padding-bottom: 5rem;
    background-attachment: fixed;
    background-size: cover;
}

/* ===== Action Button ===== */
.action-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background: linear-gradient(135deg, #4A90E2, #3b82f6);
    color: white;
    border: none;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    animation: breathing 2.5s infinite ease-in-out;
    position: relative;
    overflow: hidden;
}

.action-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s;
}

.action-btn:hover::after {
    opacity: 0.4;
}

/* ===== Buffer Page Styles ===== */
.buffer-page {
    background: radial-gradient(circle at top left, #1a202c 0%, #0a0a0a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.buffer-content-wrapper {
    max-width: 380px;
    width: 100%;
    background-color: rgba(23, 37, 84, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    border-radius: 1.5rem;
    padding: 1.5rem;
    animation: fadeInScale 0.8s ease-out;
}

.buffer-headline {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(45deg, #a78bfa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.75rem;
}

.buffer-subheadline {
    font-size: 1.125rem;
    color: #bfdbfe;
    margin-bottom: 2rem;
}

.buffer-cta-btn {
    background-image: linear-gradient(to right, #2563eb, #6d28d9);
    transition: all 0.3s ease;
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.5);
}

.buffer-cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.7);
}

/* ===== Main Page Styles ===== */
.lp-container {
    max-width: 380px;
    width: 100%;
    padding: 0.5rem;
    background-color: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(63, 81, 181, 0.4);
    box-shadow: 0 0 20px rgba(63, 81, 181, 0.3);
    border-radius: 0.75rem;
    margin-top: 4rem;
    margin-bottom: 1rem;
}

/* ===== Hero Section ===== */
.hero-header {
    width: 100%;
    height: 210px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/0250616015730.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 0.75rem 0.75rem 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.hero-content {
    position: relative;
    z-index: 20;
    text-align: center;
    width: 100%;
    padding: 0 0.5rem;
}

.hero-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 4px solid #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
    margin-bottom: 8px;
    object-fit: cover;
    animation: pulse-border-glow 3s infinite ease-in-out;
}

/* ===== Fixed Headers ===== */
.fixed-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(15, 23, 42, 0.95);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(63, 81, 181, 0.4);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.fixed-top-bar .button {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    max-width: 140px;
}

.logo-name-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-name-group img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #00ffff;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.4);
}

.logo-name-group p {
    font-size: 1rem;
    background: linear-gradient(45deg, #00ffff, #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.fixed-bottom-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(15, 23, 42, 0.95);
    padding: 0.75rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.bottom-cta-btn {
    display: block;
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, #3b82f6, #6366f1);
    color: white;
    font-weight: bold;
    border-radius: 9999px;
    text-align: center;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.7), 0 0 16px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease-in-out;
}

.bottom-cta-btn:hover {
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.9), 0 0 20px rgba(99, 102, 241, 0.6);
    transform: translateY(-1px);
}

/* ===== Main Content ===== */
.main-content {
    text-align: center;
    padding: 0.75rem;
}

.headline-section {
    margin-bottom: 1rem;
}

.main-headline {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-shadow: 0 0 5px rgba(99, 102, 241, 0.7), 0 0 10px rgba(99, 102, 241, 0.4);
    margin-top: 0.5rem;
}

.sub-headline {
    font-size: 0.875rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

/* ===== Sections ===== */
.testimonials-section, .community-section, .chat-section {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: linear-gradient(to bottom right, #4c1d95, #1e3a8a);
    border-radius: 0.75rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.community-section {
    background: linear-gradient(to bottom right, #1e40af, #0f766e);
}

.chat-section {
    background: linear-gradient(to bottom right, #374151, #111827);
    border: 1px solid rgba(107, 114, 128, 0.5);
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(99, 102, 241, 0.7), 0 0 10px rgba(99, 102, 241, 0.4);
}

/* ===== Community Counter ===== */
.community-counter {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 7px rgba(0, 255, 255, 0.7), 0 0 10px rgba(0, 255, 255, 0.4);
    transition: all 0.5s ease-out;
}

.community-text {
    font-size: 0.875rem;
    color: #d1d5db;
    margin-top: 0.25rem;
}

/* ===== Benefits Section ===== */
.benefits-section {
    text-align: left;
    margin: 0 auto 1rem;
    font-size: 0.875rem;
}

.benefits-section p {
    color: #e5e7eb;
    margin-bottom: 0.5rem;
}

.highlight-text {
    font-weight: 600;
    background: linear-gradient(45deg, #818cf8, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* ===== Chat Window ===== */
.chat-window {
    height: 160px;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 0.6rem;
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.chat-message {
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    max-width: 90%;
    word-wrap: break-word;
    font-size: 0.8rem;
    animation: fadeIn 0.4s ease-out;
    color: white;
}

.chat-message.user {
    background-color: #2b6cb0;
    align-self: flex-end;
    margin-left: auto;
}

.chat-message.misaki-yuta {
    background-color: #4f46e5;
    align-self: flex-start;
    margin-right: auto;
}

/* ===== Testimonials ===== */
.testimonial-container {
    position: relative;
    height: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-item {
    position: absolute;
    width: 100%;
    padding: 0.6rem;
    background-color: rgba(45, 55, 72, 0.8);
    border-radius: 0.6rem;
    border: 1px solid rgba(59, 130, 246, 0.4);
    opacity: 0;
    transition: opacity 1s ease-in-out;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.8rem;
}

.testimonial-item.active {
    opacity: 1;
}

/* ===== Images ===== */
.description-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    object-fit: cover;
}

.avatar-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.7);
    margin-bottom: 1.5rem;
    object-fit: cover;
    animation: pulse-border-glow 3s infinite ease-in-out;
}

/* ===== Final CTA ===== */
.final-cta-text {
    font-size: 1rem;
    color: #f3f4f6;
    margin-top: 1rem;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(99, 102, 241, 0.7), 0 0 10px rgba(99, 102, 241, 0.4);
}

/* ===== Footer ===== */
.footer {
    margin-top: 1.5rem;
}

.copyright {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
}

.footer-links {
    text-align: center;
    font-size: 0.625rem;
    color: #d1d5db;
    margin-top: 0.25rem;
}

.footer-link {
    text-decoration: underline;
    margin: 0 0.25rem;
}

/* ===== Utility Classes ===== */
.pro-glow {
    text-shadow: 0 0 5px rgba(99, 102, 241, 0.7), 0 0 10px rgba(99, 102, 241, 0.4);
}

.pro-button-glow {
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.7), 0 0 16px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease-in-out;
}

.pro-button-glow:hover {
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.9), 0 0 20px rgba(99, 102, 241, 0.6);
    transform: translateY(-1px);
}

.elegant-gradient {
    background: linear-gradient(45deg, #818cf8, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* ===== Mobile Optimizations ===== */
/* Smooth scrolling for better mobile experience */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Better focus styles for mobile */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Prevent text selection on interactive elements */
button,
a {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
}

/* Improve form inputs on mobile */
input,
textarea,
select {
    font-size: 16px; /* Prevent zoom on iOS */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Safe area support for notched devices */
@supports (padding-top: env(safe-area-inset-top)) {
    .fixed-top-bar {
        padding-top: calc(0.5rem + env(safe-area-inset-top));
    }
    
    .fixed-bottom-cta {
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }
}

/* Improve readability with better contrast */
@media (prefers-contrast: high) {
    .chat-message {
        border: 1px solid currentColor;
    }
    
    .pro-button-glow {
        border: 2px solid white;
    }
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0a0a0a, #1a0f2a);
    }
}

/* Reduce animations for better performance on low-end devices */
@media (max-width: 640px) and (max-device-memory: 4) {
    * {
        animation-duration: 0.3s !important;
    }
    
    .hero-avatar,
    .avatar-image {
        animation: none;
    }
}

/* ===== Investment Warning Section ===== */
.investment-warning {
    margin: 1.5rem 0;
    padding: 0 0.5rem;
}

.warning-banner {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(234, 179, 8, 0.15));
    border: 2px solid rgba(239, 68, 68, 0.6);
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
    animation: subtle-pulse 3s infinite;
}

@keyframes subtle-pulse {
    0%, 100% { 
        border-color: rgba(239, 68, 68, 0.6);
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
    }
    50% { 
        border-color: rgba(251, 191, 36, 0.6);
        box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
    }
}

.warning-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.warning-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.warning-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #fde68a;
}

.warning-link {
    color: #60a5fa;
    text-decoration: underline;
    transition: color 0.2s;
}

.warning-link:hover {
    color: #93c5fd;
}

/* Mobile optimization for warning */
@media (max-width: 640px) {
    .warning-banner {
        padding: 1rem;
    }
    
    .warning-icon {
        font-size: 1.5rem;
    }
    
    .warning-title {
        font-size: 1rem;
    }
    
    .warning-text {
        font-size: 0.8rem;
    }
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(17, 24, 39, 0.98);
    border-top: 2px solid rgba(59, 130, 246, 0.5);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 0.25rem;
}

.cookie-description {
    font-size: 0.875rem;
    color: #d1d5db;
    line-height: 1.5;
}

.cookie-link {
    color: #93c5fd;
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-link:hover {
    color: #dbeafe;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    min-width: 100px;
}

.cookie-btn-accept {
    background: linear-gradient(to right, #3b82f6, #6366f1);
    color: white;
}

.cookie-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.cookie-btn-reject {
    background-color: transparent;
    color: #9ca3af;
    border: 1px solid #4b5563;
}

.cookie-btn-reject:hover {
    background-color: rgba(75, 85, 99, 0.2);
    color: #d1d5db;
}

/* Mobile optimization for cookie banner */
@media (max-width: 640px) {
    .cookie-consent-banner {
        padding: 1rem;
    }
    
    .cookie-consent-content {
        gap: 1rem;
        justify-content: center;
        text-align: center;
    }
    
    .cookie-icon {
        font-size: 2rem;
    }
    
    .cookie-text {
        min-width: auto;
    }
    
    .cookie-title {
        font-size: 1rem;
    }
    
    .cookie-description {
        font-size: 0.8rem;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}
