/* =========================================================
   27P — shared stylesheet
   Design language & palette follow the reference index.html
   (white / black / gray + red accent, soft shadows, pill shapes)
   ========================================================= */

:root {
    --bg-body: #ffffff;
    --bg-container: #ffffff;
    --bg-nav: #ffffff;
    --bg-card: #fafafa;
    --bg-card-text: #ffffff;
    --bg-btn: #f5f5f5;
    --bg-btn-primary: #1a1a1a;
    --bg-btn-secondary: transparent;
    --bg-modal: #ffffff;
    --bg-input: #f5f5f5;

    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --text-muted: #777;
    --text-btn-primary: #ffffff;
    --text-btn-secondary: #1a1a1a;
    --text-nav: #4a4a4a;
    --text-nav-hover: #1a1a1a;
    --text-highlight: #d0312d;
    --text-flip: #d0312d;

    --border-color: rgba(0, 0, 0, 0.04);
    --border-btn: #d0d0d0;
    --border-modal: #e0e0e0;

    --shadow-nav: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-container: 0 20px 60px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-btn: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-modal: 0 40px 80px rgba(0, 0, 0, 0.20);

    --glow-color: rgba(255, 200, 120, 0.55);
    --glow-color-outer: rgba(255, 210, 150, 0.20);

    --accent-soft: rgba(208, 49, 45, 0.10);
    --sheen-color: rgba(255, 255, 255, 0.75);
    --sheen-color-2: rgba(208, 49, 45, 0.08);
    --flip-glow: 0 0 10px rgba(255, 140, 0, 0.8), 0 0 20px rgba(255, 100, 0, 0.6), 0 0 40px rgba(255, 80, 0, 0.3);

    --filter-img: none;
    --filter-potato: drop-shadow(0 0 30px rgba(255, 200, 120, 0.25)) drop-shadow(0 0 60px rgba(255, 180, 100, 0.15));
    --filter-potato-hover: drop-shadow(0 0 40px rgba(255, 200, 120, 0.40)) drop-shadow(0 0 80px rgba(255, 180, 100, 0.25));

    --transition-theme: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="dark"] {
    --bg-body: #121212;
    --bg-container: #1a1a1a;
    --bg-nav: #1a1a1a;
    --bg-card: #242424;
    --bg-card-text: #242424;
    --bg-btn: #333;
    --bg-btn-primary: #e8e8e8;
    --bg-btn-secondary: transparent;
    --bg-modal: #242424;
    --bg-input: #333;

    --text-primary: #f0f0f0;
    --text-secondary: #aaa;
    --text-muted: #888;
    --text-btn-primary: #1a1a1a;
    --text-btn-secondary: #f0f0f0;
    --text-nav: #b0b0b0;
    --text-nav-hover: #ffffff;
    --text-highlight: #f57c5a;
    --text-flip: #f57c5a;

    --border-color: rgba(255, 255, 255, 0.06);
    --border-btn: #444;
    --border-modal: #444;

    --shadow-nav: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-container: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-btn: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-modal: 0 40px 80px rgba(0, 0, 0, 0.6);

    --glow-color: rgba(255, 210, 160, 0.30);
    --glow-color-outer: rgba(255, 220, 180, 0.08);

    --accent-soft: rgba(245, 124, 90, 0.16);
    --sheen-color: rgba(255, 255, 255, 0.10);
    --sheen-color-2: rgba(245, 124, 90, 0.10);
    --flip-glow: 0 0 10px rgba(255, 160, 80, 0.7), 0 0 20px rgba(255, 120, 40, 0.5), 0 0 40px rgba(255, 80, 20, 0.25);

    --filter-img: brightness(0.92) contrast(1.05);
    --filter-potato: drop-shadow(0 0 30px rgba(255, 180, 80, 0.15)) drop-shadow(0 0 60px rgba(255, 160, 60, 0.08));
    --filter-potato-hover: drop-shadow(0 0 40px rgba(255, 180, 80, 0.25)) drop-shadow(0 0 60px rgba(255, 160, 60, 0.15));
}

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

