/* ===========================================
   DR Transportes & Logística — Em Construção
   Design premium dark mode
   =========================================== */

:root {
    --bg-deep: #060e1a;
    --bg-mid:  #0a1929;
    --bg-soft: #0f2237;

    --brand-cyan:  #1ba6db;
    --brand-light: #6fd0ee;
    --brand-deep:  #0d4f6e;
    --brand-pale:  #bce6f5;

    --text:        #e8f1f8;
    --text-soft:   #94a8bf;
    --text-dim:    #5d748c;

    --accent:      #ffcc4d;

    --radius-lg: 28px;
    --radius-md: 16px;
}

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

html, body { height: 100%; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Gradiente escuro radial sob tudo */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, var(--bg-soft) 0%, transparent 60%),
        radial-gradient(ellipse 100% 80% at 50% 100%, #0d2237 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
    z-index: -3;
}

/* ===== Luzes ambientais (bokeh) ===== */
.bg-lights {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -2;
    pointer-events: none;
}

.light {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    will-change: transform;
}

.light-1 {
    width: 520px;
    height: 520px;
    top: -120px;
    left: -120px;
    background: radial-gradient(circle, var(--brand-cyan) 0%, transparent 70%);
    animation: floatA 16s ease-in-out infinite;
}

.light-2 {
    width: 600px;
    height: 600px;
    bottom: -180px;
    right: -160px;
    background: radial-gradient(circle, #2563a8 0%, transparent 70%);
    animation: floatB 20s ease-in-out infinite;
}

.light-3 {
    width: 380px;
    height: 380px;
    top: 30%;
    left: 55%;
    background: radial-gradient(circle, #4ad3f9 0%, transparent 70%);
    opacity: 0.28;
    animation: floatC 24s ease-in-out infinite;
}

@keyframes floatA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(40px, 60px) scale(1.1); }
}
@keyframes floatB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-50px, -40px) scale(1.08); }
}
@keyframes floatC {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-30px, 40px) scale(0.92); }
}

/* ===== Textura noise (SVG inline data URI) ===== */
.bg-noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ===== Grid sutil de fundo ===== */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(111, 208, 238, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(111, 208, 238, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 32px 24px 24px;
    position: relative;
    z-index: 1;
}

.hero-inner {
    width: 100%;
    max-width: 880px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: auto 0;
}

/* ===== Logo card ===== */
.logo-card {
    background: #ffffff;
    padding: 20px 38px;
    border-radius: var(--radius-md);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 24px 60px -20px rgba(27, 166, 219, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.4);
    margin-bottom: 36px;
    position: relative;
    animation: rise 0.9s cubic-bezier(.2, .8, .2, 1) both;
    max-width: 92%;
}

.logo-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand-cyan), transparent 50%, var(--brand-light));
    opacity: 0.35;
    z-index: -1;
    filter: blur(14px);
}

.logo {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
}

/* ===== Kicker (tag em cima do título) ===== */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--brand-light);
    background: rgba(27, 166, 219, 0.1);
    border: 1px solid rgba(27, 166, 219, 0.25);
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 24px;
    animation: rise 1s cubic-bezier(.2, .8, .2, 1) 0.1s both;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-cyan);
    box-shadow: 0 0 12px var(--brand-cyan);
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.85); }
}

/* ===== Título gigante ===== */
.title {
    font-family: 'Anton', 'Inter', sans-serif;
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.title-line {
    display: block;
    font-size: clamp(3.5rem, 12vw, 8.5rem);
    background: linear-gradient(180deg, #ffffff 0%, #b8d4e6 60%, #6fa6c4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 4px 24px rgba(255, 255, 255, 0.08));
    animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) 0.2s both;
}

.title-line.accent {
    background: linear-gradient(180deg, var(--brand-pale) 0%, var(--brand-cyan) 60%, var(--brand-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 8px 32px rgba(27, 166, 219, 0.55));
    animation-delay: 0.3s;
}

/* ===== Subtítulo ===== */
.subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.7;
    color: var(--text-soft);
    max-width: 560px;
    margin-bottom: 40px;
    font-weight: 400;
    animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) 0.45s both;
}

.subtitle strong {
    color: var(--brand-light);
    font-weight: 600;
}

/* ===== Cena (caminhão + estrada) ===== */
.scene {
    position: relative;
    width: 100%;
    max-width: 720px;
    height: 240px;
    margin-bottom: 36px;
    animation: rise 1.2s cubic-bezier(.2, .8, .2, 1) 0.6s both;
}

