:root {
    /* Paleta Oficial IMC - Indoor Media Control (extraída do logotipo e do imc-server) */
    --imc-bg-deep: #0b0e17;
    --imc-bg-dark: #0f111a;
    --imc-bg-card: #161925;
    --imc-bg-card-hover: #1c2030;
    --imc-border: #1f263b;
    --imc-border-glow: rgba(28, 132, 215, 0.38);

    /* Tons de Azul do Logotipo IMC (#0c4a78 -> #1c84d7 -> #38bdf8) */
    --imc-blue-navy: #0b4a7a;
    --imc-blue-primary: #1565c0;
    --imc-blue-electric: #1c84d7;
    --imc-blue-accent: #4364f7;
    --imc-cyan: #38bdf8;

    --imc-text-main: #f8fafc;
    --imc-text-muted: #94a3b8;
    --imc-text-dim: #64748b;

    --imc-success: #10b981;
    --imc-warning: #f59e0b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--imc-bg-deep);
    color: var(--imc-text-main);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Fundo Tecnológico com Grid e Glow Radial do Logotipo */
.bg-ambient-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        radial-gradient(circle at 18% 15%, rgba(28, 132, 215, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 82% 28%, rgba(67, 100, 247, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(11, 74, 122, 0.2) 0%, transparent 55%),
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
    pointer-events: none;
}

/* Navbar */
.imc-navbar {
    background: rgba(11, 14, 23, 0.84);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.85rem 0;
    transition: all 0.25s ease;
}

.navbar-logo {
    height: 44px;
    width: auto;
    transition: transform 0.2s ease;
}

.navbar-logo:hover {
    transform: scale(1.03);
}

.nav-link-imc {
    color: var(--imc-text-muted) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 0.95rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link-imc:hover,
.nav-link-imc.active {
    color: #ffffff !important;
    background: rgba(28, 132, 215, 0.12);
}

/* Status Pill */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(28, 132, 215, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--imc-cyan);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    box-shadow: 0 0 24px rgba(28, 132, 215, 0.2);
}

.pulse-dot {
    width: 9px;
    height: 9px;
    background-color: var(--imc-cyan);
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--imc-cyan);
    animation: pulse-ring 1.8s infinite ease-out;
}

@keyframes pulse-ring {
    0% { transform: scale(0.7); opacity: 1; }
    100% { transform: scale(1.9); opacity: 0; }
}

/* Hero Section */
.hero-section {
    padding: 4.5rem 0 4rem;
    position: relative;
}

.hero-logo-showcase {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.2rem;
    background: linear-gradient(145deg, rgba(22, 25, 37, 0.92), rgba(15, 17, 26, 0.95));
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 20px;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(28, 132, 215, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    margin-bottom: 1.75rem;
    position: relative;
}

.hero-logo-showcase img {
    max-height: 92px;
    width: auto;
}

.hero-logo-mode-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--imc-text-muted);
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-logo-mode-btn:hover {
    color: #fff;
    background: rgba(28, 132, 215, 0.25);
}

.hero-logo-showcase.light-card {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border-color: rgba(11, 74, 122, 0.3);
}

.hero-title {
    font-size: clamp(2.1rem, 4.2vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.text-gradient-imc {
    background: linear-gradient(135deg, #ffffff 0%, #7dd3fc 45%, #1c84d7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--imc-text-muted);
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    max-width: 740px;
    margin: 0 auto 2.5rem;
}

/* Painel do Contador Progressivo e Cronômetro de Lançamento */
.counter-panel {
    background: linear-gradient(180deg, rgba(22, 25, 37, 0.95) 0%, rgba(15, 17, 26, 0.98) 100%);
    border: 1px solid var(--imc-border-glow);
    border-radius: 24px;
    padding: 2.25rem;
    max-width: 940px;
    margin: 0 auto;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.65),
        0 0 50px rgba(28, 132, 215, 0.14);
    position: relative;
    overflow: hidden;
}

.counter-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--imc-cyan), var(--imc-blue-accent), transparent);
}

/* Barra e Contador Progressivo de Construção */
.progressive-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.progressive-percentage-display {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--imc-cyan);
    line-height: 1;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.progress-track-imc {
    height: 16px;
    background: rgba(11, 14, 23, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
}

.progress-fill-imc {
    height: 100%;
    background: linear-gradient(90deg, var(--imc-blue-navy) 0%, var(--imc-blue-electric) 55%, var(--imc-cyan) 100%);
    border-radius: 999px;
    position: relative;
    transition: width 0.4s ease;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

.progress-fill-imc::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 100%
    );
    animation: shimmer-bar 2.2s infinite;
}