/* elements whose i18n key was removed from the dictionary are hidden */
[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px 40px;
    margin: 0;
    color: var(--text-primary);
    transition: background var(--transition-theme), color var(--transition-theme);
    overflow-x: hidden;
}

body.is-intro {
    overflow: hidden;
}

a {
    color: inherit;
}

/* highlighted brand text — same treatment as the reference title flip */
.hl {
    color: var(--text-flip);
    font-weight: 800;
    text-shadow: var(--flip-glow);
    transition: color var(--transition-theme), text-shadow var(--transition-theme);
}

/* ================= navbar ================= */

.navbar {
    width: 100%;
    max-width: 1100px;
    padding: 12px 24px;
    margin-top: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-nav);
    border-radius: 60px;
    box-shadow: var(--shadow-nav);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeDown 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.05s;
    flex-wrap: wrap;
    gap: 12px 20px;
    position: relative;
    z-index: 100;
    transition: background var(--transition-theme), box-shadow var(--transition-theme), border-color var(--transition-theme);
}

@keyframes fadeDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.nav-left,
.nav-center,
.nav-right {
    display: flex;
    align-items: center;
}

.nav-left { gap: 10px; }
.nav-center { gap: 6px; flex-wrap: wrap; }

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color var(--transition-theme);
}

/* transparent logo, no border, no tile */
.nav-logo img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-logo span {
    background: var(--bg-btn);
    padding: 4px 14px 4px 12px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    transition: background var(--transition-theme), color var(--transition-theme);
}

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

.nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-nav);
    font-size: 15px;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 40px;
    transition: all 0.25s ease;
    background: transparent;
    font-weight: 500;
    white-space: nowrap;
}

.nav-links a svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.nav-links a:hover {
    color: var(--text-nav-hover);
    background: var(--bg-btn);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-links a:active {
    transform: scale(0.96);
}

.nav-links a.active {
    color: var(--text-highlight);
    background: var(--accent-soft);
    font-weight: 700;
}

.lang-menu-wrap {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-btn);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 6px 14px 6px 12px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    white-space: nowrap;
    text-decoration: none;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.lang-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-highlight);
    flex: none;
}

.lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    padding: 8px;
    z-index: 900;
}

.lang-menu.active {
    display: block;
}

.lang-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 14px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease;
}

.lang-menu button:hover {
    background: var(--bg-btn);
}

.lang-menu button.is-active {
    color: var(--text-highlight);
    pointer-events: none;
}

.lang-menu button.is-active::after {
    content: '\2713';
    margin-left: auto;
    font-weight: 700;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-btn);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    flex: none;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.theme-toggle .ico-sun { display: none; }
