/* Builden — shared layout & components */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;0,800&display=swap');

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

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

/* ——— Site header / nav ——— */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

.site-header-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    outline-offset: 3px;
}

.nav-brand-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.nav-brand:focus-visible {
    outline: 2px solid #1a1a1a;
}

.site-nav .nav-menu {
    margin: 0;
}

.nav-logo {
    display: block;
    max-width: 40px;
    width: 40px;
    height: auto;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 18px;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.3s ease, font-weight 0.2s ease;
}

.nav-menu a:hover {
    opacity: 0.65;
}

.nav-menu a[aria-current="page"] {
    opacity: 1;
    font-weight: 800;
}

.nav-menu a:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
    opacity: 1;
}

.nav-hamburger:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 3px;
}

.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.language-switcher button {
    background: transparent;
    border: 1px solid rgba(26, 26, 26, 0.3);
    color: #1a1a1a;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-switcher button:hover {
    background: rgba(26, 26, 26, 0.1);
    border-color: rgba(26, 26, 26, 0.5);
}

.language-switcher button.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.nav-hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ——— Home hero ——— */
header.hero-home {
    background: #1a1a1a;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 120px 0 80px;
}

header.hero-home .container {
    width: 100%;
}

header.hero-home h1 {
    font-size: 4rem;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -2px;
}

header.hero-home .hero-home-tagline {
    font-size: 1.5rem;
    opacity: 0.92;
    font-weight: 300;
    max-width: 620px;
    line-height: 1.45;
}

header.hero-home .hero-home-lead {
    font-size: 1.15rem;
    opacity: 0.82;
    font-weight: 400;
    max-width: 680px;
    margin: 1.25rem 0 0;
    line-height: 1.7;
}

.hero-home-btn {
    margin-top: 2rem;
}

/* ——— Hero marquee ——— */
.hero-marquee-wrap {
    position: relative;
    margin-top: 3rem;
    overflow: hidden;
}

.hero-marquee-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 180px;
    z-index: 2;
    pointer-events: none;
}

.hero-marquee-fade--right {
    right: 0;
    background: linear-gradient(to left, #1a1a1a 20%, transparent);
}

.hero-marquee-track {
    overflow: hidden;
}

.hero-marquee-inner {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: marquee-scroll 18s linear infinite;
}

.hero-marquee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.hero-marquee-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    opacity: 0.6;
    border-radius: 8px;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ——— Buttons ——— */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: #1a1a1a;
}

.btn-primary:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ——— Inner page hero (Games / Apps) ——— */
.page-hero {
    background: #1a1a1a;
    color: white;
    padding: 180px 0 100px;
    text-align: center;
}

.page-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.4rem;
    opacity: 0.88;
    font-weight: 300;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.55;
}

