/* ===================================================
   Homepage-only styles (en/index.html and language homepages)
   Shared components (section-head, reveal, nav, faq, final-cta …) live in style.css.
   =================================================== */

/* ---------- Hero ---------- */
.home-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem;
    text-align: center;
    isolation: isolate;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: -2;
    opacity: 0.55;
}

.hero-glow.g1 {
    width: 560px;
    height: 560px;
    left: -180px;
    top: -140px;
    background: var(--primary-color);
}

.hero-glow.g2 {
    width: 520px;
    height: 520px;
    right: -160px;
    top: -60px;
    background: var(--peach);
}

.hero-glow.g3 {
    width: 420px;
    height: 420px;
    left: 40%;
    top: 420px;
    background: var(--primary-light);
    opacity: 0.4;
}

.hero-constellation {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.7;
}

.hero-constellation .c-line {
    fill: none;
    stroke: var(--line-strong);
    stroke-width: 1;
    stroke-dasharray: 5 9;
}

.hero-constellation .c-node {
    fill: var(--primary-color);
    opacity: 0.6;
    transform-box: fill-box;
    transform-origin: center;
}

.hero-constellation .c-halo {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 1;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}

.hero-inner {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
    border-radius: 999px;
    padding: 0.35rem 0.9rem 0.35rem 0.4rem;
    font-size: 0.85rem;
    color: var(--ink-2);
    text-decoration: none;
    margin-bottom: 1.6rem;
}

.hero-badge .pill {
    background: var(--primary-color);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.hero-badge i {
    font-size: 0.7rem;
    color: var(--ink-faint);
}

.hero-h1 {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.0;
    color: var(--ink);
    margin: 0 auto 1.4rem;
}

.hero-h1 > span {
    display: block;
    text-wrap: balance;
}

.hero-h1 .accent {
    color: var(--primary-color);
}

.hero-lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 62ch;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 1.1rem;
    font-size: 0.85rem;
    color: var(--ink-faint);
}

.hero-media {
    position: relative;
    max-width: 1120px;
    margin: 3.5rem auto 0;
    padding: 10px;
    border-radius: var(--r-xl);
    background: linear-gradient(135deg, #ff6b6b 0%, #ffb3b3 45%, #ffd6a5 100%);
    box-shadow: var(--shadow-3);
}

.hero-media picture,
.hero-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: calc(var(--r-xl) - 8px);
    background: #fff;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-glow.g1 { animation: drift-a 26s ease-in-out infinite alternate; }
    .hero-glow.g2 { animation: drift-b 32s ease-in-out infinite alternate; }
    .hero-glow.g3 { animation: drift-c 22s ease-in-out infinite alternate; }

    .hero-constellation .c-line { animation: stream 16s linear infinite; }
    .hero-constellation .c-node { animation: node-pulse 4.5s ease-in-out infinite; }
    .hero-constellation .c-halo { animation: halo-pulse 4.5s ease-in-out infinite; }
    .hero-constellation .d1 { animation-delay: 0s; }
    .hero-constellation .d2 { animation-delay: 0.9s; }
    .hero-constellation .d3 { animation-delay: 1.8s; }
    .hero-constellation .d4 { animation-delay: 2.6s; }
    .hero-constellation .d5 { animation-delay: 3.4s; }

    .hero-inner > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
    .hero-inner > :nth-child(2) { animation-delay: 0.08s; }
    .hero-inner > :nth-child(3) { animation-delay: 0.16s; }
    .hero-inner > :nth-child(4) { animation-delay: 0.24s; }
    .hero-inner > :nth-child(5) { animation-delay: 0.3s; }
    .hero-media { animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both; }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

@keyframes drift-a {
    0% { transform: translate(0, 0) scale(1); }
    35% { transform: translate(50px, -40px) scale(1.08); }
    70% { transform: translate(-30px, 40px) scale(0.94); }
    100% { transform: translate(20px, 70px) scale(1.04); }
}

@keyframes drift-b {
    0% { transform: translate(0, 0) scale(1); }
    30% { transform: translate(-50px, 40px) scale(0.92); }
    65% { transform: translate(30px, 70px) scale(1.12); }
    100% { transform: translate(60px, -30px) scale(1); }
}

@keyframes drift-c {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-60px, -30px) scale(1.1); }
    100% { transform: translate(40px, 30px) scale(0.9); }
}

@keyframes stream {
    to { stroke-dashoffset: -280; }
}

@keyframes node-pulse {
    0%, 100% { opacity: 0.35; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.35); }
}

