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

:root {
    --primary-dark: #1b1b1b;
    --secondary-dark: #242424;
    --accent-dark: #2a2a2a;
    --text-light: #eeede9;
    --text-muted: #a9a8a3;
    --accent-color: #e8d5b7;
    --accent-hover: #d4c4a3;
    --success-color: #4ade80;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: #1b1b1b;
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    font-weight: 400;
    letter-spacing: 0.12px;
    overflow-x: hidden;
}

.global-landscape-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(circle at 50% 18%, rgba(232, 213, 183, 0.08), transparent 52%);
}

.global-landscape-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Language Toggle */
.lang-toggle {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 100;
    background: rgba(36, 36, 36, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--accent-dark);
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.3s, background 0.3s;
}

.lang-toggle:hover {
    border-color: var(--accent-color);
    background: rgba(36, 36, 36, 0.95);
}

.lang-option {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    transition: color 0.3s;
    text-transform: uppercase;
}

.lang-option.active {
    color: var(--accent-color);
}

.lang-divider {
    color: var(--accent-dark);
    font-size: 0.8rem;
    user-select: none;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 60px 40px 40px;
    margin-bottom: 0;
    width: 100%;
    background: rgba(27, 27, 27, 0.78);
    animation: fadeInDown 0.8s ease;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 0 0px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.company-name {
    font-size: 2.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #dbd9d5, #eeede9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.tagline {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* About Section */
.about {
    background: rgba(36, 36, 36, 0.72);
    padding: 100px 40px 80px;
    border-radius: 0;
    margin: 0;
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--accent-dark);
    border-bottom: 1px solid var(--accent-dark);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Reveal animation for scroll */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* About content */
.about-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin-bottom: 60px;
}

.about-heading {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.about-lead {
    font-size: 1.35rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
}

.about-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
}

/* Journey: Idea → MVP */
.journey {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 960px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

.journey-step {
    flex: 1;
    max-width: 200px;
    text-align: center;
    padding: 20px 12px;
}

.journey-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent-dark);
    border: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 16px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    box-shadow: 0 0 0 rgba(232, 213, 183, 0);
    color: var(--accent-color);
}

.journey-icon svg {
    stroke: var(--accent-color);
    transition: stroke 0.3s ease;
}

.journey-step:hover .journey-icon {
    transform: scale(1.15) translateY(-4px);
    box-shadow: 0 8px 30px rgba(232, 213, 183, 0.2);
    background: rgba(232, 213, 183, 0.1);
}

.journey-step h3 {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
}

.journey-step p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.journey-step-text {
    display: flex;
    flex-direction: column;
}

.journey-connector {
    display: flex;
    align-items: center;
    padding-top: 48px;
    min-width: 40px;
}

.journey-connector span {
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    position: relative;
}

.journey-connector span::after {
    content: '›';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 700;
}

/* Stats */
.about-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
    padding: 20px 24px;
    border-radius: 12px;
    background: rgba(42, 42, 42, 0.6);
    border: 1px solid var(--accent-dark);
    min-width: 140px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-color);
    display: inline;
}

.stat-suffix {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent-color);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 400;
}

.stat-source {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
    opacity: 0.6;
}

/* Stat color variants */
.stat-danger .stat-number,
.stat-danger .stat-suffix {
    color: #e57373;
}

.stat-danger {
    border-color: rgba(229, 115, 115, 0.25);
}

.stat-danger:hover {
    border-color: rgba(229, 115, 115, 0.5);
}

.stat-warning .stat-number,
.stat-warning .stat-suffix {
    color: #ffb74d;
}

.stat-warning {
    border-color: rgba(255, 183, 77, 0.25);
}

.stat-warning:hover {
    border-color: rgba(255, 183, 77, 0.5);
}

