/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #6B46C1;
    --secondary-color: #EC4899;
    --accent-color: #10B981;
    --dark-bg: #0F172A;
    --light-bg: #F8FAFC;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background-color: var(--light-bg);
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-content {
    text-align: center;
    color: white;
}

.train-loader {
    width: 100px;
    height: 50px;
    position: relative;
    margin: 0 auto 20px;
}

.train {
    width: 50px;
    height: 20px;
    background: linear-gradient(90deg, #6B46C1, #EC4899);
    border-radius: 10px;
    position: absolute;
    top: 10px;
    animation: train-move 2s ease-in-out infinite;
}

.track {
    width: 100px;
    height: 4px;
    background: #333;
    position: absolute;
    bottom: 10px;
    border-radius: 2px;
}

@keyframes train-move {
    0%, 100% { left: 0; }
    50% { left: 50px; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--gradient-1);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: var(--transition-bounce);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(107, 70, 193, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--dark-bg);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle-system {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(107, 70, 193, 0.3) 0%, transparent 70%);
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.7) 0%,
        rgba(107, 70, 193, 0.4) 50%,
        rgba(15, 23, 42, 0.8) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

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

.digital-clock {
    display: inline-block;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(16, 185, 129, 0.5);
    border-radius: 15px;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#clock-time {
    font-size: 2rem;
    font-weight: 300;
    color: #10B981;
    font-family: monospace;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.clock-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.title-line-1,
.title-line-2,
.title-line-3 {
    display: block;
    animation: slideInLeft 0.8s ease-out backwards;
}

.title-line-2 {
    animation-delay: 0.2s;
    background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 50%, #FF8E53 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 107, 107, 0.5);
}

.title-line-3 {
    animation-delay: 0.4s;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.primary-button {
    background: var(--gradient-2);
    color: white;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.4);
}

.secondary-button {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.button-icon {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    animation: float 3s ease-in-out infinite;
}

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

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 25px;
    margin: 0 auto 10px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel-scroll 2s infinite;
}

@keyframes wheel-scroll {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 30px; }
}

/* Problem Section */
.problem-section {
    padding: 5rem 0;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.problem-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.problem-card[data-problem="1"] { animation-delay: 0.1s; }
.problem-card[data-problem="2"] { animation-delay: 0.2s; }
.problem-card[data-problem="3"] { animation-delay: 0.3s; }

.problem-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: shake 2s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.problem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Solution Section */
.solution-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
}

.solution-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.solution-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.solution-features {
    display: grid;
    gap: 1rem;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    font-weight: bold;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: white;
}

.features-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--light-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.feature-card.large {
    grid-column: span 2;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.feature-image {
    height: 250px;
    background: var(--gradient-3);
    position: relative;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(50%, 50%) rotate(360deg); }
}

.train-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.office-image {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.lunch-image {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.avatar-image {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.feature-content {
    padding: 2rem;
}

.feature-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Benefits Section */
.benefits-section {
    padding: 5rem 0;
    background: var(--dark-bg);
    color: white;
    position: relative;
    overflow: hidden;
}

.benefits-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.benefits-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.benefits-section .container {
    position: relative;
    z-index: 2;
}

.benefits-section .section-title {
    color: white;
}

.benefits-section .section-title::after {
    background: var(--gradient-2);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.benefit-item {
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.2s; }
.benefit-item:nth-child(3) { animation-delay: 0.3s; }

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

.benefit-number {
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.benefit-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.8);
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.pricing-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.pricing-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.05;
}

.pricing-section .container {
    position: relative;
    z-index: 2;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    background: var(--gradient-1);
    color: white;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.currency {
    font-size: 1.5rem;
    margin-right: 0.25rem;
}

.period {
    font-size: 1rem;
    font-weight: normal;
    margin-left: 0.5rem;
}

.contact {
    font-size: 1.5rem;
    font-weight: 600;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pricing-card.featured .plan-features li {
    border-color: rgba(255, 255, 255, 0.2);
}

.plan-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.pricing-card:not(.featured) .plan-button {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.pricing-card:not(.featured) .plan-button:hover {
    background: var(--primary-color);
    color: white;
}

.pricing-card.featured .plan-button {
    background: white;
    color: var(--primary-color);
}

.pricing-card.featured .plan-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.demo-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.demo-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.submit-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    background: var(--secondary-color);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-button:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3);
}

.arrow {
    transition: transform 0.3s ease;
}

.submit-button:hover .arrow {
    transform: translateX(5px);
}

.form-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.link-column ul {
    list-style: none;
}

.link-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
    padding: 0.25rem 0;
}

.link-column a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-card.large {
        grid-column: span 1;
    }
    
    .demo-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Loading state removal */
body.loaded #loading-screen {
    opacity: 0;
    pointer-events: none;
}

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}
