/* =============================================================
   VeltaCar — Página de manutenção
   Paleta derivada do sistema:
     --velta-purple:     #7367F0
     --velta-purple-dk:  #32236F
     --velta-purple-lt:  #F6F4FE
     --velta-ink:        #3E3F66
============================================================= */

:root {
    --velta-purple: #7367F0;
    --velta-purple-hi: #8E82FF;
    --velta-purple-dk: #32236F;
    --velta-purple-lt: #F6F4FE;
    --velta-purple-wash: #DFDAF3;
    --velta-ink: #3E3F66;
    --velta-ink-soft: rgba(62, 63, 102, 0.68);
    --velta-ink-muted: rgba(62, 63, 102, 0.52);
    --velta-white: #FFFFFF;

    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;

    --font-display: 'Fraunces', 'Poppins', serif;
    --font-sans: 'Poppins', system-ui, sans-serif;

    --ease: cubic-bezier(.2, .7, .2, 1);
    --ease-soft: cubic-bezier(.4, .2, .2, 1);

    --shadow-card:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 30px 60px -30px rgba(50, 35, 111, 0.35),
        0 10px 30px -15px rgba(115, 103, 240, 0.25);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100dvh;
    font-family: var(--font-sans);
    color: var(--velta-ink);
    background: var(--velta-purple-lt);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* ------------ Ambient background ------------ */

.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(120% 80% at 100% 0%, #EDE8FF 0%, transparent 55%),
        radial-gradient(100% 70% at 0% 100%, #F3EFFF 0%, transparent 60%),
        linear-gradient(180deg, #FBFAFF 0%, #F3EFFF 100%);
}

.mesh {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    mix-blend-mode: multiply;
    animation: meshFloat 18s var(--ease-soft) infinite;
}

.mesh-1 {
    width: 620px;
    height: 620px;
    top: -180px;
    left: -160px;
    background: radial-gradient(circle, var(--velta-purple) 0%, transparent 70%);
}

.mesh-2 {
    width: 540px;
    height: 540px;
    bottom: -220px;
    right: -120px;
    background: radial-gradient(circle, var(--velta-purple-dk) 0%, transparent 70%);
    animation-delay: -6s;
    opacity: 0.35;
}

.mesh-3 {
    width: 420px;
    height: 420px;
    top: 40%;
    right: 20%;
    background: radial-gradient(circle, #C6BDFF 0%, transparent 70%);
    animation-delay: -12s;
    opacity: 0.45;
}

@keyframes meshFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -30px) scale(1.06); }
    66%      { transform: translate(-30px, 25px) scale(0.97); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(50, 35, 111, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 35, 111, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.noise {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.15 0 0 0 0 0.43 0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* ------------ Floating orbit geometry ------------ */

.orbit {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    display: block;
}

.shape-ring {
    width: 520px;
    height: 520px;
    border-radius: 50%;
    border: 1px dashed rgba(115, 103, 240, 0.28);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ringSpin 42s linear infinite;
}

.shape-ring-2 {
    width: 780px;
    height: 780px;
    border: 1px dashed rgba(50, 35, 111, 0.14);
    animation-duration: 60s;
    animation-direction: reverse;
}

.shape-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--velta-purple);
    box-shadow: 0 0 24px 2px rgba(115, 103, 240, 0.6);
}

.shape-dot-1 {
    top: 18%;
    left: 14%;
    animation: drift 9s ease-in-out infinite;
}

.shape-dot-2 {
    top: 70%;
    right: 10%;
    width: 7px;
    height: 7px;
    background: var(--velta-purple-dk);
    animation: drift 11s ease-in-out infinite -3s;
}

.shape-dot-3 {
    top: 35%;
    right: 22%;
    width: 5px;
    height: 5px;
    background: var(--velta-purple-hi);
    animation: drift 7s ease-in-out infinite -5s;
}

@keyframes ringSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); opacity: 0.9; }
    50%      { transform: translate(14px, -18px); opacity: 0.45; }
}