/* CTA text between stats and journey */
.about-cta-text {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto 50px;
    text-align: center;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.about-cta-text strong {
    color: var(--accent-color);
}

/* Responsive journey */
@media (max-width: 768px) {
    .about {
        padding: 50px 20px 40px;
    }

    .about-content {
        margin-bottom: 36px;
        width: 100%;
    }

    .about-heading {
        font-size: 1.7rem;
    }

    .about-lead {
        font-size: 1.05rem;
    }

    .about-body {
        font-size: 0.95rem;
    }

    .about-cta-text {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 36px;
    }

    .journey {
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
    }

    .journey-step {
        max-width: 100%;
        width: 100%;
        padding: 16px 20px;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 16px;
    }

    .journey-step .journey-icon {
        flex-shrink: 0;
        width: 56px;
        height: 56px;
        margin: 0;
    }

    .journey-step .journey-icon svg {
        width: 22px;
        height: 22px;
    }

    .journey-step-text {
        display: flex;
        flex-direction: column;
    }

    .journey-step h3 {
        margin-bottom: 4px;
    }

    .journey-connector {
        transform: rotate(90deg);
        padding-top: 0;
        min-width: unset;
        height: 36px;
    }

    .about-stats {
        flex-direction: column;
        gap: 16px;
        width: 100%;
        max-width: 100%;
    }

    .stat {
        width: 100%;
        min-width: unset;
    }
}

/* ===== Immersive Story Section ===== */
.slideshow-section,
.project-showcase-section,
.chat-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.slideshow-section::before,
.project-showcase-section::before,
.chat-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 20%, rgba(0, 0, 0, 0.34) 100%);
}

.slideshow-section::after,
.project-showcase-section::after,
.chat-section::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(232, 213, 183, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 213, 183, 0.026) 1px, transparent 1px);
    background-size: 36px 36px;
    mix-blend-mode: screen;
    opacity: 0.24;
}

.slideshow-section > *,
.project-showcase-section > *,
.chat-section > * {
    position: relative;
    z-index: 1;
}