[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
[data-theme="dark"] .theme-toggle .ico-sun { display: block; }

.theme-toggle:hover {
    transform: translateY(-2px) rotate(12deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

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

/* ================= container ================= */

.container {
    max-width: 1100px;
    width: 100%;
    background: var(--bg-container);
    border-radius: 48px;
    padding: 30px 30px 60px;
    box-shadow: var(--shadow-container);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    position: relative;
    overflow: hidden;
    transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1),
        transform 1.2s cubic-bezier(0.23, 1, 0.32, 1),
        background var(--transition-theme),
        box-shadow var(--transition-theme);
}

.container.show {
    opacity: 1;
    transform: translateY(0);
}

/* soft sweep when the page pops in */
.reveal-sheen {
    position: absolute;
    top: -20%;
    left: -120%;
    width: 70%;
    height: 140%;
    background: linear-gradient(100deg,
        rgba(255, 255, 255, 0) 0%,
        var(--sheen-color) 45%,
        var(--sheen-color-2) 62%,
        rgba(255, 255, 255, 0) 100%);
    transform: skewX(-18deg);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
}

.container.show .reveal-sheen {
    animation: sheenSweep 1.5s cubic-bezier(0.23, 1, 0.32, 1) 0.25s both;
}

@keyframes sheenSweep {
    0% { left: -120%; opacity: 0; }
    15% { opacity: 1; }
    100% { left: 160%; opacity: 0; }
}

.container.show .stagger-1 { animation: fadeUp 0.9s cubic-bezier(0.23, 1, 0.32, 1) both; animation-delay: 0.15s; }
.container.show .stagger-2 { animation: fadeUp 0.9s cubic-bezier(0.23, 1, 0.32, 1) both; animation-delay: 0.35s; }
.container.show .stagger-3 { animation: fadeUp 0.9s cubic-bezier(0.23, 1, 0.32, 1) both; animation-delay: 0.55s; }
.container.show .stagger-4 { animation: fadeUp 0.9s cubic-bezier(0.23, 1, 0.32, 1) both; animation-delay: 0.75s; }
.container.show .stagger-5 { animation: fadeUp 0.9s cubic-bezier(0.23, 1, 0.32, 1) both; animation-delay: 1.05s; }
.container.show .stagger-6 { animation: fadeUp 0.9s cubic-bezier(0.23, 1, 0.32, 1) both; animation-delay: 1.35s; }

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ================= intro (index only) ================= */

.intro {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px 20px 40px;
    background: var(--bg-body);
    transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1), transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.intro.out {
    opacity: 0;
    transform: scale(1.06);
    pointer-events: none;
}

.intro-inner {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.intro-pair,
.intro-line {
    grid-area: 1 / 1;
}

.intro-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.intro-pair.gone {
    opacity: 0;
    transform: scale(0.94);
}

.intro-line {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25em;
    font-size: clamp(34px, 9vw, 84px);
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.25;
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), color 0.4s ease;
    color: var(--text-primary);
}

.intro-line.on {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.intro-line--b {
    color: var(--text-highlight);
    font-size: clamp(26px, 6.5vw, 60px);
}

.intro-line--c {
    color: var(--text-muted);
    font-size: clamp(48px, 14vw, 130px);
}

.intro-line--d {
    font-size: clamp(36px, 10vw, 96px);
}

.intro-line .strike {
    position: absolute;
    left: -4%;
    top: 52%;
    height: 0.09em;
    min-height: 3px;
    width: 0;
    border-radius: 999px;
    background: var(--text-highlight);
    opacity: 0.9;
    pointer-events: none;
}

.intro-line.struck .strike {
    width: 108%;
    transition: width 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.intro-line.struck {
    color: var(--text-muted);
}

.intro-line.pop {
    animation: introPop 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes introPop {
    0% { opacity: 0; transform: scale(0.7); }
    60% { opacity: 1; transform: scale(1.06); }
    100% { opacity: 1; transform: scale(1); }
}

.intro-skip {
    position: absolute;
    right: 20px;
    bottom: 22px;
    padding: 8px 16px;
    border-radius: 40px;
    border: 1px solid var(--border-btn);
    background: var(--bg-btn);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
}

.intro-skip:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ================= hero ================= */

.hero-section {
    margin-bottom: 28px;
    position: relative;
}

.hero-wrapper {
    position: relative;
    width: 512px;
    max-width: 100%;
    aspect-ratio: 1490 / 1056;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glow,
.hero-glow-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transition: background var(--transition-theme);
}

.hero-glow {
    width: 580px;
    height: 580px;
    max-width: 130%;
    max-height: 150%;
    background: radial-gradient(circle at center,
        var(--glow-color) 0%,
        rgba(255, 180, 100, 0.30) 25%,
        rgba(255, 160, 80, 0.12) 50%,
        rgba(255, 140, 60, 0.04) 75%,
        transparent 100%);
    animation: glowPulse 3.2s ease-in-out infinite alternate;
}

.hero-glow-outer {
    width: 700px;
    height: 700px;
    max-width: 170%;
    max-height: 200%;
    background: radial-gradient(circle at center,
        var(--glow-color-outer) 0%,
        rgba(255, 190, 130, 0.08) 40%,
        transparent 70%);
    animation: glowPulseOuter 4s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes glowPulseOuter {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.08); }
}

.hero-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: var(--filter-potato);
    transition: filter 0.3s, transform var(--transition-theme);
    border-radius: 24px;
}

.hero-image:hover {
    filter: var(--filter-potato-hover);
}

.title-section {
    text-align: center;
    margin-bottom: 32px;
    padding: 0 10px;
}

.title-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 12px;
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.2;
}

.button-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
    margin-bottom: 48px;
}

.btn {
    padding: 16px 44px;
    border-radius: 60px;
    font-size: 20px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-btn);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-family: inherit;
}

