/* CSS Variables for Theme */
:root {
    --bg-color: #0f172a; /* Slate 900 */
    --text-color: #f8fafc; /* Slate 50 */
    --text-muted: #94a3b8; /* Slate 400 */
    --primary-color: #8b5cf6; /* Violet 500 */
    --primary-hover: #7c3aed; /* Violet 600 */
    --secondary-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    
    --gradient-start: #a855f7;
    --gradient-end: #3b82f6;
    
    --font-main: 'Noto Sans JP', "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
    --transition-standard: all 0.3s ease;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-feature-settings: "palt" 1;
    letter-spacing: 0.02em;
    line-height: 1.75;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    word-break: normal;
    word-break: auto-phrase;
    line-break: strict;
}

:lang(en) {
    hyphens: auto;
    letter-spacing: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-standard);
}

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

/* Glassmorphism Utilities */
.glass {
    background: var(--secondary-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
    overflow-wrap: normal;
    word-break: auto-phrase;
    line-break: strict;
    text-wrap: balance;
    letter-spacing: 0.01em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-standard);
    border: none;
    white-space: nowrap;
    word-break: keep-all;
    line-break: strict;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #fff, #a855f7);
    -webkit-background-clip: text;
    color: transparent;
}

nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

nav a:not(.btn-small) {
    color: var(--text-muted);
    font-size: 0.95rem;
    white-space: nowrap;
    word-break: keep-all;
}

nav a:not(.btn-small):hover {
    color: var(--text-color);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
    text-wrap: balance;
}

.hero-line {
    display: block;
    overflow-wrap: normal;
    word-break: auto-phrase;
    line-break: strict;
    text-wrap: pretty;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    overflow-wrap: anywhere;
    word-break: auto-phrase;
    line-break: strict;
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.glow-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-image {
    max-width: 100%;
    height: auto;
    width: 380px;
    /* Removed drop-shadow as mockup already looks 3D, just add subtle floating */
    animation: float 6s ease-in-out infinite;
}

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

/* Sections Common */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Features Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 40px 32px;
    transition: var(--transition-standard);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    overflow-wrap: normal;
    word-break: auto-phrase;
    line-break: strict;
    text-wrap: pretty;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* How It Works Section */
.steps-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    background: var(--border-color);
}

.step {
    display: flex;
    gap: 40px;
    margin-bottom: 48px;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    z-index: 2;
    flex-shrink: 0;
}

.step-content {
    padding-top: 12px;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    overflow-wrap: normal;
    word-break: auto-phrase;
    line-break: strict;
    text-wrap: pretty;
}

.step-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Philosophy Section */
.philosophy {
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}
.philosophy::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}
.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.philosophy-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* Comparison Section */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    table-layout: fixed;
    text-align: center;
}
.comparison-table th, .comparison-table td {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    overflow-wrap: normal;
    word-break: auto-phrase;
    line-break: strict;
    text-wrap: pretty;
    vertical-align: top;
}
.comparison-table th {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}
.comparison-table th:first-child, .comparison-table td:first-child {
    text-align: left;
}
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}
.comparison-table td {
    font-size: 1.05rem;
}
.comparison-table .highlight {
    color: var(--text-color);
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px 8px 0 0;
}
.comparison-table td:nth-child(3), .comparison-table td:nth-child(4) {
    background: rgba(139, 92, 246, 0.02);
}

.comparison-details {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}
.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.detail-card {
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition-standard);
}
.detail-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}
.detail-card h4 {
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-wrap: normal;
    word-break: auto-phrase;
    line-break: strict;
    text-wrap: pretty;
}
.detail-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 16px;
    padding: 24px;
    transition: var(--transition-standard);
}
.faq-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}
.faq-question {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #c4b5fd;
    overflow-wrap: normal;
    word-break: auto-phrase;
    line-break: strict;
    text-wrap: pretty;
}
.faq-answer {
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA Section */
.cta-container {
    padding: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
    z-index: -1;
}

.cta-container h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

.cta-container p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

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

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

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title { font-size: 3rem; }
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title { font-size: 2.5rem; }
    
    nav { display: none; } /* Simplified for mobile */
    
    .steps-container::before {
        left: 24px;
    }
    
    .step {
        gap: 20px;
    }
    
    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
    
    .cta-container {
        padding: 40px 20px;
    }
    
    .cta-container h2 { font-size: 2rem; }
    
    .cta-buttons {
        flex-direction: column;
    }
}