.slideshow-section {
    width: 100%;
    margin: 0;
    padding: 68px 5vw 74px;
    background: rgba(27, 27, 27, 0.74);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.slideshow-intro {
    max-width: 760px;
    margin: 0 auto 24px;
    text-align: center;
}

.slideshow-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: none;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.slideshow-intro h2 {
    font-size: clamp(1.48rem, 2.7vw, 2.28rem);
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 10px;
}

.slideshow-intro p {
    color: #c0beb8;
    font-size: 0.96rem;
}

.slideshow-container {
    position: relative;
    width: min(1120px, 100%);
    min-height: 0;
    margin: 0 auto;
    padding-bottom: 66px;
    border-radius: 0;
    border: none;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.slide {
    position: relative;
    z-index: 1;
    opacity: 0;
    display: none;
    transform: translateY(12px);
    pointer-events: none;
}

.slide.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: slideCardIn 0.45s ease both;
}

.story-scene {
    position: relative;
    display: grid;
    gap: 18px;
    align-content: start;
    width: min(920px, 94%);
    margin: 0 auto;
    padding: clamp(24px, 4vh, 40px) 0 16px;
}

.slide-index {
    color: rgba(232, 213, 183, 0.74);
    font-size: 0.72rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.story-scene h3 {
    font-size: clamp(1.66rem, 3.2vw, 3rem);
    line-height: 1.1;
    letter-spacing: 0;
    color: var(--text-light);
    font-weight: 600;
}

.scene-lead {
    max-width: 74ch;
    color: #dddbd5;
    font-size: clamp(0.98rem, 1.2vw, 1.14rem);
    line-height: 1.72;
}

.scene-quote {
    color: rgba(232, 213, 183, 0.95);
    font-size: clamp(1.04rem, 1.4vw, 1.28rem);
    line-height: 1.45;
    letter-spacing: 0.02em;
}

.scene-list {
    display: grid;
    gap: 10px;
}

.scene-list p {
    color: #d6d3cd;
    font-size: 0.96rem;
    line-height: 1.65;
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 2px solid rgba(232, 213, 183, 0.44);
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
    overflow-wrap: anywhere;
}

.scene-list p:hover {
    transform: translateX(3px);
    border-color: rgba(232, 213, 183, 0.75);
    background: rgba(232, 213, 183, 0.08);
}

.scene-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.step-card {
    border: 1px solid rgba(232, 213, 183, 0.22);
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(232, 213, 183, 0.05), rgba(255, 255, 255, 0.01));
    padding: 13px 14px;
    min-height: 124px;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.step-card:hover {
    transform: translateY(-3px);
    border-color: rgba(232, 213, 183, 0.62);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.step-card span {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: rgba(232, 213, 183, 0.84);
    margin-bottom: 8px;
}

.step-card p {
    color: #d4d1cb;
    font-size: 0.92rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.scene-next,
.scene-next-link {
    align-self: start;
    justify-self: start;
    margin-top: 4px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(232, 213, 183, 0.38);
    background: rgba(232, 213, 183, 0.1);
    color: var(--text-light);
    font-size: 0.84rem;
    letter-spacing: 0.03em;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.scene-next:hover,
.scene-next-link:hover {
    transform: translateY(-2px);
    border-color: rgba(232, 213, 183, 0.78);
    background: rgba(232, 213, 183, 0.18);
}

.scene-next:focus-visible,
.scene-next-link:focus-visible {
    outline: 2px solid rgba(232, 213, 183, 0.66);
    outline-offset: 2px;
}

.scene-final {
    align-content: start;
    min-height: 0;
}

.game-shell,
.game-finale {
    width: 100%;
}

.game-panel {
    border: 1px solid rgba(232, 213, 183, 0.25);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(232, 213, 183, 0.08), rgba(255, 255, 255, 0.02));
    padding: 16px;
    display: grid;
    gap: 12px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.game-panel-head h4 {
    margin: 0;
    font-size: 0.98rem;
    color: var(--text-light);
    letter-spacing: 0.01em;
    overflow-wrap: anywhere;
}

.game-panel-head p {
    margin: 6px 0 0;
    color: #c6c3bd;
    font-size: 0.85rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.game-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.game-status {
    color: #ddd8cf;
    font-size: 0.82rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.game-action {
    border: 1px solid rgba(232, 213, 183, 0.45);
    background: rgba(232, 213, 183, 0.12);
    color: var(--text-light);
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 0.77rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.game-action:hover {
    transform: translateY(-1px);
    border-color: rgba(232, 213, 183, 0.82);
    background: rgba(232, 213, 183, 0.2);
}

.game-action:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

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

.reveal-card {
    position: relative;
    min-height: 102px;
    border-radius: 12px;
    border: 1px dashed rgba(232, 213, 183, 0.35);
    background: linear-gradient(145deg, rgba(24, 24, 24, 0.82), rgba(10, 10, 10, 0.56));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    overflow: hidden;
}

.reveal-card.is-revealed {
    border-style: solid;
    background: linear-gradient(160deg, rgba(232, 213, 183, 0.2), rgba(232, 213, 183, 0.05));
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.reveal-card::before {
    content: '';
    position: absolute;
    inset: -35% 10%;
    background: radial-gradient(circle, rgba(232, 213, 183, 0.26), rgba(232, 213, 183, 0));
    opacity: 0.45;
    transform: rotate(25deg);
    pointer-events: none;
}

.reveal-card h4 {
    margin: 0 0 6px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
}

.reveal-card p {
    margin: 0;
    color: #d5d1c8;
    font-size: 0.79rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.reveal-card-front {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2px;
    justify-items: start;
    align-content: start;
    width: 100%;
    max-width: 100%;
}

.reveal-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(232, 213, 183, 0.5);
    box-shadow: 0 0 0 4px rgba(232, 213, 183, 0.14);
}

.reveal-card-back {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 8px;
}

.reveal-card-back small {
    color: rgba(232, 213, 183, 0.78);
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.memory-card {
    border-radius: 10px;
    border: 1px solid rgba(232, 213, 183, 0.28);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(232, 213, 183, 0.86);
    min-height: 72px;
    padding: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
    overflow: hidden;
}

.memory-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
    text-align: center;
}

.memory-card:hover {
    transform: translateY(-1px);
    border-color: rgba(232, 213, 183, 0.64);
}

.memory-card.is-open {
    background: rgba(232, 213, 183, 0.14);
    color: #fff;
}

.memory-card.is-matched {
    background: rgba(74, 222, 128, 0.16);
    border-color: rgba(74, 222, 128, 0.72);
    color: #d8f9e4;
}

.memory-card-back {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: rgba(232, 213, 183, 0.82);
    font-weight: 600;
    letter-spacing: 0.08em;
    font-size: 0.62rem;
    line-height: 1;
}

.memory-card-back::before {
    content: '';
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(232, 213, 183, 0.5);
    display: block;
    opacity: 0.75;
    box-shadow: 0 0 0 3px rgba(232, 213, 183, 0.13);
}

.memory-card-label {
    font-size: 0.68rem;
}

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

.order-card {
    border: 1px solid rgba(232, 213, 183, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #e4e0d8;
    padding: 10px 11px;
    text-align: left;
    font-size: 0.82rem;
    line-height: 1.35;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    overflow-wrap: anywhere;
}

.order-card:hover {
    transform: translateY(-1px);
    border-color: rgba(232, 213, 183, 0.65);
}

.order-card.is-done {
    background: rgba(74, 222, 128, 0.16);
    border-color: rgba(74, 222, 128, 0.68);
    color: #d9fbe7;
}

.pattern-meta {
    display: flex;
    gap: 14px;
    font-size: 0.78rem;
    color: rgba(232, 213, 183, 0.9);
    flex-wrap: wrap;
}

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

.pattern-symbol {
    border-radius: 12px;
    border: 1px solid rgba(232, 213, 183, 0.32);
    background: rgba(255, 255, 255, 0.03);
    color: #ebe6dc;
    min-height: 56px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
    overflow-wrap: anywhere;
    padding: 8px;
}

.pattern-symbol:hover {
    transform: translateY(-1px);
    border-color: rgba(232, 213, 183, 0.62);
}

.pattern-symbol.is-active {
    background: rgba(232, 213, 183, 0.24);
    border-color: rgba(232, 213, 183, 0.95);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(232, 213, 183, 0.55), 0 0 16px rgba(232, 213, 183, 0.34);
}

.game-final-panel h4 {
    margin: 0;
    font-size: 1rem;
}

.game-final-panel p {
    margin: 0;
    color: #cdc8bd;
    font-size: 0.84rem;
    line-height: 1.45;
}

.game-final-list {
    display: grid;
    gap: 8px;
}

.game-final-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(232, 213, 183, 0.24);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.82rem;
}

.game-final-row span {
    overflow-wrap: anywhere;
}

.game-final-row strong {
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.74);
}

.game-final-row.done {
    border-color: rgba(74, 222, 128, 0.64);
    background: rgba(74, 222, 128, 0.12);
}

.game-final-row.done strong {
    color: #d6f8e3;
}

.word-node {
    display: inline-block;
    padding: 0 0.04em;
    margin: 0 0.015em;
    border-radius: 0.22em;
    transition: transform 0.24s ease, color 0.24s ease, text-shadow 0.24s ease, background 0.24s ease;
    will-change: transform;
}

.word-node:hover,
.word-node.pulse {
    color: #f5f2eb;
    background: rgba(232, 213, 183, 0.12);
    text-shadow: 0 0 12px rgba(232, 213, 183, 0.44);
    transform: translateY(-1px);
}

.slide-arrow {
    position: absolute;
    top: auto;
    bottom: 10px;
    transform: none;
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(232, 213, 183, 0.28);
    background: rgba(18, 18, 18, 0.56);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.slide-prev {
    left: 14px;
}

.slide-next {
    right: 14px;
}

.slide-arrow:hover {
    transform: scale(1.05);
    border-color: rgba(232, 213, 183, 0.62);
    background: rgba(26, 26, 26, 0.84);
}

.slide-arrow.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.slide-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 23px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.dot.active {
    transform: scale(1.3);
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.dot.locked {
    opacity: 0.32;
}

.slide-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 5;
}

.slide-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, rgba(232, 213, 183, 0.3), rgba(232, 213, 183, 0.95));
    transition: width 0.1s linear;
}

.scene-next.is-locked {
    opacity: 0.56;
    cursor: not-allowed;
}

.scene-next.is-locked:hover {
    transform: none;
    border-color: rgba(232, 213, 183, 0.38);
    background: rgba(232, 213, 183, 0.1);
}

.scene-restart {
    margin-top: 2px;
}

.shake-lock {
    animation: lockShake 0.26s ease;
}

@media (max-width: 768px) {
    .slideshow-section {
        padding: 50px 20px 58px;
    }

    .slideshow-container {
        min-height: 0;
        padding-bottom: 92px;
    }

    .story-scene {
        width: min(96%, 640px);
        padding: 22px 0 14px;
    }

    .story-scene h3 {
        font-size: clamp(1.38rem, 7vw, 2rem);
    }

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

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

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

    .scene-steps {
        grid-template-columns: 1fr;
    }

    .slide-arrow {
        bottom: 12px;
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
    }

    .slide-arrow:hover {
        transform: scale(1.03);
    }

    .slide-prev {
        left: 12px;
    }

    .slide-next {
        right: 12px;
    }

    .slide-dots {
        bottom: 24px;
    }

    .game-panel {
        padding: 14px;
    }

    .game-panel-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .game-action {
        width: 100%;
        text-align: center;
    }

    .pattern-meta {
        flex-direction: column;
        gap: 4px;
    }
}

/* Projects Showcase Section */
.project-showcase-section {
    width: 100%;
    margin: 0;
    padding: 72px 5vw 76px;
    background: rgba(36, 36, 36, 0.76);
    border-top: 1px solid var(--accent-dark);
    border-bottom: 1px solid var(--accent-dark);
}

.project-showcase-intro {
    max-width: 820px;
    margin: 0 auto 26px;
    text-align: center;
}

.project-showcase-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 9px;
}

.project-showcase-intro h2 {
    font-size: clamp(1.44rem, 2.6vw, 2.2rem);
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 10px;
}

.project-showcase-intro p {
    color: #c8c5be;
    font-size: 0.95rem;
}

.project-showcase-stage {
    position: relative;
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 2px 56px 0;
}

.project-showcase-slides {
    min-height: 0;
}

.project-case-slide {
    display: none;
    opacity: 0;
    transform: translateY(12px);
}

.project-case-slide.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideCardIn 0.45s ease both;
}

.project-case-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.project-case-index {
    font-size: 0.72rem;
    letter-spacing: 0.11em;
    color: rgba(232, 213, 183, 0.74);
    white-space: nowrap;
}

.project-case-kicker {
    font-size: 0.69rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(232, 213, 183, 0.86);
    margin-bottom: 8px;
}

.project-case-header h3 {
    color: var(--text-light);
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    line-height: 1.2;
    margin-bottom: 5px;
    font-weight: 600;
}

.project-case-subtitle {
    color: #c4c0b6;
    font-size: 0.9rem;
    line-height: 1.45;
}

.project-case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.project-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(232, 213, 183, 0.25);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(232, 213, 183, 0.07);
    color: #d8d3c9;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.project-meta-chip strong {
    color: rgba(232, 213, 183, 0.95);
    font-weight: 600;
}

.project-case-value-card {
    border: 1px solid rgba(232, 213, 183, 0.28);
    border-radius: 14px;
    padding: 13px 14px;
    background: linear-gradient(145deg, rgba(232, 213, 183, 0.12), rgba(255, 255, 255, 0.02));
    margin-bottom: 12px;
}

.project-case-value-card h4 {
    margin: 0 0 8px;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    color: #f1ede4;
}

.project-case-value-card p {
    margin: 0;
    color: #d8d4ca;
    font-size: 0.89rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.project-case-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.project-case-story {
    grid-column: span 2;
}

.project-case-block {
    border: 1px solid rgba(232, 213, 183, 0.23);
    border-radius: 14px;
    padding: 14px;
    background: linear-gradient(150deg, rgba(232, 213, 183, 0.09), rgba(255, 255, 255, 0.02));
    display: grid;
    align-content: start;
    gap: 10px;
}

.project-case-block h4,
.project-case-block h5 {
    margin: 0;
    color: var(--text-light);
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}

.project-case-block h5 {
    margin-top: 2px;
    font-size: 0.8rem;
    color: rgba(232, 213, 183, 0.86);
}

.project-case-block p {
    margin: 0;
    color: #d8d4cb;
    font-size: 0.85rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.project-case-block p + p {
    margin-top: 7px;
}

.project-case-block ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
}

.project-case-block h5 + ul {
    margin-top: 2px;
}

.project-case-block ul + h5,
.project-case-block p + h5 {
    margin-top: 6px;
}

.project-case-block li {
    position: relative;
    padding-left: 13px;
    color: #d9d4ca;
    font-size: 0.82rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.project-case-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(232, 213, 183, 0.8);
}

.project-case-cta {
    margin-top: 12px;
    border: 1px solid rgba(232, 213, 183, 0.24);
    border-radius: 12px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    background: rgba(232, 213, 183, 0.05);
}

.project-case-cta p {
    margin: 0;
    color: #cdc8bd;
    font-size: 0.82rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    max-width: 76ch;
}

.project-case-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(232, 213, 183, 0.42);
    background: rgba(232, 213, 183, 0.14);
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    padding: 8px 13px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.project-case-cta-link:hover {
    transform: translateY(-1px);
    border-color: rgba(232, 213, 183, 0.72);
    background: rgba(232, 213, 183, 0.2);
}

.project-showcase-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(232, 213, 183, 0.28);
    background: rgba(18, 18, 18, 0.56);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.project-showcase-prev {
    left: 0;
}

.project-showcase-next {
    right: 0;
}

.project-showcase-arrow:hover {
    transform: translateY(-50%) scale(1.04);
    border-color: rgba(232, 213, 183, 0.62);
    background: rgba(26, 26, 26, 0.84);
}

.project-showcase-arrow.is-disabled {
    opacity: 0.34;
    cursor: not-allowed;
    pointer-events: none;
}

.project-showcase-dots {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.project-showcase-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.project-showcase-dot.active {
    transform: scale(1.25);
    background: var(--accent-color);
    border-color: var(--accent-color);
}

@media (max-width: 980px) {
    .project-case-meta {
        margin-bottom: 9px;
    }

    .project-case-cta {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .project-showcase-section {
        padding: 54px 20px 62px;
    }

    .project-showcase-stage {
        padding: 0 0 0;
    }

    .project-case-header {
        flex-direction: column;
        gap: 8px;
    }

    .project-case-grid {
        grid-template-columns: 1fr;
    }

    .project-case-story {
        grid-column: auto;
    }

    .project-case-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-case-cta-link {
        width: 100%;
    }

    .project-showcase-arrow {
        top: auto;
        bottom: -48px;
        transform: none;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .project-showcase-prev {
        left: 4px;
    }

    .project-showcase-next {
        right: 4px;
    }

    .project-showcase-arrow:hover {
        transform: scale(1.03);
    }

    .project-showcase-dots {
        margin-top: 18px;
    }
}

/* Chat Section */
.chat-section {
    width: 100%;
    padding: 80px 40px;
    margin: 0;
    background: rgba(27, 27, 27, 0.78);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.chat-section h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--accent-color);
    text-align: center;
    font-weight: 600;
    letter-spacing: 0;
}

.chat-description {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.chat-container {
    position: relative;
    background: linear-gradient(140deg, rgba(36, 36, 36, 0.8), rgba(24, 24, 24, 0.88));
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(232, 213, 183, 0.22);
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

.chat-container::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 20%, rgba(0, 0, 0, 0.28) 100%);
}

.chat-container::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(232, 213, 183, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 213, 183, 0.025) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.16;
}

.chat-container > * {
    position: relative;
    z-index: 1;
}

/* ── Chat status bar ─────────────────────────────────── */
.chat-status-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(232, 213, 183, 0.45);
    user-select: none;
}

.chat-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(232, 213, 183, 0.3);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.chat-status-dot.ai {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.chat-status-dot.server {
    background: #fbbf24;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.chat-status-dot.offline {
    background: rgba(232, 213, 183, 0.28);
    box-shadow: none;
}

.chat-status-label {
    transition: opacity 0.3s ease;
}
/* ─────────────────────────────────────────────────────── */

.chat-messages {
    height: 350px;
    overflow-y: auto;
    margin-bottom: 16px;
    padding-right: 8px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--accent-dark);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.message {
    margin-bottom: 12px;
    display: flex;
    animation: slideIn 0.3s ease;
}

.bot-message {
    justify-content: flex-start;
}

.bot-message p {
    background: var(--accent-dark);
    padding: 10px 14px;
    border-radius: 8px 8px 8px 0;
    max-width: 80%;
    color: var(--text-light);
    border-left: 2px solid var(--accent-color);
    font-size: 0.9rem;
}

.user-message {
    justify-content: flex-end;
}

.user-message p {
    background: var(--accent-color);
    padding: 10px 14px;
    border-radius: 8px 8px 0 8px;
    max-width: 80%;
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.chat-form {
    display: flex;
    gap: 10px;
}

#userInput {
    flex: 1;
    padding: 10px 14px;
    background: var(--accent-dark);
    border: 1px solid var(--accent-dark);
    border-radius: 6px;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

#userInput:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}

#userInput::placeholder {
    color: var(--text-muted);
}

.send-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--primary-dark);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.9rem;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 212, 255, 0.25);
}

.send-btn:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 40px;
    color: var(--text-muted);
    border-top: 1px solid var(--accent-dark);
    margin: 0;
    width: 100%;
    background: rgba(36, 36, 36, 0.84);
    font-size: 0.85rem;
}

.footer-contact-shortcut {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(232, 213, 183, 0.22);
    color: #c7c3b9;
    text-decoration: none;
    font-size: 0.74rem;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.footer-contact-link svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-contact-link svg path {
    fill: none;
}

.footer-contact-link:hover {
    color: var(--accent-color);
    border-color: rgba(232, 213, 183, 0.45);
    background: rgba(232, 213, 183, 0.06);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideCardIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes lockShake {
    0% { transform: translateX(0); }
    30% { transform: translateX(-6px); }
    60% { transform: translateX(6px); }
    100% { transform: translateX(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .company-name {
        font-size: 2rem;
    }

    .header {
        padding: 30px 20px 20px;
    }

    .chat-section {
        padding: 50px 20px;
    }

    .slideshow-section {
        height: auto;
    }

    .chat-container {
        padding: 16px;
    }

    .chat-messages {
        height: 280px;
    }

    .bot-message p,
    .user-message p {
        max-width: 100%;
    }

    .chat-form {
        flex-direction: column;
    }

    .send-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 1.6rem;
    }

    .logo {
        max-width: 90px;
    }

    .slideshow-section {
        height: auto;
    }

    .memory-card {
        min-height: 66px;
        font-size: 0.66rem;
    }

    .order-card,
    .pattern-symbol {
        font-size: 0.76rem;
    }

    .game-status {
        font-size: 0.78rem;
    }

}
