:root {
    --md-sys-color-primary: #7b4a12;
    --md-sys-color-secondary: #b96b2a;
    --md-sys-color-tertiary: #8a5a3c;
    --md-sys-color-surface: #fff9f2;
    --md-sys-color-on-surface: #2b2116;
    --md-sys-color-outline: #e2cbb4;
    --md-sys-color-surface-variant: #f6eadf;
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-on-secondary: #ffffff;
}

[data-theme="dark"] {
    --md-sys-color-primary: #ffb77c;
    --md-sys-color-secondary: #e3b896;
    --md-sys-color-tertiary: #c9a882;
    --md-sys-color-surface: #1a1411;
    --md-sys-color-on-surface: #ede0d3;
    --md-sys-color-outline: #9a8775;
    --md-sys-color-surface-variant: #4f4539;
    --md-sys-color-on-primary: #432b00;
    --md-sys-color-on-secondary: #432b00;
}

[data-theme="dark"] body {
    background: radial-gradient(circle at top left,
            rgba(42, 32, 22, 0.9),
            rgba(26, 20, 17, 0.4)),
        linear-gradient(135deg, #1a1411 0%, #241c16 45%, #2d2319 100%);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Roboto", "Noto Sans JP", sans-serif;
    color: var(--md-sys-color-on-surface);
    background: radial-gradient(circle at top left,
            rgba(255, 248, 235, 0.9),
            rgba(255, 249, 242, 0.4)),
        linear-gradient(135deg, #f9efe4 0%, #fff9f2 45%, #f6eadf 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.page {
    display: flex;
    flex-direction: column;
    gap: 120px;
    padding: 60px 6vw 120px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(83, 52, 26, 0.18);
}

.hero-title {
    font-size: clamp(32px, 4vw, 52px);
    margin: 0;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 18px;
    margin: 0;
    color: rgba(43, 33, 22, 0.85);
}

[data-theme="dark"] .hero-subtitle {
    color: rgba(237, 224, 211, 0.85);
}

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

.primary-button {
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 12px 28px rgba(123, 74, 18, 0.18);
}

.secondary-link {
    font-weight: 600;
    color: var(--md-sys-color-secondary);
}

.hero-screens {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hero-screens img {
    border-radius: 18px;
    background: transparent;
}

.hero-screens.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

.hero-screens.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section-title {
    font-size: clamp(24px, 3vw, 36px);
    margin: 0;
}

.section-lead {
    margin: 0;
    max-width: 720px;
    color: rgba(43, 33, 22, 0.78);
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
}

[data-theme="dark"] .section-lead {
    color: rgba(237, 224, 211, 0.85);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 22px;
    border: 1px solid rgba(226, 203, 180, 0.6);
    box-shadow: 0 14px 30px rgba(83, 52, 26, 0.08);
}

[data-theme="dark"] .feature-card {
    background: #2a2019;
    border: 1px solid rgba(154, 135, 117, 0.3);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.feature-card p {
    margin: 0;
    color: rgba(43, 33, 22, 0.78);
    line-height: 1.7;
}

[data-theme="dark"] .feature-card p {
    color: rgba(237, 224, 211, 0.85);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.screenshot-grid figure {
    margin: 0;
    background: #ffffff;
    border-radius: 22px;
    padding: 16px;
}

[data-theme="dark"] .screenshot-grid figure {
    background: #2a2019;
}

.screenshot-grid figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: rgba(43, 33, 22, 0.75);
}

[data-theme="dark"] .screenshot-grid figcaption {
    color: rgba(237, 224, 211, 0.8);
}

.blockquote {
    background: linear-gradient(120deg,
            rgba(185, 107, 42, 0.1),
            rgba(123, 74, 18, 0.08));
    border-radius: 24px;
    padding: 28px;
    border: 1px solid rgba(226, 203, 180, 0.7);
}

.roadmap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 40%;
    margin: 0 auto;
}

.roadmap-item {
    border: 1px dashed rgba(150, 150, 150, 0.4);
    border-radius: 18px;
    padding: 16px 56px 16px 56px;
    background: rgba(245, 245, 245, 0.5);
    font-weight: 600;
    color: rgba(100, 100, 100, 0.8);
    position: relative;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

[data-theme="dark"] .roadmap-item {
    border: 1px dashed rgba(154, 135, 117, 0.4);
    background: rgba(79, 69, 57, 0.3);
    color: rgba(227, 184, 150, 0.9);
}

.roadmap-item::before {
    content: 'progress_activity';
    font-family: 'Material Symbols Rounded';
    font-size: 24px;
    color: rgba(150, 150, 150, 0.6);
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

[data-theme="dark"] .roadmap-item::before {
    color: rgba(227, 184, 150, 0.6);
}

.roadmap-item .feature-name {
    flex: 1;
}

.roadmap-item .version {
    position: absolute;
    right: 16px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.7;
}

.roadmap-item.in-development {
    background: linear-gradient(120deg,
            rgba(185, 107, 42, 0.2),
            rgba(185, 107, 42, 0.1));
    border: 1px solid rgba(185, 107, 42, 0.5);
    color: var(--md-sys-color-secondary);
}

[data-theme="dark"] .roadmap-item.in-development {
    background: linear-gradient(120deg,
            rgba(227, 184, 150, 0.15),
            rgba(227, 184, 150, 0.08));
    border: 1px solid rgba(227, 184, 150, 0.5);
    color: var(--md-sys-color-secondary);
}

.roadmap-item.in-development::before {
    color: var(--md-sys-color-secondary);
    animation: spin 2s linear infinite;
}

.roadmap-item.released {
    background: linear-gradient(120deg,
            rgba(132, 201, 139, 0.2),
            rgba(132, 201, 139, 0.1));
    border: 1px solid rgba(132, 201, 139, 0.5);
    color: #2d7a35;
}

[data-theme="dark"] .roadmap-item.released {
    background: linear-gradient(120deg,
            rgba(132, 201, 139, 0.15),
            rgba(132, 201, 139, 0.08));
    border: 1px solid rgba(132, 201, 139, 0.5);
    color: #84c98b;
}

.roadmap-item.released::before {
    content: 'check';
    color: #2d7a35;
    animation: none;
}

[data-theme="dark"] .roadmap-item.released::before {
    color: #84c98b;
}

.release {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 24px;
    align-items: center;
    background: #ffffff;
    border-radius: 28px;
    padding: 28px;
    border: 1px solid rgba(226, 203, 180, 0.6);
    box-shadow: 0 18px 40px rgba(83, 52, 26, 0.1);
}

[data-theme="dark"] .release {
    background: #2a2019;
    border: 1px solid rgba(154, 135, 117, 0.3);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.release ul {
    margin: 12px 0 0;
    padding-left: 18px;
    color: rgba(43, 33, 22, 0.78);
}

[data-theme="dark"] .release ul {
    color: rgba(237, 224, 211, 0.85);
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 14px;
    color: rgba(43, 33, 22, 0.7);
}

[data-theme="dark"] .footer-links {
    color: rgba(237, 224, 211, 0.75);
}

.roadmap-note {
    margin-top: 24px;
    color: rgba(100, 100, 100, 0.6);
    font-size: 14px;
    font-style: italic;
}

[data-theme="dark"] .roadmap-note {
    color: rgba(201, 168, 130, 0.7);
}

.footer-separator {
    color: rgba(43, 33, 22, 0.3);
}

[data-theme="dark"] .footer-separator {
    color: rgba(154, 135, 117, 0.4);
}

.footer-copyright {
    margin-top: 20px;
    font-size: 12px;
    color: rgba(43, 33, 22, 0.5);
}

[data-theme="dark"] .footer-copyright {
    color: rgba(237, 224, 211, 0.5);
}

.theme-toggle {
    position: fixed;
    top: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 24px rgba(123, 74, 18, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(123, 74, 18, 0.4);
}

.theme-toggle:active {
    transform: scale(0.95);
}

[data-theme="dark"] .theme-toggle {
    box-shadow: 0 8px 24px rgba(255, 183, 124, 0.3);
}

[data-theme="dark"] .theme-toggle:hover {
    box-shadow: 0 12px 32px rgba(255, 183, 124, 0.4);
}

footer {
    background: rgba(226, 203, 180, 0.15);
    border-top: 1px solid rgba(226, 203, 180, 0.5);
    padding: 32px 6vw;
    margin-top: 60px;
    text-align: center;
}

[data-theme="dark"] footer {
    background: rgba(79, 69, 57, 0.15);
    border-top: 1px solid rgba(154, 135, 117, 0.3);
}

footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--md-sys-color-primary);
}

.fade-up {
    animation: fadeUp 1s ease both;
}

.fade-up.delay-1 {
    animation-delay: 0.15s;
}

.fade-up.delay-2 {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

@keyframes spin {
    from {
        transform: translateY(-50%) rotate(0deg);
    }

    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
    }

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

    .roadmap {
        width: 80%;
    }

    .roadmap-item {
        justify-content: flex-start;
        padding-left: 56px;
    }

    .roadmap-item::before {
        left: 16px;
    }

    .section-lead {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 48px 5vw 96px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .roadmap {
        width: 95%;
    }

    .roadmap-item {
        padding-left: 52px;
        padding-right: 52px;
        font-size: 14px;
    }

    .roadmap-item::before {
        left: 12px;
        font-size: 20px;
    }

    .roadmap-item .version {
        right: 12px;
        font-size: 10px;
    }

    .section-lead {
        padding: 0 10px;
    }

    .theme-toggle {
        top: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}