/* ——— Home product hub (two cards) ——— */
/* ——— Home: Portfolio hub ——— */
.home-hub {
    padding: 80px 0 96px;
    scroll-margin-top: 70px;
    background:
        radial-gradient(circle at top left, rgba(219, 234, 254, 0.85) 0, rgba(219, 234, 254, 0) 42%),
        radial-gradient(circle at top right, rgba(255, 237, 213, 0.82) 0, rgba(255, 237, 213, 0) 38%),
        linear-gradient(180deg, #f8f6f1 0%, #edf2f8 100%);
}

.home-hub-intro {
    text-align: center;
    margin-bottom: 52px;
}

.home-hub-intro .product-category-eyebrow {
    color: #7a6858;
}

.home-hub-intro .product-category-title {
    color: #18212b;
    margin-bottom: 12px;
}

.home-hub-lead {
    font-size: 1.02rem;
    color: #5a6574;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

.home-hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.home-hub-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 20px;
    padding: 40px 36px 36px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(24, 33, 43, 0.08);
    box-shadow: 0 18px 40px rgba(30, 41, 59, 0.08);
    transition: background 0.2s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.home-hub-card:hover {
    background: rgba(255, 255, 255, 0.94);
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(30, 41, 59, 0.12);
}

.home-hub-card h3 {
    font-size: 1.65rem;
    color: #18212b;
    margin-bottom: 12px;
    font-weight: 800;
}

.home-hub-card > p {
    font-size: 0.97rem;
    color: #586272;
    line-height: 1.68;
    margin-bottom: 28px;
    flex-grow: 1;
}

.home-hub-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.home-hub-logo-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f5f7fb;
    border: 1px solid rgba(24, 33, 43, 0.08);
    border-radius: 99px;
    padding: 5px 13px 5px 7px;
    font-size: 0.8rem;
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
}

.home-hub-logo-pill img {
    border-radius: 6px;
    flex-shrink: 0;
}

.home-hub-cta {
    font-weight: 700;
    color: #31455c;
    font-size: 0.95rem;
    transition: color 0.15s;
}

.home-hub-card:hover .home-hub-cta {
    color: #0f172a;
}

/* ——— Home product showcases (Games / Apps tiles) ——— */
.home-showcase {
    padding: 72px 0 80px;
    scroll-margin-top: 70px;
}

.home-showcase-intro {
    text-align: center;
    margin-bottom: 40px;
}

.home-showcase-intro .product-category-title {
    margin-bottom: 10px;
}

.home-showcase-lead {
    font-size: 1.02rem;
    color: #555;
    line-height: 1.65;
    max-width: 560px;
    margin: 0 auto;
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.home-product-tile {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-product-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.1);
}

.home-product-tile-top {
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    min-height: 172px;
}

.home-product-tile-top--cover {
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 155%;
}

.home-product-tile-top--cover .home-product-logo {
    position: absolute;
    left: 20px;
    bottom: 20px;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
    z-index: 1;
}

.home-product-tile-top--wordfight {
    background-image:
        linear-gradient(180deg, rgba(14, 23, 38, 0.24) 0%, rgba(14, 23, 38, 0.62) 100%),
        url('/public/wordfight_gallery/en/image-1.png');
}

.home-product-tile-top--vibecard {
    background-image:
        linear-gradient(180deg, rgba(14, 23, 38, 0.22) 0%, rgba(14, 23, 38, 0.6) 100%),
        url('/public/vibecard_gallery/en/image-1.png');
}

.home-product-tile-top--noithu {
    background-image:
        linear-gradient(180deg, rgba(14, 23, 38, 0.24) 0%, rgba(14, 23, 38, 0.58) 100%),
        url('/public/noithu_gallery/en/image-1.png');
}

.home-product-tile-top--ezclean {
    background-image:
        linear-gradient(180deg, rgba(14, 23, 38, 0.28) 0%, rgba(14, 23, 38, 0.62) 100%),
        url('/public/ezclean_gallery/en/image-1.png');
}

.home-product-tile-top--synapp {
    background-image:
        linear-gradient(180deg, rgba(14, 23, 38, 0.24) 0%, rgba(14, 23, 38, 0.62) 100%),
        url('/public/synapp_gallery/image-1.jpg');
}

.home-product-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    flex-shrink: 0;
}