.btn svg {
    width: 20px;
    height: 20px;
    flex: none;
}

.btn-primary {
    background: var(--bg-btn-primary);
    color: var(--text-btn-primary);
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: var(--bg-btn-secondary);
    color: var(--text-btn-secondary);
    border: 2px solid var(--border-btn);
    box-shadow: none;
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: var(--bg-btn);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

/* ================= intro cards ================= */

.intro-cards {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.intro-card {
    display: flex;
    flex-direction: row;
    border-radius: 32px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    min-height: 200px;
    transition: background var(--transition-theme), border-color var(--transition-theme), box-shadow var(--transition-theme);
}

.intro-card:nth-child(even) .card-text { order: 2; }
.intro-card:nth-child(even) .card-image { order: 1; }

.intro-card .card-text {
    flex: 0 0 50%;
    padding: 30px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-card-text);
    transition: background var(--transition-theme);
    order: 1;
}

.intro-card .card-image {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    background: var(--bg-btn);
    min-height: 200px;
    transition: background var(--transition-theme);
    order: 2;
}

.intro-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: var(--filter-img);
    transition: filter var(--transition-theme), transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.intro-card:hover .card-image img {
    transform: scale(1.04);
}

.intro-card:nth-child(odd) .card-image img {
    mask-image: linear-gradient(to left, black 0%, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 0%, black 50%, transparent 100%);
}

.intro-card:nth-child(even) .card-image img {
    mask-image: linear-gradient(to right, black 0%, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 50%, transparent 100%);
}

.intro-card .card-text h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-theme);
}

.intro-card .card-text h3 svg {
    width: 22px;
    height: 22px;
    color: var(--text-highlight);
    flex: none;
}

.intro-card .card-text p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    transition: color var(--transition-theme);
}

.intro-card .card-text p em {
    font-style: normal;
    font-weight: 700;
    color: var(--text-primary);
}

.intro-card .card-text .highlight {
    color: var(--text-highlight);
    font-weight: 600;
    transition: color var(--transition-theme);
}

.intro-card .card-text .card-note {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ================= text block ================= */

.text-section {
    width: 100%;
    max-width: 820px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.text-section h2 {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 800;
    letter-spacing: -0.3px;
}

.text-section p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-secondary);
    transition: color var(--transition-theme);
}

.text-section p strong {
    color: var(--text-primary);
    font-weight: 700;
}

.text-sample {
    margin-top: 6px;
    padding: 20px 24px;
    border-radius: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--text-highlight);
    transition: background var(--transition-theme), border-color var(--transition-theme);
}

.text-sample h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 6px;
}

.text-sample p {
    font-size: 14px;
    line-height: 1.8;
}

/* ================= footer ================= */

.footer-declaration {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    padding: 20px 0 4px;
    margin-top: 24px;
    line-height: 1.6;
    border-top: 1px solid var(--border-color);
    transition: color var(--transition-theme), border-color var(--transition-theme);
}

.footer-declaration a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 6px;
}

.footer-declaration a:hover {
    text-decoration: underline;
    color: var(--text-primary);
}

/* ================= page heading ================= */

.page-head {
    width: 100%;
    text-align: center;
    margin: 10px 0 32px;
    padding: 0 10px;
}