/* Estrada com perspectiva */
.road-perspective {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130%;
    height: 100px;
    perspective: 320px;
    perspective-origin: 50% 0%;
}

.road-surface {
    position: absolute;
    inset: 0;
    transform: rotateX(58deg);
    transform-origin: 50% 0%;
    background:
        linear-gradient(180deg,
            rgba(10, 25, 41, 0) 0%,
            rgba(40, 50, 65, 0.9) 30%,
            #2a3340 60%,
            #1a222e 100%);
    border-top: 1px solid rgba(111, 208, 238, 0.15);
    overflow: hidden;
}

.road-lanes {
    position: absolute;
    top: 50%;
    left: 0;
    width: 200%;
    height: 6px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(
        to right,
        var(--accent) 0,
        var(--accent) 60px,
        transparent 60px,
        transparent 130px
    );
    animation: roadMove 0.7s linear infinite;
    box-shadow: 0 0 12px rgba(255, 204, 77, 0.4);
}

@keyframes roadMove {
    from { transform: translate(-130px, -50%); }
    to   { transform: translate(0, -50%); }
}

/* Caminhão */
.truck-wrap {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    max-width: 70%;
    z-index: 2;
    animation: truckBob 0.6s ease-in-out infinite alternate;
}

.truck {
    display: block;
    width: 100%;
    height: auto;
    transform: scaleX(-1);
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45))
            drop-shadow(0 0 24px rgba(27, 166, 219, 0.15));
}

.truck-shadow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 18px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
    filter: blur(6px);
    z-index: 1;
}

@keyframes truckBob {
    from { transform: translate(-50%, 0); }
    to   { transform: translate(-50%, -3px); }
}

/* Poeira saindo das rodas */
.dust {
    position: absolute;
    bottom: 22px;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, rgba(180, 200, 220, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    z-index: 1;
}

.dust-1 { right: 38%; animation: puff 2.2s ease-out infinite; }
.dust-2 { right: 32%; animation: puff 2.2s ease-out infinite 0.7s; }
.dust-3 { right: 28%; animation: puff 2.2s ease-out infinite 1.4s; }

@keyframes puff {
    0%   { opacity: 0; transform: translate(0, 0) scale(0.4); }
    20%  { opacity: 0.7; }
    100% { opacity: 0; transform: translate(60px, -10px) scale(2.4); }
}

/* ===== Barra de progresso ===== */
.progress {
    width: 100%;
    max-width: 460px;
    animation: rise 1.2s cubic-bezier(.2, .8, .2, 1) 0.75s both;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(111, 208, 238, 0.12);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-cyan) 0%, var(--brand-light) 50%, var(--brand-cyan) 100%);
    background-size: 200% 100%;
    border-radius: 999px;
    box-shadow: 0 0 12px var(--brand-cyan), 0 0 24px rgba(27, 166, 219, 0.4);
    animation: fill 3s cubic-bezier(.4, 0, .2, 1) 0.6s forwards,
               shimmer 2s linear 3.6s infinite;
}

@keyframes fill {
    from { width: 0%; }
    to   { width: 87%; }
}

@keyframes shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--text-dim);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.progress-percent {
    color: var(--brand-light);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ===== Footer ===== */
.footer {
    width: 100%;
    text-align: center;
    padding-top: 32px;
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    animation: rise 1.2s cubic-bezier(.2, .8, .2, 1) 0.9s both;
}

.footer strong {
    color: var(--text-soft);
    font-weight: 600;
}

/* ===== Animação geral de entrada ===== */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* ===== Responsivo ===== */
@media (max-width: 720px) {
    .logo-card { padding: 16px 28px; margin-bottom: 28px; }
    .logo { max-width: 280px; }
    .subtitle { margin-bottom: 32px; }
    .scene { height: 200px; margin-bottom: 28px; }
    .truck-wrap { bottom: 22px; }
    .road-perspective { height: 80px; }
}

@media (max-width: 480px) {
    .hero { padding: 24px 16px 16px; }
    .title-line { letter-spacing: 1px; }
    .kicker { letter-spacing: 3px; padding: 6px 14px; font-size: 0.7rem; }
    .scene { height: 170px; }
    .truck-wrap { bottom: 16px; width: 220px; }
    .road-perspective { height: 60px; }
}

/* ===== Movimento reduzido ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }
    .progress-fill { width: 87%; }
}