.home-product-tile-body {
    padding: 22px 22px 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.home-product-tag {
    display: inline-block;
    background: #f0f0f2;
    border-radius: 99px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
    align-self: flex-start;
}

.home-product-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.home-product-tag-row .home-product-tag {
    margin-bottom: 0;
}

.home-product-tag--soon {
    background: rgba(15, 23, 42, 0.08);
    color: #4b5563;
}

.home-product-tile h3 {
    font-size: 1.18rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.home-product-tile p {
    font-size: 0.91rem;
    color: #555;
    line-height: 1.62;
    margin: 0 0 18px;
    flex-grow: 1;
}

.home-product-tile-cta {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.9rem;
}

.surface-muted .home-product-tile {
    background: #fff;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}

.btn-outline-dark {
    background: transparent;
    color: #1a1a1a;
    border-color: #1a1a1a;
}

.btn-outline-dark:hover {
    background: #1a1a1a;
    color: white;
}

.btn-solid-dark {
    background: #1a1a1a;
    color: white;
}

.btn-solid-dark:hover {
    background: #333;
    transform: translateY(-1px);
}

/* Surfaces */
.surface-white {
    background: #fff;
}

.surface-muted {
    background: #f8f9fa;
}

.surface-band {
    background: #eceff3;
}

/* ——— Product category band ——— */
.product-category {
    padding: 36px 0 28px;
    scroll-margin-top: 72px;
}

.product-category-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-category-title {
    font-size: 1.65rem;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ——— Main & product sections ——— */
main {
    padding: 0;
}

.product-section {
    padding: 88px 0;
    scroll-margin-top: 70px;
}

.product-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-wrapper.reverse {
    direction: rtl;
}

.product-wrapper.reverse>* {
    direction: ltr;
}

.product-image-wrapper {
    width: 100%;
}

.product-gallery {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
}

.gallery-container {
    position: relative;
    height: 540px;
    width: 100%;
}

.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 540px;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.gallery-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gallery-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 0;
    max-width: 100%;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: #1a1a1a;
    width: 30px;
    border-radius: 5px;
}

.gallery-dot:hover {
    background: rgba(0, 0, 0, 0.4);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #1a1a1a;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-arrow.prev {
    left: 20px;
}

.gallery-arrow.next {
    right: 20px;
}

.product-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-logo-small {
    max-width: 60px;
    height: auto;
    display: inline-block;
}

.product-info .tagline {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 25px;
    font-weight: 300;
}

.product-info .description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-features {
    list-style: none;
    margin-bottom: 30px;
}

.product-features li {
    padding: 10px 0;
    color: #666;
    font-size: 1rem;
    position: relative;
    padding-left: 25px;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1a1a1a;
    font-weight: bold;
}

.product-link {
    display: inline-block;
    padding: 15px 30px;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.product-link:hover {
    background: #333;
    transform: translateY(-2px);
}

/* ——— Nối Thú placeholder ——— */
.noithu-placeholder {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #fff8e1, #ffe0b2, #f8bbd0, #e1f5fe);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.noithu-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    font-size: 2.8rem;
    line-height: 1;
}

.noithu-placeholder-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.7);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    animation: noithu-bounce 2s ease-in-out infinite;
}

.noithu-placeholder-grid span:nth-child(2) { animation-delay: 0.1s; }
.noithu-placeholder-grid span:nth-child(3) { animation-delay: 0.2s; }
.noithu-placeholder-grid span:nth-child(4) { animation-delay: 0.3s; }
.noithu-placeholder-grid span:nth-child(5) { animation-delay: 0.15s; }
.noithu-placeholder-grid span:nth-child(6) { animation-delay: 0.25s; }
.noithu-placeholder-grid span:nth-child(7) { animation-delay: 0.35s; }
.noithu-placeholder-grid span:nth-child(8) { animation-delay: 0.4s; }
.noithu-placeholder-grid span:nth-child(9) { animation-delay: 0.05s; }
.noithu-placeholder-grid span:nth-child(10) { animation-delay: 0.2s; }
.noithu-placeholder-grid span:nth-child(11) { animation-delay: 0.3s; }
.noithu-placeholder-grid span:nth-child(12) { animation-delay: 0.45s; }

@keyframes noithu-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.noithu-placeholder-label {
    font-size: 0.85rem;
    color: #a0896a;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-logo-emoji {
    font-size: 2.4rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.home-product-logo--emoji {
    font-size: 2.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
}

.marquee-logo-emoji {
    font-size: 1.4rem;
    line-height: 1;
    opacity: 0.7;
}

/* SynApp placeholder */
.synapp-placeholder {
    position: relative;
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #eef2f7, #dde4ee);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.synapp-placeholder p:first-of-type {
    font-size: 20px;
    font-weight: 700;
    color: #4a5568;
    margin: 0;
}

.synapp-placeholder p:last-of-type {
    font-size: 13px;
    color: #a0aec0;
    margin: 0;
}

/* ——— Footer (light, multi-column — WordFight-style) ——— */
.site-footer {
    clear: both;
}

.site-footer--light {
    --footer-fg: #143d1f;
    --footer-fg-muted: #2a5c38;
    --footer-rule: #e8ebe8;
    background: #ffffff;
    color: var(--footer-fg);
    padding: 52px 0 36px;
    margin-top: 0;
    border-top: 1px solid var(--footer-rule);
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px 40px;
    padding-bottom: 32px;
}

.footer-brand-block {
    flex: 1 1 312px;
    max-width: 480px;
    min-width: 0;
}

.footer-nav-group {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(28px, 5vw, 56px);
    margin-left: auto;
    justify-content: flex-end;
    flex: 0 1 auto;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    border-radius: 6px;
    outline-offset: 3px;
}

.footer-brand-name {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--footer-fg);
    letter-spacing: -0.02em;
}

.footer-logo-link:focus-visible {
    outline: 2px solid var(--footer-fg);
}

.footer-logo-img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-lead {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--footer-fg-muted);
    max-width: 100%;
    margin: 0;
}

.footer-nav-col {
    min-width: 0;
    text-align: right;
}

.footer-nav-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--footer-fg);
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav-list li {
    margin-bottom: 10px;
}

.footer-nav-list a {
    color: var(--footer-fg-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s, opacity 0.2s;
}

.footer-nav-list a:hover {
    color: var(--footer-fg);
}

.footer-nav-list a:focus-visible {
    outline: 2px solid var(--footer-fg);
    outline-offset: 2px;
}

.footer-rule {
    border: none;
    border-top: 1px solid var(--footer-rule);
    margin: 0;
}

.footer-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px 32px;
    padding-top: 22px;
}

