:root {
    --primary-color: #0e325c;
    --secondary-color: #ff7a45;
    --accent-color: #00b3d4;
    --bg-color: #f8fbff;
    --text-color: #2b2b2b;
    --text-light: #4d6075;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(14, 50, 92, 0.1);
    --shadow-lg: 0 20px 50px rgba(14, 50, 92, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-main: 'Inter', 'Segoe UI', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 179, 212, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 122, 69, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
}

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

ul,
ol {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.site-header.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-cta {
    background: linear-gradient(135deg, var(--secondary-color), #ff5e62);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 94, 98, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 94, 98, 0.4);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a5298 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #0073aa, var(--accent-color));
    color: var(--white);
    box-shadow: 0 10px 25px rgba(0, 115, 170, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 115, 170, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid rgba(14, 50, 92, 0.1);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 60px 0;
    flex-wrap: wrap;
}

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

.trust-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.trust-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 80px 0;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition);
}

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

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

/* How It Works */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 60px;
    font-weight: 800;
}

.steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding-bottom: 80px;
}

.step-item {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.step-item::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -20px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(14, 50, 92, 0.3);
}

.step-item h3 {
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 115, 170, 0.05);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.testimonial-author::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
    margin-right: 10px;
}

/* FAQ */
.faq-section {
    max-width: 800px;
    margin: 0 auto 80px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.faq-question::before {
    content: 'Q.';
    color: var(--secondary-color);
    font-weight: 900;
    margin-right: 10px;
    font-size: 1.2em;
}

.faq-answer {
    color: var(--text-light);
    padding-left: 35px;
}

/* CTA Sections */
.pro-section {
    background: linear-gradient(120deg, #f0f7ff, #fff5f0);
    padding: 80px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 80px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-lg);
}

.final-cta {
    text-align: center;
    padding: 100px 0;
    background: radial-gradient(circle at center, #e6f4ff 0%, transparent 70%);
}

/* Footer */
footer {
    background: var(--white);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

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

.footer-links a {
    color: var(--text-light);
    font-weight: 500;
}

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

.copyright {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .site-header {
        padding: 15px 0;
    }

    .nav-links {
        display: none;
        /* Mobile menu implementation would go here */
    }

    .trust-badges {
        gap: 30px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* --- Subpages: Pricing --- */
.pricing-header {
    text-align: center;
    padding: 80px 20px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a5298 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-table {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 80px;
    align-items: stretch;
}

.plan {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    width: 30%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(14, 50, 92, 0.08);
    transition: var(--transition);
    position: relative;
}

.plan:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.plan.recommended {
    border: 2px solid var(--secondary-color);
    transform: scale(1.05);
    z-index: 1;
}

.plan.recommended:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.plan .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 15px 0;
}

.plan .price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

.plan-features {
    margin: 30px 0;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: var(--text-color);
}

.plan-features li::before {
    content: '✔';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: 800;
}

.badge {
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 5px 15px rgba(255, 122, 69, 0.3);
}

.plan-status {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
}

.cta-button.disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

/* Comparison Table */
.comparison-table {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 80px;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-table th {
    background: #f8fbff;
    color: var(--primary-color);
    font-weight: 700;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
}

.accent {
    color: #28a745;
    font-weight: 700;
}

/* Roadmap */
.roadmap {
    background: linear-gradient(135deg, #fff, #f0f7ff);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 80px;
    border: 1px solid rgba(14, 50, 92, 0.05);
}

.roadmap ul {
    list-style: disc;
    padding-left: 20px;
    margin: 20px 0;
}

.roadmap li {
    margin-bottom: 10px;
    color: var(--text-color);
}

/* --- Subpages: Changelog --- */
.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 120px 0 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.download-archive {
    background: linear-gradient(135deg, #ffffff, #f0f7ff);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 60px;
    border: 1px solid rgba(14, 50, 92, 0.08);
}

.archive-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.archive-controls select {
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    min-width: 300px;
    background: var(--white);
}

.version-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.version-card:hover {
    box-shadow: var(--shadow-md);
}

.version-card h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.version-date {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: normal;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 20px;
}

.version-card ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 15px;
}

.version-card li {
    margin-bottom: 8px;
    color: var(--text-color);
}

/* --- Subpages: Legal (Terms, Privacy, Tokusho) --- */
.legal-content {
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 80px;
}

.legal-content h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.legal-content h2 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 40px 0 20px;
    padding-left: 15px;
    border-left: 4px solid var(--secondary-color);
}

.legal-content p {
    margin-bottom: 1.5em;
    color: var(--text-color);
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1.5em;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 0.5em;
}

.tokusho-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.tokusho-table th,
.tokusho-table td {
    padding: 15px;
    border: 1px solid #eee;
    text-align: left;
}

.tokusho-table th {
    background: #f9f9f9;
    width: 30%;
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .pricing-table {
        flex-direction: column;
        align-items: center;
    }

    .plan {
        width: 100%;
        max-width: 400px;
    }

    .plan.recommended {
        transform: none;
    }

    .plan.recommended:hover {
        transform: translateY(-10px);
    }

    .legal-content {
        padding: 30px;
    }
}