/* ------------ Stage / layout ------------ */

.stage {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(28px, 6vw, 64px) clamp(20px, 5vw, 56px) 48px;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 4vw, 44px);
}

/* ------------ Brand header ------------ */

.brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand__logo {
    width: clamp(150px, 16vw, 190px);
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 20px rgba(115, 103, 240, 0.25));
}

.brand__pulse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(115, 103, 240, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--velta-purple-dk);
}

.brand__pulse::after {
    content: "Live";
    letter-spacing: 0.14em;
}

.brand__pulse i {
    width: 4px;
    height: 10px;
    background: var(--velta-purple);
    border-radius: 2px;
    animation: equalizer 1.2s ease-in-out infinite;
}

.brand__pulse i:nth-child(2) { animation-delay: -0.9s; }
.brand__pulse i:nth-child(3) { animation-delay: -0.5s; }

@keyframes equalizer {
    0%, 100% { transform: scaleY(0.5); }
    50%      { transform: scaleY(1.4); }
}

/* ------------ Main card ------------ */

.card {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 100%);
    border: 1px solid rgba(115, 103, 240, 0.18);
    border-radius: var(--radius-xl);
    padding: clamp(28px, 4vw, 48px);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 60% at 100% 0%, rgba(115, 103, 240, 0.10) 0%, transparent 60%),
        radial-gradient(60% 60% at 0% 100%, rgba(50, 35, 111, 0.08) 0%, transparent 60%);
}

.card > * {
    position: relative;
}

/* Status chip */
.card__status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    background: rgba(115, 103, 240, 0.09);
    border: 1px solid rgba(115, 103, 240, 0.22);
    color: var(--velta-purple-dk);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 22px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--velta-purple);
    position: relative;
    flex-shrink: 0;
}

.status-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--velta-purple);
    opacity: 0;
    animation: ping 2s ease-out infinite;
}

@keyframes ping {
    0%   { opacity: 0.8; transform: scale(0.6); }
    100% { opacity: 0;   transform: scale(1.8); }
}

/* Headline */
.headline {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(34px, 5.4vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--velta-purple-dk);
    margin: 0 0 18px;
    font-variation-settings: 'opsz' 120, 'SOFT' 30;
}

.headline__accent {
    position: relative;
    display: inline-block;
    font-style: italic;
    color: var(--velta-purple);
    padding: 0 4px;
}

.underline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    width: 100%;
    height: 12px;
    color: var(--velta-purple-hi);
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    animation: drawLine 1.6s var(--ease) 0.6s forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Sub */
.sub {
    font-size: clamp(15px, 1.4vw, 17px);
    color: var(--velta-ink-soft);
    margin: 0 0 32px;
    max-width: 58ch;
}

.sub strong {
    color: var(--velta-purple-dk);
    font-weight: 600;
}

/* ------------ Window (18h → 23h) ------------ */

.window {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(14px, 2.5vw, 28px);
    padding: clamp(18px, 2.4vw, 24px) clamp(20px, 3vw, 32px);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(115, 103, 240, 0.08) 0%, rgba(50, 35, 111, 0.03) 100%);
    border: 1px solid rgba(115, 103, 240, 0.16);
    margin-bottom: 28px;
}

.window__col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.window__label {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--velta-ink-muted);
    font-weight: 600;
}

.window__time {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(30px, 4vw, 42px);
    color: var(--velta-purple-dk);
    line-height: 1;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: baseline;
}

.window__time i {
    display: inline-block;
    margin: 0 2px;
    font-style: normal;
    color: var(--velta-purple);
    transform: translateY(-4px);
    animation: colonBlink 1.4s ease-in-out infinite;
}

.window__divider {
    color: var(--velta-purple);
    opacity: 0.55;
}

.window__divider svg {
    width: clamp(36px, 5vw, 48px);
    height: auto;
    display: block;
}