.footer-meta {
    flex: 1;
    min-width: 220px;
}

.footer-meta-line {
    margin: 0 0 6px;
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--footer-fg-muted);
}

.footer-meta-line:last-child {
    margin-bottom: 0;
}

.footer-meta a {
    color: var(--footer-fg);
    text-decoration: none;
    border-bottom: 1px solid rgba(20, 61, 31, 0.25);
}

.footer-meta a:hover {
    border-bottom-color: var(--footer-fg);
}

.footer-badges {
    flex-shrink: 0;
}

.footer-dmca-link {
    display: inline-block;
    line-height: 0;
    opacity: 0.95;
}

.footer-dmca-link:hover {
    opacity: 1;
}

.footer-dmca-link img {
    height: auto;
    vertical-align: middle;
}

@media (max-width: 700px) {
    .footer-nav-group {
        width: 100%;
        justify-content: flex-start;
    }

    .footer-nav-col {
        text-align: left;
    }

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

@media (max-width: 480px) {
    .footer-nav-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}

/* ——— About page ——— */
/* about-hero → unified .page-hero (see above) */

.about-section {
    padding: 72px 0;
    scroll-margin-top: 70px;
}

.about-section h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 24px;
    font-weight: 700;
}

.about-lead {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.85;
    max-width: 900px;
}

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

.team-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 28px 32px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.team-photo-wrap {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 22px;
    box-shadow: 0 0 0 4px #fff, 0 0 0 8px #e8e8e8;
    flex-shrink: 0;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    background: #e8eaed;
}

.team-name {
    font-weight: 800;
    font-size: 1.08rem;
    color: #1a1a1a;
    margin-bottom: 9px;
}

.team-title {
    display: inline-block;
    background: #f0f0f2;
    border-radius: 99px;
    padding: 4px 14px;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
    color: #555;
    margin-bottom: 14px;
    letter-spacing: 0.01em;
}

.team-contact {
    margin: 0 0 20px;
    font-size: 0.85rem;
}

.team-contact a {
    color: #aaa;
    text-decoration: none;
    font-style: normal;
    word-break: break-all;
    transition: color 0.15s;
}

.team-contact a:hover {
    color: #555;
}

.team-rule {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 0 0 20px;
}

.team-highlights {
    list-style: none;
    padding-left: 0;
    text-align: left;
    margin-top: auto;
}

.team-highlights li {
    padding-left: 1.55em;
    position: relative;
    color: #555;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.team-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1a1a1a;
    font-weight: 800;
    font-size: 0.82rem;
}

/* ——— About: Team section dark bg ——— */
.about-team-section {
    background: #111;
}

.about-team-section h2 {
    color: #fff;
}

/* ——— About: Timeline ——— */
.about-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 36px;
    border-left: 2px solid #e0e0e0;
    padding-left: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    padding: 20px 0 20px 32px;
    position: relative;
    align-items: start;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 26px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #1a1a1a;
}

.timeline-item--open::before {
    background: #fff;
    box-shadow: 0 0 0 2px #bbb;
}

.timeline-marker {
    padding-top: 2px;
}

.timeline-date {
    font-weight: 700;
    font-size: 0.88rem;
    color: #888;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.timeline-item--open .timeline-date {
    color: #aaa;
}

.timeline-content p {
    color: #444;
    font-size: 1rem;
    line-height: 1.75;
}

/* ——— About: Goals ——— */
.goals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 36px;
}

.goal-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 36px 40px;
    border: 1px solid #e8e8e8;
}

.goal-card--accent {
    background: #1a1a1a;
    border-color: transparent;
    color: #fff;
}

.goal-card-year {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.goal-card--accent .goal-card-year {
    color: #fff;
}

.goal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.goal-list li {
    padding-left: 1.4em;
    position: relative;
    font-size: 0.97rem;
    line-height: 1.55;
    color: #444;
}

.goal-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #1a1a1a;
    font-weight: 700;
}

.goal-card--accent .goal-list li {
    color: rgba(255, 255, 255, 0.85);
}

.goal-card--accent .goal-list li::before {
    color: rgba(255, 255, 255, 0.6);
}

/* ——— About: CTA Banner ——— */
.about-cta-banner {
    background: #1a1a1a;
    padding: 96px 0;
    text-align: center;
    color: #fff;
}