@keyframes shimmer-bar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Caixas de Tempo (Dias, Horas, Minutos, Segundos, Milissegundos/Ticks) */
.timer-mode-tabs {
    display: inline-flex;
    background: rgba(11, 14, 23, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}

.timer-tab-btn {
    background: transparent;
    border: none;
    color: var(--imc-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timer-tab-btn.active {
    background: linear-gradient(135deg, var(--imc-blue-primary), var(--imc-blue-accent));
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(28, 132, 215, 0.35);
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
}

.time-box {
    background: rgba(11, 14, 23, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.2rem 0.75rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.time-box:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.4);
}

.time-value {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.05;
    display: block;
}

.time-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--imc-text-muted);
    margin-top: 0.45rem;
    display: block;
    font-weight: 600;
}

/* Etapas da Construção (Roadmap Milestones) */
.milestone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
    gap: 0.85rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
}

.milestone-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
}

.milestone-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.milestone-icon.done {
    background: rgba(16, 185, 129, 0.18);
    color: var(--imc-success);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.milestone-icon.active {
    background: rgba(56, 189, 248, 0.18);
    color: var(--imc-cyan);
    border: 1px solid rgba(56, 189, 248, 0.45);
}

/* Botões Padrão IMC */
.btn-imc-primary {
    background: linear-gradient(135deg, var(--imc-blue-electric) 0%, var(--imc-blue-accent) 100%);
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 0.8rem 1.7rem;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(28, 132, 215, 0.35);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-imc-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(28, 132, 215, 0.52);
    color: #ffffff;
}

.btn-imc-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--imc-text-main);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-imc-outline:hover {
    background: rgba(28, 132, 215, 0.12);
    border-color: var(--imc-cyan);
    color: #ffffff;
}

/* Seções de Conteúdo (Features & Planos) */
.section-padding {
    padding: 5rem 0;
}

.section-tag {
    color: var(--imc-cyan);
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.feature-card {
    background: var(--imc-bg-card);
    border: 1px solid var(--imc-border);
    border-radius: 18px;
    padding: 1.85rem;
    height: 100%;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    background: var(--imc-bg-card-hover);
    border-color: var(--imc-border-glow);
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.feature-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(28, 132, 215, 0.2), rgba(67, 100, 247, 0.15));
    border: 1px solid rgba(56, 189, 248, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--imc-cyan);
    margin-bottom: 1.25rem;
}

/* Cards de Planos (Preview) */
.plan-card {
    background: var(--imc-bg-card);
    border: 1px solid var(--imc-border);
    border-radius: 22px;
    padding: 2.2rem 1.85rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.28s ease;
}

.plan-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.4);
}

.plan-card.featured {
    background: linear-gradient(180deg, rgba(25, 33, 56, 0.95) 0%, rgba(22, 25, 37, 0.98) 100%);
    border: 1.5px solid var(--imc-blue-electric);
    box-shadow: 0 20px 50px rgba(21, 101, 192, 0.25);
}

.plan-popular-ribbon {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--imc-blue-electric), var(--imc-blue-accent));
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(28, 132, 215, 0.5);
}

.plan-feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
    flex-grow: 1;
}

.plan-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #cbd5e1;
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
}

.plan-feature-list li i {
    color: var(--imc-cyan);
    margin-top: 4px;
}

/* Seção de Pré-Cadastro / Notificação */
.notify-card {
    background: linear-gradient(135deg, rgba(22, 25, 37, 0.96), rgba(15, 23, 42, 0.96));
    border: 1px solid var(--imc-border-glow);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.form-control-imc {
    background: rgba(11, 14, 23, 0.9);
    border: 1px solid #2d3748;
    color: #ffffff;
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control-imc:focus {
    background: rgba(11, 14, 23, 1);
    border-color: var(--imc-cyan);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
    outline: none;
}

.form-control-imc::placeholder {
    color: #64748b;
}

/* Footer */
.imc-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(8, 10, 17, 0.95);
    padding: 3rem 0 2rem;
}

@media (max-width: 768px) {
    .time-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .counter-panel {
        padding: 1.5rem 1.15rem;
    }
    .notify-card {
        padding: 2rem 1.25rem;
    }
}
