@import url("./style.css");

.landing-hero,
.landing-info-section,
.landing-footer {
    contain: layout paint;
}

.landing-hero {
    animation: none;
}
.home-share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(8px);
}
.home-share-button:hover { background: rgba(255, 255, 255, .24); }
.share-links-panel[hidden] { display: none; }
.share-links-panel {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .55);
}
.share-links-card {
    position: relative;
    width: min(100%, 420px);
    padding: 28px;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background: var(--card-bg);
    color: var(--text-color);
    box-shadow: 0 20px 60px rgba(15, 23, 42, .22);
}
.share-links-card h2 { margin: 8px 0; }
.share-links-card p { color: var(--text-muted); font-size: .84rem; }
.share-links-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
}
.share-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0 12px; }
.share-link, .share-copy-link {
    display: block;
    border: 0;
    border-radius: 11px;
    padding: 12px;
    color: #fff;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.share-link.whatsapp { background: #16a34a; }
.share-link.telegram { background: #0284c7; }
.share-link.instagram { background: #c026d3; }
.share-link.snapchat { background: #eab308; color: #111827; }
.share-copy-link { width: 100%; background: var(--primary); }
.share-link-status { min-height: 20px; margin-top: 10px; text-align: center; }
@media (max-width: 700px) {
    .glassy-nav { transition: transform .3s ease, opacity .3s ease; }
    .glassy-nav.nav-hidden-on-scroll { transform: translateY(-110%); opacity: 0; pointer-events: none; }
    .home-share-button { margin-bottom: 12px; }
}
.home-first-visit .landing-hero {
    animation: homeHeroIn .8s cubic-bezier(.22, .8, .24, 1) both;
}
.landing-hero > .landing-eyebrow,
.landing-hero > .landing-title,
.landing-hero > .home-live-update,
.landing-hero > .portal-buttons,
.landing-hero > .landing-hint {
    opacity: 1;
}
.home-first-visit .landing-hero > .landing-eyebrow,
.home-first-visit .landing-hero > .landing-title,
.home-first-visit .landing-hero > .home-live-update,
.home-first-visit .landing-hero > .portal-buttons,
.home-first-visit .landing-hero > .landing-hint {
    opacity: 0;
    animation: homeContentIn .7s cubic-bezier(.22, .8, .24, 1) forwards;
}
.home-first-visit .landing-hero > .landing-eyebrow { animation-delay: .08s; }
.home-first-visit .landing-hero > .landing-title { animation-delay: .16s; }
.home-first-visit .landing-hero > .home-live-update { animation-delay: .3s; }
.home-first-visit .landing-hero > .portal-buttons { animation-delay: .42s; }
.home-first-visit .landing-hero > .landing-hint { animation-delay: .58s; }

.landing-title .typing-line {
    display: block;
}
.home-first-visit .landing-title .typing-line {
    width: 0;
    max-width: max-content;
    margin-inline: auto;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary);
    animation: typingLine 1.15s steps(22, end) forwards, typingCaret .75s step-end infinite;
}
.home-first-visit .landing-title .typing-line-one { animation-delay: .55s, .55s; }
.home-first-visit .landing-title .typing-line-two { animation-delay: 1.65s, 1.65s; }
.home-first-visit .landing-title .typing-line-two {
    color: var(--primary);
}

.stationery-btn.home-operation-ready {
    border-color: rgba(34, 197, 94, .55);
    box-shadow: 0 12px 34px rgba(22, 101, 52, .18);
}
.stationery-btn.home-operation-development {
    border-color: rgba(245, 158, 11, .7);
    box-shadow: 0 12px 34px rgba(180, 83, 9, .18);
}
.stationery-btn.home-operation-paused {
    border-color: rgba(239, 68, 68, .7);
    box-shadow: 0 12px 34px rgba(127, 29, 29, .2);
}
.stationery-btn.home-operation-xerox {
    border-color: rgba(245, 158, 11, .7);
    box-shadow: 0 12px 34px rgba(180, 83, 9, .18);
}
.stationery-btn.home-operation-combined {
    border-color: rgba(34, 197, 94, .65);
    box-shadow: 0 12px 34px rgba(22, 101, 52, .18);
}
.stationery-btn .portal-text { align-items: flex-start; }
.home-live-update {
    position: relative;
    isolation: isolate;
    width: min(100%, 680px);
    margin: 26px auto 0;
    padding: 18px 20px 18px 24px;
    border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border-color));
    border-radius: 20px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--card-bg) 88%, var(--primary-light)), color-mix(in srgb, var(--primary-light) 70%, var(--card-bg)));
    color: var(--text-color);
    text-align: left;
    box-shadow: 0 16px 40px color-mix(in srgb, var(--primary) 12%, transparent);
    overflow: hidden;
    transform: translateZ(0);
}
.home-live-update::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #f59e0b, var(--primary), #22c55e);
    z-index: -1;
}
.home-live-update::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -115px;
    right: -70px;
    border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
    border-radius: 50%;
    box-shadow: 0 0 0 18px color-mix(in srgb, var(--primary) 6%, transparent);
    pointer-events: none;
}
.home-live-update:not([hidden]) {
    animation: liveUpdateIn .6s cubic-bezier(.22, .8, .24, 1) both;
}
.home-live-update-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
}
.home-live-update-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, .14);
    animation: liveDot 1.8s ease-in-out infinite;
}
.home-live-update p { margin: 0; max-width: 58ch; line-height: 1.6; font-size: .92rem; }

@keyframes homeHeroIn {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes homeContentIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes typingLine {
    from { width: 0; }
    to { width: 100%; }
}
@keyframes typingCaret {
    0%, 45% { border-color: var(--primary); }
    46%, 100% { border-color: transparent; }
}
@keyframes liveUpdateIn {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes liveDot {
    0%, 100% { transform: scale(.9); opacity: .7; }
    50% { transform: scale(1.15); opacity: 1; }
}

@media (max-width: 649px) {
    .home-live-update {
        width: min(100%, 420px);
        margin-top: 20px;
        padding: 16px 16px 16px 20px;
        border-radius: 17px;
    }
    .home-live-update p { font-size: .84rem; }
    .home-first-visit .landing-title .typing-line {
        border-right-width: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-first-visit .landing-hero,
    .home-first-visit .landing-hero > .landing-eyebrow,
    .home-first-visit .landing-hero > .landing-title,
    .home-first-visit .landing-hero > .home-live-update,
    .home-first-visit .landing-hero > .portal-buttons,
    .home-first-visit .landing-hero > .landing-hint,
    .home-first-visit .landing-title .typing-line,
    .home-live-update:not([hidden]),
    .home-live-update-label::before {
        animation: none;
        opacity: 1;
        width: auto;
        transform: none;
    }
    .home-first-visit .landing-title .typing-line {
        border-right: 0;
    }
}
