/* ============================================
   RiseOrPay Landing Page
   Dark Brutalist × Alarm Red
   ============================================ */

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

:root {
    --bg-primary: #0A0A0A;
    --bg-secondary: #111111;
    --bg-card: #0A0A0A;
    --border: #1A1A1A;
    --border-strong: #333333;
    --red: #FF3B30;
    --red-muted: rgba(255, 59, 48, 0.2);
    --green: #4CAF50;
    --green-muted: rgba(76, 175, 80, 0.4);
    --text-primary: #FFFFFF;
    --text-secondary: #AAAAAA;
    --text-muted: #666666;
    --font: 'Space Grotesk', 'Noto Sans JP', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

/* ---- Header ---- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-primary);
}

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

.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    cursor: pointer;
    border: none;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--red);
    color: #fff;
    padding: 18px 48px;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.btn-primary.btn-sm {
    padding: 10px 24px;
    font-size: 13px;
    letter-spacing: 1px;
}

.btn-primary.btn-lg {
    padding: 20px 56px;
    font-size: 18px;
    font-weight: 700;
}

.btn-disabled {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    padding: 18px 48px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
    border-color: var(--text-secondary);
}

/* ---- Section Common ---- */

.section-header {
    text-align: center;
    margin-bottom: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.accent-bar {
    width: 40px;
    height: 3px;
    background: var(--red);
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--red);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
}

.section-sub {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- Hero ---- */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 100px;
    background: radial-gradient(ellipse at 50% 30%, #1A0000 0%, var(--bg-primary) 70%);
}

.hero-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.hero-headline {
    font-size: 72px;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-sub {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---- Problem ---- */

.problem {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.problem-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -1px;
    margin-bottom: 48px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.problem-icon {
    color: var(--red);
    flex-shrink: 0;
}

.problem-text {
    font-size: 15px;
    font-weight: 600;
    color: #CCCCCC;
    line-height: 1.5;
}

.problem-conclusion {
    font-size: 20px;
    font-weight: 700;
    color: var(--red);
    text-align: center;
}

/* ---- How It Works ---- */

.how-it-works {
    padding: 100px 0;
    background: var(--bg-primary);
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-num {
    font-size: 48px;
    font-weight: 700;
    color: var(--red);
}

.step-icon {
    color: var(--red);
}

.step-icon--green {
    color: var(--green);
}

.step-title {
    font-size: 20px;
    font-weight: 700;
}

.step-desc {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* ---- Psychology ---- */

.psychology {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.psychology-inner {
    display: flex;
    gap: 80px;
    align-items: center;
}

.psychology-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.label-accent {
    display: flex;
    align-items: center;
    gap: 8px;
}

.label-bar {
    width: 3px;
    height: 14px;
    background: var(--red);
}

.psychology-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.3;
}

.psychology-desc {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
}

.psychology-right {
    width: 480px;
    flex-shrink: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.chart {
    display: flex;
    gap: 40px;
    align-items: flex-end;
    height: 200px;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.chart-bar {
    width: 80px;
}

.chart-bar--loss {
    height: 160px;
    background: linear-gradient(to top, rgba(255, 59, 48, 0.4), #FF3B30);
}

.chart-bar--gain {
    height: 80px;
    background: linear-gradient(to top, rgba(76, 175, 80, 0.4), #4CAF50);
}

.chart-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.chart-label--loss {
    color: var(--red);
}

.chart-label--gain {
    color: var(--green);
}

.chart-note {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

/* ---- Challenges ---- */

.challenges {
    padding: 100px 0;
    background: var(--bg-primary);
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.challenge-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.challenge-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #1A1A1A;
}

.challenge-img--walk {
    background-image: url('images/challenge-walk.webp');
}

.challenge-img--squat {
    background-image: url('images/challenge-squat.webp');
}

.challenge-img--photo {
    background-image: url('images/challenge-photo.webp');
}

.challenge-body {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.challenge-icon {
    color: var(--red);
}

.challenge-title {
    font-size: 20px;
    font-weight: 700;
}

.challenge-desc {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Trust ---- */

.trust {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.trust-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trust-icon {
    color: var(--red);
}

.trust-title {
    font-size: 18px;
    font-weight: 700;
}

.trust-desc {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- FAQ ---- */

.faq {
    padding: 100px 0;
    background: var(--bg-primary);
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item[open] .faq-question::after {
    content: '-';
}

.faq-answer {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 12px;
    padding-right: 40px;
}

/* ---- Vision ---- */

.vision {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.vision-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vision-text {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: center;
}

.vision-text--accent {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 8px;
}

/* ---- Final CTA ---- */

.final-cta {
    padding: 100px 0;
    background: radial-gradient(ellipse at 50% 50%, #2A0000 0%, var(--bg-primary) 70%);
}

.final-cta-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.final-cta-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
}

.final-cta-sub {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
}

.final-cta-note {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

/* ---- Footer ---- */

.footer {
    padding: 60px 0;
    background: #050505;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.footer-col a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 24px;
}

.footer-copyright {
    font-size: 12px;
    color: #444444;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
    .section-title {
        font-size: 32px;
    }

    .hero-headline {
        font-size: 48px;
    }

    .psychology-inner {
        flex-direction: column;
        gap: 48px;
    }

    .psychology-right {
        width: 100%;
    }

    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--border);
    }

    .nav--open {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 96px 24px 48px;
        min-height: auto;
    }

    .hero-headline {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .hero-sub {
        font-size: 15px;
    }

    .hero-sub br {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .problem {
        padding: 60px 0;
    }

    .problem-title {
        font-size: 24px;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .problem-conclusion {
        font-size: 16px;
    }

    .how-it-works,
    .challenges,
    .trust,
    .faq,
    .psychology,
    .vision {
        padding: 60px 0;
    }

    .vision-text {
        font-size: 16px;
    }

    .vision-text--accent {
        font-size: 17px;
    }

    .section-title {
        font-size: 26px;
    }

    .section-sub {
        font-size: 15px;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .steps-row,
    .challenge-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        padding: 24px 20px;
    }

    .step-num {
        font-size: 36px;
    }

    .challenge-img {
        height: 160px;
    }

    .challenge-body {
        padding: 20px;
    }

    .trust-card {
        padding: 24px 20px;
    }

    .psychology-right {
        padding: 24px;
    }

    .faq-answer {
        padding-right: 0;
    }

    .psychology-title {
        font-size: 28px;
    }

    .psychology-title br {
        display: none;
    }

    .chart {
        gap: 24px;
    }

    .chart-bar {
        width: 60px;
    }

    .chart-bar--loss {
        height: 120px;
    }

    .chart-bar--gain {
        height: 60px;
    }

    .chart-note {
        font-size: 12px;
    }

    .final-cta {
        padding: 60px 0;
    }

    .final-cta-title {
        font-size: 26px;
    }

    .final-cta-inner .btn {
        width: 100%;
        max-width: 360px;
    }

    .final-cta-sub {
        font-size: 16px;
    }

    .final-cta-sub br {
        display: none;
    }

    .section-sub br {
        display: none;
    }

    .btn-primary {
        padding: 16px 32px;
    }

    .btn-primary.btn-lg {
        padding: 18px 40px;
        font-size: 16px;
    }

    .btn-ghost {
        padding: 16px 32px;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .nav-link {
        padding: 12px 0;
        font-size: 16px;
    }

    .footer-links {
        flex-direction: column;
        gap: 24px;
    }

    .footer-col a {
        padding: 8px 0;
        display: block;
    }

}