.about-cta-banner h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.about-cta-banner p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

/* ——— Contact page ——— */
/* contact-hero → unified .page-hero (see above) */

.contact-section {
    padding: 56px 0 72px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    align-items: start;
}

.contact-card {
    background: white;
    border-radius: 12px;
    padding: 28px 28px 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.contact-card h2 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.contact-row {
    margin-bottom: 18px;
}

.contact-row:last-child {
    margin-bottom: 0;
}

.contact-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-value {
    font-size: 1.02rem;
    color: #333;
}

.contact-value a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid rgba(26, 26, 26, 0.25);
}

.contact-value a:hover {
    border-bottom-color: #1a1a1a;
}

.contact-map-wrap {
    background: #e8eaed;
    border-radius: 12px;
    overflow: hidden;
    min-height: 320px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.contact-map-wrap iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

.contact-map-heading {
    font-size: 0.72rem;
    margin-bottom: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    font-weight: 600;
}

.contact-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 12px;
    line-height: 1.5;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

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

    .home-hub-grid {
        grid-template-columns: 1fr;
    }

    .home-hub-card {
        padding: 32px 24px 28px;
    }

    .home-hub-card h3 {
        font-size: 1.35rem;
    }

    .home-product-tile-top {
        min-height: 140px;
        padding: 28px 20px;
    }

    .home-product-logo {
        width: 72px;
        height: 72px;
    }

    .site-header-inner {
        gap: 10px;
    }

    .nav-logo {
        max-width: 36px;
        width: 36px;
    }

    .nav-hamburger {
        display: flex;
    }

    /* Full-width panel below bar; .site-nav anchors to .site-header-inner */
    .nav-right {
        position: static;
        gap: 10px;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1100;
    }

    .nav-menu {
        display: none;
        position: static;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        gap: 0;
        padding: 6px 0 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.06);
        max-height: min(70vh, 420px);
        overflow-y: auto;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 12px 20px;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .language-switcher button {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    header.hero-home {
        min-height: 100vh;
        padding: 110px 0 64px;
    }

    header.hero-home h1 {
        font-size: 2.4rem;
        letter-spacing: -1px;
    }

    header.hero-home .hero-home-tagline {
        font-size: 1.1rem;
    }

    header.hero-home .hero-home-lead {
        font-size: 1rem;
    }

    .page-hero {
        padding: 130px 0 70px;
    }

    .page-hero h1 {
        font-size: 2.4rem;
        letter-spacing: -1px;
    }

    .page-hero p {
        font-size: 1.1rem;
    }

    .product-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .product-wrapper.reverse {
        direction: ltr;
    }

    .product-image-wrapper {
        order: 3;
        width: 100%;
    }

    .product-info {
        display: contents;
    }

    .product-info h2 {
        font-size: 2rem;
        flex-wrap: wrap;
        order: 1;
        margin-bottom: 15px;
        text-align: left;
    }

    .product-info .tagline {
        order: 2;
        margin-bottom: 20px;
        text-align: left;
    }

    .product-info .description {
        order: 4;
        margin-bottom: 25px;
        text-align: left;
    }

    .product-info .product-features {
        order: 5;
        margin-bottom: 25px;
        text-align: left;
    }

    .product-info .product-link {
        order: 6;
    }

    .product-logo-small {
        max-width: 50px;
    }

    .gallery-item {
        height: 250px;
    }

    .gallery-container {
        height: 250px;
    }

    .synapp-placeholder {
        height: 250px;
    }

    .gallery-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .gallery-arrow.prev {
        left: 10px;
    }

    .gallery-arrow.next {
        right: 10px;
    }

    .product-info .tagline {
        font-size: 1.1rem;
    }

    .about-timeline {
        gap: 0;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 20px 0 20px 20px;
    }

    .timeline-item::before {
        left: -6px;
        width: 10px;
        height: 10px;
        top: 24px;
    }

    .timeline-date {
        font-size: 0.8rem;
    }

    .goals-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .goal-card-year {
        font-size: 3rem;
    }

    .about-cta-banner {
        padding: 64px 0;
    }

    .about-cta-banner h2 {
        font-size: 1.8rem;
    }

    .goal-card {
        padding: 28px 24px 32px;
    }

    .about-section {
        padding: 56px 0;
    }

    .about-section h2 {
        font-size: 1.65rem;
    }

    .team-photo-wrap {
        width: 90px;
        height: 90px;
    }

    .contact-map-wrap iframe {
        height: min(320px, 70vw);
    }
}
