/* Partegro — under construction page. Plain CSS, no build step. */

:root {
    --orange: #fe6804;
    --orange-hover: #ff7d24;
    --ink: #0d0f13;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.72);
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --radius: 16px;
    --gutter: clamp(20px, 5vw, 64px);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    font-family: var(--font);
    color: var(--text);
    background-color: var(--ink);
    /* Darker on the text side so copy stays readable over the photo. */
    background-image:
        linear-gradient(90deg, rgba(13, 15, 19, 0.94) 0%, rgba(13, 15, 19, 0.82) 45%, rgba(13, 15, 19, 0.55) 100%),
        url("../images/bg-1.jpg");
    background-image:
        linear-gradient(90deg, rgba(13, 15, 19, 0.94) 0%, rgba(13, 15, 19, 0.82) 45%, rgba(13, 15, 19, 0.55) 100%),
        image-set(url("../images/bg-1.webp") type("image/webp"), url("../images/bg-1.jpg") type("image/jpeg"));
    background-size: cover;
    background-position: 65% center;
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ---------- Layout ---------- */

.page {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: clamp(24px, 5vh, 56px);
    padding:
        max(clamp(20px, 4vh, 48px), env(safe-area-inset-top))
        max(var(--gutter), env(safe-area-inset-right))
        max(20px, env(safe-area-inset-bottom))
        max(var(--gutter), env(safe-area-inset-left));
}

.page__main {
    align-self: center;
    min-width: 0;
    max-width: 720px;
}

/* ---------- Logo ---------- */

.brand {
    display: inline-block;
    width: clamp(190px, 34vw, 360px);
    border-radius: 8px;
}

/* ---------- Copy ---------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.eyebrow__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 0 rgba(254, 104, 4, 0.6);
    animation: pulse 2.4s ease-out infinite;
}

.headline {
    margin: 0;
    font-size: clamp(2rem, 1.2rem + 4vw, 4.25rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.02em;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.headline__accent {
    display: block;
    color: var(--orange);
    font-style: italic;
}

.lead {
    margin: clamp(16px, 2.5vh, 24px) 0 0;
    max-width: 46ch;
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
    line-height: 1.6;
    color: var(--text-muted);
}

.lead time {
    color: var(--text);
    font-weight: 600;
}

/* ---------- Countdown ---------- */

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(8px, 2vw, 16px);
    max-width: 520px;
    margin-top: clamp(24px, 4.5vh, 44px);
}

.countdown__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: clamp(12px, 2.4vw, 20px) 4px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    background: var(--glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.countdown__value {
    font-size: clamp(1.5rem, 0.9rem + 3.4vw, 2.75rem);
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.countdown__label {
    font-size: clamp(0.625rem, 0.55rem + 0.4vw, 0.8125rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.launched {
    margin: clamp(24px, 4.5vh, 44px) 0 0;
    font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
    font-weight: 700;
    color: var(--orange);
}

/* ---------- Contact ---------- */

.contact {
    margin-top: clamp(28px, 5vh, 48px);
}

.contact__title {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    min-height: 48px;
    padding: 10px 20px 10px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.contact__link:hover {
    background: var(--orange);
    border-color: var(--orange);
}

.contact__icon {
    flex: none;
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* ---------- Footer ---------- */

.page__footer p {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ---------- Focus ---------- */

a:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 4px;
}

/* ---------- Motion ---------- */

.page__header,
.page__main > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.page__main > :nth-child(2) { animation-delay: 0.06s; }
.page__main > :nth-child(3) { animation-delay: 0.12s; }
.page__main > :nth-child(4) { animation-delay: 0.18s; }
.page__main > :nth-child(5),
.page__main > :nth-child(6) { animation-delay: 0.24s; }

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(254, 104, 4, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(254, 104, 4, 0); }
    100% { box-shadow: 0 0 0 0 rgba(254, 104, 4, 0); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Breakpoints ---------- */

/* Phones: the photo sits behind the whole block, so darken it evenly. */
@media (max-width: 640px) {
    body {
        background-image:
            linear-gradient(180deg, rgba(13, 15, 19, 0.9) 0%, rgba(13, 15, 19, 0.84) 100%),
            url("../images/bg-1.jpg");
        background-image:
            linear-gradient(180deg, rgba(13, 15, 19, 0.9) 0%, rgba(13, 15, 19, 0.84) 100%),
            image-set(url("../images/bg-1.webp") type("image/webp"), url("../images/bg-1.jpg") type("image/jpeg"));
        background-position: 70% center;
    }
}

/* Very narrow phones (≤360 px): tighter countdown. */
@media (max-width: 360px) {
    .countdown__cell {
        border-radius: 12px;
    }
    .countdown__label {
        letter-spacing: 0.06em;
    }
}

/* Short landscape screens (phones on their side, small laptops). */
@media (max-height: 520px) and (orientation: landscape) {
    .page {
        gap: 20px;
    }
    .page__main {
        align-self: start;
    }
    .brand {
        width: clamp(160px, 22vw, 240px);
    }
    .headline {
        font-size: clamp(1.75rem, 1rem + 2.6vw, 2.75rem);
    }
    .countdown {
        max-width: 400px;
    }
    .countdown__value {
        font-size: 1.75rem;
    }
}

[hidden] {
    display: none !important;
}