@keyframes halo-pulse {
    0%, 60%, 100% { opacity: 0; transform: scale(0.6); }
    10% { opacity: 0.8; transform: scale(1.2); }
    35% { opacity: 0; transform: scale(2.4); }
}

/* ---------- Works-with marquee ---------- */
.works-with {
    padding: 2.5rem 0 1rem;
}

.works-with-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--ink-faint);
    margin-bottom: 0.6rem;
}

.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    padding: 1rem 0;
}

.marquee-track {
    display: flex;
    gap: 3.5rem;
    width: max-content;
    padding-right: 3.5rem;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--ink-faint);
    white-space: nowrap;
}

.marquee-item i {
    font-size: 1.05rem;
    color: var(--ink-faint);
}

@media (prefers-reduced-motion: no-preference) {
    .marquee-track {
        animation: marquee 38s linear infinite;
    }

    .marquee:hover .marquee-track {
        animation-play-state: paused;
    }
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ---------- Bento ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}

.bento-card {
    grid-column: span 2;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-1);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bento-card.wide {
    grid-column: span 3;
}

.bento-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
}

.bento-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.bento-card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Mock UI shell */
.mock {
    position: relative;
    overflow: hidden;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 0.9rem;
    min-height: 200px;
    font-size: 0.72rem;
    color: var(--ink-soft);
    user-select: none;
}

.mock .chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--ink-2);
}

.mock .chip.ok {
    background: #e7f7ee;
    color: #15803d;
    border-color: transparent;
}

html[data-theme="dark"] .mock .chip.ok {
    background: #16321f;
    color: #6fd39b;
}

.mock .paper {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-1);
}

/* Calendar mock */
.mock-cal .cal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--ink-2);
}

.mock-cal .cal-grid {
    display: grid;
    grid-template-columns: 64px repeat(7, 1fr);
    gap: 4px 3px;
    align-items: center;
}

.mock-cal .cal-day {
    text-align: center;
    font-size: 0.62rem;
    color: var(--ink-faint);
}

.mock-cal .cal-prop {
    font-size: 0.66rem;
    color: var(--ink-2);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 4px;
}

.mock-cal .cal-cell {
    height: 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.mock-cal .bar {
    height: 22px;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 8px;
    white-space: nowrap;
    overflow: hidden;
}

.mock-cal .bar.coral { background: var(--primary-color); }
.mock-cal .bar.peach { background: #f0b06a; }
.mock-cal .bar.ink { background: var(--ink-soft); }

/* Check-in mock */
.mock-checkin .field {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.mock-checkin .field span {
    color: var(--ink-faint);
    font-size: 0.66rem;
}

.mock-checkin .field .val {
    height: 20px;
    border-radius: 6px;
    background: var(--card);
    border: 1px solid var(--line);
    padding: 0 8px;
    line-height: 20px;
    color: var(--ink-2);
    font-size: 0.68rem;
}

.mock-checkin .upload {
    margin: 0.5rem 0;
    border: 1.5px dashed var(--line-strong);
    border-radius: 10px;
    padding: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink-soft);
}

.mock-checkin .upload i {
    color: var(--primary-color);
    font-size: 1rem;
}

.mock-checkin .sig {
    position: relative;
    height: 34px;
    border-bottom: 1px solid var(--line-strong);
    margin: 0.4rem 0 0.7rem;
}

.mock-checkin .sig svg {
    position: absolute;
    left: 10px;
    bottom: 4px;
    width: 120px;
    height: 30px;
}

.mock-checkin .sig svg path {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.6;
    stroke-linecap: round;
}

/* Guest guide mock */
.mock-guide {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 0;
}

.mock-guide .phone {
    width: 150px;
    height: 190px;
    margin-bottom: -30px;
    border: 4px solid var(--ink);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background: var(--card);
    padding: 0.7rem 0.6rem;
    box-shadow: var(--shadow-2);
}

.mock-guide .phone .top {
    font-weight: 700;
    color: var(--ink);
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
}

.mock-guide .row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0;
    border-top: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 0.66rem;
}

.mock-guide .row i {
    width: 16px;
    color: var(--primary-color);
    text-align: center;
}

.mock-guide .bubble {
    margin-top: 0.5rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 12px 12px 12px 3px;
    padding: 0.4rem 0.55rem;
    font-size: 0.64rem;
    line-height: 1.3;
}

/* Invoice mock */
.mock-invoice .paper {
    padding: 0.8rem 0.9rem;
    margin: 0 auto;
    max-width: 260px;
}

.mock-invoice .inv-head {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.mock-invoice .li {
    display: flex;
    justify-content: space-between;
    padding: 0.28rem 0;
    border-top: 1px solid var(--line);
    color: var(--ink-2);
}

.mock-invoice .total {
    display: flex;
    justify-content: space-between;
    padding-top: 0.4rem;
    margin-top: 0.2rem;
    border-top: 1px solid var(--line-strong);
    font-weight: 700;
    color: var(--ink);
}

.mock-invoice .stamp {
    position: absolute;
    right: 18px;
    top: 16px;
    transform: rotate(-12deg);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    opacity: 0.9;
}

/* Booking widget mock */
.mock-booking .paper {
    padding: 0.8rem;
}

.mock-booking .bk-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.mock-booking .bk-date {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    line-height: 1.25;
}

.mock-booking .bk-date b {
    display: block;
    color: var(--ink);
    font-size: 0.72rem;
}

.mock-booking .bk-line {
    display: flex;
    justify-content: space-between;
    padding: 0.22rem 0;
    color: var(--ink-2);
}

.mock-booking .bk-line.bk-total {
    border-top: 1px solid var(--line-strong);
    margin-top: 0.2rem;
    padding-top: 0.4rem;
    font-weight: 700;
    color: var(--ink);
}

.mock-booking .btn-mini {
    margin-top: 0.6rem;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    border-radius: 999px;
    padding: 0.4rem;
    font-weight: 600;
    font-size: 0.72rem;
}


/* ---------- PMS add-on section ---------- */
.pms-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 3rem 4rem;
    align-items: center;
}

.pms-copy h2 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--ink);
    margin-bottom: 1rem;
}