@keyframes colonBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

/* ------------ Progress ------------ */

.progress {
    margin-bottom: 30px;
}

.progress__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress__title {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--velta-ink-muted);
    font-weight: 600;
}

.progress__value {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    color: var(--velta-purple-dk);
    letter-spacing: -0.01em;
}

.progress__track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: rgba(115, 103, 240, 0.12);
    overflow: hidden;
}

.progress__bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--velta-purple-dk) 0%, var(--velta-purple) 60%, var(--velta-purple-hi) 100%);
    transition: width 0.8s var(--ease);
    position: relative;
    overflow: hidden;
}

.progress__bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: shimmer 2.4s linear infinite;
}

@keyframes shimmer {
    to { transform: translateX(100%); }
}

.progress__glow {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0%;
    height: 10px;
    border-radius: 999px;
    box-shadow: 0 0 24px 4px rgba(115, 103, 240, 0.55);
    transform: translateY(-50%);
    transition: width 0.8s var(--ease);
    pointer-events: none;
}

.progress__hint {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--velta-ink-muted);
}

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

.countdown {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(8px, 2vw, 18px);
    padding: clamp(18px, 2.4vw, 24px) clamp(20px, 3vw, 28px);
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--velta-purple-dk) 0%, #42318A 100%);
    color: var(--velta-white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 48px -24px rgba(50, 35, 111, 0.55);
}

.countdown::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(142, 130, 255, 0.45) 0%, transparent 60%);
    pointer-events: none;
}

.unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
}

.unit__num {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(36px, 5.4vw, 52px);
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.unit__lbl {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

.unit__sep {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(30px, 4vw, 44px);
    color: rgba(255, 255, 255, 0.4);
    line-height: 1;
    transform: translateY(-10px);
    animation: colonBlink 1.4s ease-in-out infinite;
}

/* ------------ Actions ------------ */

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.btn--primary {
    background: var(--velta-purple);
    color: var(--velta-white);
    box-shadow:
        0 14px 30px -14px rgba(115, 103, 240, 0.75),
        0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.btn--primary:hover {
    background: var(--velta-purple-dk);
    transform: translateY(-2px);
    box-shadow:
        0 20px 36px -16px rgba(50, 35, 111, 0.7),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.btn--ghost {
    background: transparent;
    color: var(--velta-purple-dk);
    border-color: rgba(50, 35, 111, 0.22);
}

.btn--ghost:hover {
    background: var(--velta-purple-dk);
    color: var(--velta-white);
    border-color: var(--velta-purple-dk);
    transform: translateY(-2px);
}

.btn--ghost svg {
    transition: transform 0.5s var(--ease);
}

.btn--ghost:hover svg {
    transform: rotate(180deg);
}

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

.foot {
    margin-top: auto;
    padding-top: 8px;
    color: var(--velta-ink-muted);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.foot__line {
    margin: 0;
    font-style: italic;
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--velta-ink-soft);
}

.foot__sig {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--velta-ink-soft);
}

.foot__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--velta-purple);
}

/* ------------ Reveal animation ------------ */

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp 0.9s var(--ease) forwards;
}

.brand[data-reveal]    { animation-delay: 0.05s; }
.card[data-reveal]     { animation-delay: 0.20s; }
.foot[data-reveal]     { animation-delay: 0.55s; }

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------ Responsive ------------ */

@media (max-width: 640px) {
    .brand__pulse {
        padding: 6px 10px;
        font-size: 10px;
    }

    .window {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 14px;
        padding: 20px;
    }

    .window__col {
        align-items: flex-start;
    }

    .window__divider {
        transform: rotate(90deg);
        justify-self: start;
        margin-left: 8px;
    }

    .countdown {
        justify-content: space-between;
    }

    .unit {
        min-width: auto;
    }

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

    .btn {
        justify-content: center;
    }

    .foot {
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .underline { stroke-dashoffset: 0; }
}