.page-head h1 {
    font-size: clamp(30px, 6vw, 48px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.page-head p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ================= schedule table ================= */

.schedule-wrap {
    width: 100%;
    margin-bottom: 20px;
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.schedule-table thead th {
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 24px 4px;
}

.schedule-table tbody tr {
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, background var(--transition-theme);
}

.schedule-table tbody tr:hover {
    transform: translateY(-2px);
}

.schedule-table td {
    padding: 20px 24px;
    font-size: 15px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.schedule-table td:first-child {
    border-left: 1px solid var(--border-color);
    border-radius: 24px 0 0 24px;
    color: var(--text-primary);
    font-weight: 700;
}

.schedule-table td:last-child {
    border-right: 1px solid var(--border-color);
    border-radius: 0 24px 24px 0;
}

.schedule-table td .limit-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 40px;
    background: var(--accent-soft);
    color: var(--text-highlight);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.schedule-note {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ================= about page ================= */

.about-body {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.about-body p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-secondary);
    transition: color var(--transition-theme);
}

.about-body p strong {
    color: var(--text-primary);
    font-weight: 700;
}

.about-body p em {
    font-style: normal;
    font-weight: 700;
    color: var(--text-highlight);
}

.about-list-title {
    width: 100%;
    max-width: 760px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 14px;
}

.about-list {
    width: 100%;
    max-width: 760px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    transition: background var(--transition-theme), border-color var(--transition-theme), box-shadow var(--transition-theme);
}

.about-list li strong {
    color: var(--text-primary);
    font-weight: 700;
}

.about-list li::before {
    content: '';
    flex: none;
    width: 8px;
    height: 8px;
    margin-top: 9px;
    border-radius: 50%;
    background: var(--text-highlight);
}

.value-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 36px;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 24px 24px 26px;
    box-shadow: var(--shadow-card);
    transition: background var(--transition-theme), border-color var(--transition-theme), transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-4px);
}

.value-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-btn);
    color: var(--text-highlight);
    margin-bottom: 14px;
}

.value-card .icon svg {
    width: 22px;
    height: 22px;
}

.value-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.value-card p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
}

.join-panel {
    width: 100%;
    max-width: 760px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 28px 30px 30px;
    box-shadow: var(--shadow-card);
    margin-bottom: 8px;
    transition: background var(--transition-theme), border-color var(--transition-theme), box-shadow var(--transition-theme);
}

.join-panel h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 14px;
}

.join-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.join-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.join-steps li .step-num {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--text-highlight);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.join-panel .panel-note {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

.back-link {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

/* ================= modal ================= */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes modalFadeIn {
    0% { opacity: 0; transform: scale(0.94); }
    100% { opacity: 1; transform: scale(1); }
}

.modal-box {
    background: var(--bg-modal);
    border-radius: 40px;
    padding: 44px 48px 40px;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--shadow-modal);
    text-align: center;
    position: relative;
    transition: background var(--transition-theme), box-shadow var(--transition-theme);
}

.modal-box .close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 4px 8px;
    font-family: inherit;
}

.modal-box .close-btn:hover {
    color: var(--text-primary);
}

.modal-box .modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: var(--bg-btn);
    color: var(--text-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box .modal-icon svg {
    width: 32px;
    height: 32px;
}

.modal-box h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.modal-box .modal-desc {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-options .modal-btn {
    padding: 14px 20px;
    border-radius: 60px;
    font-size: 17px;
    font-weight: 600;
    border: 2px solid var(--border-modal);
    background: var(--bg-modal);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: inherit;
    text-decoration: none;
}

.modal-options .modal-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-highlight);
}

