* {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
}

body {
    background: #f8f9fb;
    position: relative;
    min-height: 100vh;
}

.main-gradient {
    background: linear-gradient(180deg,
        #ffffff 0%,
        #f8f9fb 20%,
        #e8ecf4 100%);
}

.dark-section {
    background: linear-gradient(135deg,
        #1a1f2e 0%,
        #2d3244 50%,
        #1a1f2e 100%);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.08),
        0 2px 8px rgba(31, 38, 135, 0.04);
}

.glass-dark {
    background: rgba(26, 31, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.neu-card {
    background: linear-gradient(145deg, #ffffff, #e6e9ef);
    box-shadow:
        20px 20px 60px #d1d5db,
        -20px -20px 60px #ffffff;
    border-radius: 20px;
}

.neu-pressed {
    background: linear-gradient(145deg, #e6e9ef, #ffffff);
    box-shadow:
        inset 5px 5px 10px #d1d5db,
        inset -5px -5px 10px #ffffff;
}

.soft-shadow {
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.04);
}

.soft-shadow-lg {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 5px 20px rgba(0, 0, 0, 0.05);
}

.neon-text {
    text-shadow: 0 0 20px rgba(147, 51, 234, 0.5);
}

.market-ticker {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    height: 45px;
    background: linear-gradient(90deg, #ffffff 0%, #f8f9fb 100%);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    z-index: 40;
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: scale(1.03);
}

.ticker-content {
    display: flex;
    align-items: center;
    height: 100%;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin: 0 30px;
    font-size: 14px;
}

.ticker-item.up {
    color: #10b981;
    font-weight: 500;
}
.ticker-item.down {
    color: #ef4444;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
        -webkit-text-size-adjust: 100%;
        min-height: 100vh;
        overflow-x: hidden;
    }

    .container {
        padding: 0 12px;
    }

    .market-ticker,
    .floating-number,
    .candlestick,
    .chart-line,
    .hidden-mobile {
        display: none !important;
    }

    h1 {
        font-size: 1.1rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 1rem !important;
    }

    h3 {
        font-size: 0.95rem !important;
    }

    .text-4xl {
        font-size: 1.1rem !important;
    }

    .text-3xl {
        font-size: 1rem !important;
    }

    .text-2xl {
        font-size: 0.95rem !important;
    }

    .text-xl {
        font-size: 0.875rem !important;
    }

    .text-base {
        font-size: 0.8rem !important;
    }

    .text-sm {
        font-size: 0.75rem !important;
    }

    section {
        padding: 0.5rem 0 !important;
    }

    .main-gradient {
        padding-top: 4.5rem !important;
        padding-bottom: 1rem !important;
        min-height: 100vh !important;
    }

    .glass-card,
    .neu-card {
        border-radius: 12px !important;
        padding: 0.5rem !important;
    }

    .glass-card.rounded-2xl {
        padding: 0.75rem !important;
    }

    button {
        min-height: 44px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    input {
        min-height: 44px !important;
        font-size: 16px !important;
    }

    .btn-primary {
        padding: 0.875rem 1rem !important;
        min-height: 48px !important;
    }

    .mb-3 {
        margin-bottom: 0.5rem !important;
    }

    .mb-4 {
        margin-bottom: 0.75rem !important;
    }

    .py-1 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .hidden-mobile {
        display: none !important;
    }

    .glass-card.rounded-2xl {
        margin-bottom: 1rem !important;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.floating-number {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    opacity: 0;
    animation: float-up 8s linear infinite;
    color: rgba(34, 197, 94, 0.6);
}

@keyframes float-up {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px);
    }
}

.chart-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    overflow: hidden;
    pointer-events: none;
}

.chart-line {
    position: absolute;
    bottom: 30%;
    left: -100%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(34, 197, 94, 0.8) 25%,
        rgba(239, 68, 68, 0.8) 50%,
        rgba(59, 130, 246, 0.8) 75%,
        transparent 100%);
    animation: chart-flow 15s linear infinite;
}

.chart-line::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 200px;
    background: inherit;
    filter: blur(50px);
    opacity: 0.5;
}

@keyframes chart-flow {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(25%) translateY(-20px); }
    50% { transform: translateX(50%) translateY(10px); }
    75% { transform: translateX(75%) translateY(-30px); }
    100% { transform: translateX(100%) translateY(0); }
}

.candlestick {
    position: absolute;
    width: 8px;
    background: linear-gradient(180deg, #22c55e 0%, #ef4444 100%);
    opacity: 0.1;
    animation: candle-move 10s linear infinite;
}

.candlestick:nth-child(1) { left: 10%; height: 60px; bottom: 20%; animation-delay: 0s; }
.candlestick:nth-child(2) { left: 25%; height: 80px; bottom: 25%; animation-delay: 2s; }
.candlestick:nth-child(3) { left: 40%; height: 100px; bottom: 15%; animation-delay: 4s; }
.candlestick:nth-child(4) { left: 55%; height: 70px; bottom: 30%; animation-delay: 6s; }
.candlestick:nth-child(5) { left: 70%; height: 90px; bottom: 22%; animation-delay: 8s; }
.candlestick:nth-child(6) { left: 85%; height: 65px; bottom: 28%; animation-delay: 10s; }

@keyframes candle-move {
    0%, 100% { transform: scaleY(1); opacity: 0.1; }
    50% { transform: scaleY(1.3); opacity: 0.3; }
}

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

.gradient-text-gold {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow:
        0 20px 40px rgba(31, 38, 135, 0.15),
        0 10px 20px rgba(31, 38, 135, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.4),
        0 2px 5px rgba(102, 126, 234, 0.2);
    color: white;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(102, 126, 234, 0.5),
        0 3px 8px rgba(102, 126, 234, 0.3);
}

.pulse-dot {
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3s steps(40, end);
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@media (max-width: 768px) {
    .hero-gradient {
        background-attachment: scroll;
    }

    h1 {
        line-height: 1.3;
    }

    .cyber-border {
        padding: 1rem;
    }

    .market-ticker {
        font-size: 12px;
    }

    .ticker-item {
        margin: 0 15px;
    }

    .floating-number {
        display: none;
    }

    .candlestick {
        display: none;
    }

    #analyzing, #complete {
        padding: 1rem;
    }

    .text-4xl {
        font-size: 1.75rem;
    }

    .text-3xl {
        font-size: 1.5rem;
    }
}