.pms-copy > p {
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.4rem;
    max-width: 48ch;
}

.pms-points {
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.pms-points li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    color: var(--ink-2);
    font-size: 0.98rem;
    line-height: 1.5;
}

.pms-points i {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 0.65rem;
    display: grid;
    place-items: center;
    margin-top: 0.15rem;
}

.pms-diagram {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1.15fr);
    align-items: stretch;
}

.pms-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.3rem;
    box-shadow: var(--shadow-1);
}

.pms-source {
    background: var(--paper-2);
}

.pms-target {
    border-color: rgba(255, 107, 107, 0.45);
    box-shadow: 0 18px 40px -22px rgba(255, 107, 107, 0.55), var(--shadow-1);
}

.pms-box-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--ink);
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
}

.pms-box-title img {
    border-radius: 6px;
}

.pms-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.pms-chips span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-2);
}

.pms-chips i {
    color: var(--ink-faint);
    font-size: 0.75rem;
}

.pms-box-note {
    margin-top: 0.9rem;
    font-size: 0.78rem;
    color: var(--ink-faint);
}

.pms-adds {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pms-adds li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}

.pms-adds li:first-child {
    border-top: 0;
    padding-top: 0;
}

.pms-adds i {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 0.8rem;
    display: grid;
    place-items: center;
}

.pms-link {
    position: relative;
    display: grid;
    place-items: center;
}

.pms-link svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pms-line {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-dasharray: 5 7;
    stroke-linecap: round;
}

.pms-sync {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    box-shadow: 0 0 0 6px var(--paper);
}

@media (prefers-reduced-motion: no-preference) {
    .pms-line {
        animation: stream 6s linear infinite;
    }
}

@media (max-width: 1024px) {
    .pms-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pms-diagram {
        grid-template-columns: 1fr;
        grid-template-rows: auto 56px auto;
    }

    .pms-link svg {
        display: none;
    }

    .pms-link::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        border-left: 2px dashed var(--primary-color);
        opacity: 0.7;
    }
}

/* ---------- Dark-mode tweaks ---------- */
html[data-theme="dark"] .hero-glow {
    opacity: 0.32;
}

html[data-theme="dark"] .hero-glow.g3 {
    opacity: 0.22;
}

html[data-theme="dark"] .hero-media img {
    background: #1d2026;
}

html[data-theme="dark"] .mock-cal .bar.ink {
    background: #6c7079;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .bento-card,
    .bento-card.wide {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 3rem 0 2.5rem;
    }

    .hero-constellation {
        display: none;
    }

    .hero-glow.g1 { width: 360px; height: 360px; left: -140px; top: -120px; }
    .hero-glow.g2 { width: 320px; height: 320px; right: -140px; top: 40px; }
    .hero-glow.g3 { display: none; }

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

    .hero-media {
        margin-top: 2.5rem;
        padding: 6px;
        border-radius: var(--r-lg);
    }

    .hero-media img {
        border-radius: calc(var(--r-lg) - 5px);
    }

    .marquee-item {
        font-size: 1rem;
    }

    .bento-card,
    .bento-card.wide {
        grid-column: span 6;
    }
}