.modal-options .modal-btn:hover {
    border-color: var(--text-primary);
    background: var(--bg-btn);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.modal-options .modal-btn:active {
    transform: scale(0.97);
}

/* ================= no-JS fallback ================= */

.no-js body {
    overflow: visible;
}

.no-js .container {
    opacity: 1;
    transform: none;
}

.no-js .navbar {
    opacity: 1;
    transform: none;
    animation: none;
}

.no-js .intro {
    display: none;
}

/* ================= responsive ================= */

@media (max-width: 900px) {
    .intro-card {
        flex-direction: column !important;
    }
    .intro-card .card-text,
    .intro-card:nth-child(even) .card-text {
        flex: 1 1 auto;
        padding: 24px 24px;
        order: 1;
    }
    .intro-card .card-image,
    .intro-card:nth-child(even) .card-image {
        flex: 0 0 220px;
        min-height: 180px;
        order: 2;
    }
    .intro-card .card-image img,
    .intro-card:nth-child(even) .card-image img {
        mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
    }
    .intro-card .card-text h3 {
        font-size: 20px;
    }
    .value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px;
        border-radius: 40px;
        gap: 14px;
    }
    .nav-left { justify-content: center; }
    .nav-center { justify-content: center; }
    .nav-right { justify-content: center; }
    .nav-logo { font-size: 20px; }
    .nav-logo img { height: 32px; }
    .nav-links {
        gap: 4px;
        justify-content: center;
    }
    .nav-links a {
        font-size: 14px;
        padding: 6px 12px;
    }
    .lang-btn {
        font-size: 13px;
        padding: 5px 12px 5px 10px;
    }
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    .modal-box {
        padding: 32px 24px 30px;
    }
    .join-panel {
        padding: 24px 20px 26px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 24px 16px 40px;
        border-radius: 28px;
    }

    .hero-wrapper {
        width: 100%;
        max-width: 512px;
    }
    .hero-glow {
        width: 110%;
        height: 110%;
    }
    .hero-glow-outer {
        width: 130%;
        height: 130%;
    }

    .title-line {
        font-size: clamp(30px, 10vw, 48px);
        gap: 2px 8px;
    }

    .btn {
        padding: 14px 30px;
        font-size: 17px;
    }
    .button-section {
        gap: 12px;
    }

    .intro-card .card-image,
    .intro-card:nth-child(even) .card-image {
        flex: 0 0 160px;
        min-height: 140px;
    }
    .intro-card .card-text,
    .intro-card:nth-child(even) .card-text {
        padding: 18px 20px;
    }
    .intro-card .card-text h3 {
        font-size: 18px;
    }
    .intro-card .card-text p {
        font-size: 14px;
    }

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

    .modal-box {
        padding: 28px 20px 26px;
        border-radius: 32px;
    }
    .modal-box h3 {
        font-size: 22px;
    }
    .modal-options .modal-btn {
        font-size: 16px;
        padding: 14px 16px;
    }

    /* table → stacked cards for portrait phones */
    .schedule-table,
    .schedule-table tbody,
    .schedule-table tr,
    .schedule-table td {
        display: block;
        width: 100%;
    }
    .schedule-table thead {
        display: none;
    }
    .schedule-table {
        border-spacing: 0;
    }
    .schedule-table tbody tr {
        border: 1px solid var(--border-color);
        border-radius: 24px;
        padding: 6px 18px;
        margin-bottom: 14px;
        box-shadow: var(--shadow-card);
    }
    .schedule-table td,
    .schedule-table td:first-child,
    .schedule-table td:last-child {
        border: none;
        border-radius: 0;
        padding: 12px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        text-align: right;
        font-size: 14px;
    }
    .schedule-table td + td {
        border-top: 1px solid var(--border-color);
    }
    .schedule-table td::before {
        content: attr(data-label);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.06em;
        color: var(--text-muted);
        text-align: left;
        flex: none;
    }

    .nav-links a {
        font-size: 13px;
        padding: 4px 10px;
    }

    .intro {
        padding: 120px 16px 56px;
    }

    .footer-declaration {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .title-line {
        font-size: clamp(24px, 8vw, 36px);
    }
    .btn {
        padding: 12px 22px;
        font-size: 15px;
    }
    .navbar {
        padding: 12px 14px;
    }
    .nav-logo img {
        height: 28px;
    }
    .nav-links a {
        font-size: 12px;
        padding: 4px 8px;
    }
    .nav-links a svg {
        width: 15px;
        height: 15px;
    }
    .intro-card .card-image,
    .intro-card:nth-child(even) .card-image {
        flex: 0 0 130px;
        min-height: 110px;
    }
    .intro-card .card-text,
    .intro-card:nth-child(even) .card-text {
        padding: 14px 16px;
    }
    .intro-card .card-text h3 {
        font-size: 16px;
    }
    .intro-card .card-text p {
        font-size: 13px;
    }
    .modal-box {
        padding: 24px 16px 22px;
        border-radius: 28px;
    }
    .modal-box h3 {
        font-size: 20px;
    }
    .modal-options .modal-btn {
        font-size: 15px;
        padding: 12px 14px;
    }
    .footer-declaration {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-glow,
    .hero-glow-outer {
        animation: none;
    }
}
